0 Replies Latest reply on Oct 22, 2010 9:25 AM by Edembg

    TleLayout problem

    Edembg Level 1



      I'm new in Flex. I need to amke dynamic component based on s.List with TileLayout. I try this:


      import spark.layouts.TileLayout;

      public class ETileList extends List
      private var _layout:TileLayout; // 1046: Type was not found or was not a compile-time constant: TileLayout.

        public function ETileList()
         this._layout = new TileLayout(); // 1067: Implicit coercion of a value of type String to an unrelated type Class.

         super.layout = this._layout;
         this.addEventListener(FlexEvent.CREATION_COMPLETE, init);


      Commets are compiler errors which i have. I can't understand why the type is not found.


      Do someone can help me?


      Thanks in advance