tags:

views:

16

answers:

0

Hi,

I need some help with programmatically dispatching an itemclick event in Flex 3.

For example, I've got a popupmenubutton as follows:

<mx:PopUpMenuButton
    id="myPopUpMenuButton"
    label="Neighborhoods"
    dataProvider="{myNeighborhoodList}" 
    itemClick="myPopUpMenuButtonClickHandler(event)"
/>

Let's say that the myNeighborhoodList contains 3 choices: Old Port, Newport, Southport.

In another piece of code, I want to programmatically dispatch the myPopUpMenuButton itemclick event as if "Newport" were chosen. How do I do that?

Thank you!

-Laxmidi