Navigation Menu
- August 5, 2021
- 2 replies
- 264 views
I am trying to create a navigation menu that uses buttons to change the scenes. However, when I addded in the code the scenes dont change and only appear for a few second.
code:
abortion_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_10);
function fl_ClickToGoToScene_10(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 2");
}
contro_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_11);
function fl_ClickToGoToScene_11(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 3");
}
pp_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_12);
function fl_ClickToGoToScene_12(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 4");
}
Now the first button works but the second doesnt and the third wont even show scene four. Im not sure why the first button works yet the others are being so weird.
Ive looked all over for resources to help with this but nothing is working. Weird how adobe has no resources for interactive features in adobe animate. All that Ive found are very dated.
