HI all,

I was working around with Modules in my project for effective response
time.

ISSUE:: How to get the Instance of the Interface for the loaded
module.

My Project format::

I have one application project.
Im using a different project module.
loading the module with the help of <mx:ModuleLoader> tag
Accessing the methods of module with  help of  an Interface in shared
code (LibraryProject) this Iam doing as in following code Block:

_moduleLoader.loadModule("mymodule.swf");

//in ModuleLoader's Ready Event im calling the following method.
-----
// method to create an instance of the Interface and acces the module
method

private function callModuleMethod():void
                        {
                                var ichild:IModAdapter;
                                ichild = _moduleLoader.child as IModAdapter;

                                if(contentML.initialized)
                                {
                                        lblModuleName.text = 
ichild.getModuleName();
                                }
                                else{
                                        Alert.show("Module not loaded, yet");
                                }
                        }
-----
everything is working perfect.

I dont want to use the <mx:ModuleLoader>
I can Load the module with ModuleManager.getModule(url); but  didnot
get a clue how to get the instance of my Interface('IModAdapter') like
i did in the above CODE Block.

can anyone got some IDEA...!

-- 
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