Re: [flexcoders] Popup Window
Hi, You can use Application.application.width Application.application.height to set the width and height so that toolbar will be visible to click close button. Regards, Abhijit On Tue, Sep 15, 2009 at 5:41 PM, smyrin smy...@yahoo.com wrote: I have noticed a problem with pop up windows being too large for the browser on netbooks thereby hiding the close button and title bar to allow dragging. Any easy suggestions for fixing? -- I may be miles away... but I am just a mail away so keep mailing... Cheers, Abhijit
RE: [flexcoders] Popup window close button fails
It is not automatic. The button just dispatches the close event. You need to define a close event handler. And in that do PopUpmanager.removePopUp(this). Though more often, I just dispatch a custom named event, and have in a listener/handler in the component that created the popup, and in that handler, I get what data I need from the popup on close, like status(ok, cancel) and value if any, then call PopUpmanager.removePopUp(event.target). Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tom McNeer Sent: Wednesday, May 06, 2009 5:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Popup window close button fails In the application I'm creating, I have a few popups. Each has the showCloseWindow attribute set to true, and sure enough, the button is there. But it won't close the window when clicked. ? -- Thanks, Tom Tom McNeer MediumCool http://www.mediumco http://www.mediumcool.com ol.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
Re: [flexcoders] Popup window close button fails
Hi Tracy, Thanks for the explanation. I knew the close event was fired. But I guess I thought the default close event also called the PopUpManager. Maybe it's me, but I think the Lang Ref could be a little clearer about this. Thanks for straightening me out, anyway. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
RE: [flexcoders] Popup window stays open with history management enabled
I would use BrowserManager and clear the popup on the url changes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Erich Cervantez Sent: Friday, December 05, 2008 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Popup window stays open with history management enabled So I have a ViewStack with history management enabled (and enabled in the Application tag). This enables the user to click the browser's Back and Forward buttons while in the application and it will move the user back or forward through each screen they've visited. Now if one of those screens opens a popup window, clicking the Back and Forward buttons still cycles through each screen in the browser history but the popup stays on the screen! (you can see the views changing behind the popup as you move back and forth) Ideally the popup window should disappear once you hit the Back button and come back when you hit the Forward button, but is this even possible?
Re: [flexcoders] popup window
Perfect! Thank you so much... Thank You Dan Vega On Thu, Jul 31, 2008 at 1:50 AM, Alex Harui [EMAIL PROTECTED] wrote: text.percentWidth=100 -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dan Vega *Sent:* Wednesday, July 30, 2008 9:04 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] popup window I understand the width as a percentage but in as3 you can't do that because its looking for a number. If i do var text:Text = new Text(); text.width = 100%; I get an error. Is there a way to figure out available space? On Wed, Jul 30, 2008 at 11:55 PM, Sid Maskit [EMAIL PROTECTED] wrote: Two things. First, a label can only display a single line. If you want multiline text, you should use a Text component. Second, Text components automatically wrap if, and only if, they have their width set. I believe you can set it to a percentage, and it will still wrap, but you have to set it to something. On a side note, this may seem like a hack, but how else can the system know what it should do? - Original Message From: Dan Vega [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, July 30, 2008 8:24:50 PM Subject: [flexcoders] popup window I have a popup window (a quick about win) and I am having an issue. How can I add a bunch of text to the title windows content area. If I just add the text it runs off the screen. I can set the width but that seems like a bit of a hack to me. I know im probably just missing something dumb here. private function showAbout(event: MouseEvent) :void { // the popup window _popup = new TitleWindow( ); _popup.title = About this component; _popup.width = 400; _popup.height = 200; _popup.showCloseBut ton = true; _popup.addEventList ener(CloseEvent. CLOSE,closeAbout Window); var label:Label= new Label(); label.text = * * * * * + * * * * * + * * * * * + * * * * * + _popup.addChild( label); _popup.autoLayout = true; PopUpManager. addPopUp( _popup,container ); PopUpManager. centerPopUp( _popup); } Thank You Dan Vega [EMAIL PROTECTED] com [EMAIL PROTECTED] http://www.danvega. org http://www.danvega.org
Re: [flexcoders] popup window
Two things. First, a label can only display a single line. If you want multiline text, you should use a Text component. Second, Text components automatically wrap if, and only if, they have their width set. I believe you can set it to a percentage, and it will still wrap, but you have to set it to something. On a side note, this may seem like a hack, but how else can the system know what it should do? - Original Message From: Dan Vega [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, July 30, 2008 8:24:50 PM Subject: [flexcoders] popup window I have a popup window (a quick about win) and I am having an issue. How can I add a bunch of text to the title windows content area. If I just add the text it runs off the screen. I can set the width but that seems like a bit of a hack to me. I know im probably just missing something dumb here. private function showAbout(event: MouseEvent) :void { // the popup window _popup = new TitleWindow( ); _popup.title = About this component; _popup.width = 400; _popup.height = 200; _popup.showCloseBut ton = true; _popup.addEventList ener(CloseEvent. CLOSE,closeAbout Window); var label:Label= new Label(); label.text = * * * * * + * * * * * + * * * * * + * * * * * + _popup.addChild( label); _popup.autoLayout = true; PopUpManager. addPopUp( _popup,container ); PopUpManager. centerPopUp( _popup); } Thank You Dan Vega [EMAIL PROTECTED] com http://www.danvega. org
Re: [flexcoders] popup window
I understand the width as a percentage but in as3 you can't do that because its looking for a number. If i do var text:Text = new Text(); text.width = 100%; I get an error. Is there a way to figure out available space? On Wed, Jul 30, 2008 at 11:55 PM, Sid Maskit [EMAIL PROTECTED] wrote: Two things. First, a label can only display a single line. If you want multiline text, you should use a Text component. Second, Text components automatically wrap if, and only if, they have their width set. I believe you can set it to a percentage, and it will still wrap, but you have to set it to something. On a side note, this may seem like a hack, but how else can the system know what it should do? - Original Message From: Dan Vega [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, July 30, 2008 8:24:50 PM Subject: [flexcoders] popup window I have a popup window (a quick about win) and I am having an issue. How can I add a bunch of text to the title windows content area. If I just add the text it runs off the screen. I can set the width but that seems like a bit of a hack to me. I know im probably just missing something dumb here. private function showAbout(event: MouseEvent) :void { // the popup window _popup = new TitleWindow( ); _popup.title = About this component; _popup.width = 400; _popup.height = 200; _popup.showCloseBut ton = true; _popup.addEventList ener(CloseEvent. CLOSE,closeAbout Window); var label:Label= new Label(); label.text = * * * * * + * * * * * + * * * * * + * * * * * + _popup.addChild( label); _popup.autoLayout = true; PopUpManager. addPopUp( _popup,container ); PopUpManager. centerPopUp( _popup); } Thank You Dan Vega [EMAIL PROTECTED] com [EMAIL PROTECTED] http://www.danvega. org http://www.danvega.org
RE: [flexcoders] popup window
text.percentWidth=100 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Vega Sent: Wednesday, July 30, 2008 9:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] popup window I understand the width as a percentage but in as3 you can't do that because its looking for a number. If i do var text:Text = new Text(); text.width = 100%; I get an error. Is there a way to figure out available space? On Wed, Jul 30, 2008 at 11:55 PM, Sid Maskit [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Two things. First, a label can only display a single line. If you want multiline text, you should use a Text component. Second, Text components automatically wrap if, and only if, they have their width set. I believe you can set it to a percentage, and it will still wrap, but you have to set it to something. On a side note, this may seem like a hack, but how else can the system know what it should do? - Original Message From: Dan Vega [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Wednesday, July 30, 2008 8:24:50 PM Subject: [flexcoders] popup window I have a popup window (a quick about win) and I am having an issue. How can I add a bunch of text to the title windows content area. If I just add the text it runs off the screen. I can set the width but that seems like a bit of a hack to me. I know im probably just missing something dumb here. private function showAbout(event: MouseEvent) :void { // the popup window _popup = new TitleWindow( ); _popup.title = About this component; _popup.width = 400; _popup.height = 200; _popup.showCloseBut ton = true; _popup.addEventList ener(CloseEvent. CLOSE,closeAbout Window); var label:Label= new Label(); label.text = * * * * * + * * * * * + * * * * * + * * * * * + _popup.addChild( label); _popup.autoLayout = true; PopUpManager. addPopUp( _popup,container ); PopUpManager. centerPopUp( _popup); } Thank You Dan Vega [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] http://www.danvega. org http://www.danvega.org
RE: [flexcoders] popup window with custom component ( not extending TitleWindow )
WineDetail.mxml There is no property with the name 'PopUpDetail' The class PopUpDetail, is it in the same folder as WineDetail? Is the class PopUpDetail in the same folder as the .mxml file with the application tag in it? If not, add this line to your script (at the TOP): import path.to.file.PopUpDetail; Greetz Erik -Original Message- From: Owen van Dijk [mailto:[EMAIL PROTECTED] Sent: dinsdag 22 februari 2005 17:42 To: flexcoders@yahoogroups.com Subject: [flexcoders] popup window with custom component ( not extending TitleWindow ) I've been working on a Flex application that requires a modal popupwindow. I have created a PopUpDetail.mxml that uses a Canvas. I then have another custom MXML component that is also based on a Canvas. The component is called WineDetail.mxml. In WineDetail.mxml is a Script block that uses the following AS ( straight from the Flex book ): -- function openWineDetail() { var parentToPopUpOver = this; var isModal:Boolean = true; var initObj = {}; var popUp = mx.managers.PopUpManager.createPopUp( parentToPopUpOver, PopUpDetail, isModal, initObj ); } -- WineDetail is then put into a Repeater object , something like this: mx:Repeater id=rp dataProvider={jumboWS.GetWineTop10.result.diffgram.NewDataSet.Table} WineDetail wineID={rp.currentItem.ID} winenumber={rp.currentIndex} winedetaillabel={rp.currentItem.NAME} wineimage={host}Images/wine/wine_{rp.currentItem.ID}_1.jpg xmlns=* / /mx:Repeater note the xmlns attribute. When i click on a WineDetail component, it's supposed to create a PopUpWindow, but i never got it to work.I'm getting the following error, among others: WineDetail.mxml There is no property with the name 'PopUpDetail' It might be something obvious i'm missing here, but i'm working against a killer deadline, and this close to find another hack around it...if somebody has a clue, you may enlighten me :) ( I figured that it's something as simple as using a Titlewindow instead of a Canvas? ) Thnx -- Owen van Dijk Yahoo! Groups Links