0 Replies Latest reply on May 7, 2008 9:24 PM by mohbasheer

    Problem in loading Flash Components

    mohbasheer
      Hai,
      I have a problem in loading flash components using actionscript.
      Example( List Components).

      I can load List components dynamically using frame script like.

      import mx.controls.List;

      var myList:List = createObject("List","nList",10);


      But I can't load dynamically from inside a class file like.

      import mx.controls.List;

      class testClass{

      private var myList;

      function testClass( ){

      myList = createObject( "List","nList",10 );

      }

      }

      But it is not working i don't know why ?

      If any one knows Please reply me.

      Thank you.