1 Reply Latest reply on Dec 13, 2010 10:50 AM by Flex harUI

    How to create application based on as file

    Lior Bruder

      Hi All,


      I want to create an application base on as that extends "application" class:


          import spark.components.Application;


          public class myTestApp extends Application
              public function myTestApp()



      When running this example i get errors:


      TypeError: Error #1007: Instantiation attempted on a non-constructor.
          at mx.preloaders::Preloader/initialize()[E:\dev\hero_private\frameworks\projects\framework\s rc\mx\preloaders\Preloader.as:253]
          at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\hero_private\frameworks\pr ojects\framework\src\mx\managers\SystemManager.as:1958]
          at mx.managers::SystemManager/initHandler()[E:\dev\hero_private\frameworks\projects\framewor k\src\mx\managers\SystemManager.as:2458]


      any idea how to do it?