Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 10-03-2003, 03:41 PM   #1
Registered User
Join Date: Oct 2003
Posts: 10
Question 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:
" "t2",2)
" "t3",3)

then I put the instances in an array:

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.

chackel is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:22 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.