[flexcoders] popup in subdirectory ?
Hi, I think this is probably a very basic question - but I'm really having trouble figuring this out - wonder if someone here can explain... Basically I've just restructured my project; it started off as a 'demo' and now it's outgrowing that and I needed to structure it a little better so... I now have it broken down in to a logical directory structure... And it all works except the popups! In this specific case, the popup screen is in a directory called... 'popups' under the directory in which the current .mxml resides. The AS script *was*: var popupScreen:TitleWindow = TitleWindow( PopUpManager.createPopUp( this, ManageCreditItems, true, {title: 'Credit Note Items', closeButton: false, parentComponent: this.itemData}, false) ); The 'ManageCreditItems.mxml' *used* to be at the same directory level as this calling code - and it all worked fine. Now it's in './popup/ManageCreditItems.mxml' and it won't work anymore! How do I qualify the reference to the popup in order for it to work ? Thanks, Jamie. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] popup in subdirectory ?
Hi Jamie! (long time no talk, it's me Mike - the ex-Firefly user, off Flashcoders) In your main application tags, I think you need to add another namespace entry - like xmlns:mx=http://www.macromedia.com/2003/mxml; - you need another one, to reference the popup directory xmlns:xx=popup.* Where xx is the prefix YOU choose to use, versus mx that Macromedia references, to access all their built-in classes, etc. I am sure I will be corrected on this - but I am confident this is the overall path you must take, in order to reference files, that don't reside in the native directory. Mike -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Friday, June 10, 2005 11:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] popup in subdirectory ? Hi, I think this is probably a very basic question - but I'm really having trouble figuring this out - wonder if someone here can explain... Basically I've just restructured my project; it started off as a 'demo' and now it's outgrowing that and I needed to structure it a little better so... I now have it broken down in to a logical directory structure... And it all works except the popups! In this specific case, the popup screen is in a directory called... 'popups' under the directory in which the current .mxml resides. The AS script *was*: var popupScreen:TitleWindow = TitleWindow( PopUpManager.createPopUp( this, ManageCreditItems, true, {title: 'Credit Note Items', closeButton: false, parentComponent: this.itemData}, false) ); The 'ManageCreditItems.mxml' *used* to be at the same directory level as this calling code - and it all worked fine. Now it's in './popup/ManageCreditItems.mxml' and it won't work anymore! How do I qualify the reference to the popup in order for it to work ? Thanks, Jamie. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] popup in subdirectory ?
On 6/10/05, jamiebadman [EMAIL PROTECTED] wrote: The 'ManageCreditItems.mxml' *used* to be at the same directory level as this calling code - and it all worked fine. Now it's in './popup/ManageCreditItems.mxml' and it won't work anymore! Add this line at the top of your script. import popup.ManageCreditItems; You could also fully qualify the name when passing it to the PopUpManager as 'popup.ManageCreditItems'. Hope that helps. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] popup in subdirectory ?
This is a name space problem. In your mx:Application if you do a xmlns="popups.*" that should do it I think. http://livedocs.macromedia.com/flex/1/flex_builder_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Using_Flex_Builderfile=brady405.htm Though if you do a xmlns:popups="popups.*" can you do this: PopUpManager.createPopUp(this,popups:ManageCreditItems,true,) ? Or popups.ManageCreditItems? jamiebadman wrote: Hi, I think this is probably a very basic question - but I'm really having trouble figuring this out - wonder if someone here can explain... Basically I've just restructured my project; it started off as a 'demo' and now it's outgrowing that and I needed to structure it a little better so... I now have it broken down in to a logical directory structure... And it all works except the popups! In this specific case, the popup screen is in a directory called... 'popups' under the directory in which the current .mxml resides. The AS script *was*: var popupScreen:TitleWindow = TitleWindow( PopUpManager.createPopUp( this, ManageCreditItems, true, {title: 'Credit Note Items', closeButton: false, parentComponent: this.itemData}, false) ); The 'ManageCreditItems.mxml' *used* to be at the same directory level as this calling code - and it all worked fine. Now it's in './popup/ManageCreditItems.mxml' and it won't work anymore! How do I qualify the reference to the popup in order for it to work ? Thanks, Jamie. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] popup in subdirectory ?
Oh yes *import* works great too - as us Flash users, are probably more accustomed to doing it this way. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Friday, June 10, 2005 1:17 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] popup in subdirectory ? On 6/10/05, jamiebadman [EMAIL PROTECTED] wrote: The 'ManageCreditItems.mxml' *used* to be at the same directory level as this calling code - and it all worked fine. Now it's in './popup/ManageCreditItems.mxml' and it won't work anymore! Add this line at the top of your script. import popup.ManageCreditItems; You could also fully qualify the name when passing it to the PopUpManager as 'popup.ManageCreditItems'. Hope that helps. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/