Hi!

I've managed to create a custom frontpage with frontpage module easily but i'm having problem with an embed swf.
I've created a custom frontpage pasting HTML code. the page looks fine, except that i can't see a swf that i've inserted in the HTML code. The code relative to the embed swf looks like this:

...
      <td width="364" bgcolor="#dddddd"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','100','height','100','src','../drupal6/sites/default/files/frontMenu','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../drupal6/sites/default/files/frontMenu' ); //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="100" height="100">
        <param name="movie" value="../drupal6/sites/default/files/frontMenu.swf" />
        <param name="quality" value="high" />
        <embed src="../drupal6/sites/default/files/frontMenu.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="100"></embed>
      </object></noscript></td>
...

I'm working locally but if i navigate to the path where my swf is stored i can see it in the browser, i just can't see it in the frontpage. I´ve looked to the source code generated by the browser and it is writing the code but simple does not show in frontpage, in any browser =S.
I really need to find i solution to this problem. Please help me with this!

Edited by: VeryMisunderstood; Added code tags around code

Comments

ludo1960’s picture

Navigate to admin/settings/filters/list and make sure swf files are listed. If you have flashnode enabled I believe it adds it automatically

vm’s picture

your relative paths could be a little cleaner. ie: sites/default/files/frontMenu.swf or /sites/default/files/frontMenu.swf as everything in drupal is relative to it's index.php not the server root unless that is where drupal is installed.

neeshpal’s picture

This was the exact problem I was encountering. when I changed the path to "sites/default/files/flash/wcclogo.swf" from "C:\wamp\www\drupal\sites\default\files\flash" , it worked. Thanks to this post.

Margarida’s picture

thank you both for the suggestions, i've tried both solutions but i still can't see the embed swf in my custom frontpage.
Does anyone has other ideias?please!

ludo1960’s picture

...Try the flashnode module? I know for a fact that that it will work.

Margarida’s picture

i did try flashnode module. I can see swf in nodes and in nodes that i promote to frontpage (if i don't use the custom frontpage created with frontpage module as frontpage), but I still can't see it in my custom frontpage if i use frontpage module and paste HTML code with the swf embed.
I'm gonna try to do a custom frontpage through theming and create my own page-front.tlp.php.
Anyway, thank you for the help!=)

mm167’s picture

if swf only just not show up in your custom front page, check your custom front page.

can u post a link ?

virtualgirl’s picture

just use this that margarida started:

<embed src="sites/default/files/butterflies.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="300"></embed>

with the flash node module and this path it was great and very rewarding !

Edited by: VeryMisunderstood; Added code tags

vm’s picture

using just the embed tag isn't the best way to do this. one should use the object tag with the embed tag or just the object tag.

using both tags increases browser support to older browsers. I'd suggest using google to find some tutorials on how to embed flash and take a look at the code snippets that those tutorials suggest.