[flexcoders] Re: PopUpManager Module Components
One of my modules that I converted to ModuleTitleWindow is complaining about mx:states it says it could not resolve mc:states to a component implementation. It was working before so what happened and how do I put it right? - Stephen Brown
Re: [flexcoders] Re: PopUpManager Module Components
Did you really type mc:states? On 2/3/10 5:04 AM, criptopus sd_br...@ntlworld.com wrote: One of my modules that I converted to ModuleTitleWindow is complaining about mx:states it says it could not resolve mc:states to a component implementation. It was working before so what happened and how do I put it right? - Stephen Brown -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: PopUpManager Module Components
Could possibly be, but any evidence to the fact has been swept under the carpet as I change it to states for a while and it worked. I have set it back to mx:states again and all is okay. *whistles gently*. However ModuleTitleWindow is currently ModuleTitleWindow and desn't want to be called mx:ModuleTitleWindow or anything else for that matter. Not up on namespaces so I have left it as is for now. may want to name it something in the future though, looks better. - Stephen
[flexcoders] Re: PopUpManager Module Components
RSL's? Sorry lost me, I have only been programming in Flex for 3 months and object orientated programming for 2 years. Could you or anyone else make what was said a little bit more understandable for a novice? --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Sounds like a config/build issue. If you are using RSLs make sure the main app is using RSLs and the module isn't. Otherwise, check the link-reports of both SWFs to see who is responsible for TitleWindow On 2/1/10 5:17 PM, criptopus sd_br...@... wrote: When I tried the code I got the following error... I'm getting VerifyError: Error #1014: Class mx.containers::TitleWindow could not be found. - Stephen --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: On my blog On 2/1/10 9:11 AM, criptopus sd_brown@ wrote: Can anybody give me a simple example of how I would set up a PopUp to load as a module? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: PopUpManager Module Components
Got the program working, but just don't have the knowledge to implement it in my program. It just complains endlessly when I try to change my program. I have one file index.mxml and a directory comps with popup componets in and their are sub directories with more popup components from those popup components. My problems is where to put the ILoginDialog.as ModuleTitleWindow.as or equivelent for my comps enclosed LoginDialog.mxml's or equivelent and how to keep them all talking and happy, oh and neat. Going for a strong cup of coffee and to shake my head a bit. - Stephen
Re: [flexcoders] Re: PopUpManager Module Components
You could put them in a SWC that all projects share. On 2/2/10 11:41 AM, criptopus sd_br...@ntlworld.com wrote: Got the program working, but just don't have the knowledge to implement it in my program. It just complains endlessly when I try to change my program. I have one file index.mxml and a directory comps with popup componets in and their are sub directories with more popup components from those popup components. My problems is where to put the ILoginDialog.as ModuleTitleWindow.as or equivelent for my comps enclosed LoginDialog.mxml's or equivelent and how to keep them all talking and happy, oh and neat. Going for a strong cup of coffee and to shake my head a bit. - Stephen -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: PopUpManager Module Components
Only one project, multiple components. - Stephen --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: You could put them in a SWC that all projects share. On 2/2/10 11:41 AM, criptopus sd_br...@... wrote: Got the program working, but just don't have the knowledge to implement it in my program. It just complains endlessly when I try to change my program. I have one file index.mxml and a directory comps with popup componets in and their are sub directories with more popup components from those popup components. My problems is where to put the ILoginDialog.as ModuleTitleWindow.as or equivelent for my comps enclosed LoginDialog.mxml's or equivelent and how to keep them all talking and happy, oh and neat. Going for a strong cup of coffee and to shake my head a bit. - Stephen -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: PopUpManager Module Components
You are using modules, correct? Then you have multiple SWFs. If you’ve put them all in one project that’s fine, then all you need to do is put those files somewhere where they can all see them in their source-paths. On 2/2/10 12:27 PM, criptopus sd_br...@ntlworld.com wrote: Only one project, multiple components. - Stephen --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: You could put them in a SWC that all projects share. On 2/2/10 11:41 AM, criptopus sd_br...@... wrote: Got the program working, but just don't have the knowledge to implement it in my program. It just complains endlessly when I try to change my program. I have one file index.mxml and a directory comps with popup componets in and their are sub directories with more popup components from those popup components. My problems is where to put the ILoginDialog.as ModuleTitleWindow.as or equivelent for my comps enclosed LoginDialog.mxml's or equivelent and how to keep them all talking and happy, oh and neat. Going for a strong cup of coffee and to shake my head a bit. - Stephen -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: PopUpManager Module Components
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
Re: [flexcoders] Re: PopUpManager Module Components
If “test” is null, then the thing loaded did not implement Itest. Each module’s mxml file must have: mx:Module ... Implements=”Itest” ... You can store Itest.as anywhere and point to it with the project properties source-path. On 2/2/10 3:03 PM, criptopus sd_br...@ntlworld.com wrote: 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 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: PopUpManager Module Components
Yup! that was it, marvellous. Can't believe I missed that off. You have been very patient, thanks a lot for your help. Yes, I would be interested in squireling away Itest rather than leaving it in the root project folder as I will need to build a number of them one for each popup nearly. How do I use project properties source-path to tidy up the file structure? - Stephen --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: If test is null, then the thing loaded did not implement Itest. Each module's mxml file must have: mx:Module ... Implements=Itest ... You can store Itest.as anywhere and point to it with the project properties source-path. On 2/2/10 3:03 PM, criptopus sd_br...@... wrote: 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 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: PopUpManager Module Components
Yup! that sorted it out, and adding classes folder worked as well. Thanks for your time and effort, you have been really patient, I will mention you in my acknowledgements when I write my dissertation. - Stephen --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: If test is null, then the thing loaded did not implement Itest. Each module's mxml file must have: mx:Module ... Implements=Itest ... You can store Itest.as anywhere and point to it with the project properties source-path. On 2/2/10 3:03 PM, criptopus sd_br...@... wrote: 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 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: PopUpManager Module Components
When I tried the code I got the following error... I'm getting VerifyError: Error #1014: Class mx.containers::TitleWindow could not be found. - Stephen --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: On my blog On 2/1/10 9:11 AM, criptopus sd_br...@... wrote: Can anybody give me a simple example of how I would set up a PopUp to load as a module? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: PopUpManager Module Components
Sounds like a config/build issue. If you are using RSLs make sure the main app is using RSLs and the module isn’t. Otherwise, check the link-reports of both SWFs to see who is responsible for TitleWindow On 2/1/10 5:17 PM, criptopus sd_br...@ntlworld.com wrote: When I tried the code I got the following error... I'm getting VerifyError: Error #1014: Class mx.containers::TitleWindow could not be found. - Stephen --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: On my blog On 2/1/10 9:11 AM, criptopus sd_br...@... wrote: Can anybody give me a simple example of how I would set up a PopUp to load as a module? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui