1 Reply Latest reply on May 29, 2008 5:16 AM by laurent_pinson

    Image resize

    treesg
      Hi
      In my code image is inside tilelist ....tilelist is in HDivedbox and VDividebox...when I want to increase or decrease
      the tilelist , image should resize accordingly....

      Plz help me
      Thanks
        • 1. Re: Image resize
          laurent_pinson Level 1
          When you resize your TileList, an mx.events.ResizeEvent.RESIZE event is dispatched. Catch it and resize your image with it ;)

          example :

          myTileList.addEventListener(ResizeEvent.RESIZE,onTileListResize);

          private function onTileResize(e:Event):void{
          myImage.width = myTileList.width -10;
          myImage.heigh = myTileList.height -10;
          }