PDA

View Full Version : Need help with flash.swf files



Littlejunior
06-25-2007, 01:58 PM
Hi. I´m really new to php and flash... so I´m not an expert.
Well.. I have a header template file but wanted to add a logo.swf ... I have tested all the code using macromedia dreamweaver in my local computer and works fine but when loaded to the bluehost server the flash logo is not displayed.

Note : I have created a folder just for IMAGES where I have loaded the logo.swf file and also I´m using $sitename as a site name variable for easy administration purposes. The thing is that I manually go to the path where the logo.swf resides and if click on it .. it is displayed. I have double checked the path created by the script and it is correct : http://www.mysite.com/images/logoplaneta.swf .....

Any Ideas or suggestions on why the Logo.swf file is not displayed ?


This is the code created by macromedia dreamweaver....

<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','766','heigh t','194','src','http://<? echo $sitename;?/images/logoplaneta.swf','loop','false','quality','high',' pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','http://<? echo $sitename;?>/images/logoplaneta' ); //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="766" height="194">
<param name="movie" value="http://<? echo $sitename;?>/images/logoplaneta.swf">
<param name="quality" value="high"><param name="LOOP" value="false">
<embed src="http://<? echo $sitename;?>/images/logoplaneta.swf" width="766" height="194" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object>
</noscript>

Should I get rid off the <? echo $sitename;?> and write the full path ?

thanks !

Basil
06-28-2007, 01:35 PM
That's a lot of junk for saying <embed src="http://www.mysite.com/images/logoplaneta.swf" style="height:194px;width:766px"></embed>

Unless I'm missing something all you're doing is embedding a flash file and all of the rest of that is pointless.