2 Replies Latest reply on Sep 15, 2010 11:05 AM by zeldar

    TypeError: Error #1007: Instantiation attempted on a non-constructor.

    zeldar

      So I am trying out Flex 4 and started so by creating a basic class that extends the spark.components.Application class.

       

       

      package

      {

          import spark.components.Application; 

       

          public class SimpleApp extends Application

          {

       

              public function SimpleApp():void

              {

                  super();

              }

          }

      }

       

       

      It compiles time but at runtime I am getting this error:

       

      TypeError: Error #1007: Instantiation attempted on a non-constructor.
      at mx.preloaders::Preloader/initialize()
      at mx.managers::SystemManager/initHandler()

       

      Anyone have any insight into this? I found this http://forums.adobe.com/message/2724794 but it doesn't really seem to be a whole lot of help in my case.