Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > loadMovie in Firefox

Reply
Thread Tools

loadMovie in Firefox

 
 
Dominic Willems
Guest
Posts: n/a
 
      02-15-2006
Having looked through the archives, I haven't found a solution that
worked, so I'll try my luck by posting my problem in here:

Following HTML works flawlessly in IE but doesn't in Firefox. The
loadMovie function is ignored.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>

<script type="text/javascript">

function test()
{
var movie=document.mov;
movie.loadMovie(0,'Demo.swf');
movie.TGotoFrame("/", 0);
movie.Play();
}

</script>
</head>

<body>
<input type="submit" onclick="test();"></input>
<object classid="clsid27CDB6E-AE6D-11CF-96B8-444553540000" name="mov"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
border="0" width="1000" height="747">
<param name="movie">
<param name="quality" value="High">
<embed pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="1000"
height="747"></embed></object>
</body>
</html>

Therefore, in order to try to make it work in Firefox, I changed the
test function, as is suggested in many places, to:

function test()
{
var movie=document.embeds.mov2; <----- changed
movie.loadMovie(0,'Demo.swf');
movie.TGotoFrame("/", 0);
movie.Play();
}

and gave the embed tag the attribute name="mov2".

Still no luck.

Would anyone know how to load an SWF movie in Firefox and make it play?

Many thanks.


 
Reply With Quote
 
 
 
 
VK
Guest
Posts: n/a
 
      02-17-2006

Dominic Willems wrote:
> Having looked through the archives, I haven't found a solution that
> worked, so I'll try my luck by posting my problem in here:
>
> Following HTML works flawlessly in IE but doesn't in Firefox. The
> loadMovie function is ignored.
>
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
> />
>
> <script type="text/javascript">
>
> function test()
> {
> var movie=document.mov;
> movie.loadMovie(0,'Demo.swf');
> movie.TGotoFrame("/", 0);
> movie.Play();
> }
>
> </script>
> </head>
>
> <body>
> <input type="submit" onclick="test();"></input>
> <object classid="clsid27CDB6E-AE6D-11CF-96B8-444553540000" name="mov"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
> border="0" width="1000" height="747">
> <param name="movie">
> <param name="quality" value="High">
> <embed pluginspage="http://www.macromedia.com/go/getflashplayer"
> type="application/x-shockwave-flash" width="1000"
> height="747"></embed></object>
> </body>
> </html>
>
> Therefore, in order to try to make it work in Firefox, I changed the
> test function, as is suggested in many places, to:
>
> function test()
> {
> var movie=document.embeds.mov2; <----- changed
> movie.loadMovie(0,'Demo.swf');
> movie.TGotoFrame("/", 0);
> movie.Play();
> }
>
> and gave the embed tag the attribute name="mov2".
>
> Still no luck.
>
> Would anyone know how to load an SWF movie in Firefox and make it play?
>
> Many thanks.


There was an extensive discussion with a lot of useful links at
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/aa0fff388526cbf4/41b4c06914d7274a>

The conclusion is that *most probably* you will not be able to
communicate Flash<=>JavaScript in Firefox and definitely not in Opera
8.x

 
Reply With Quote
 
 
 
 
Dominic Willems
Guest
Posts: n/a
 
      02-19-2006
VK wrote:
> The conclusion is that *most probably* you will not be able to
> communicate Flash<=>JavaScript in Firefox and definitely not in Opera
> 8.x


Thank you very much for your reply.

In the mean time I have stumbled upon a very useful site that helped me
out perfectly, especially what the compatibility with IE and FireFox is
concerned (didn't test on Opera :
http://blog.deconcept.com/flashobject/

Cheers,
Dom


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox/Linux import bookmarks from Firefox/Windows? Marek Williams Firefox 2 06-11-2005 04:22 PM
Yahoo! Toolbar Beta for Firefox - Not Compatible with Firefox 1.0.2? NA Firefox 6 04-02-2005 06:13 PM
Firefox gamed - Drudge getting around Firefox popup blocker Venger Firefox 10 12-22-2004 04:37 AM
Firefox Problems with Flash LoadMovie() Philip Javascript 3 11-26-2004 08:33 PM
so what does IE or any of the IE shells have over firefox ? (any anti firefox ppl bother looking at recent plugins available?) *ProteanThread* Firefox 12 10-20-2004 08:31 AM



Advertisments