James,

        If you don't want the loader to go away after the application's
creationComplete event, override the creationComplete function in your
application and have it do nothing. 

Then call "preloadObj.pBar.removeMovieClip();" when you want to get rid of
the preloader. 

Note that if you override the creationComplete function, you will will break
progressive layout, which is used when you set the creationPolicy of your
containers to "queued". 

Preloading can be thought of occurring in two phases, the download phase and
the application loading phase. When the app is in the cache, it skips the
download phase. Your custom preloader should be subclassing
DownloadProgressBar. When the application loading phase starts, your custom
progress bar will have its "indeterminate" property set to true. If you want
to have more control over the appearance of your preloader in the
application loading phase, override the set indeterminate function like
this:

function set indeterminate(val:Boolean):Void
{
        // Do my animation here
}

Note that during this time, the type of animation you can do is pretty
limited. The Player is spending most of its time loading up the application
and has few cycles to dedicate to updating the stage.  

Jason

-----Original Message-----
From: James Ward [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 2:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Preloader Questions


Hi All.
I have been messing with custom preloader stuff and a few questions have
come up which I can't seem to find answers to, so I am turning to the
guru's.  Basically I want to control what my preloader looks like (this
part is pretty straight forward), but I also want this preloader to stay
on the screen for a little while beyond my app's creationComplete.  I
want it to stay up until I generate another event.  The next thing is
that I would like to use my custom preloader when the browser loads the
swf from cache.  I can't seem to override the default preloader in this
instance.  Only on the first, non-cached pull of the swf.  Is this stuff
possible?  Thanks!

-James




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to