PDA

View Full Version : FLV Loading but not Autoplaying, despite 'play' option being set


BlueberryPirate
10-09-2008, 04:32 AM
Hey guys,

These forums were very helpful while I was trying to figure out this flash development issue. I'm working on a site located at skills4students.com. The center of that page loads a flashpanel, and sometimes autoplays it but more often than not does not autoplay it. I've linked to

AC_RunActiveContent.js

and

AC_ActiveX.js

And I believe I have all my fields set properly, including the play value. Could anyone take a look and tell me if I'm missing something obvious?

Thanks,

-Christopher


Here's the call I'm using:

<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=8,0,0,0',
'width', '576',
'height', '269',
'src', 's4s_home_mimage',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 's4s_home_mimage',
'bgcolor', '#ffffff',
'name', 's4s_home_mimage',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 's4s_home_mimage',
'salign', ''
); //end AC code

atomic
10-09-2008, 05:05 AM
Don't see anything wrong with the above...

Although I get a javascript error on IE6.0...

And I've noticed that you have an extra "/" in the movie's name in your embed tag...

...
<param name="movie" value="s4s_home_mimage.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="/s4s_home_mimage.swf"...

BlueberryPirate
10-09-2008, 06:20 PM
Don't see anything wrong with the above...

Although I get a javascript error on IE6.0...

And I've noticed that you have an extra "/" in the movie's name in your embed tag...

...
<param name="movie" value="s4s_home_mimage.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="/s4s_home_mimage.swf"...

Actually joomla is adding that / in there. I save it in the article manager without, and when I publish the code it puts a / in. I thought at first I was seeing something different than I was editing, so I put a token in there and it's definitely the same code, Joomla keeps adding a slash!

The .swf file is located at / though so I think it's loading okay. The flash loads just fine, and you can right click and play it, it just won't auto play!

This is driving me nuts.

I think the JS errors in ie are unrelated, they're all about the nav, whole nother problem. Web dev is fun :)