loadMovie in Firefox

D

Dominic Willems

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="clsid:D27CDB6E-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.
 
V

VK

Dominic said:
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="clsid:D27CDB6E-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..._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
 
D

Dominic Willems

VK said:
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 8):
http://blog.deconcept.com/flashobject/

Cheers,
Dom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top