Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 26th, 2004, 09:14 AM
soosy soosy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 soosy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Two getURLs causing problems?

I seem to be having a problem calling javascript functions from flash using getURL("javascript:functioname(params);");

The problem is I'm calling two in a row. The first one seems to execute while the second does not (in Win IE 6 at least). I've switched the order of them to confirm this behavior-only the first javascript function executes.

Is this a known problem? Do I need some sort of timer delay?

(I'm actually using a function that itself calls 2 other functions and each of those functions makes a different getURL call if that makes any difference)

thanks!

Reply With Quote
  #2  
Old January 26th, 2004, 03:08 PM
ZATRiX ZATRiX is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 ZATRiX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
assuming the second getURL makes a call for something reachable in the previously called javascript function, why not just put it into <script> instead of having flash do it

Reply With Quote
  #3  
Old January 28th, 2004, 08:11 AM
soosy soosy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 soosy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks... yeah that's what I ended up doing as a workaround. I just passed extra parameters to the javascript function and then had the javascript function call the 2nd javascript function.

Not quite as clean or convenient, but it worked in this case. For instance, I had 3 different functions I had to modify to call the second function. Would have been more flexible to keep them all separate.

I'm just surprised this isn't a known problem... I guess calling javascripts isn't that common an operation though....

For what it's worth... the original code worked on all my Mac browsers (Safari, Camino, IE)... it was only Win IE that had trouble.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Two getURLs causing problems?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway