tags:

views:

273

answers:

4

Hi, I was wondering how to basically edit a .swf file using php, to change a single variable or to change more. How would I go about doing this? Is there a way to edit it without knowing machine code?

If there is an example of how to do this, where can I find it?

Thanks!

Or, if there is an easier way to go about doing this, please let me know!

+2  A: 

With Actionscript, it's very simple to load external data: XML and JSON are two standardized ways to do it, and both are easily generated by PHP. What exactly are you trying to do?

cpharmston
I am trying to make it possible to download a copy of a flash file, but have that flash file be custom to the user who downloaded it. (i.e., they made a flash logo, and they can now download the .swf)
Cyclone
Do you just need to add custom artwork?
Richard
@cyclone: owkay i see... this way, generating is idd the only option... marby include this in the question.
Sander Versluys
+3  A: 

take a look at libming

php documentation at http://docs.php.net/manual/en/book.ming.php

arjan
Does data written with libming to the flash file stay with it?
Cyclone
A: 

check out the SWF-libary in php

A: 

Instead of thinking how to generate swf files, do the opposite and let the internal behavior depend on external logic in a php script. This way you never need to (re)compile your swf.

Sander Versluys