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

    <mx:Tile> Bug with left property

      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:
      public var myTileLeftValue:Number = 100;
      <mx:Tile id="myTile" width="100%" height="100%" left="{myTileLeftValue}" />
      <mx:SetProperty name="myTileLeftValue" value="300" />

      Hope this helps!

      BTW, I love Flex 2 - great work Adobe!