473,385 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Firefox Problems with Flash LoadMovie()

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 recognized function.
This works fine on IE6. I need to change the movie depending on the
buttons that the user presses, all on the same page.

Is the only way to do this by changing the innerHTML of the 'MovieID'
object?

Thanks
Jul 23 '05 #1
3 4826
you're capitalising the d in getElementById... try using it in lowercase.
Maybe that'll help?

"Philip" <ph********@lycos.co.uk> wrote in message
news:32*************************@posting.google.co m...
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 recognized function.
This works fine on IE6. I need to change the movie depending on the
buttons that the user presses, all on the same page.

Is the only way to do this by changing the innerHTML of the 'MovieID'
object?

Thanks

Jul 23 '05 #2


Philip wrote:
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 recognized function.
This works fine on IE6.


I doubt it,
document.getElementByID(...)
should give you an error in both browsers.
If you have document.getElementById then that is a different thing.
As for scripting Flash or other plugins, it depends on how you embed the
plugin, but usually people have
<object id="objectId" classid="Windows class id here">
<embed name="embedName">
</object>
where the <object> is for MSIE/Windows and the <embed> for browsers like
Firefox or Mozilla or Opera implementing the old Netscape plugin API.
Then for those browsers you can script
if (document.embeds && document.embeds.embedName &&
document.embeds.embedName.LoadMovie) {
document.embeds.embedName.LoadMovie(...);
}
else if (document.getElementById) {
var obj = document.getElementById('objectId');
if (typeof obj.LoadMovie != 'undefined') {
obj.LoadMovie(...);
}
}

Of course scripting plugins depends on the plugin exposing an API to
script, there are old Flash version that don't expose an API to
Mozilla/Firefox.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #3
Martin Honnen <ma*******@yahoo.de> wrote in message news:<41***********************@newsread4.arcor-online.net>...
Philip wrote:
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 recognized function.
This works fine on IE6.


I doubt it,
document.getElementByID(...)
should give you an error in both browsers.
If you have document.getElementById then that is a different thing.
As for scripting Flash or other plugins, it depends on how you embed the
plugin, but usually people have
<object id="objectId" classid="Windows class id here">
<embed name="embedName">
</object>
where the <object> is for MSIE/Windows and the <embed> for browsers like
Firefox or Mozilla or Opera implementing the old Netscape plugin API.
Then for those browsers you can script
if (document.embeds && document.embeds.embedName &&
document.embeds.embedName.LoadMovie) {
document.embeds.embedName.LoadMovie(...);
}
else if (document.getElementById) {
var obj = document.getElementById('objectId');
if (typeof obj.LoadMovie != 'undefined') {
obj.LoadMovie(...);
}
}

Of course scripting plugins depends on the plugin exposing an API to
script, there are old Flash version that don't expose an API to
Mozilla/Firefox.

Thanks Martin - your example works perfectly.
Of course when I said getElementByID I meant getElementById!
Firefox is looking good - decent error messages and better browsing, I
can't think of a reason for using IE. Microsoft have <90% of the share
now, and Firefox seems to have taken over as number 2 browser.

Philip
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Huw Lloyd | last post by:
I am developing a windows application and want to display a flash animation in a splash screen. I have the .fla file but i dont know how to load it into the shockwave flash object that I have on...
2
by: Dominic Willems | last post by:
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...
3
by: UJ | last post by:
I've got a flash object on a Window's form. At some point I want to change the flash file that is playing. But it doesn't seem to want to do it. I've done a stop on the control, changed the name of...
1
by: jrockhill | last post by:
I am using the pop up image viewer code (from this site) for flash.swf files. This works very nicely in all browsers (Mac and PC) except Firefox on a PC. (it does work in firefox on a MAC). Can...
1
by: terrybali | last post by:
Hi Guys I am new to forum and nontechnical. My site has several large flash files. I am looking for someone who can help us solve two problems. Willing to pay whatever normal rate is for this...
1
by: patronise | last post by:
My problem is that I'm wrestling to make the LoadMovie and UnloadMovie functions work for me. Here is the layout of my flash file: I've got several seperate flash files and I can jump to any one of...
0
by: deepakNagpal | last post by:
hi, friends, i got stuck in a problem, where i am not able to load the swf files in the another swf files through xml file, running online in ie browser. 1. There are two button on the stage...
0
by: Intios | last post by:
Hi, this is my story, I am very new with flash and xml so please forgive the stupid questions, I have a flash carousel and need to link the images to a url, I tried everything I can think about, can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
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...
0
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...
0
marktang
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.