|
-
Instance Name : win1, win2, win3
-
-
_root.onLoad=function() {
-
depth=0;
-
init=new Array;
-
init=[ [win1._x,win1._y],[win2._x,win2._y],[win3._x,win3._y] ]
-
}
-
button1.onPress=function() {
-
i=1;show_win(i);
-
}
-
button2.onPress=function() {
-
i=2;show_win(i);
-
}
-
button3.onPress=function() {
-
i=3;show_win(i);
-
}
-
function show_win(i) {
-
_root["win"+i]._x=init[i-1][0];
-
_root["win"+i]._y=init[i-1][1];
-
_root["win"+i].gotoAndStop(2);
-
_root["win"+i].swapDepths(depth++);
-
}
|