Popup windows are parented by the system manager.

What you would need to do is add an event listener to the system manager at the 
application level. When that event fires, you would then inject it into your 
component.

--- In flexcoders@yahoogroups.com, "Scott" <h...@...> wrote:
>
>  
> 
> I've got a parent component that contains a child panel that contains a
> popup window.  When the user enters the information and submits, I want
> to notify the top parent that a change has been made to refresh the
> other components.
> 
>  
> 
> grandparent->Panel->PopupWindow
> 
>  
> 
> In the popup window component I have:
> 
>  
> 
> [CDATA ...[
> 
>  
> 
> public static const REFRESHEVENT:String = "refreshItems";
> 
>  
> 
> protected function validateInput():int
> 
> {
> 
>       var refreshScreen:Event = new Event( REFRESHEVENT, true, true );
> 
>  
> 
> ... validate code
> 
>  
> 
>       dispatchEvent( refreshScreen );
> 
> ...
> 
> }
> 
>  
> 
> That should bubble all the way up now...
> 
>  
> 
>  
> 
> In the grandparent component I have:
> 
>  
> 
> init():void
> 
> {
> 
> addEventListener( NewReservation.REFRESHEVENT, testevent );
> 
> }
> 
>  
> 
> private function testevent():void
> 
> {
> 
>       Alert.show("heard it");
> 
> }
> 
>  
> 
>  
> 
> Any ideas on how to troubleshoot this?  I can't seem to find anything in
> the debugger to watch this...
> 
>  
> 
> Thanks!
> 
>  sj
>


Reply via email to