A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Export a .swf From a .swf During Runtime?

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    19

    Export a .swf From a .swf During Runtime?

    I'm looking for a method to create and save a .swf file from a currently open .swf file while the second of the two is running.

    My overall goal is to, with the click of a button, create a .swf that contains a certain MC that was already in the first .swf, then save the second .swf in a directory on a server that I have. I'm guessing it takes some server-side-scripting like php.

    I don't know if this really makes much sense, it's kinda hard to explain, so please ask any clarifying questions you might need.

    I'm mainly looking for a direction to get going in, maybe a link? Thanks!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Moved to Scripting & Backend.

    gparis

  3. #3
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    I don't think that's going to even be possible. The SWF binary is not an open format, so there's not going to be any way to generate an actual binary SWF.

    What you may look into doing is saving out the data you need to generate the swf in some format, then have another swf that interprets that data to display whatever you're trying to do. Then you'd do something like: file.swf?id=10

    And do something with that id variable.

    It's hard to say without knowing what you want to do.

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    have a look at the MING php extension which will write swf - it is used for such applications as converting vector data into swf street maps.
    There is a pure php (i.e., no need to ask the server people to install an extension) way to add actions to some swf - this would probably cover your case where all the elements of the final product are part of the initial one

    Musicman

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