Forums

Template with .SWF file (5 posts)

  1. MadsK
    Member
    Posted 3 years ago #

    Hi guys,

    I am creating a wordpress template and wanted to do a dynamic menu in flash. But the problem is that when i am previewing the site the .swf file (menu) doesn't show on the template at all. I tried to make a test with another .php file and it worked perfectly there.

    What can i do to make the template display the flash menu?

  2. MadsK
    Member
    Posted 3 years ago #

    I just tried installing the Kimili plug in, but now it says that the movie isn't loaded. You can check it here http://www.m3dk.com/dufoo/ . What can i do?

  3. NC@WP
    Member
    Posted 3 years ago #

    You need to properly reference the *.swf file. My guess is, you refer to your *.swf file in realtive terms, something like this:

    <object type="application/x-shockwave-flash" data="menu.swf">

    The problem is, your template code will be included into the blog's main index file, so all relative references will be perceived as relative to the blog's home directory. So, if my guess is correct, you can fix the problem by providing an absolute link to the *.swf file.

    If your *.swf file is stored in the same directory as the template file, you can do it like this:

    <object type="application/x-shockwave-flash" data="<?php
    bloginfo('template_directory');
    ?>menu.swf">

    I can't remember if bloginfo('template_directory') returns the directory with or without a trailing slash. The example above assumes it is with a trailing slash. If not, just add a slash manually, so that ?>menu.swf"> becomes ?>/menu.swf">...

  4. MadsK
    Member
    Posted 3 years ago #

    That helped. Thanks alot :)

  5. mahart
    Member
    Posted 3 years ago #

    I did the above for the following code and it still doesn't show up:

    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','120','height','600','title','Shearwater','src','<?php bloginfo('template_url'); ?>/images/Ads/shearwaterTall_120_600.swf','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','<?php bloginfo('template_url'); ?>/images/Ads/shearwaterTall_120_600.swf' ); //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="120" height="600" title="Shearwater">
      <param name="movie" value="<?php bloginfo('template_url'); ?>/images/Ads/shearwaterTall_120_600.swf" />
      <param name="quality" value="high" />
      <embed src="<?php bloginfo('template_url'); ?>/images/Ads/shearwaterTall_120_600.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="600"></embed>
    </object></noscript>

    Please help if you can!

Topic Closed

This topic has been closed to new replies.

About this Topic