Thanks!

Those crazy pop ups!! They do serve a good purpose, and hopefully this will
give a little insight for those who try to tackle them in their projects.


hoz wrote:
> 
> Hey guys,
> 
> For some reason when I dispatch a custom event via the pop up, my  
> main app isn't receiving the event.
> 
> In my main app I have a custom component called search, which  
> contains a button to open up a pop window called new member. In my  
> pop up I have this:
> 
> <mx:Metadata>
>       [Event(name="onSendNewMember",type="com.event.SendNewMember")]
> </mx:Metadata>
> 
> private function submitForm():void
>          {
>       newmemberinfo = new NewMemberInfo();
>       newmemberinfo.HOHlastName = HOHlastName_txt.text;
>       
>       <!---abbreviate VO's for space--->
>               
>          dispatchEvent(new SendNewMember 
> ("onSendNewMember",newmemberinfo));
>          }
> 
> Then in my main app
> 
> application.systemManager.addEventListener 
> ("onSendNewMember",onSendNewMember);
> 
> private function onSendNewMember(event:SendNewMember):void
>       {
>               Alert.show('GOT IT');
>      }
> 
> 
> thanks,
> 
> hoz
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/popup-systemManager-not-working-tp23765693p23767934.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to