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

1086: Syntax Error: expecting semicolon before leftbrace?

New Here ,
Sep 24, 2014 Sep 24, 2014

Hi guys!

I'm new to this program. Help would be really appreciated.

I keep getting this error: ReferenceError: Error #1065: Variable TCMText is not defined.

In the Compliers Error tab, it also says: Scene 1, Layer 'actions', Frame 1, Line 1    1086: Syntax error: expecting semicolon before leftbrace.

I'm not sure if this is correct, but I used the code snippets to help me on my Actions Frame, but to no avail.

on(release){

    _root.gotoAndPlay("2");

}

/* Click to Go to Next Frame and Stop

Clicking on the specified symbol instance moves the playhead to the next frame and stops the movie.

*/

start_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame_3);

function fl_ClickToGoToNextFrame_3(event:MouseEvent):void

{

    nextFrame();

}

I don't have a moving animation, but I want my Flash to work similar to a Power Point, so that the person can read the screen, then just click the button symbol to see the next scene. This is for an assignment, and it's due pretty soon. Haven't been able to figure out what's wrong since I'm a noob, thanks.

TOPICS
ActionScript
6.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 ,
Sep 24, 2014 Sep 24, 2014
LATEST

The first bit of code, "onRelease..." is Actionscript 2 and the second bit, "start_btn.addEvent..." is Actionscript 3. You can't mix and match versions of Actionscript in the same file. With nothing selected in the Stage window, look at the Properties window. In the Script section at the top, it will tell you which version of Actionscript you selected for this movie. Try just using the one version that your movie expects to see.

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