I have a SWF movie made in flash (a banner) and I'd like to add it to a php page but I can't get it to play.
Can someone help me out?
Regards,
Pedro Gonçalves
Play SWF Movie
Moderator: General Moderators
Here ya go
Here is some html code that should get your flash embedded, you'll have to modify the sizes etc...
Code: Select all
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="32" height="32">
<param name=movie value="folder/flash/movie.fla">
<param name=quality value=high>
<embed src="folder/flash/movie.fla" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32">
</embed>
</object>the code with <object>...<embed>..... is a 'double-strike' for Navigator and IE compatible browser. The <object>-element is for IE.
If you take a look in the registry you'll find an entry HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}. It's the com-classid of the schockwave-plugin.
The Navigator ignores this element but handles the <embed>-element
If you take a look in the registry you'll find an entry HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}. It's the com-classid of the schockwave-plugin.
The Navigator ignores this element but handles the <embed>-element
According to W3 ( http://www.w3.org ) the <object> element is the one that is supposed to be used for most things like Flash and Java, the <embed> tag can be used but it is now deprecated (spelling?). If only all the browsers would follow proper rules it would all be ok 