I agree with Martin, in my humble opinion, a compositional approach appears
to be the better solution.

Good luck,

H

So in addition to having the setClip method, you could also

On 11/2/05, Martin Wood <[EMAIL PROTECTED]> wrote:
>
> alternatively you could just have a setClip method defined in IMapHolder
> and implemented in the two classes. Then keep a reference to the clip as
> a member variable and work with that instead of subclassing movieclip.
>
> martin
>
> Liam Morley wrote:
> > I'm working in FlashPro8. I have an empty movie clip called "mapHolder"
> > defined on the stage. Depending on some parameters when starting my swf,
> i'm
> > either going to call loadMovie("FlashMap.swf", mapHolder) or loadMovie("
> > imagemap.jpg", mapHolder).
> >
> > I have an interface called "IMapHolder", and two implementing AS2.0classes
> > called "SWFMapHolder" and "ImageMapHolder". Because I'm not sure what
> type
> > it will be, I'd like to associate the MC and the class dynamically.
> > Something like Object.registerClass() would be perfect, but I imagine
> that
> > doesn't support AS2.0.
> >
> > Do I need to create two separate MCs, each with its own linked AS2.0class?
> > Or is it possible to dynamically register an MC with AS2.0? Thanks all.
> >
> > Liam
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
> --
> want to know what i think? probably not
>
> http://relivethefuture.com/choronzon
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to