# Wait a few seconds before doing something

**URL:** <https://forum.kirupa.com/t/wait-a-few-seconds-before-doing-something/285273>\
**Category:** flash\
**Created:** [March 29, 2009, 9:08pm UTC](https://forum.kirupa.com/t/wait-a-few-seconds-before-doing-something/285273 "2009-03-29T21:08:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greasemonkey](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@Greasemonkey](https://forum.kirupa.com/u/Greasemonkey)\
**Post date:** [March 29, 2009, 9:08pm UTC](https://forum.kirupa.com/t/wait-a-few-seconds-before-doing-something/285273/1 "2009-03-29T21:08:12Z")

</div>

Hi, I’m New to flash and I can’t seem to figure this out, I just want to make something visible for 5 seconds then make it invisible again.

> 

on (release) {  
ap.\_visible = true  
// wait 5 seconds  
ap.\_visible = false  
}

Thanks in advance
