gotoAndPlay not working
Hey guys, I have a problem here. I have 2 buttons called start and settings and both buttons with change the next scenes after the movie ends.
Here's the sample of the code
Start button:
on (release)
{
var o:Number = 1;
gotoAndPlay (40);
}
Settings button:
on (release)
{
var o:Number = 2;
gotoAndPlay (40);
}
In the real animation, after I click on 1 of the buttons, the animation will slowly go white and at the final, it does this code:
trace(o);
if (o == 1)
{
gotoAndPlay ("Selections");
}
else if (o == 2)
{
gotoAndPlay ("Settings");
}
But, the 'gotoAndPlay' doesn't work. I have applied this code on another scene and doesn't work too. Is there something wrong with my code?
