Mark Hosny wrote:
> Hey guys,
> 
> I now know that my custom event is not working properly in my popup 
> window when listening for the event in the main app. When I do this, it 
> works:

[snip]

> 
>         public static const ON_TEST_CASE:String = "formSubmitted";
>         public function CustomEvent($type:String, $params:Object, 
> $bubbles:Boolean = true, $cancelable:Boolean = true)
>         {
>             super($type, true, $cancelable);
> 
>             this.params = $params;
>         }

[snip]


You are dispatching an even with a "type" String value of
"formSubmitted" and listening/registering for "formUpdate".
Change the event constant to "formUpdate" and it will work again..

<mx:Metadata>
[Event(name="formUpdate",type="com.event.CustomEvent")]
</mx:Metadata>

MAIN APP
application.systemManager.addEventListener("formUpdate",handleUpdateFormSubmitted);


// event constants
public static const ON_TEST_CASE:String = "formSubmitted";

new CustomEvent(CustomEvent.ON_TEST_CASE,
                 {
                     memberID:memberID_txt.text
                 }
             );
              this.dispatchEvent(evt);


By the way, whats with the $ signs in the arg names?

HTH.

cheers,
  - shaun

Reply via email to