Hey guys,
I added bubbles to true in my custom event, and it worked! OK, so I'm a
little puzzled b/c I have other custom events going without having to add
that. I thought Bubbles default was true...
hoz wrote:
>
> Here's my custom event, which works well with other applications...
> package com.event
> {
> import flash.events.Event;
> import com.vo.NewMemberInfo;
>
> public class SendNewMember extends Event {
>
> public var newmemberinfo:NewMemberInfo;
>
> //Constructor
> public function SendNewMember(type:String,
> newmemberinfo:NewMemberInfo) {
> super(type);
> this.newmemberinfo = newmemberinfo;
> }
>
> override public function clone():Event {
> return new SendNewMember(type, newmemberinfo);
> }
>
> }
> }
>
> valdhor-3 wrote:
>>
>> Is the SendNewMember event set to bubble?
>>
>> --- In [email protected], Mark Hosny <h...@...> 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-tp23765693p23767562.html
Sent from the FlexCoders mailing list archive at Nabble.com.