Copy link to clipboard
Copied
Hi, im doing an animation for school, im trying to get the frame to stop automatically and then a button will allow the user to continue.
However i am prompted with these errors:
tempInit, Line 2, Column 11 | 1086: Syntax error: expecting semicolon before 2. |
tempInit, Line 4, Column 11 | 1086: Syntax error: expecting semicolon before 6. |
How do i prevent this? Any help would be great!
Here is my code:
/* Stop at This Frame
The Flash timeline will stop/pause at the frame where you insert this code.
Can also be used to stop/pause the timeline of movieclips.
*/
stop();
/* Click to Go to Next Scene and Play
Clicking on the specified symbol instance moves the playhead to the next scene in the timeline and continues playback in that scene.
*/
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextScene_6);
function fl_ClickToGoToNextScene_6(event:MouseEvent):void
{
MovieClip(this.root).nextScene();
}
Copy link to clipboard
Copied
This code does not throw error. Unless this is an incomplete code.
What is tempInit? Error originates in tempInit.
Copy link to clipboard
Copied
you have extraneous code in the movieclip tempInit. delete that code and retest.
Copy link to clipboard
Copied
This is the thing, i dont have a clue what tempInit is!
Thanks, i'll have to find this irrelivant code!
Copy link to clipboard
Copied
if you have a flash cs version other than cc, you can use the explorer window to search.
you could also check your library for tempInit or some other likely looking suspect.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now