AHHHHHHHHhhhhh. Very interesting. I just gave up on the X and did a close button, which effectively did the same thing as figureing out how to get it not to do that double click. --- In [email protected], "Mercer, Dustin" <[EMAIL PROTECTED]> wrote: > > I believe the removePopUp method is being called twice... You will find > if you click anywhere in the header of the titlewindow, the window will > fire the click event (Which is set to close the window) and if you click > on the close button, it fires the event twice. You get the null error > because the window has already closed by the time the second remove > method tries to execute. I did not find this, but I say someone else > mention this somewhere. Hope this helps > > > > Dustin Mercer > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Tracy Spratt > Sent: Thursday, October 20, 2005 10:03 AM > To: [email protected] > Subject: RE: [flexcoders] Flex2: Popup Error > > > > If this was 1.5, I's say, call the removePopUp from a doLater(). > > Tracy > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Greg Johnson > Sent: Wednesday, October 19, 2005 4:58 PM > To: [email protected] > Subject: [flexcoders] Flex2: Popup Error > > BTW Thanks to Spike, he gave me the little bits I needed to finally see > what I needed to "get it" with the changes in 2. > > Now I have tried many variations of a popup window to send stuff too. > It works for the most part. But when I close the window I get an error. > > Here is the function that fires the popup window up. > ------- > import mx.managers.PopUpManager; > import mx.containers.TitleWindow; > // Error Handler Function > public function err(message:String, title:String):Void { > var errpop:TitleWindow = TitleWindow > (PopUpManager.createPopUp(this, MyPopup, true)); > errpop.title="Test"; > errpop.closeButton=true; > } > -------- > > And here is the MyPopup.mxml > -------- > <?xml version="1.0" encoding="utf-8"?> > <mx:TitleWindow xmlns:mx="http://www.macromedia.com/2005/mxml" > click="PopUpManager.removePopUp(this)" width="940" height="503"> > <mx:Script> > <![CDATA[ > import mx.managers.PopUpManager; > ]]> > </mx:Script> > <mx:TextArea id="messagebox" width="100%" height="100%" > editable="false" /> > </mx:TitleWindow> > ------- > > And here is the error that gets thrown > ------- > TypeError: Error #1009: null has no properties. > at mx.managers::PopUpManager$/removePopUp() > at MyPopup/___TitleWindow0_click() > -------- > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > > SPONSORED LINKS > > Web site design development > <http://groups.yahoo.com/gads? t=ms&k=Web+site+design+development&w1=Web+ > site+design+development&w2=Computer+software+development&w3=Software+d es > ign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr ac > tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> > > Computer software development > <http://groups.yahoo.com/gads? t=ms&k=Computer+software+development&w1=We > b+site+design+development&w2=Computer+software+development&w3=Software +d > esign+and+development&w4=Macromedia+flex&w5=Software+development+best+ pr > actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> > > Software design and development > <http://groups.yahoo.com/gads? t=ms&k=Software+design+and+development&w1= > Web+site+design+development&w2=Computer+software+development&w3=Softwa re > +design+and+development&w4=Macromedia+flex&w5=Software+development+bes t+ > practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> > > Macromedia flex > <http://groups.yahoo.com/gads? t=ms&k=Macromedia+flex&w1=Web+site+design+ > development&w2=Computer+software+development&w3=Software+design+and+de ve > lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s =1 > 66&.sig=OO6nPIrz7_EpZI36cYzBjw> > > Software development best practice > <http://groups.yahoo.com/gads? t=ms&k=Software+development+best+practice& > w1=Web+site+design+development&w2=Computer+software+development&w3=Sof tw > are+design+and+development&w4=Macromedia+flex&w5=Software+development+ be > st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> > > > > > > ________________________________ > > YAHOO! GROUPS LINKS > > > > * Visit your group "flexcoders > <http://groups.yahoo.com/group/flexcoders> " on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > > ________________________________ >
------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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/

