There is a know issue with PopUpButton in certain contexts. The
workaround is to listen for the open event and re-create the popUp
property programatically if found to be null.
Jeff
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks
Sent: Tuesday, June 10, 2008 11:28 AM
To: [email protected]
Subject: [flexcoders] popupbutton in viewstack/canvas
Does the popupbutton NOT work within a canvas in a viewstack?
I've gotten this code -- doesn't work in the viewstack but
everywhere else is fine...:
<mx:PopUpButton id="popUpButton" horizontalCenter="0"
top="200"
label="Click on me"
openAlways="true">
<mx:popUp>
<mx:TitleWindow id="titleWin"
height="200" width="200"
showCloseButton="false"
verticalScrollPolicy="on"
horizontalScrollPolicy="off">
</mx:TitleWindow>
</mx:popUp>
</mx:PopUpButton>