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:
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
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:
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:
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
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
6 matches
Mail list logo