1 Reply Latest reply on Apr 16, 2010 9:09 PM by zimbros

    How to change  PopUpMenuButton on runtime


      Hi all,


      I have this simple component and i want to change to option 2 when click a button.


          <mx:PopUpMenuButton id="PopM" x="302" y="10" width="122" height="22" fontWeight="normal" >


                     <mx:Object label="OPTION 1" icon="@Embed(source='../images/1.png')"/>
                     <mx:Object label="OPTION 2" icon="@Embed(source='../images/2.png')"/>


          public function changePOPOption():void

              PopM ????






      But i dont know how.