WordPress.org

Ready to get started?Download WordPress

Forums

swf file won't load arghhhhh (14 posts)

  1. Hrvojeee
    Member
    Posted 5 years ago #

    Hey guys, i can't get my swf video file to play on the sidebar of my blog. it works in plain html but with php no chance! Can someone help?? I tried doing it the same way as with html (by including AC_RunActiveContent.js in the header and appending the code for the object/embed, both with relative and absolute paths) i tried putting the swf files in the root folder, in the blog folder, in the image folder. itried using kimili widget, swfobject script, i tried embedding swf with the php code, but NOTHING! i am missing something basic here but my brain isn't working anymore! can someone point it out?? Code in the header.php

    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>

    Code in the sidebar:

    <script language="JavaScript" type="text/javascript">
    	AC_FL_RunContent(
    		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
    		'width', '200',
    		'height', '300',
    		'src', 'blog',
    		'quality', 'best',
    		'pluginspage', 'http://www.adobe.com/go/getflashplayer',
    		'align', 'middle',
    		'play', 'true',
    		'loop', 'true',
    		'scale', 'showall',
    		'wmode', 'transparent',
    		'devicefont', 'false',
    		'id', 'blog',
    		'bgcolor', '#ffffff',
    		'name', 'blog',
    		'menu', 'false',
    		'allowFullScreen', 'false',
    		'allowScriptAccess','sameDomain',
    		'movie', 'blog',
    		'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=9,0,0,0" width="200" height="300" id="blog" align="middle">
    	<param name="allowScriptAccess" value="sameDomain" />
    	<param name="allowFullScreen" value="false" />
    	<param name="movie" value="http://localhost/wordpress/wp-content/themes/default/blog.swf" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />	<embed src="http://localhost/wordpress/wp-content/themes/default/blog.swf" menu="false" quality="best" wmode="transparent" bgcolor="#ffffff" width="200" height="300" name="blog" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
    	</object>
    </noscript>

    Thank you, anybody??

  2. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Why not use a text widget and use your working html?

  3. Shane G
    Member
    Posted 5 years ago #

    Hi,

    Make sure that your hosting service provider has activated SWF - extension on your website..also upload all supported files on the server like SQF with FLS...and add MIME Types from the hosting control panel..

    Thanks,

    Shane G.

  4. Hrvojeee
    Member
    Posted 5 years ago #

    to kmessinger: embedding video via text widgets is not allowed, i checkid it!

    to shane: i'll try to check for th swf activation, but i can't get it to work neither on localhost or on server, and the swf file works fine when i put it in a html page both ways (local and server)..

  5. Hrvojeee
    Member
    Posted 5 years ago #

    to kmessinger: embedding video via text widgets is not allowed, i checkid it!

    to shane: i'll try to check for th swf activation, but i can't get it to work neither on localhost or on server, and the swf file works fine when i put it in a html page both ways (local and server)..

  6. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Sorry, you can embed a video in a text widget. I have one embedded right now on my site as a test.

    I don't use "embed" as the site will not validate. The method I currently use works in IE but in FF does not so I use alternate instructions and a link. Have to figure out the FF part but, to get back to the subject, as far as I know you can put anything in a text widget that is html.

  7. Hrvojeee
    Member
    Posted 5 years ago #

    hmmm, didnt know that, thanks
    but if it doesnt work in FF than i don't want to use it

  8. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    I am working on that now. FF has a pluging for Windows Media Player and/or I can use a QT file or swf. It will be a day or so as I have other chores to do.

  9. Hrvojeee
    Member
    Posted 5 years ago #

    cool, could you give me an url of your site when you're finished so i can copy the code? thanks

  10. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    My URL is in my profile. Here is initial code but this uses embed.

    <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0" width="320" height="240">
      <param name="src" value="wp-content/yourfile.swf" /><param name="PLAY" value="false" />
      <embed src="wp-content/yourfile.swf" width="320" height="240" pluginspage="http://www.macromedia.com/shockwave/download/" play="false"></embed>
  11. janvandam
    Member
    Posted 5 years ago #

    I am experiencing something simular,
    I can put a swf file in a text widget by putting the >embed< code and it works, BUT the moment I am opening a post, the swf isn't loading anymore, just a white space.

  12. mebsy
    Member
    Posted 5 years ago #

    It's time to upgrade to newest .swf player.

    http://code.google.com/p/swfobject/

    It has a lot of cool tools that make learning it worthwhile, but
    '<param name="allowscriptaccess" value="always" />
    is the best part. It allows swf files to play merrily in WP.

    It comes with really nice tutorials and a tool to create your coding.

  13. mebsy
    Member
    Posted 5 years ago #

    PS

    It also allows you to use flash to link to other WP pages AND gets rid of that annoying error message in FireFox (if you happen to use development tools, you know it).

  14. jpalancio
    Member
    Posted 4 years ago #

    Wow, I am so over my head with this but am trying to do the same thing. I created a simple cross/fade slide show in Flash and the only file I've exported that works when I put it it into the style.css is a gif file, which plays and looks like crap. I even tried putting the animation in a Flash UI Loader component and the swf still will not play on the WP site. If anyone can help, I'd greatly appreciate it! Here's the what the code looks like:

    #header {
    background: #fff url(images/PF_header1.gif) no-repeat bottom left;
    border-bottom: 1px solid #a8b772;
    border-top: 1px solid #a8b772;
    }

    Thanks,
    Jack

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags