-
Swap depth makes my movie clip/button go to the next scene
I have a button inside a movie clip which makes the picture movable as well as comes to the top, but when I change scenes the last picture dragged goes to the next scene. How do I make it a drag able and comes to the top. This is my code:
on (press) {
startDrag(_root.gage);
}
on (release) {
stopDrag();
}
on (press) {
_root.gage.swapDepths(1);
}
Please help!!!
-
Designer, Programmer, Musician
In the script where you gotoAndStop the next scene, add this:
_root.gage.stopDrag();
_root.gage.removeMovieClip();
Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries
-
Its still staying with the scene. and its turning red too
-
Designer, Programmer, Musician
As you haven't provided an *.fla, i made an example from scratch and its working here. I press the button , the movieclip is being dragged, then i press spacebar to go to the other scene, and then the movieclip stop dragging and gets removed.
So, you have to post your *.fla to see what's wrong overthere.
Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries
-
Im trying to upload it. The transition between scenes is due to buttons. When it gets to the scene its gotoandplay so the scene will start.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|