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

Scene 1, Layer 'Actions', Frame 1, Line 27 1084: Syntax error: expecting rightbrace before _01_010.

New Here ,
May 27, 2014 May 27, 2014

I need help with this code PLEASE!!!!

Stop_btn.addEventListener(MouseEvent.CLICK, fl_ClickToPauseVideo_3);

function fl_ClickToPauseVideo_3(event:MouseEvent):void

{

   

    assets/01_01_010.fla.pause();

}

Play_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToPlayVideo_3);

function fl_ClickToPlayVideo_3(event:MouseEvent):void

{

   

    assets/01_01_010.fla.play();

}

Restart_btn.addEventListener(MouseEvent.CLICK, fl_ClickToPauseVideo);

function fl_ClickToPauseVideo(event:MouseEvent):void

{

   

        assets/01_01_010.fla.seek(0);

}

Tranz_Btn.addEventListener(MouseEvent.CLICK, fl_ClickToPosition_3);

var fl_TF_3:TextField;

var fl_TextToDisplay_3:String = "FEMA’s mission is to support our citizens and first responders to ensure that as a nation we work together to build, sustain, and improve our capability to prepare for, protect against, respond to, recover from, and mitigate all hazards.

FEMA Hazard Mitigation efforts to reduce the risks associated with potential hazard events are ongoing. This course focuses on FEMA Hazard Mitigation Joint Field Office operations, which are established after a Major Disaster declaration to focus on mitigating the effects of future hazards in the state affected by the disaster..";

function fl_ClickToPosition_3(event:MouseEvent):void

{

    fl_TF_3 = new TextField();

    fl_TF_3.autoSize = TextFieldAutoSize.LEFT;

    fl_TF_3.background = true;

    fl_TF_3.border = true;

    fl_TF_3.x = 200;

    fl_TF_3.y = 100;

    fl_TF_3.text = fl_TextToDisplay_3;

    addChild(fl_TF_3);

}

TOPICS
ActionScript
298
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

correct answers 1 Correct answer

Community Expert , May 27, 2014 May 27, 2014

every line with a forward slash has a problem.

1.  any file paths/names should be in quotes.

2.  i can't think of any reason you would reference an fla in actionscript

3.  you certainly could not apply actionscript methods like play(),pause() and seek() to a fla.

bottomline:  you almost certainly have incorrect references to what appears to be an flvplayback component instance.

Translate
Community Expert ,
May 27, 2014 May 27, 2014

every line with a forward slash has a problem.

1.  any file paths/names should be in quotes.

2.  i can't think of any reason you would reference an fla in actionscript

3.  you certainly could not apply actionscript methods like play(),pause() and seek() to a fla.

bottomline:  you almost certainly have incorrect references to what appears to be an flvplayback component instance.

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 ,
May 27, 2014 May 27, 2014

ok now i am getting this

Scene 1, Layer 'Actions', Frame 1, Line 7    1061: Call to a possibly undefined method pause through a reference with static type String.

    "assets/01_01_010.swf".pause();

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 ,
May 27, 2014 May 27, 2014

what are you trying to do?

are you trying to control an flvplayback component?  if so, is the component on your stage?  yf so, assign an instance name in the properties panel and use that name (without quotes) instead of "assets/..swf"

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 ,
May 27, 2014 May 27, 2014

i am working on this project for work it working with 2.0 actionscript but i need it to work in 3.0 so i have to build it from start and i need the flvplaybackcaption to show text not a movie so i changed it and now i am get the errors look at post(1) can you help.

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 ,
May 27, 2014 May 27, 2014
LATEST

none of the code you showed is related to flv captioning.

it appears related to an flvplayback component and one textfield.  so,

add an flvplayback component to your stage, assign an instance name in the properties panel (and assign the source video you want to play)  then use that name (without quotes) instead of "assets/..swf"

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