Deba
Deba

Reputation: 63

similar method in flex as destroy() in jsp?

Is there anything same in flex 3 as destroy() method in jsp? After clicking logout button i want to destroy the initialization of a page and reinitialize it after i login again?

Upvotes: 0

Views: 92

Answers (1)

a.s.t.r.o
a.s.t.r.o

Reputation: 3338

I don't know what you mean by "page" but in Flex the garbage collecting is automatic, you don't need to call it explicitly, you just need to be sure that all references to objects are removed and set it to null. You can of course implement you own logic for disposable elements in your application and do the cleanup there (remove all event listeners and other references prior to removing the object).

Upvotes: 1

Related Questions