*I think you should monitor the module event and flag a boolean variable to indicate that module 'A' is active or not. You refer this boolean everytime you need to call the function inside 'A' module.
I have tried to understand, let me know if I have gone wrong. Regards, *Preetham Hegde On Thu, Feb 10, 2011 at 3:54 PM, Kronos <[email protected]> wrote: > Hi, > > Where do i get the module event from? I am assuming that u mean i > monitor the module for events like loading & ready. But these will be > dispatched when the module has been loaded. I am loading the module > when my application loads, so I cannot expect any module event when I > want to unload. A ModuleEvent.UNLOAD will be dispatched when i unload > the module however by then it will be too late to call my function. > > Let me know if I miss understood u. > > On Feb 7, 9:48 pm, Preetham Hegde <[email protected]> wrote: > > *In module event you find the url of the module loaded.* > > * > > * > > *moduleEvent.module.url* > > > > Regards, > > Preetham Hegde > > > > On Mon, Feb 7, 2011 at 3:26 PM, Kronos <[email protected]> wrote: > > > Hi, > > > I am using a Module Loader that dynamically loads different modules in > > > the same Module Loader. The problem is if I am unloading a particular > > > module say "X" and loading any other, I need to call one last function > > > from X (like a destructor in C++) . > > > I need to know before I unload my module if X was loaded to call the > > > function. If I directly call the function without knowning which > > > module has been loaded, an error will be thrown since other modules do > > > not have the function that I want to call. > > > > > Currently I have directly called the function before unloading & I > > > have used a try catch to ignore the error for other modules but i > > > think there should be a better way. > > > > > Thnx in Advance. > > > Utkarsh Chachad > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Flex India Community" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/flex_india?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

