Hi guys, need help as i am relatively new to AS3. I want to know how to gotoAndPlay back to scene1/parent to play frame there.
I did they type casting but keep getting error
Type Coercion failed: cannot convert flash.display::Stage@2e793089 to flash.display.MovieClip.
at test2_fla::backgroundC_13/fl_ClickToGoToAndPlayFromFrame()
Try this, create an empty AS3, create 2 layers, action and page.
Create a button in page layer at frame1 and add title “home”.
Then press F6 at frame 5.
Next, while on frame 5, select the button and convert it to movieclip, name it “background”. Instance name “background” too.
Double click the background at the library, change the “home” to “Page2”
Then at action, at frame 5, insert blank keyframe, and f9. In the action menu, type : stage.addChildAt(background,0).
Next, go to frame 10 in action, insert a blank keyframe and add action: stop();
In your library, double click the movie clip again and select the button and add an event listener to go back to frame 1 of parent. This is where im stuck.
Sorry for the long post, hope you guys can help me out.