473,698 Members | 2,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.getEle mentByID('Movie ID').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 4835
you're capitalising the d in getElementById. .. try using it in lowercase.
Maybe that'll help?

"Philip" <ph********@lyc os.co.uk> wrote in message
news:32******** *************** **@posting.goog le.com...
I have just tried my website with Firefox v1.0 and when I try to load
a movie using:

document.getEle mentByID('Movie ID').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.getEle mentByID('Movie ID').LoadMovie( 0, 'MovieURL');

the browser tells me that LoadMovie is not a recognized function.
This works fine on IE6.


I doubt it,
document.getEle mentByID(...)
should give you an error in both browsers.
If you have document.getEle mentById 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="Window s 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.embed s && document.embeds .embedName &&
document.embeds .embedName.Load Movie) {
document.embeds .embedName.Load Movie(...);
}
else if (document.getEl ementById) {
var obj = document.getEle mentById('objec tId');
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*******@yaho o.de> wrote in message news:<41******* *************** *@newsread4.arc or-online.net>...
Philip wrote:
I have just tried my website with Firefox v1.0 and when I try to load
a movie using:

document.getEle mentByID('Movie ID').LoadMovie( 0, 'MovieURL');

the browser tells me that LoadMovie is not a recognized function.
This works fine on IE6.


I doubt it,
document.getEle mentByID(...)
should give you an error in both browsers.
If you have document.getEle mentById 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="Window s 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.embed s && document.embeds .embedName &&
document.embeds .embedName.Load Movie) {
document.embeds .embedName.Load Movie(...);
}
else if (document.getEl ementById) {
var obj = document.getEle mentById('objec tId');
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
2003
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 my form. I have tried this code in the forms load code but no no joy Me.vrFlash.LoadMovie(1, C:\Splash.fla") Me.vrFlash.Play()
2
5059
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 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" />
3
1842
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 the movie file, set movieembed = true, and refresh it. But it always plays the same file. How do I reset it - or do I need to destroy the control and recreate it? TIA - Jeff
1
1373
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 anyone please help? <td><a class="thumbnail" href="#thumb"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="148" height="22"> ...
1
2225
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 solution. The problems are two fold.
1
2395
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 them by pressing a specific key to load another flash file. Here is the code I'm using for this bit: Now when the next flash file is loaded, I use this bit of code to get rid of the previous flash file. Now this does work in getting...
0
2761
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 instanced named (next_btn) and (prev_btn) 2. A movieclip named container_mc. 3. swfs which is to be load in the container_mc here is code for my fla file:
0
1638
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 anyone please help me? This is my flash script: import mx.utils.Delegate; var numOfItems:Number; var radiusX:Number = 300; var radiusY:Number = 75; var centerX:Number = Stage.width / 2; var centerY:Number = Stage.height / 2; var...
0
8604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7728
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.