[thelist] setInterval in class method
Jay Blanchard
jay.blanchard at niicommunications.com
Wed May 25 07:55:27 CDT 2005
[snip]
What language is it?
[/snip]
It appears to be C++
/*
* start growing this part
*/
private function startGrow():Void {
trace("start grow branch");
grow(); // this reaches the registerNode method fine
growTimer = setInterval(grow, 500); // this doesnt work
}
/*
* grow this part
*/
private function grow():Void {
registerNode();
trace("growing branch");
}
grow() is a private function of the same class, so calling it is easy,
as you have done above. Is setInterval a function of the class? Or does
it exist 'outside' of the class? Is setInterval a public function
(registerNode is)?
More information about the thelist
mailing list