I’m having trouble with scenes, can anyone help me out?
In my movie I have three scenes, each called: scene1, scene2, and scene3.
In each scene I have the main sequences, with the first frame of each sequence given a label: act1, act2, and act3.
Now I have a button that I want to go to a spacific scene and a frame label in the scene when clicked.
This button (label: buttonNav) should go to scene2, and start playing from frame label act2.
[COLOR=blue]function onNavButtonClick(evt:MouseEvent):void {[/COLOR]
[COLOR=blue]gotoAndPlay(“frame:act2, scene:scene2”);[/COLOR]
[COLOR=blue]}[/COLOR]
[COLOR=blue]buttonNav.addEventListener(MouseEvent.CLICK,onNavButtonClick);[/COLOR]
[COLOR=black]Can anyone point out where I have gone wrong?[/COLOR]