Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to save output from a .swf file to a new .swf file?

Guest
Apr 03, 2012 Apr 03, 2012

Hi ,

I am working on a new flash project that allows the user to prepare artwork using the .swf flash file and allows them to overlay hypertext links into their artwork. The output of this custom content is needed to be saved as a .swf file itself, so that it can be used independantly. The new .swf file would essentially just be a single frame with the interactive artwork on.

Any ideas how this could be acheived?

Maybe use a simple user text input flash program as an example and get that to output the text as a frame in a new .swf?

Many thanks!

Dave

TOPICS
ActionScript
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 03, 2012 Apr 03, 2012

techincally this is possible but I have never seen anyone do it, interesting idea. Not really used it myself but you might want to look at JSFL

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 03, 2012 Apr 03, 2012

I've come across this, never used it but could be what you're looking for

https://github.com/claus/as3swf

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 04, 2012 Apr 04, 2012
LATEST

Hi,

there are two very distinct things: one is to emit an actual swf, and the other one is to tell an existing swf to show something....

Now assume your user can choose a few symbols from the library and drag them around .... and imagine an xml file that liss the symbol name and its coordinates on stage as well as its scaling factor.

Next assume the user can click somewhere to type text ... and imagine the xml file to contain text entries with actual text, font size, and coordinates

I did something with AS2 following this scheme: a server script copied the existing swf and added an actionscript block equivalent to the above-mentioned xml file. I have not studied details of AS3 files enough to tell whether the same is possible with AS3, but I sort of believe that an xml string embedded as a byte string could be amended / replaced in a similar way

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines