[flexcoders] Re: PopUpButton Events

2008-01-26 Thread Glenn Williams
Sorry when I said right hand button I meant the component button on
the right hand side of the PopUpButton Component (not mouse button),
the one with the arrow that triggers the second UIcomponent to be created.



Re: [flexcoders] Re: PopUpButton Events

2008-01-26 Thread Sherif Abdou
that would be the open Event,  left Part gets Triggered by the Click like you 
said and the right part gets triggered by the open Event, here is the code from 
Flex

/**
* Opens the UIComponent object specified by the codepopUp/code property.
*/ 
public function open():void
{
openWithEvent(null);
}
/**
* @private
*/
private function openWithEvent(trigger:Event = null):void
{
if (!showingPopUp  enabled)
{
displayPopUp(true);
var cbde:DropdownEvent = new DropdownEvent(DropdownEvent.OPEN);
cbde.triggerEvent = trigger;
dispatchEvent(cbde);
}
}



- Original Message 
From: Glenn Williams [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, January 26, 2008 12:26:04 PM
Subject: [flexcoders] Re: PopUpButton Events

Sorry when I said right hand button I meant the component button on
the right hand side of the PopUpButton Component (not mouse button),
the one with the arrow that triggers the second UIcomponent to be created.





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


[flexcoders] Re: PopUpButton Events

2008-01-26 Thread Glenn Williams
Cheers Mate,

lol, i must have looked at the docs 100s times. strange how sometimes
you just don't see it. I kind of assumed the open event was triggered
after the poppedUp UIComp was created. Thanks for that.