Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

1086: Syntax error (Help!)

New Here ,
Jan 21, 2014 Jan 21, 2014

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();

}

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2014 Jan 21, 2014

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

What is tempInit? Error originates in tempInit.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2014 Jan 21, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2014 Jan 22, 2014

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

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2014 Jan 22, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines