1 Reply Latest reply on Nov 20, 2007 6:58 PM by peterent


    FlexPrashant Level 1
      can we change height, width ,x,y position of a image with NumericStepper's value at runtime in flex
      if yes please help me how ?

      Thanks in advance
        • 1. Re: NumericStepper
          peterent Level 2
          Here's how to change the x position of an Image (assuming it is in a Container with absolute positioning) using a NumericStepper:

          <mx:NumericStepper id="xpos" ... />
          <mx:Image x="{xpos.value}" ... />

          The x property of the Image is data-bound to the value property of the NumericStepper xpos. Whenever xpos's value changes it will be used to change the x property of the Image. Do the same thing for the other properties in the Image.