Groups | Blog | Home
all groups > flash actionscript > october 2006 >

flash actionscript : Object staying on a frame that it isn't even on.


Mikeb88_69
10/21/2006 6:24:10 PM
[i]I have 3 buttons, and when they are pressed down, I have them switch their
order using this code[/i]

[b]_root.x+=2;
this.swapDepths(_root.x);[/b]

[i]The flash file is 3 frames, and the 3 buttons are on the first frame. My
problem is that, the last activated button (the one with the highest depth
value) stays on every frame when I switch back and forth, meanwhile I only have
these 3 buttons on the first frame. Why is it staying on screen when it should
disappear when I change frames?[/i]


kglad
10/21/2006 7:57:03 PM
Mikeb88_69
10/22/2006 5:02:44 PM
kglad
10/22/2006 5:27:00 PM
Mikeb88_69
10/23/2006 5:25:50 PM
I created a dummy file which basically is a smaller version of what I have at this moment.

Mikeb88_69
10/24/2006 2:05:58 AM
kglad
10/24/2006 4:31:46 AM
Mikeb88_69
10/24/2006 5:12:50 PM
Mikeb88_69
10/25/2006 1:37:32 AM
kglad
10/25/2006 2:17:54 AM
you can use removeMovieClip() to remove movieclips. but then you'll need to
use attachMovie() to get them back on stage.

for your purposes it would be easier to use the _visible property of your
movieclips to control which movieclips are visible on-stage.
Mikeb88_69
10/25/2006 2:40:32 AM
kglad
10/25/2006 2:55:57 AM
AddThis Social Bookmark Button