Jump to content

PHP and Flash


stoodder

Recommended Posts

hey guys, im new here but im not new to php.  neways curently im making a flahs engine that users can generate their own gam ebut the problem is that i need to find a way to create a flash movie using php.  now i know that php is able to create flahs movies but it would be better if that everytime the user creates a movie it actualy creats a file on the server, instead of generating it everytime.

neways i was hoping maybe someone here could help.  also i was wondering if anybody knew of a way that php could output as an actionscript file.  if anyone knows the MIME type for it or if i should just try and use eval or something.  i guess what woul dbe best is if i could just generate the actionscript with the movie aswell

thanks again(well for the first time) lol hopefully someone has an answer
Link to comment
Share on other sites

Hi, you would show the flash file by echo'ing the generated content, but before that run this command: [code]header("Content-type: application/x-shockwave-flash");[/code]

You can save the file by using the [url=http://dk.php.net/manual/en/ref.filesystem.php]Filesystem functions[/url].
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.