I am working in flash and have created several different scenes that change when you click on buttons on the screen. For example on the first scene there is a button which jumps to the second scene etc. etc.
The problem that I am having is that sometimes the buttons and the scenes will be working just fine and then I reload the page and all of the sudden it can’t find the scene when I have done literally nothing with the code. It’s like it doesn’t recognize my scene names.
I have tried renaming my scenes and checking and rechecking to make sure that they are identical in name and capitalization and still it does this.
One of the buttons is doing something particularly wonky in that it jumps to a completely different scene than the one specified sometimes while other times when I load it it just gives me the error.
Is this just flash being buggy?
Here is an example of my code:
who_she.addEventListener(MouseEvent.CLICK, moveScene);
function moveScene (event:MouseEvent):void{
gotoAndPlay(1, "green");
}
The error that I get reads:
ArgumentError: Error #2108: Scene before was not found.
at flash.display::MovieClip/gotoAndPlay()