(This looks like a bug... but the buglist seems to be out of reach)

Problem - I get a runtime error when referencing 
mx.core.Application.application in a Loader class.

I've got a custom preloader based on a Ted Patrick example.
The problem occurs in WelcomeScreen.as

WelcomeScreen.as
----------------
public class WelcomeScreen extends Loader
{
  public function WelcomeScreen()
  {
    trace(mx.core.Application.application);     
  }
}
the above trace should be null not a RTE. 

eg.
<mx:Application preloader="CustomPreloader">

CustomPreloader.as
------------------
public class CustomPreloader extends DownloadProgressBar
{
  public var wcs:WelcomeScreen;
    
  public function CustomPreloader() 
  {
    super(); 
    wcs = new WelcomeScreen();
    this.addChild(wcs)                   
  }
}



Reply via email to