0 Replies Latest reply on Jan 20, 2010 12:20 AM by venkateshk

    drawing of 10-25 again 25-55 position

    venkateshk

      Please tell me

      how to do the following scenario

      <mx:Canvas id="b1" x="10" y="10" height="40" width="300"/>

      <mx:HBox x="40" y="450">
              <mx:Label text="Enter Units :" fontWeight="bold" fontSize="15"/>
              <mx:TextInput id="tiUnits" width="50" maxChars="1"/>
              <mx:Button id="btn" label="OK" click="btnCall(tiUnits.text);"/>
          </mx:HBox>

      if i enter 15 as units then i want to fill the 15 pixels area of canvas with color i.e. canvas x is 10 so i want to cover 10+15 area

      its already at 25th positionmeans upto 25th position we covered with color

      again i enter 30 then i want to cover from 25th i.e 25+30(25 to 55)

      in this way i want to cover the canvas with my values