Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Need Help adding a time delay in a script

Dimundave911
Level 1
Level 1

Good Morning,

I'm doing a relatively simple script that is changing what is basically a background graphic on a part form. I need the script to trigger off a click event of a button, which will change the presence of a picture to visible, wait say 3-4 seconds, then change it to hidden and make another picture visible. Think of it like an advertisement prompt.

I'm new to LC and honestly do not know how to do the time delay. I know how to build the object presence changes on the click event and right now I just have a button that says "Continue" that the user clicks to advance to the second part of the script. Any assistance would be greatly appreciated!

Thanks!

Dave

1 Reply
radzmar
Level 10
Level 10

Hi,

you can use the setTimeOut() method to execute scripts delayed.

See this thread for an example:

http://forums.adobe.com/message/2260090#2260090