473,288 Members | 1,743 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,288 software developers and data experts.

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_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
var obj=MM_findObj(objStr);
if (obj)
eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?fr ameNum:'')+')');
}

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

Any ideas gratefully received.

John
Jul 20 '05 #1
3 5601


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_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
var obj=MM_findObj(objStr);
if (obj)
eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?fr ameNum:'')+')');
}

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
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...
2
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...
3
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...
3
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...
1
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
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...
5
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...
6
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...
1
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.