1 Reply Latest reply on Oct 14, 2009 6:09 PM by ShaF10

    Update var on event change

    ShaF10

      Hi Guys

       

      I have the following code:

       

       

          <mx:Array id="pageSizeArr">
               <mx:String>25</mx:String>
               <mx:String>50</mx:String>
               <mx:String>75</mx:String>
               <mx:String>100</mx:String>
               <mx:String>150</mx:String>
               <mx:String>200</mx:String>
               <mx:String>300</mx:String>
           </mx:Array>

       

                    <mx:ComboBox
                         dataProvider="{pageSizeArr}"
                         selectedIndex="3"
                         editable="true"
                         width="85"
                         change="taToolbar.setPageSize(taContainer, event)"
                     />

       

       

      I also have a variable:

       

      private var taScale:Number = 1;


      What I want to do is take the string value, divide by 100 and update taScale to the output. How can I do this in the change event of the above combo box ?