Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread JesterXL
Out of curiosity, try changing: Application.application.addEventListener(test, onTestEvent); to: this.addEventListener(test, onTestEvent); - Original Message - From: Andrea Varga [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, April 20, 2006 10:52 AM Subject:

Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Oscar . Cortes
Try changing public function onTestEvent() to public function onTestEvent(event:Event) You should add event:Event in your listener. |-+- | | | | | Andrea Varga | | | [EMAIL PROTECTED] | | | Sent by: | | | flexcoders@yahoogroups.com | | | 04/20/2006

Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Andrea Varga
It didn't work with this.addEventListener either. Andi JesterXL wrote: Out of curiosity, try changing: Application.application.addEventListener(test, onTestEvent); to: this.addEventListener(test, onTestEvent); - Original Message - From: Andrea Varga [EMAIL PROTECTED] To:

Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Andrea Varga
Yes, this has solved it Thanks [EMAIL PROTECTED] wrote: Try changing public function onTestEvent() to public function onTestEvent(event:Event) You should add event:Event in your listener. -- Flexcoders Mailing List FAQ:

Re: [flexcoders] flex newbie - dispatchEvent question - Part 2

2006-04-20 Thread Andrea Varga
Well, this worked, but in the Cairngorm framework this was correct and the problem is somewhere else. Below is my new little test. This time the button that does the dispatchEvent is not in the application, but inside another component The Main.mxml code is almost the same as before, just

RE: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Gordon Smith
Sent: Thursday, April 20, 2006 11:33 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] flex newbie - dispatchEvent question Yes, this has solved it Thanks [EMAIL PROTECTED] wrote: Try changing public function onTestEvent() to public function onTestEvent(event:Event) You should add