A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Converting flash scripts inside .fla into external .as file?

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    2

    Converting flash scripts inside .fla into external .as file?

    Hi, I have a client that for some reason they are wanting to convert their .fla project and break up the 8 script layers of their game, and put it in an external .as file for the Flash project.

    I was just wondering if this could be done could someone show me a link, tutorial or anything on how I would go about doing this, and why this needs to be done this way?

    Easy implementation for future games of the same kind?

  2. #2
    Databarnak atRax's Avatar
    Join Date
    Dec 2000
    Location
    Zurich, Switzerland
    Posts
    258
    Wait is that some sort of Adobe thing?! Dont you need Flash in the CD drive to do that?
    I ask you all to concentrate really hard on the freedom of all being. Its hard not to be very angry it is impossible We have to focus this confusion frustration helplessness feeling into a creative outlet Anger can spawn such amazing creativity through Street art Free art to teach each other know each other a language our evolution Go ahead and break some dumb rules

  3. #3
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    I guess it makes it easier to update/edit without the need for Flash?

    I know this is done with CLASS files...but to do it with .as file seems (to me) to be lame.

    anyways while I have and would never done this.. I believe you can just cut paste it into a .as doc and include#it?

    example:
    // Note that #include statements do not end with a semicolon (
    // AS file is in same directory as FLA file or script (in this example)
    // or is in the global Include directory or the First Run/Include directory
    #include "init_script.as"



    #include "[path]filename.as":String

    Includes the contents of the specified file, as if the commands in the file are part of the calling script. The #include directive is invoked at compile time. Therefore, if you make any changes to an external file, you must save the file and recompile any FLA files that use it.

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    Quote Originally Posted by atRax
    Wait is that some sort of Adobe thing?! Dont you need Flash in the CD drive to do that?

    what?

  5. #5
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,986
    And this is in the Coffee Lounge... why?

    [ Hello ] | [ gerbick ] | [ Ω ]

  6. #6
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    cause I didnt see it was in the CL?

    atRax had th right idea..I just didnt catch on..

    (plus I cant move it anyways) ;P

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