Hi,
I have no problems loading a module... The problem is that before I
need to unload a module I need to call a function. Now only one module
has that function so I need to know if i am about to unload the module
which has the function.

On Feb 8, 10:12 am, Bambam Choudhary <[email protected]> wrote:
> When  Module Loader load  on Click Event. Then use just like that
> modLoader.unloadModule();
> if(action == "abc")
>                 {
>
>                     modLoader.loadModule("ABC.swf");
>                 }
>
> Thanks
> bambam
> On Mon, Feb 7, 2011 at 10:18 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.

Reply via email to