Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash - ActionScript

proper way of preloading flash 8 / as2

 
Jump to:  
 
stephan.k
PostPosted: Wed Sep 03, 2008 11:32 pm    Post subject: proper way of preloading flash 8 / as2
       
Dear Forum

I am using Actionscript 2 for Flash player 8 in the CS3 environment. I am
trying to create a super lightweight swf file (preloader.swf) which has a
little scripted animation in it. It is under 10k!. Once the animation starts
it loads in the main application (mainApp.swf) into an empty movieClip on the
stage: _level0.stageMC. the mainApp.swf file contains the library with all the
graphical assets (~400k) for all the UIs and animations. Also all the external
..as code is instantiated in the mainApp.swf file on the first frame.

Now the problem: I can't load in library items from the library of the
mainApp through the preloader.swf file

How is this done usually? I'm trying to avoid the long blank screen of the
first frame preloading of all code and library (export on first frame) items...

Any insight appreciated. Thank you.

stephank
 

 
Manno Bult
PostPosted: Thu Sep 04, 2008 8:14 am    Post subject: Re: proper way of preloading flash 8 / as2
       
Hi Stephan,

Option one (for the mian app)
check out the export in first frame option (actually: turn it off) for library
item set to export for actionscript. If you turn off that export option you
need to place those items on the stage in say frame two so you have the first
frame to build a progressbar.

Option two (for the preloader swf)
take a look at the MovieclipLoader class.
It allows to load external movies and graphics and has the possibility to
relatively easy monitor the progress of the loading.
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

pas ciążowy bet-at-home konta studenckie wynajem samochodów C