Also, I'm not sure what you are trying to do with 'this.clip = clip;',
but you cannot instantiate or associate a MovieClip inside an Object
(which Test is), and have successful access to its properties and
methods.
He's using composition, which is sometimes preferable to extending
MovieClip in AS2. He's passing a reference to the MovieClip in the
constructor.
However, I generally avoid having MovieClips themselves instantiate
their class on their own timeline, however, because then it's not
explicit anywhere else what's going on and then you have to dig through
the MovieClips to find out where code is (timeline code can be a major
pain). In those cases, you should either have a controller class do
that or extend MovieClip and assign the class to the clip in the libary.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders