lec
May 26th, 2008, 10:53 AM
Hi,
I started learning AS3 two days ago so I'm very new to it. I decided to use Flex Builder 3 for my AS testing but ran into a bit of a problem. I'm going through an example from the book I'm reading and I need to use setInterval() but I'm getting the following error:
1180: Call to a possibly undefined method setInterval. virtualzoo/src/zoo VirtualPet.as line 20 1211805885932 246
Here's the code:
digestIntervalID = setInterval(digest, 1000);
Is there something I have to import for setInterval to work?
I started learning AS3 two days ago so I'm very new to it. I decided to use Flex Builder 3 for my AS testing but ran into a bit of a problem. I'm going through an example from the book I'm reading and I need to use setInterval() but I'm getting the following error:
1180: Call to a possibly undefined method setInterval. virtualzoo/src/zoo VirtualPet.as line 20 1211805885932 246
Here's the code:
digestIntervalID = setInterval(digest, 1000);
Is there something I have to import for setInterval to work?