3 Replies Latest reply on Apr 1, 2011 7:19 AM by Hadzel

    Dynamic set position and border

    Hadzel

      Hello,

       

      I created a panel, inside it a dynamic 'list' with a TileLayout... but the 'list' appears with border and in left top corner of the screen... I want to set the border invisible and set the position somewhere else.

      Here is the code: 
      ------------------------------------------------------------------------------------------ -----------------------------------------------------------------------

      var collection:ArrayCollection = new ArrayCollection();

      collection.addItem(new AddNewUserIcon);

      collection.addItem(new AddNewUserIcon);

      collection.addItem(new AddNewUserIcon);

       

       

      var tl:List = new List;

       

       

       

       

       

      tl.dataProvider = collection;

      tl.itemRenderer = ('controls.menu.IconsClass.RendererAddNewUserIcon' as IFactory) ;

      tl.labelField = "iconLabel";

      tl.dragEnabled = true;

      tl.dragMoveEnabled = true;

      var tileL:TileLayout = new TileLayout();

       

       

       

       

      tileL.orientation = "rows";

      tileL.horizontalGap = 40;

       

      tl.layout = tileL;

       

       

       

      parentDocument.pMainPanel.addElement(tl);

      ------------------------------------------------------------------------------------------ -----------------------------------------------------------------------

      I tried this:


      ------------------------------------------------------

      tl.x = 100;

      tl.y = 400;

      tl.setStyle("borderStyle", "none");

      ------------------------------------------------------

       

      But it doesn't work.

      Thanks in advance. =D