Copy link to clipboard
Copied
Hello,
Im new to animate, I literally just started to use it as part of my university project. Animation is not my field at all, but I am trying to make an action script for my project. First of all, I'm not sure if action script is the right type I should use. None of my buttons worked when I used the codes the software provides, when I put stop(); nothing happens. The animation just plays all my scenes one after the other and does not stop and wait for the buttons to be pressed so that it can navigate to the scene I want it to go to. Please I would really appreciate if someone could figure out what I have done wrong so I can apply this to all my scenes.
I couldn't figure out how to attach my fla file to this but for one of my scenes, code looks like this ;
stop();
start.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_15);
function fl_ClickToGoToScene_15(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(120, "Scene 2");
}
Thank you in advance
Jemma
Copy link to clipboard
Copied
Hi.
Can you confirm that you really have more than one scene? Because it may be possible that you're using ActionScript in a HTML5 Canvas document.
Please let us know.
Regards,
JC
Copy link to clipboard
Copied
Hello
Yeah, I have like 24 scenes
thanks
Copy link to clipboard
Copied
Thanks.
Is your code located at frame 1 of the first scene?
Copy link to clipboard
Copied
Yes it is, I tried to put it on the last frame previously but that didn't work either.
Is there a way I can send you the file to have a look? it would probably be easier?
Copy link to clipboard
Copied
You can upload your file to file sharing platforms like Google Drive, Dropbox, WeTransfer, or any other of your preference, and share the link here.
You can also PM me if your content has some privacy issue.