Hi!
I use this code on my page:
*
on(press) {
_root.play();
_root.gotoAndPlay(“studio_in”);
}
*
When I press the button, it will play a fadeouteffect that’s positioned one frame after the currentframe.
1.It fades out the current shown image with _root.play();
2.It fades in the new image, with *_root.gotoAndPlay(“studio_in”);
*The problem is that it seems that it just runs *_root.gotoAndPlay(“studio_in”); and skipps the fadeout:_root.play();
*If I just run _root.play();[font=Arial] the fadeout works, but not if I run gotoAndPlay after the play() section. Howcome??
Ok, that makes sense. Though I can’t just put the gotoAndPlay() in the end of the fadeout, because depending of what button that’s pressed, the new image will be chosen, it won’t be the same everytime (it’s a menu I’m creating)
Maybe a while-function that runs play() as long as the fade-out last frame isn’t reached…