Quote:
i put all my methods etc, in frame 1 of _root. you want to be sure that your methods are not being defined over and over again. ie. if you put them in frame 1 _root, don't revisit that frame.
I assume that's _root of the mc in question? (ie MCspinningBall referenced below?)
Quote:
if you had MCspinningBall in the library, you would put it on the stage as a circle like so:
_root.attachMovie("MCspinningBall","somegreatname" ,5);
somegreatname.setClass(Circle,5);
Is there no way to make this work w/o "attachMovie"? Can this be done with instances that are dragged from the Library?
Quote:
now somegreatname has access to any methods you've defined for class Circle. so writing:
somegreatname.area();
will return 78.5398..... since you passed 5 as the radius.
clearer?
Yes, I get it when it relates to creating objects programatically. Just not when you create instances by dragging them onto the stage.
Sorry I'm being dense. If the methods (functions) are in frame 1 of MCspinningBall, why must a class be assigned to instances of MCspinningBall? And, is it possible to assign a class to a dragged instance? And, if so, how?
-Keith
Quote:
actually, attempting to explain this is making it much clearer for me!
Glad to help! [:)]
[Edited by kaprice on 02-02-2002 at 09:42 PM]