Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,639 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,083 people online right now. Registration is fast and FREE... Join Now!




Swf not working in wordpress

 
Reply to this topicStart new topic

Swf not working in wordpress, Anyone got an idea how to resolve this?

ryngonz
post 12 Sep, 2008 - 12:20 AM
Post #1


New D.I.C Head

*
Joined: 15 Jun, 2008
Posts: 15


My Contributions


Hi mate,

I got this wordpress thingy done but the only problem is that the swf is not working in wordpress. Here is the code that I made:

CODE

<div class="header" >
        <h1><a class="blog-name" href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
        <h2 class="blog-description"><?php bloginfo('description'); ?></h2>    
    </div>
    <div class="flash" style="background:none; text-align:center; height:35px; z-index: 1000; position:relative; margin:-10px auto 0 auto;">
    
    <!--  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1089" height="404" align="middle" title="Menu">
          <param name="movie" value="menu.swf" />
          <param name="quality" value="high" /><param name="BGCOLOR" value="#FFFFFF" />
          <param name="wmode" value="transparent" />
          <embed src="<?php bloginfo('url'); ?>/flash/menu.swf" wmode="transparent" width="1110" height="400" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
      </object> -->

    <script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
            'width', '824',
            'height', '300',
            'src', '<?php bloginfo('url'); ?>/flash/menu',
            'quality', 'high',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'transparent',
            'devicefont', 'false',
            'id', 'menu',
            'bgcolor', '#ffffff',
            'name', 'menu',
            'menu', 'true',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', 'menu',
            'salign', ''
            ); //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=7,0,0,0" width="824" height="300" id="menu" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="menu.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />    
    <embed src="<?php bloginfo('url'); ?>/flash/menu.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="824" height="300" name="menu" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>

    </noscript>
      
    </div>


I'm sure I did the right thing.
User is offlineProfile CardPM

Go to the top of the page

ryngonz
post 12 Sep, 2008 - 02:32 AM
Post #2


New D.I.C Head

*
Joined: 15 Jun, 2008
Posts: 15


My Contributions


Oh, I already solved my problem. Actually wordpress can only detect the swf that is linked into an xml in the root directory. E.g. /www/mysite/wordpress/ like that. Just import the swf and the xml file into the main directory of wordpress then embed the swf like this:

<embed src="<?php bloginfo('url'); ?>/menu.swf" ...

Hope that helps.

This post has been edited by ryngonz: 12 Sep, 2008 - 02:33 AM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 04:29AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month