PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
Trouble finding the syntax error
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Trouble finding the syntax error

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    9

    Trouble finding the syntax error

    http://www.mediafire.com/?5qldljhmf0iv92q

    I have trouble finding the following syntax, went to the actions panel cannot find it at all.

    Location:
    frame1, Line 1

    Description
    1087: Syntax error: extra characters found after end of program.

    Source:
    on (release) {
    I've had it, tried everything but nothing works Anyone here who wants to help me out, wants to take a look?

  2. #2
    Senior Member guardiankitty's Avatar
    Join Date
    Dec 2006
    Location
    Here
    Posts
    215
    This is obviously written in AS2.

    I dont even know where to start---

    If you are asking what is the as3 version of as2's on(release), then:

    Actionscript Code:
    mc.addEventListener(MouseEvent.MOUSE_UP, mcRelease);//mc is the movieclip
    function mcRelease(e:MouseEvent):void{//event handler
        //code
    }

    Most of the actionscript that I see in the flash document has been excluded because they were location 'on top of' movieclips (which is a big as2 thing, but was completely removed in as3).



    Best of Luck!
    -GK>'.'<
    Last edited by guardiankitty; 01-05-2012 at 07:33 PM.

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    9
    Sorry mate, you get me wrong here. I'm not asking you to rewrite. Just to point where exactly that faulty line, because that's the only syntax error left.

    I cannot find it at all.

    Location:
    frame1, Line 1

    Description
    1087: Syntax error: extra characters found after end of program.

    Source:
    on (release) {
    All the other old AS2 lines are just stop(); should not make any problems or do they?

  4. #4
    Senior Member guardiankitty's Avatar
    Join Date
    Dec 2006
    Location
    Here
    Posts
    215
    I looked throught he file that you have linked to, I dont see the following:

    Location:
    frame1, Line 1

    Description
    1087: Syntax error: extra characters found after end of program.

    Source:
    on (release) {
    SINCE on(param){} is a (prevalent) as2 function, it most likely is located 'on top' of an instance of a movieclip.

    In actionscript 3, you are unable to place as3 script on any movieclips (but in them is OK).

    So I am guessing that any as3 script that was on movieclips, has gotten 'eaten up' when converted to as3 from as2 (the warnings the compiler is giving me are confirming this).

    Honestly, I would cut your losses and rewrite the whole kit and kaboodle for as3.

    Best of luck!
    -GK

  5. #5
    Junior Member
    Join Date
    Jun 2009
    Posts
    9
    Or I have to make a guestbook in AS2, but so far none of the AS2 guestbooks work on my school server while AS3 based Guestbook do. Or do you know a AS2 based guestbook tutorial that's sure to work?

  6. #6
    Senior Member guardiankitty's Avatar
    Join Date
    Dec 2006
    Location
    Here
    Posts
    215
    none of the AS2 guestbooks work on my school server while AS3 based Guestbook do
    All that means is the as2 swfs are written incorrectly. Flash is a client side technology that runs on the client not the server.

    Actionscript Code:
    Or I have to make a guestbook in AS2, but so far none of the AS2 guestbooks work on my school server while AS3 based Guestbook do. Or do you know a AS2 based guestbook tutorial that's sure to work?


    The word guestbook really means nothing to me.

    If by 'guestbook' you mean to ask: 'how can I save an input field (like for a someones name) that can be saved and displayed in flash', then you will need to use a language outside of as2-3 for use on your server.

    I would recommend php for this job. Read up on this here and here


    In short,

    Saving Names:
    Have an input field in flash.
    Take input and send to PHP.
    PHP script, opens a file (like a txt file), appends to the end of it on a new line, the input.
    php saves and closes the file.
    php echos a 'im all done and everything is well' message.
    flash reads this 'im done' message, and displays: "Name Saved Successfully".

    Loading Names:
    Have a text field in flash.
    When the movie is first run, have it load variables from a php script.
    php reads from a given text file.
    php echos all of the results.
    Flash loads these results.
    When load is complete, parse and display the names in flash.


    That should give you a little to chew on without me just typing the whole thing for you.

    Hope that helps friend,
    GK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center