Thanks, but can't I this.duplicateMovieClip() the
MovieClips passed to my class as arguments to its method
and then removeMovieClip the original?

Or createEmptyMovieClip() and the loadMovie() into it?

Regards
Alex

On 8/23/07, Mark Hawley <[EMAIL PROTECTED]> wrote:
> You can't re-parent MovieClips in AS2. You could make your class control
> arbitrary MovieClips as if they were reparented with a lot of math and
> localToGlobal() calls, though. Probably not a great idea, though.
>
> On 8/23/07, Alexander Farber <[EMAIL PROTECTED]> wrote:
> > MovieClip-based class
> > which would take an arbitary array of MovieClips
> > and attach them to itself:
> >
> > class Ellipse extends MovieClip {
> >     private var mcs:Array = [];
> > ...
> >     public function setMovieClips(mcs:Array) {
> >         this.mcs = mcs;
> >
> >         for (var i:Number = 0; i < mcs.length; i++) {
> >             var mc:MovieClip = mcs[i];
> >              // XXX  this.attachMovie(i, "mc"+i, i);
> >
> > And here comes the problem - how do I attach
> > MovieClips (referred by "mc" above) to the Ellipse?
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to