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. 2 5051
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="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.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
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 8): http://blog.deconcept.com/flashobject/
Cheers,
Dom This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Philip |
last post by:
I have just tried my website with Firefox v1.0 and when I try to load
a movie using:
document.getElementByID('MovieID').LoadMovie(0, 'MovieURL');
the browser tells me that LoadMovie is not a...
|
by: expertware |
last post by:
Dear friends,
My name is Pamela, I know little about CSS,
but I would like to ask a question
I have an image on a web page within a css layer:
<DIV ID=MyLayer
STYLE = "position:...
|
by: expertware |
last post by:
Ok! to avoid confusion I will start a new argument.
Thanks!!
FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT
===============================================================...
|
by: SPE - Stani's Python Editor |
last post by:
Hi,
During optimizing SPE for Ubuntu, I found something strange. I have
Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not
working:
>>> import webbrowser
>>>...
|
by: Coder |
last post by:
Hi I have the following code in java script, it is not giving proper
output in FIREFOX but running fine in IE... can anybody help me out to
make this run in FIREFOX .
<script...
|
by: amit |
last post by:
Hello group,
I'm kinda skeptical about a code is being used in my js program. All it
does is checking what browser is being run and finds out if FLASH is
installed or not.
This code works...
|
by: scotty |
last post by:
I have a script that loops through an existing table list and prepares
each href element node to trigger a function when an image is
clicked. The function that will be run passes a property value...
|
by: atlkhan |
last post by:
Hi I want to use loadMovie function to load image into this movie which picks colors and display them in a small box. but when I do that using loadMovie it doesn't pick color as it does when I load...
|
by: Carlos Mendonça |
last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me
that it still has the same issues VS 2K5 had.
I appreciate any comments or tips.
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |