dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: swf outputs as files

  1. #1
    Custom User Title Incrue's Avatar
    Join Date
    Feb 2004
    Posts
    974

    swf outputs as files

    I know flash player can save bitmaps and xml files on the file system, but does anyone knows if theres a way to make a swf spits .as files? And load as well?

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,227
    Not sure what you want to save in .as file. Some code the user types? Or the code from swf running?

    Of course you can not load and run any actionscript code since the swf is compiled already with all the code. You could load .as file and show the code as text but not make it run or do anything.

  3. #3
    Custom User Title Incrue's Avatar
    Join Date
    Feb 2004
    Posts
    974
    I want to make kinda of a .as files editor
    Like if i have a perlin noise generator, i see the results, change the data i want, click generate and he saves the code into a .as file

  4. #4
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,227
    Basically you can do that same way you would save txt or html file, .as is simply different extension. You would need to compile new swf from saved .as file.

  5. #5
    Senior Member bluemagica's Avatar
    Join Date
    Jun 2008
    Posts
    766
    Yeh, you will have to recompile the code into a new swf, and swf's can't compile new swf's on their own( well some of the Einsteins here might think of a way of doing it eventually....).

    If you ask me, your best bet is to write your own parser method to handle external code. Think of it like passing parameter values to a function from an external source.
    If you like me, add me to your friends list .

    PS: looking for spriters and graphics artists for a RPG and an Arcade fighting project. If you can help out, please pm me!

    My Arcade My Blog

    Add me on twitter:

  6. #6
    Custom User Title Incrue's Avatar
    Join Date
    Feb 2004
    Posts
    974
    I dont want to compile, just load, edit and save.

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