473,548 Members | 2,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onload function won't run flash in NS7

I have a Flash movie with parameter 'autoplay' set to false. The movie is
started using a Macromedia javascript function via onload. This is OK in IE
but Netscape 6 doesn't run the movie - it appears to be waiting for
something, even though everything else is downloaded. If I set the movie to
autoplay it runs fine but of course begins too early.

This is the Macromedia script:

function MM_controlShock wave(objStr,x,c mdName,frameNum ) { //v3.0
var obj=MM_findObj( objStr);
if (obj)
eval('obj.'+cmd Name+'('+((cmdN ame=='GotoFrame ')?frameNum:'') +')');
}

It calls the standard Macromedia findObj function - the movie is named
'movie1'.

Any ideas gratefully received.

John
Jul 20 '05 #1
3 5621


btopenworld wrote:
I have a Flash movie with parameter 'autoplay' set to false. The movie is
started using a Macromedia javascript function via onload. This is OK in IE
but Netscape 6 doesn't run the movie - it appears to be waiting for
something, even though everything else is downloaded. If I set the movie to
autoplay it runs fine but of course begins too early.

This is the Macromedia script:

function MM_controlShock wave(objStr,x,c mdName,frameNum ) { //v3.0
var obj=MM_findObj( objStr);
if (obj)
eval('obj.'+cmd Name+'('+((cmdN ame=='GotoFrame ')?frameNum:'') +')');
}

It calls the standard Macromedia findObj function - the movie is named
'movie1'.

Any ideas gratefully received.


Scripting of Flash depends on the Netscape and the Flash version, if I
remember it correctly then Netscape 6.0 and 6.1 can't script Flash and
Netscape 6.2 and Netscape 7 can only do it with some Flash version 6.5x
or later. And if you are using MM_something functions then better ask in
a Macromedia Flash support group, if they provide something that doesn't
work then they should fix it, and other users are more likely able to
tell you whether it should work.
Here in the group you will find hardly anyone suggesting to use eval, I
guess
if (obj && typeof obj[cmdName] != 'undefined') {
if (cmdName == 'GotoFrame') {
obj[cmdName](frameNum);
}
else {
obj[cmdName]();
}
}
should do without any need for eval.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
Hi,

Martin Honnen wrote:


--

Martin Honnen
http://JavaScript.FAQTs.com/


Martin, your site does not work sowehow today (I used it before)... :(
--
Regards,
Paul Gorodyansky
"Cyrillic (Russian): instructions for Windows and Internet":
http://ourworld.compuserve.com/homepages/PaulGor/
Jul 20 '05 #3


Paul Gorodyansky wrote:
Martin Honnen wrote:
http://JavaScript.FAQTs.com/

Martin, your site does not work sowehow today (I used it before)... :(


I can't remedy that myself as the whole www.faqts.com server has
problems serving its content but I have asked the guys running faqts to
look after it.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #4

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

Similar topics

5
3508
by: Emmanuel Papillon | last post by:
Hello. I've got a page with sound through a swf file, working with an animation with preloaded JPEG files (animated through use of setTimeout). I'm preloading the JPEG files through Javascript in the <head> tag, the Flash animation/sound file being in the <object> & <embed> tags. I'd like to fire the sound and JPEG animation once...
2
1632
by: Michal Pleban | last post by:
Hello! I noticed a very strange behavior an I cannot work it around. Id appreciate any help on this, as it's driving me nuts... I have a WinXP SP1 computer with MSIE 6. It has Flash plugin version 7 installed. I have a frameset, and one of the documents in frames has <BODY onLoad="..."> handler and an Flash object. To diagnose the...
3
2938
by: Vik Rubenfeld | last post by:
I'm working on integrating the a javascript wysiwyg editor (Xinha) with my blog software (ExpressionEngine, aka EE). EE has extensions now so it's easy to get the Xinha header code into the head section of the EE web page. But Xinha likes to use an onload command to launch: window.onload = xinha_init; ....and EE is already using the...
3
26741
by: jon | last post by:
Hello, I've had long standing code that runs in IE, that I'm testing with firefox unsuccessfully now. The problem seems to be that images that I dynamically create don't fire their onload event in firefox. The onload method I assign is never being called. Any ideas why firefox isn't calling this, or what I can do for a workaround? Below...
1
2113
by: webgour | last post by:
Hello, I would like to create an onload event within my object. The following works fine : function TEST() { this.image= new Image(); } TEST.prototype.Initialize = function()
20
11839
by: Mark Anderson | last post by:
Hi, I have this in an external JS library: ///////////////////////// function addMyEvent(){ var obj; if(document.attachEvent) { obj = document.getElementsByTagName('img'); for (i=0;i<obj.length;i++) { obj.attachEvent('ondrag', noDrag); }
5
9416
by: lilOlMe | last post by:
Hi there! I'm developing some crazy Tab Control in .NET that uses JavaScript. A particular JavaScript method needs to be called during the window.onload event in order to initialize my Tab Control. The thing is that there can be more than one Tab Control on the page....and each one must be initialized during the window.onload event. ...
6
3131
by: adamscybot | last post by:
Here is the site in question: http://www.sws.vxcomputers.com/h2k/ Basically, on the left, you'll see a roster (them images) and you have to click the "Counter-Strike" link for it to load the images/names. However, I overcome this by executing what is usually the OnClick event on the OnLoad event instead. This works great in firefox - meaning...
1
8148
by: zebra242 | last post by:
I'm working to get the onLoad function of a javascript to work: the script allows form buttons in html to refer to labeled frames in flash. Which works fine. Now I want to add onLoad functionality to force the flash file to jump to a labeled frame on load. This is the Javascript in the head of the html file: <!-- function...
0
7438
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...
0
7707
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. ...
0
7803
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...
1
5362
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...
0
3495
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3475
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1926
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
1
1051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
751
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...

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.