I have a custom preloader problem too, and I'm really stuck. My preloader class is getting an xml used all around the application, so that I assign the xml to a Variable in the application file (Application.application).
Hope somebody has information about that. --- In [email protected], "bhaq1972" <[EMAIL PROTECTED]> wrote: > > forgot to add the rte trace > > TypeError: Error #1009: Cannot access a property or method of a null > object reference. > at global$init()[E:\dev\flex_3_beta2 > \sdk\frameworks\projects\framework\src\mx\core\Application.as:210] > at preloadPNG::WelcomeScreen()[C:\Documents and > Settings\bodrul haque.SYNLOG\My Documents\Flex Builder 3\myTest3 > \src\preloadPNG\WelcomeScreen.as:24] > at preloadPNG::CustomPreloader()[C:\Documents and > Settings\bodrul haque.SYNLOG\My Documents\Flex Builder 3\myTest3 > \src\preloadPNG\CustomPreloader.as:21] > at mx.preloaders::Preloader/initialize()[E:\dev\flex_3_beta2 > \sdk\frameworks\projects\framework\src\mx\preloaders\Preloader.as:203 > ] > at > mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal > ::initialize()[E:\dev\flex_3_beta2 > \sdk\frameworks\projects\framework\src\mx\managers\SystemManager.as:1 > 505] > at mx.managers::SystemManager/initHandler() > [E:\dev\flex_3_beta2 > \sdk\frameworks\projects\framework\src\mx\managers\SystemManager.as:2 > 206] > > > > > > --- In [email protected], "bhaq1972" <mbhaque@> wrote: > > > > (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) > > } > > } > > >

