# Looping function

**URL:** <https://forum.kirupa.com/t/looping-function/172334>\
**Category:** flash\
**Created:** [December 13, 2005, 1:40pm UTC](https://forum.kirupa.com/t/looping-function/172334 "2005-12-13T13:40:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbeetles](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@lbeetles](https://forum.kirupa.com/u/lbeetles)\
**Post date:** [December 13, 2005, 1:40pm UTC](https://forum.kirupa.com/t/looping-function/172334/1 "2005-12-13T13:40:57Z")

</div>

Hi All,

I am creating an application using VB and flash 8.

It is nearly finished but im stuck on one thing.

I need to create a function that loops every 20 seconds.  
This is because VB sends a var to flash and i need to detect to see if i have received it so then i can change a button.

Regards

Lee
