Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have been search for a few days now for a way to work on this.

Basically I could like to send flashvars to my swf file using some backend language like PHP or Python, then execute it and capture the output.

I looked up to Ming but it seems that this is only a lib for create SWF file, not much on manipulate already created file.

Thank you!

share|improve this question
    
What does it mean to "manipulate" an already created SWF file to you? What do you want to do that defines "manipulating" it? –  N.B. Apr 9 at 9:04
    
Let me explain further: I have a SWF file and a PHP/Python script. From this PHP script, I could like to call the SWF File with flash variable and do the SWF job. This is what i meant –  DucDigital Apr 9 at 9:14
    
Basically, something like interop between Flash and some backend language –  DucDigital Apr 9 at 9:19
add comment

1 Answer

If you need to do it 'on load basis', you can simply provide flash vars (for example put some flashvars depending on situation and embed the swf into html).

But if you need to have almost real time control over the flash, you have a few options:

  • socket connections - very hard (not to say impossible) to implement with php, and a kind of complex job
  • make the swf make a call to php, and get some information; then execute what you need depending on that information

I would advise you to use the second option - chose the action depending on situation, and let the swf client get it itself (either save it in file, db or calculate it realtime - it's up to you; the important is that you don't pass it to client, client makes query to get it).

share|improve this answer
    
Yes it's only per job basis, however is there a way to execute swf file from Serverside with flashvars? Because the client side is web base and run on machines that don't have flash install. There are functions obfuscated in SWF that I can't port to PHP. –  DucDigital Apr 9 at 11:40
    
Wait, you say that the client doesn't have flash player installed?! What do you mean by 'execute'? The client should simply open a web page :) –  Andrey Popov Apr 9 at 13:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.