Jump to content

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

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.