PDA

View Full Version : Help: Playing a SWF file in php


pramod
07-04-2008, 11:11 AM
Please help me to understand how a swf file (flash animation) can be played in a php page.

I have tried the simple "Insert > Media > Flash" way to insert in Dreamweaver.
The flash file plays in my localhost server but does not play after uploading to the webhost server.

Please help ! :cry:

davidj
07-04-2008, 11:53 AM
post your code please

pramod
07-07-2008, 04:16 PM
Thanks ! Please check the code below.

-===================================-

<td width="113" height="45" colspan="2"><div align="center">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','250','heigh t','40','title','Clients','src','clients','quality ','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','clients' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="250" height="40" title="Clients">
<param name="movie" value="clients.swf">
<param name="quality" value="high">
<embed src="clients.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="250" height="40"></embed>
</object>
</noscript></div></td>

-================================================-

davidj
07-07-2008, 05:29 PM
this has nothing to do with PHP but something is causing problems

i have downloaded your flash file and i get the same results

i dont know

i am going to move this post into the flash forum as i think its a flash issue

ramandeep
07-07-2008, 10:36 PM
Pramod,
Check few things
- On server, is ur php page and clients.swf file in same folder?
(it should be as you are giving relative path)
- Try giving absolute path like
src="http://www.yourdomain.com/clients.swf"

If not giving us the link to the file on server please.

pramod
07-09-2008, 10:55 AM
thanks davidj, Ok if yu\ou feel this should be moved to Flash thread, then let us see if someone helps me in this regard at the flash thread.

and many thanks ramandeep, i will surely try with your suggestion of using absolute path and post the observations here. please keep checking ..