Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-13-2004, 12:03 AM   #1
myner
Registered User
 
Join Date: Dec 2004
Posts: 2
Default Concurent attempt of multiple Flash objects in one page to JavaScript problem in IE?

Hi, I discovered a problem in Internet Explorer:

I have multiple Flash objects in one page. Every object recieves its id from html. Then it tryes to call JavaScript function with its id to recieve other data.

Example: http://miner.nofuture.cz/mikrokevlar/test/

If IE loads Flash object almost simultaneously, only some of Flashes calls the function. On Mozilla or Opera it works fine.

Did anyone meet this?

(I solve it by adding a random timeout with recalling JS...)

Last edited by myner; 12-13-2004 at 01:19 AM.
myner is offline   Reply With Quote
Old 12-13-2004, 07:37 AM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Howdy and Welcome...

That's interesting... What do you mean by 'randome timeout with recalling JS', myner???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 01-04-2005, 09:56 PM   #3
myner
Registered User
 
Join Date: Dec 2004
Posts: 2
Default

Just like Aloha method used in wireless networking
When Flash tries to call Javascript function, it runs timeout after random time (to avoid next concurrent attempts). And if it didn't recieve answer in that timeout, it call Javascript function aggain with a new random timeout. And so on.
Mostly it gets answer after second call.
myner is offline   Reply With Quote
Old 01-04-2005, 10:00 PM   #4
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Hehe... That's more confusing to me... Well... As long as it works on your end...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:45 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.