Usually, when someone asks "how do I delete a class?" I assume they mean "how do I remove an instance of a class from memory?", rather than "How do I delete a class so new instances of it can not be made".
I'm pretty sure you can delete the constructor of a class just by saying delete myClass; and that will remove the constructor from memory and prevent further instantiation of objects based on that class. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of elibol Sent: Thursday, May 04, 2006 10:09 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] destructors... Wait though, isn't a class part of the swf compilation? Technically, you really cannot delete it unless you load the class in via an external swf. That might be one way of accually doing it. M. On 5/3/06, Andreas Rønning <[EMAIL PROTECTED]> wrote: > > Kind of besides the point really. The real point is, in my humble > opinion, that it should be possible to do it without myClass.cleanup(); > delete(myClass); > It becomes double naughty if your class instance is in an array. > It's just a question of keeping the amount of fluff down to a minimum. > > This is not a critical problem. I am merely asking for people's > methodologies in self destroying classes. > > - A > > Ian Thomas wrote: > > Hi Andreas, > > To turn it on its head... > > > > What are you trying to achieve? In what circumstances do you need to > > destroy a class? > > > > Ian > > > > On 5/3/06, Andreas Rønning <[EMAIL PROTECTED]> wrote: > > > >> has anyone got a good way for an as2 class to destroy itself? I know > >> it's not "possible", but my heart tells me someone has devised some > kind > >> of good methodology. > >> > >> - A > > > > _______________________________________________ > > 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 > > -- > > - Andreas Rønning > > --------------------------------------- > Flash guy > Rayon Visual Concepts, Oslo, Norway > --------------------------------------- > _______________________________________________ > 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 _______________________________________________ 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