Jump to content

how do add a .fla file using php?


Orionsbelter

Recommended Posts

add it to what?

 

You can generate .swf files in php using libraries out there like the MING library, but as far as I know, there is no way to generate a flash source file (.fla) through php.  If this is not what you are asking, then be more specific.

you embed the SWF not the FLA...

 

Download dreamweaver and their is code that is automatically generated when you insert a SWF

 

or use google.

 

http://www.w3schools.com/flash/flash_inhtml.asp

 

I dont know why you think this is PHP specific.

 

and if you need to get the FLA to SWF, you need flash to export it.

yep. your blah.fla is a source file. You need flash to compile it into a .swf (I think there are also some free programs out there that will do that, but not 100%, might want to google it).

 

Once you do that, you would use the html embed tag to put it on your webpage. 

 

Moving to html help.

I don't know why this was moved to CSS - it's not a CSS issue! Javascript if anything.

 

I personally use swfobject. It's standards friendly and works in all major browsers. And since it's supported by google (which is fairly recent), you can rest assured that they will probably support it for some time to come.

sorry I meant to move it to html I highlighted the wrong forum in the dropdown.

 

edit:

 

Oh I see what happened. The thread was originally in the PHP help forum and I meant to move it from there to html help but someone else beat me to it when I was still on that screen so it was already here when I highlighted it and ended up highlighting the next one which was css.

This is how I embed .swf files.

 

<object type="application/x-shockwave-flash" data="./path/to/file.swf" width="50" height="50">
<param name="movie" value="./path/to/file.swf" />
<param name="loop" value="true" />
alt : <a href="./path/to/file.swf">file.swf</a>
</object>

 

It validates in XHTML 1.0 Strict

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.