Generate dynamic flash using other flash app?

Greetings!

I was wondering:

Imagine having a swf or fla with a dynamic textfield.

is it possible to build an application that

  1. opens the swf or fla
  2. fills in the dynamic textfield
  3. regenerates the swf so that in the new swf, the textfield is filled in.

Is this possible…

if so…how :slight_smile:

There are a number of techniques:
ExternalInterface if you want to communicate between an SWF and its wrapper, e.g. javascript within a HTML page or a desktop application with an embedded Flash Player.
LocalConnection if you want to communicate between two different SWFs on the same computer, e.g. two SWF’s on the same page or an SWF in a browser with an SWF in a projector.
FlashVars if you want to populate textfields with predetermined variables.
SharedObject to retain persistent data, e.g. the contents of a textfield.

A search on those terms should provide plenty of examples.

[quote=Lone wolf;2356221]Greetings!

I was wondering:

Imagine having a swf or fla with a dynamic textfield.

is it possible to build an application that

  1. opens the swf or fla
  2. fills in the dynamic textfield
  3. regenerates the swf so that in the new swf, the textfield is filled in.

Is this possible…

if so…how :)[/quote]

It really depends on what exactly you are trying to do, but you could also look into SWFobject. It is easy to communicate with javascript. Another thing you can do is use PHP to generate the dynamic text into a flash container using SWFobject.

I was testing Ming 0.3 which comes with XAMPP. This does the trick but it converts all frames to an image. So a “real” swf is about 230kb, this one is then about +2 mb.

So I’m just looking for a way to open a build .swf-file, put some data into it and then recompile it to a new .swf-file.

so basically: opening an existing swf, add content, rebuild the swf with the new data inside. so you can give a real swf to someone.