Skip to main content
Participant
January 21, 2014
Question

1086: Syntax error (Help!)

  • January 21, 2014
  • 2 replies
  • 1383 views

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 111086: Syntax error: expecting semicolon before 2.
tempInit, Line 4, Column 111086: 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();

}

This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
January 22, 2014

you have extraneous code in the movieclip tempInit.  delete that code and retest.

Participant
January 22, 2014

This is the thing, i dont have a clue what tempInit is!

Thanks, i'll have to find this irrelivant code!

kglad
Community Expert
Community Expert
January 22, 2014

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.

Inspiring
January 21, 2014

This code does not throw error. Unless this is an incomplete code.

What is tempInit? Error originates in tempInit.