The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsAlright I have Flash CS3, and this never used to happen to me in Flash 8.
I have a button set with this code (Yes my AS is set to 2.0)
on (release) {
gotoAndPlay("OpenCredits", 1);
}
But when I click it, it just plays the same scene again. The scene that the button is on.
Whats going on?
Scenes are evil... just use frame labels and it should work :)
Yeah don't use scenes, use frame labels. Click on a frame and in the properties panel will be a input box to input your label for that frame.
To use:
_root.myButton.onPress = function() {
_root.gotoAndPlay("ILoveRenae");
};
Try a frame label instead, they are more reliable. On the frame you want to play, make a keyframe and on the Properties Inspector type in a frame label. Then just say,
on (press)
{
_root.gotoAndPlay ("nameoflabel");
}
At 6/13/07 03:34 PM, Gorilla-Studios wrote: _root.myButton.onPress = function() {
_root.gotoAndPlay("ILoveRenae");
};
LOL!! That's the best frame label ever!!! <3
At 6/13/07 02:52 PM, ReNaeNae wrote: Scenes are evil... just use frame labels and it should work :)
Are you just saying this for CS3?
Because I'm using Flash 8 and I've never had a problem with scenes.
I use code identical to what he posted.
AS: Main
Don't read this sentence.