Copy link to clipboard
Copied
I am putting the code which I used for one of my buttons.
/* Click to Go to Scene and Play
Clicking on the specified symbol instance plays the movie from the specified scene and frame.
Instructions:
1. Replace "Scene 3" with the name of the scene you would like play.
2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
*/
zaxra.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_2);
function fl_ClickToGoToScene_2(event:MouseEvent):void
{
}
Thank you so much!
Copy link to clipboard
Copied
1. is this an as3 project. (that's as3 code and won't work if it's an html5/canvas project.)
2. you need some button or movieclip on stage (when that code executes) with instance name (in the properties panel) zaxra.
3. you need a scene named "spitiz". if that's the current scene, it will replay.
4. any error messages when testing?
Copy link to clipboard
Copied
Thank you I made it work with adding a esperate layer named stop and putting the code there!
Copy link to clipboard
Copied
you're welcome