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