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
https://forums.phpfreaks.com/topic/14442-php-and-flash/
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
https://forums.phpfreaks.com/topic/14442-php-and-flash/#findComment-57136
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.