Jump to content


PHP and Flash

  • Please log in to reply
1 reply to this topic

#1 stoodder

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 13 July 2006 - 03:58 AM

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

#2 Daniel0

  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 13 July 2006 - 07:16 AM

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

You can save the file by using the Filesystem functions.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users