when a user click on menu item., I am using module loader to load the module which will be added as a child to the tab navigator in my main application. The user can click on same menu item more than once.
so same module can present in the diiferent tab of tab navigator.
when can i unload the module?.If user closes every tab, do i need to call unload() on every loaded module. If i call unload() on every loaded module, the same module present in the another tab is not working properly. It gives an null object reference, if i click on an button in it.
When the user closes a tab, call unloadModule() on the moduleLoader for that tab. No need to call it in other tabs. Once every tab is closed, the module will go away without any further action.
Flex SDK Developer
Adobe Systems Inc.
Thanks for your reply.
When i use unload on module loaded on tab, will the corresponding module swf file from memory will be removed or not?
If the module swf file is removed , then will it affect same module loaded in another tab?
I am not clear about , when the module swf file will be removed from memory.