First, I realize I was not clear enough in my last description of the problem.  
Upon calling 
PopUpManager.removePopUp, I'm actually loading a swf into a swf "player".  I 
have a 
sequence of swfs that are short animations.  After random swfs have played, I 
pop up a 
titlewindow based dialog.  When the user clicks Yes or No button in the dialog, 
I call 
removePopUp and automatically start playing the next swf in the list.  This is 
what I'm 
assuming is causing the error.  Code looks something like this:

swfplayer.playNext();

onSWFFinish( evt : Event )
{
     showDialog();
}

onDialogButtonClickEvent( evt : Event )
{
     PopUpManager.removePopUp( Dialog );
     swfplayer.playNext();
}

Nine times out of ten that will result in the dialog being removed, the modal 
overlay still 
being intact and the swfplayer playing the next swf.  This is obviously 
simplified, but I 
would be happy to provide you with some source, if you need, although I won't 
be able to 
post it publicly.

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I'd have to debug through it to see why.  Can you make a small
> test-case?
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of bryanpoopbartow
> Sent: Friday, November 16, 2007 3:29 PM
> To: [email protected]
> Subject: [flexcoders] Re: PopUpManager.removePopUp Not Removing Modal
> Overlay
> 
>  
> 
> I think I may have found my problem. Upon removing my pop-up, I'm
> calling a function 
> which displays another component depending on the button the user clicks
> on in the 
> pop-up. If I comment the code out, the pop-up dismisses gracefully and I
> can continue 
> using the app as usual. Then, I figured I'd just listen for the event
> the PopUpManager 
> dispatches once the modal overlay has been dismissed. Of course, there
> is no such event. 
> I can only conclude that the display manager gets confused when it's
> trying to remove the 
> modal overlay and at the same time changing the display underneath the
> overlay. Any 
> thoughts on how to get around this?
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "bryanpoopbartow" <bryanbartow@> wrote:
> >
> > I'm using Flex 3 Beta 2. compiling against 2.0.1 Hotfix 3. Created a
> custom component 
> > extending TitleWindow. Using PopUpManager to show it. It works as
> expected. 
> However, 
> > when calling PopUpManager.removePopUp the component itself is removed,
> while the 
> modal 
> > overlay stays intact. I can not interact with the application in any
> way. I can't get the 
> modal 
> > overlay to go away. Has anyone experienced this or have any ideas why
> it might be 
> > happening? I should say that I've used this component in other apps
> with no problems 
> > whatsoever.
> >
>



Reply via email to