The following works but is rather useless
=========================================

private var test:IUIComponent;
private var module:IModuleInfo;

private function openTest():void
{
module=ModuleManager.getModule("comps/admnCntr/test.swf");
module.addEventListener(ModuleEvent.READY, dispTest);
module.load();
}

private function dispTest(e:Event):void
{
test=module.factory.create() as IUIComponent;
PopUpManager.addPopUp(test, Application.application as DisplayObject, true);
PopUpManager.centerPopUp(test);
}

This seems to load but test fails to open a popup as it is null?
================================================================

private var test:Itest;
private var module:IModuleInfo;

private function openTest():void
{
module=ModuleManager.getModule("comps/admnCntr/test.swf");
module.addEventListener(ModuleEvent.READY, dispTest);
module.load();
}
private function dispTest(e:Event):void
{
test=module.factory.create() as Itest;
PopUpManager.addPopUp(test, Application.application as DisplayObject, true);
PopUpManager.centerPopUp(test);
}


My directory structure
======================

.
|   admnCntr.mxml
|   grpsCntr.mxml
|   instCntr.mxml
|   librCntr.mxml
|   userCntr.mxml
|   
+---admnCntr
|       admnArti.mxml
|       admnAsha.mxml
|       admnCata.mxml
|       admnGlry.mxml
|       admnGrps.mxml
|       admnMedi.mxml
|       admnMemb.mxml
|       admnShar.mxml
|       admnStry.mxml
|       admnUser.mxml
|       test.mxml
|       
+---grpsCntr
|       grpsRequest.mxml
|       
+---instCntr
|   |   cataList.mxml
|   |   instArti.mxml
|   |   instAsst.mxml
|   |   instFold.mxml
|   |   instGrps.mxml
|   |   instMshpGrp.mxml
|   |   instMshpMbr.mxml
|   |   instUsrs.mxml
|   |   
|   +---cataList
|   |       cataEdit.mxml
|   |       
|   +---instArti
|   |       artiEdit.mxml
|   |       
|   +---instAsst
|   |       asstEdit.mxml
|   |       
|   +---instFold
|   |       foldEdit.mxml
|   |       
|   +---instGrps
|   |       grpsEdit.mxml
|   |       
|   \---instUsrs
|           usrsEdit.mxml
|           
+---librCntr
|   |   librArti.mxml
|   |   librFold.mxml
|   |   
|   +---librArti
|   |   |   acesEdit.mxml
|   |   |   artiEdit.mxml
|   |   |   contView.mxml
|   |   |   
|   |   +---contView
|   |   |       contEdit.mxml
|   |   |       contPrev.mxml
|   |   |       mapPlay.mxml
|   |   |       vidiPlay.mxml
|   |   |       
|   |   \---itemRend
|   |           med1Type.mxml
|   |           med2Type.mxml
|   |           
|   \---librFold
|       |   acesEdit.mxml
|       |   foldEdit.mxml
|       |   mediEdit.mxml
|       |   
|       \---itemRend
|               tickBox.mxml
|               tickRqBox.mxml
|               
\---userCntr
        userAmend.mxml
        userRequest.mxml
        userSignIn.mxml
        userSignOut.mxml
        
Most of which are popups so unsure of anywhere I could put this
so that they would all see it?

- Stephen

Reply via email to