Expand my Community achievements bar.

Need Help adding a time delay in a script

Avatar

Former Community Member

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

Avatar

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