9 Replies Latest reply on Feb 28, 2009 3:29 PM by marcink

    addChild() question

    marcink Level 1

      in a flex application i have this code:

      private function init() : void
      var p : AppPreloader = new AppPreloader();

      AppPreloader is a custom as class that extends DownloadProgressBar.

      but when i execute the code, i get an error saying the type can not be changed form AppPreloader to IUIComponent...

      anyone has a idea why i can not add AppPreloader to the displaylist?