Jump to content

Syntax Error in flash


CBaZ

Recommended Posts

This is my music player so when i edit this in sothink swf quicker it finds the error but in adobe cs5 it works fine but i cant edit all the txt in cs5 strange flash file i am hoping i somehow can fix this player problem.

error msg:

ERROR: Symbol 'Symbol 677', Layer 1, Frame 2, Line 18: Syntax error.

        else

 

 

f (action eq "play")
{
    actiontxt = "playing tr. ";
    status = actiontxt add playtrack;
    tellTarget("tracks")
    {
        gotoAndStop("track" add eval("../:playtrack"));
        tellTarget("")
        {
            gotoAndPlay(3);
            tellTarget("")
            {
                tellTarget("")
                {
                } // End of TellTarget
            } // end else if
        }
        else
        {
            scale = "0";
            down = "9";
            actiontxt = "stoped tr. ";
            status = actiontxt add playtrack;
            gotoAndStop(3);
        } // End of TellTarget
    } // End of TellTarget
} // End of TellTarget

Link to comment
https://forums.phpfreaks.com/topic/222592-syntax-error-in-flash/
Share on other sites

  • 3 weeks later...

your braces are all messed up.

 

I'm going to assume that the f at the start is infact supposed to be an if.

 

Here is the code with the braces fixed up:

f (action eq "play")
{
    actiontxt = "playing tr. ";
    status = actiontxt add playtrack;
    tellTarget("tracks")
    {
        gotoAndStop("track" add eval("../:playtrack"));
        tellTarget("")
        {
            gotoAndPlay(3);
            tellTarget("")
            {
                tellTarget("")
                {
                } // End of TellTarget
            }//end tellTarget
        }//end tellTarget
}//end tellTarget
}//end if
else
{
            scale = "0";
            down = "9";
            actiontxt = "stoped tr. ";
            status = actiontxt add playtrack;
            gotoAndStop(3);
}//end else

 

Try that.

 

Denno

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.