Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

:: delay or pause before "go to url" command ::

Status
Not open for further replies.

MaTs4d

Technical User
Feb 13, 2002
48
US
Hi there..

quick question, this might be simple, I have a little flash menu for a website and I have some sound effects when the buttons are pressed, I assigned ON RELEASE, GO TO URL which work fine.. only problem is that the audio effects on the buttons get cut off.

is there a way to have a delay of maybe 1 or 2 seconds before the GO TO URL command comes in effect once thebutton is pressed.

Thanks a million !!

:: Mats ::
 
on(release){
wait = setInterval(paused,2000);// 2 secs
function paused(){
clearInterval(wait);
getURL(............);
}
}
 
great bill !

thanks a million, ill give it a try

thanks !!!!
 
Bill,

first of all thanks for the help !
im having a different issue now.. the page wont redirect once its uploaded.. if played locally it opens a folder, which is normal I gather, but once its live it does not redirect.

do you know why is that? im sure im doing something wrong !

thanks again !! I really appreciate the help

::Matt::
 
i can only guess that there is something wrong in your getURL statement

can you post that bit of code....indeed all your button code
 
Bill,

Thanks again here's the code :

on(release){
wait = setInterval(paused,2000);// 2 secs
function paused(){
clearInterval(wait);
getURL(flightline.asp);
}
}


Thanks again for taking the time to answer !!
 
Even better if posted correctly...
Code:
getURL("[URL unfurl="true"]http://www.somesite.com/flightline.asp");[/URL]



Regards,

cubalibre2.gif
 
Thanks Bill !

and old newbie for the help, just starting with some flash programming.

tnx a million
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top