In my opinion, there is no "good OOP way" of changing the class of an
object (be it movieclip or otherwsie). You might want to see if you
can handle it in a different way, normally you should never change the
class of an object.

Why exactly do you want to change the class?

-David R

On 4/17/06, GregoryN <[EMAIL PROTECTED]> wrote:
> Alain,
>
> I think you've misunderstood me.
>
> I already have a movie clip on the stage, which was placed by
> attachMovie(), and before it was an instance in the library,
> assotiated with  MyClass1 .
>
> Then, after some things happen (e.g. user moved this clip), I wand to
> assign ANOTHER class to the mentioned clip, so this very clip to
> become an instance of MyClass2.
>
> That's why I need to RE-define the class for this clip.
>
>
> --
> Best regards,
>  GregoryN
> ================================
> http://GOusable.com
> Flash components development.
> Usability services.
>
> > ---------- Alain Rousseau wrote:
> >
> > You should look into this article in the FlashCoders Wiki
> >
> > http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo
> > vieclip_without_a_symbol_in_the_library
> >
> > This is if you want to create dynamically a movie clip and then associate a
> > class to it.
> > If you allready have a moviclip that you want to use, you should look into
> > Object.registerClass(³myClipID², MyClass);
>
> _______________________________________________
> 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
>
_______________________________________________
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