Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

getURL() setTimeout(javascript:) issue



2:07 pm on Feb 10, 2009 (gmt 0)

10+ Year Member

Hello All,
While using a getURL and then trying to call a js function I've run into a timing issue, my getURL needs to happen first and then I'd like to use a setTimeout to call the js function after 3000 milli's.

I'm not new to actionscript but could use some help on this one as I've been looking around the web for some examples and haven't found anything useful yet.

If anyone has any useful links or examples around this one it would be great if you could point me in the right direction.



6:20 pm on Feb 10, 2009 (gmt 0)

10+ Year Member

Ok see here is what I've come up with thus far:

onPress function(){

onRelease function(){

I'd like the onRelease to have the setTimout on it...

Any tips?


8:50 pm on Feb 10, 2009 (gmt 0)

10+ Year Member

I answered my own question but thought I should share :)

onRelease = function(){
setTimeout(function(){getURL("http://wwwmysite.com"+myURL);), 1000);


[edited by: eelixduppy at 8:59 pm (utc) on Feb. 10, 2009]
[edit reason] disabled smileys [/edit]


Featured Threads

Hot Threads This Week

Hot Threads This Month