1 Reply Latest reply on Oct 11, 2009 9:15 PM by Madhav Subedi

    <mx:Tile> Bug with left property

    BillBrown
      I am using states to reconfigure the layout of my application which includes a Tile component:
      <mx:Tile id="myTile" width="100%" height="100%" left="100" />

      I want to update the "left" property of the Tile component upon changing states, so I use:
      <mx:SetProperty target="{myTile}" name="left" value="300" />

      Unfortunately I am getting an error upon changing states. The error suggests that the "left" property of the Tile component does not exist.

      I created a work-a-round by using a seperate variable to hold the "left" value, then updating the variable's value:
      [Bindable]
      public var myTileLeftValue:Number = 100;
      and...
      <mx:Tile id="myTile" width="100%" height="100%" left="{myTileLeftValue}" />
      and...
      <mx:SetProperty name="myTileLeftValue" value="300" />

      Hope this helps!

      BTW, I love Flex 2 - great work Adobe!