5 Replies Latest reply on May 11, 2011 9:49 AM by Sach12345

    Spark Layout Question




      I am experimenting with Spark Layouts and this what I have


      <s:List id="list" height="123" verticalCenter="0" dataProvider="{itemList}"
                       itemRenderer="MyRenderer" width="350" horizontalCenter="0" depth="100">
                  <layouts:CircularLayout id="myLayout" />


      In updateDisplayList of CircularLayout.as


      var layoutTarget:DataGroup = target as DataGroup;
      for(var i:int = 0; i < target.numElements; i++)
           var element:IVisualElement = layoutTarget.getElementAt(i) as IVisualElement;



      element is null.


      I am using Flex 4.5 SDK


      Any ideas why this could happen?