Heya,
You can also dispatch the event yourself, if thats helpful.
componentInstance.dispatchEvent( {type:"change", someData:"if you need"} );
Mike
Mike Pearce
[EMAIL PROTECTED]
http://www.nectarine.com.au
----- Original Message -----
From: "Sebastian Porto" <[EMAIL PROTECTED]>
To: "Flash Developers List" <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 1:24 PM
Subject: [fugli] RE: FlashMX2004 - manually triggering an EventListener
Calling the listener object should do it:
onVisits_Change.change()
Sebastian
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:bounce-fugli-
> [EMAIL PROTECTED] On Behalf Of Antony Sideropoulos
> Sent: Friday, 24 September 2004 1:07 PM
> To: Flash Developers List
> Subject: [fugli] FlashMX2004 - manually triggering an EventListener
>
> Hello
>
> I have a combo box to which I have added an eventListener:
>
> eg: cb_Visits.addEventListener("change", onVisits_Change)
>
> Elsewhere, I have some push buttons that I am using to move through
> the combo box - ie First, Previous, Next and Last:
>
> eg: cb_Visits.selectedIndex = cb_Visits.selectedIndex -1
>
> The above works - the selected item in the combo box changes.
>
> However, the change event for the combo box is not triggered.
>
> Is there a way to manually trigger the event, something like :
>
> cb_Visits.DoTheBloodyEventAlready()
>
> Thanks
>
> Antony
>
> ---
> You are currently subscribed to fugli as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/