Sunday, April 4, 2010

update size of tileList after changing...

Hi everyone.



I try to update the size of my tiles in the tilelist after
changing itemrenderer.

I麓ve set variableRowHeight to true and I麓ve two
Itemrenderers extending Canvas.

I change the itemRenderer per script:

this.myTileList.itemRenderer = new
ClassFactory(src.display.itemRenderer.ImageView);

myTileList.invalidateSize();

myTileList.invalidateList();

and

this.myTileList.itemRenderer = new
ClassFactory(src.display.itemRenderer.TextView);

myTileList.invalidateSize();

myTileList.invalidateList();



But the size of the tiles does not change.

The size of the Itemrenderer is set in the root tag of the
itemrenderer:

%26lt;mx:Canvas xmlns:mx=''
http://www.adobe.com/2006/mxml''
width=''80'' height=''95'' %26gt;



plaese help me!

This is really driving me crasy!

thanks muzi

  • girl lipstick
  • No comments:

    Post a Comment