can't call custom class method in loop?
This is a bizzare problem.
Hopefully one of you gurus will be able to figure it out.
I have a class "TestSymbol" (extends MovieClip) with two methods and a "getId" method:
1) sayHi() : prints this.getId() + "hi"
2) sayMessage(msg): prints this.getId() + msg 10 times.
I attach 3 instances of TestSymbol:
this.attachMovie("TestSymbol","t1",1)
" "t2",2)
" "t3",3)
then I put the instances in an array:
moviearr=[this.t1,this.t2,this.t3];
Now, if I loop through the array calling "sayHi" I get:
1 hi
2 hi
3 hi
But, if I loop through calling sayMessage, I only get t1 printing the msg 10 times.
Any ideas?? I've attached the code.
Thanks!
Chris
|