Re: [Flashcoders] Classes and setInterval ...

2006-03-25 Thread Michael Bedar
Your code came in without returns, but i'll make a wild guess and say that using the alternate form of setInterval will work for you- setInterval(object_containing_function,"function_name_as_string", milliseconds [, params]) -where you pass in the function as a parent object, string pair;

Re: [Flashcoders] Classes and setInterval ...

2006-03-25 Thread stacey
when using intervals, claim them as a property of the class so you can reference them. private var intID:Number intID=setInterval(this,"myFunction",100); private function myFunction(){ trace("my function called"); clearInterval(intID); delete intID; } > Hi All - I am new to AS2 and OOP at larg