阿特底賽 ArtDesign
網頁設計CSS/JS、美術動畫、繪圖軟體經驗分享與交流
12/27/2010
同圖層中MC的前後順序code
//_____先定義B,A (2)<==數字越大越前面
B.swapDepths(0);
A.swapDepths(2);
//_____移上去B到前面
B.onRollOver = function() {
B.swapDepths(2);
A.swapDepths(0);
};
//_____移走去A到前面
B.onRollOut = function() {
B.swapDepths(0);
A.swapDepths(2);
};
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment