**Error** Scene 1, Layer 'actions', Frame 1, Line 664: 1087: Syntax error: extra characters found after end of program.

Scene 1, Layer 'actions', Frame 1, Line 664: 1087: Syntax
error: extra characters found after end of program.
I am new to importing classes and I have been practicing
making a photo gallery. I am stuck and I want to know if someone
can help me with the error I am getting.
If it is convenient, you can download and test my .zip at
www.dhtmlguy.freeservers.com
Thanks in advance!

thanks...the small stuff gets me every time.

Similar Messages

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

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

    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.

  • Error 1087 extra characters found after end of program.

    Why am I getting the "error 1087 extra characters found after end of program with this code".
    If (counter == 1) {
    Next_btn.addEventListener(MouseEvent.CLICK,KMT1);
    else {
    Next_btn.addEventListener(MouseEvent.CLICK,KMT1);
    function KMT1(event:MouseEvent):void {
      gotoAndPlay("KMT1");

    thanks...the small stuff gets me every time.

  • Symbol 'LoseMessage', Layer 'Reset_btn', Frame 1, Line 15     1061: Call to a possibly undefined method

    Hi I have a game set up, when you deplete your lives it takes you to a lose screen (Symbol), on that screen I have a button called Reset Game.
    The button name is "Reset_btn"
    The button instance is "resetbtn"
    I have the code in the symbol and I am getting this error:
    Symbol 'LoseMessage', Layer 'Reset_btn', Frame 1, Line 15    1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
    Here is my code:
    //Reset Button Code
    resetbtn.addEventListener(MouseEvent.CLICK, Reset_btn);
    function Reset_btn(event:Event):void
            gotoAndStop(1);
    I have given my button and instance name and a name for the button, why am i still getting this error, can anyone help?
    Casey

    Ok.. so
    This is on a separate timeline, its a movieclip which has a timeline inside it.
    on frame 1 of that timeline inside the movieclip I have my button inside the movieclip.
    The movieclip is activated when it meets a certain condition.
    In this case when lives have been depleted to 0 from 3 a gameover screen appears.
    A button is on that gameover screen which should take me back to the main menu or Frame 1 of the actual game in this case.
    Here is the code for the condition for when game over screen appears:
    if(cursor.hitTestObject(enemyAppear2))
                            enemyAppear2.parent.removeChild(enemyAppear2);
                            stage.removeEventListener(MouseEvent.CLICK, clickEnemy2);
                            life--
                            messageDisplay2.text = String(life);
                            if(life == 0)
                                enemyTimer2.stop();
                                var loseText:LoseMessage = new LoseMessage();
                                loseText.x = 0;
                                loseText.y = 0;
                                parent.addChild(loseText);
                                Mouse.show();
    This code is in my main gaming code timeline.
    The code im trying to show is inside the movieclip which i have set up.
    Is this a clear enough explanation?

  • Line 26 1084:  Syntax Error:  expecting rightbrace before end of program

    Im trying to do an animation, how do I solve Line 26 1084:  Syntax Error:  expecting rightbrace before end of program?
    package
        import flash.display.MovieClip;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        public class AvoiderGame extends MovieClip
            public var enemy:Enemy;
            public var gameTimer:Timer;
            public function AvoiderGame()
                    enemy = new Enemy();
                    addChild( enemy );
                    gameTimer = new Timer( 25 );
                    gameTimer.addEventListener( TimerEvent.TIMER, moveEnemy );
                    gameTimer.start();
            public function moveEnemy( timerEvent:TimerEvent ):void
               enemy.moveDownABit();

    I have taken your advice but now 2 errors have popped up. Line 16 1137: Incorrect number of arguments . Expected no more than 0. Line 18 1120 : Access of undefined property enemy.
    package
        import flash.display.MovieClip;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        public class AvoiderGame extends MovieClip
            public var army:Array;
            public var avatar:Avatar;
            public var gameTimer:Timer;
            public function AvoiderGame()
                    army = new Array();
                    var newEnemy = new Enemy( 100, -15 );
                    army.push( newEnemy );
                    addChild( enemy );
                    avatar = new Avatar();
                    addChild( avatar );
                    avatar.x = mouseX;
                    avatar.y = mouseY;
                    gameTimer = new Timer( 25 );
                    gameTimer.addEventListener( TimerEvent.TIMER, onTick );
                    gameTimer.start();
            public function onTick( timerEvent:TimerEvent ):void
                avatar.x = mouseX;
                avatar.y = mouseY;
                for each ( var enemy:Enemy in army )
                         enemy.moveDownABit();
                         if ( avatar.hitTestObject( enemy ) )
                                    gameTimer.stop();

  • Feature Request: Line Number on Syntax Error

    Hi,
    When I execute a query in the query window and there is a syntax error, I don't get the line number of where the error is as I normally do in SQLPlus. Is this this something that can be added to the error message?
    thanks
    -Niels

    Alternatively, if you feed the SQL into a procedure (or anon block) something like below, this will give you the exact character position of the failure.
    I've previously used this in a java/jdbc web-based ad-hoc query solution to good effect, and so blaming java/jdbc is not really valid.......
    CREATE OR REPLACE
    PROCEDURE parse
    (sqlstr IN VARCHAR2)
    IS
    cur BINARY_INTEGER := DBMS_SQL.OPEN_CURSOR;
    errpos BINARY_INTEGER;
    fdbk BINARY_INTEGER;
    BEGIN
    DBMS_SQL.PARSE (cur, sqlstr, DBMS_SQL.NATIVE);
    DBMS_SQL.CLOSE_CURSOR (cur);
    EXCEPTION
    WHEN OTHERS
    THEN
    errpos := DBMS_SQL.LAST_ERROR_POSITION;
    DBMS_OUTPUT.PUT_LINE (SQLERRM || ' at pos ' || errpos);
    DBMS_SQL.CLOSE_CURSOR (cur);
    END;

  • Scene 1, Layer 'Layer 1', Frame 1, Line 1     1172: Definition fl.data:DataProvider could not be found.

    How do I correct this error - is it because I by accident has deleted the default library path and how do I put it back to the default value?

    How are you trying to implement it in your code?  Do you import the DataProvider class?

  • Error : Syntax check form not found in function group program

    Hi All,
    I have a function group ZMRMK. In its source code the function-pool SAPLZMRMK contains error
    "Form XYZ does not exits"
    There is an  include in SAPLZMRMK named  lzmrmkf01 : in this include there is an include lmrmkf02 . Here XYZ is called->
    perform XYZ.
    The form XYZ is written in LMRMKF16 and this include is  in function pool SAPLMRMK.
    Kindly suggest how to remove this error.

    Hi
    Yes you do
    But It seems many standard includes are missing in the Z-function group: perhaps this function group was created in another system or in another release?
    It's strange many includes are missing, this is a typical upgrade problem:
    A standard function group was copied, but only some components were copied, so the function group use Z-include and standard ones, now in the new system "old standard includes" calls new routine defined in new include, used in standard function group, but not in Z-function group.
    If it's so, you need to put the missing include manually
    Max

  • Syntax error: expecting rightparen before not.

    Another textbook problem!
    The step word for word in my textbook is:
    The following four lines of code placed above the goto statement for the function called by the home button so the animation does not play when the Home button is clicked.
    if (animationInstance.parent != null)
         animationinstance.parent.removeChild(animationInstance);
    So.. I added this step to my code for the assignment and when I test it, I'm getting error:
    Scene 1, Layer 'actions', Frame 1, Line 29 1084: Syntax error: expecting rightparen before not.
    Here's my entire code for the frame:
    import flash.events.MouseEvent;
    stop();
    var animationInstance:animationMC = new animationMC();
    graphicsBtn.addEventListener(MouseEvent.CLICK, goto2);
    function goto2(Event:MouseEvent)
        gotoAndStop(2);
    animationsBtn.addEventListener(MouseEvent.CLICK, goto3);
    function goto3(Event:MouseEvent)
        gotoAndStop(3);
    formBtn.addEventListener(MouseEvent.CLICK, goto4);
    function goto4(Event:MouseEvent)
        gotoAndStop(4);
    photoBtn.addEventListener(MouseEvent.CLICK, goto5);
    function goto5(Event:MouseEvent)
        gotoAndStop(5);
    homeBtn.addEventListener(MouseEvent.CLICK, goto1);
    function goto1(Event:MouseEvent)
        if(animationInstance.parent ! = null)
            animationInstance.parent.removeChild(animationInstance);
        gotoAndStop(1);
    Any help is appreciated!!

    ! = should be !=   no space ( ! is what they are calling "not" -- shoulda just used ! )
    And I think I already mentioned to not use "Event" like you do

  • 1086: Syntax error: expecting semicolon before rightparen. ?

    Hi there i'm currently working on my year 13 ICT coursework using Adobe flash CS5.5 and while correcting an error while implementing a third party found image gallery another one appeared, which I am completely unable to fix.
    At the moment I would like the image gallery to be implemented in Scene 3 of my product, but it seems when opening to view the product it just spams through all the scenes and I am confused on why this is the case?
    If anyone can help with this then it would be much appreciated.
    Here is the code line which has the Syntax error, if any other thing are needed please just ask.
    lastBildeHL.onLoadProgress = gotoAndPlay("Scene 1")); numBytesLoaded:Number, numBytesTotal:Number):void
    Thanks

    Hi there just added that line and when doing so I then got these errors:
    Scene 3, Layer 'actions', Frame 5, Line 131
    1084: Syntax error: expecting rightparen before colon.
    Scene 3, Layer 'actions', Frame 5, Line 131
    1078: Label must be a simple identifier.
    Scene 3, Layer 'actions', Frame 5, Line 132
    1084: Syntax error: expecting identifier before var.
    Scene 3, Layer 'actions', Frame 5, Line 132
    1078: Label must be a simple identifier.
    Here are the actions:
    lastBildeHL.onLoadProgress = gotoAndPlay("Scene 1", numBytesLoaded:Number, numBytesTotal:Number):void
        var numPercentLoaded:Number = numBytesLoaded / numBytesTotal * 100;
    Any help would be good
    Thanks,
    Joe

  • 1084 Syntax errors. Very basic.

    I am very new to flash and I have some very basic code that I need help with.
    Here;
    var paddlepos:int = paddle.x.position
    if; (paddlepos > 253)
        paddle.x.postition = 253;
    The errors are:
    Scene 1, Layer 'Actions', Frame 1, Line 28    1084: Syntax error: expecting rightparen before leftbrace.
    Scene 1, Layer 'Actions', Frame 1, Line 27    1084: Syntax error: expecting leftparen before semicolon.
    Help would be very helpful. Thanks.

    there should be no semi-colon after if.

  • 1086: Syntax Error: expecting semicolon before leftbrace?

    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.

    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.

  • Help me find syntax error in AS3 code to chain FLV videos.

    I posted a how to do this a couple of weeks back & someone was kind enough to offer this advice to an AS newbie...
    "you should create a fla, drag an flvplayback component to the stage, create an array of your flvs, initialize an index at zero, assign the flv to start playing your first flv and increment the index in a function that executes when an flv complete and play that array element until all are played.  you'll publish your html and swf from that fla." 
    And he gave me a code sample which is below... modified to show my "instance" name as FlvChain
    and my flv file names... vid1.flv, vid2.flv, and vid3.flv...
    My code...
    import fl.video.VideoEvent;
    var flvA:Array=["vid1.flv","vid2.flv","vid3.flv"];
    var index:uint=0;
    FlvChain.source=flvA[index];
    FlvChain.addEventListener(VideoEvent.COMPLETE,completeF){
    index++;
    if(index<flvA.length){
    FlvChain.source=flvA[index];
    } else {
    // all flvs played
    When I attempt to Debug I get this message...
    "1087: Syntax error: extra characters found after end of program."
    I'm sure I made a silly error. I've never done AS before I'm running CS3 & AS3 on a PC with XP Pro.
    Thanks for any help.

    use:
    import fl.video.VideoEvent;
    var flvA:Array=["vid1.flv","vid2.flv","vid3.flv"];
    var index:uint=0;
    FlvChain.source=flvA[index];
    FlvChain.addEventListener(VideoEvent.COMPLETE,completeF);
    function completeF(e:VideoEvent)
    index++;
    if(index<flvA.length){
    FlvChain.source=flvA[index];
    } else {
    // all flvs played

  • Flash Action Script 3 is giving me 1120 error help please!

    I am having trouble coding this tutorial. I have changed it a little to fit my photos. I am getting this error 1120 below:
    Scene 1, Layer 'actions', Frame 1, Line 1    1120: Access of undefined property btn1.
    Scene 1, Layer 'actions', Frame 1, Line 2    1120: Access of undefined property btn2.
    Scene 1, Layer 'actions', Frame 1, Line 3    1120: Access of undefined property btn3.
    Scene 1, Layer 'actions', Frame 1, Line 4    1120: Access of undefined property btn4.
    I don't really understand the coding and need help fixing this problem. I believe their code is wrong because my gallery will not work from the tutorial.
    The code I have is below:
    stop(); btn1.addEventListener(MouseEvent.CLICK,play1); function play1(event:MouseEvent):void{ gotoAndStop ("rosie") }
      btn2.addEventListener(MouseEvent.CLICK,play2); function play2(event:MouseEvent):void{ gotoAndStop ("mel") }
      btn3.addEventListener(MouseEvent.CLICK,play3); function play3(event:MouseEvent):void{ gotoAndStop ("liz") }
      btn4.addEventListener(MouseEvent.CLICK,play4); function play4(event:MouseEvent):void{ gotoAndStop("kayla") } ;
    The code that was given to me is below: (Source:How to create a simple image gallery in flash cs5) :
      stop(); btn1.addEventListener(MouseEvent.CLICK,play1); function play1(event:MouseEvent):void{ gotoAndStop ("young") } btn2.addEventListener(MouseEvent.CLICK,play2); function play2(event:MouseEvent):void{ gotoAndStop ("thoughtful") } btn3.addEventListener(MouseEvent.CLICK,play3); function play3(event:MouseEvent):void{ gotoAndStop ("dancing") } btn4.addEventListener(MouseEvent.CLICK,play4); function play4(event:MouseEvent):void{ gotoAndStop ("old") }
    Can anyone help me with this tutorial or coding! That would be great. Thanks!!

    Flash CS3 works with events.
    To handle clicks you have to capture the click event
    To load a link you have navigateToURL:
    http://livedocs.adobe.com/flex/2/langref/flash/net/package.html#navigateToURL()

  • Flash is complaining about XML? Im using AS3 why are there XML errors? Unknown syntax errors.

    Sorry to keep spamming these forums with my stupid errors, but I am trying really hard to learn Flash/AS3 and when I have got to grips with it, I will return the love.
    I am a flash rookie trying to make a simple calculation device and I am getting a whole world of errors I have never seen before.
    My Code (I apologise but it may be my bad syntax):
    import flash.ui.Mouse;
    var Hnum:String;
    var PCnum:String;
    var calc:Number = 25;
    var Total:Number;
    num1.restrict = "0-9";
    num2.restrict = "0-9";
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function PartCount(event:MouseEvent):void{
        PCnum = num2.text;
        if (PCnum > 0 && < 10){
            parseInt(PCnum) * 10;
        or if (PCnum > 11 && < 20){
            parseInt(PCnum) * 5;
        or if (PCnum > 21){
            parseInt(PCnum) * 1;
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function calculate(event:MouseEvent):void{
        Hnum = num1.text;
        PCnum = num2.text;
        Total = parseInt(Hnum) * calc + parseInt(PCnum);
        Total.toString();
        Total_txt.text = String(Total);
    I had everything working when I was only calculating Hnum by 25. But when I try to intergrate  the if or statement everything goes wrong and I get these 5 errors.
    Scene 1, Layer 'Actions', Frame 1, Line 15
    1104: invalid xml name
    Scene 1, Layer 'Actions', Frame 1
    1084: Syntax error: expecting xmltagendend before end of program.
    Scene 1, Layer 'Actions', Frame 1
    1084: Syntax error: expecting rightparen before end of program.
    Scene 1, Layer 'Actions', Frame 1
    1084: Syntax error: expecting identifier before end of program.
    Scene 1, Layer 'Actions', Frame 1
    1084: Syntax error: expecting rightbrace before end of program.
    I dont understand what these errors are pointing out? Why XML? is it my variable names?
    Here is the code I had before the second function that worked fine:
    var Hnum:String;
    var PCnum:String;
    var calc:Number = 25;
    var Total:Number;
    num1.restrict = "0-9";
    num2.restrict = "0-9";
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function calculate(event:MouseEvent):void{
         Hnum = num1.text;
         PCnum = num2.text;
         Total = parseInt(Hnum) * calc;
         Total.toString();
         Total_txt.text = String(Total);
    Any help would be greatly appreciated! I will get the hang of this!
    MrB

    Thanks guys you were right it was parse problem with the var type.
    I have changed the code adding parseInt where necessary.
    I have also added the other functions. But now after it was working fine with just the one function it is doing the strangest thing.
    There are no errors, it is running fine but it is outputting the letter "a" instead of any numbers? Is this something to do with the strings? It is most odd.
    Any help would be greatly appreciated.
    Here is the new code:
    import flash.ui.Mouse;
    var Hnum:String;
    var PCnum:String;
    var PCcalc:Number;
    var Pmath:Number;
    var calc:Number = 25;
    var Total:Number;
    num1.restrict = "0-9";
    num2.restrict = "0-9";
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function PartCount(event:MouseEvent):void{
        if (parseInt(PCnum) > 0 && parseInt(PCnum)< 10){
            PCcalc == 1;
        if (parseInt(PCnum) > 11 && parseInt(PCnum)< 20){
            PCcalc == 2;
        if (parseInt(PCnum) > 21 && parseInt(PCnum)<200){
            PCcalc == 3;
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function PartCalc(event:MouseEvent):void{
        if (PCcalc == 1){
            Pmath * 10;
        if (PCcalc == 2){
            Pmath * 5;
        if (PCcalc == 3){
            Pmath * 1;
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function calculate(event:MouseEvent):void{
        Hnum = num1.text;
        PCnum = num2.text;
        Total = parseInt(Hnum) * calc + Pmath;
        Total.toString();
        Total_txt.text = String(Total);
    Thanks
    MrB

Maybe you are looking for

  • Problems loggin in Oracle Enterpirse Manager Console

    Hi. I installe oracle 9i and managed to setup a development and OEMREP databases and successfully logged into the Enterprise Manager Console. But after a few days, out of the blue, I can't login anymore. I'm getting the following error msg: "The exce

  • IPod touch reports no available memory after only 160 songs

    I upgraded to version 2.0 (the backup feature failed) and starting moving songs from my library to my 8GB touch. After only 160 songs were copied over I got a message saying the iPod is out of available space, and after checking the unit itself it sa

  • Is Oracle committed to JavaFX?!?!

    I REALLY want FX to succeed ... I am betting my company's first product on it. However, I am beginning to question if Oracle is really interested in it. When I search on the web, many of the links are broken. Much of the available documentation is in

  • Error Code 2894

    I keep getting this error when I try to install iTunes 7.0.2 on my computer I had it on here before but I had to reinstall my OS on my computer because it crashed: "The installer encountered an unexpected error installing this package. This may indic

  • Disassembly subcontracting process

    Dear experts, I have the following scenario at my client: My client wants to assembly products, and we have chosed the subcontracting process in MM to set his up. So for assembly we are procuring a certain material (A) in a Sub.con order, with compon