Page 1 of 1

Play SWF Movie

Posted: Tue May 21, 2002 4:58 am
by pdaniel
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

Posted: Tue May 21, 2002 7:24 am
by enygma
Well, besides being the wrong place to ask that - here's what you do:

Go into flash and load the SWF up, then Go under the file menu and export it with the HTML (there should be an option there) and then just use that HTML.

-enygma

Here ya go

Posted: Tue May 21, 2002 8:59 am
by Benjamin
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>

Posted: Tue May 21, 2002 2:21 pm
by sam
I've always wondered it the flash classid: contains part of your serial number or other unique tracking information.

Cheers Sam

Posted: Tue May 21, 2002 6:46 pm
by volka
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

Posted: Wed May 22, 2002 1:04 pm
by MattF
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 :(

Posted: Wed May 22, 2002 1:22 pm
by volka
:evil: right. I really hate to check the pages against all those browsers, especially if they contain DHTML. One way is to say 'Sorry, wrong browser'. But which one to choose?