You might want to consider using composition.

class Sample
{
    private var self:MovieClip;

    function Sample(clip:MovieClip)
    {
        self = clip;
    }
}

Usage:
mySample = new Sample(this.attachMovie(id, instance, depth));


Composition has many advantages over extending MovieClip. I'm not saying you should always use it over linked classes, but it definitely comes in handy for stuff like this.
_______________________________________________
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