Link to home
Start Free TrialLog in
Avatar of jglazer63
jglazer63

asked on

swliveconnect in flash failes in firefox

I have a function called jsPause in my movie that I call in my javascript:

movie.jspause()

of coures I get a handle to the SWF movie file into "movie".  Anyhow this works great in IE but does not work in firefox.  Its like jspause() doesn't exist.  Below is my object/embed code and you'll note that swliveconnect is set to true.  What am I doing wrong?
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="640px" height="500px" id="[iNetVideoPlayer1]" name="fVideo">
<param name="movie" value="video3.swf" />
<param name="wmode" value="opaque" />
<param name="quality" value="high" />
<param name="salign" value="lt" />
<param name="swliveconnect" value="true" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="allowfullscreen" value="false" />
<param name="bgcolor" value="#000000" />
<embed src="video3.swf" width="640px" height="500px" name="[iNetVideoPlayer1]" wmode="opaque" quality="high" salign="lt" swliveconnect="true" loop="false" menu="false" allowfullscreen="false" bgcolor="#000000" />
</object>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of iGottZ
iGottZ
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
though you could also use this: http://www.bobbyvandersluis.com/swfobject/generator/index.html
would give you a way better html code.
Avatar of jglazer63
jglazer63

ASKER

Dang, got excited for a moment.  I added allowscriptaccess=always no go.  Again, this works in IE but no other browser (firefox/safari/chrome) Here's the current code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="640px" height="500px" id="[iNetVideoPlayer1]" name="fVideo">
<param name="movie" value="/icangetit/player/activevideo3.swf" />
<param name="wmode" value="opaque" />
<param name="quality" value="high" />
<param name="salign" value="lt" />
<param name="swliveconnect" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="allowfullscreen" value="false" />
<param name="bgcolor" value="#000000" />
<embed src="/icangetit/player/activevideo3.swf" width="640px" height="500px" name="[iNetVideoPlayer1]" wmode="opaque" quality="high" salign="lt" swliveconnect="true" allowscriptaccess="always" loop="false" menu="false" allowfullscreen="false" bgcolor="#000000"  />
</object>

Open in new window

you forgot allowscriptaccess in the params near line 2 to 11
What about line 6 above?
er line 7
oh sorry. i didnt saw it.

this sounds strange.

do you first try interacting with the flash when its loaded or before?
after its loaded and playing.  Again, this works fine in IE.  Must have something to do with the <embed> section.
Resolved!  I had to move away from the <embed> tag for non-IE browsers.  using the <object> method (different than that of IE above) corrected the situation.

Thanks for the help!
Needed this too!