Skip navigation
Currently Being Moderated

TypeError: Error #1007: Instantiation attempted on a non-constructor. on port to Flex 4

Apr 8, 2010 9:03 AM

I have been porting an app from Flex 3.4.x to 4.0.. I have successfully ported the app and its libraries to flex 4.0 (everything build successfully, all the CSS has the new Namespace stuff added, and warnings are down to the same stuff pre-port).  I've also removed ALL the references to http://www.adobe.com/2006/flex/mx in any of my mxml files... In short I "think" I have moved everything over to the new mx and fx namespaces. But I still get the following error (which never happend in 3.4 or 3.5 with this same app) when I try to run my flex app.

TypeError: Error #1007: Instantiation attempted on a non-constructor. at mx.preloaders::Preloader/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:253] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1925] at mx.managers::SystemManager/initHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2419]

At this point I am completely stumped.. anyone have any ideas?

Thanks

Josh

 
Replies
  • Currently Being Moderated
    Apr 8, 2010 1:15 PM   in reply to joshhandel

    It means it couldn't find the class for the downloadprogressbar.  Did you

    specify preloader="something" in the app?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 8, 2010 5:21 PM   in reply to joshhandel

    It is a bit confusing, but the Application's preloader attribute defines a

    IPreloaderDisplay which becomes the displayClassName for the Preloader

    class.

     

    You may see additional decompressions as RSLs are loaded.  We don't get

    enough data to display the RSL names.

     

    The default IPreloaderDisplay is one of the mx.preloader classes like

    DownloadProgressBar or SparkDownloadProgressBar.  You can run a link-report

    to see if they are somehow not linked into the SWF.  You can also use -keep

    and see what is in the ***SystemManager-generated.as file.  There should be

    a reference to the IPreloaderDisplay in that generated file.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 9, 2010 1:04 PM   in reply to joshhandel

    If you keep stepping through the preloader code it will attempt to load RSLs

    and as they load you will see the output in the console about decompressed

    sizes.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points