Skip to main content
Inspiring
May 10, 2007
Question

Class and destructor

  • May 10, 2007
  • 1 reply
  • 1085 views
How do I make a destructor function on a class?

I can't use the onClipEvent(unload) in a CLASS so I thought why not make a destructor....

Why can't I find a way to make one?
This topic has been closed for replies.

1 reply

Inspiring
May 10, 2007
Deconstructors are not supported by ActionScript. Any clean up you will
have to do manually. The garbage collector will automatically handle the
object in memory when there are no more references to that object in code.

"OmniFlash" <webforumsuser@macromedia.com> wrote in message
news:f1u5tc$sh$1@forums.macromedia.com...
> How do I make a destructor function on a class?
>
> I can't use the onClipEvent(unload) in a CLASS so I thought why not make a
> destructor....
>
> Why can't I find a way to make one?