Photoshop Tutorials, Flash Tutorials, 3Ds Studio Max Tutorials, Web Design Tutorials

Home  |  Submit Tutorial  |  Top Sites  |  Free Templates (NEW)  |  Website templates  |  Privacy Policy  |  Link Exchange  |  Contact Us

Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!

Welcome To ProDesignHost.com Flash Tutorials Area - Preloading Main Movie With Levels all Together

Preloading main movie with levels all togetherI have struggled so hard to find a cure for this. After trial and errors, thank God, I found a way to preload the main movie with levels all at the same. Some websites preload levels one at a time and it will get annoying for some users to wait every time for a different movie to load. If you follow this tutorial carefully, you should have no problem.

1:

Put a stop(); action in the first Keyframe of the movie(s) being loaded and nothing else. No movie clip, no graphic, no music or picture but just an empty Keyframe and a stop(); action. Then you load the movies you want. You can load all the movies at once or just a few.

2:

Here is the code to preload the movie(s) Put this code on your preloader:

onClipEvent
// Load Three movies loadMovieNum ("Music.swf", 1);
(load) {
   loadMovieNum ("Music.swf", 2); loadMovieNum ("Music.swf", 3);
}
// We devide it by 1000 to get rid of the
onClipEvent (enterFrame) {
   decimal numbers Total =
Math.floor(_level1.getBytesTotal()/1000) + (_level2.getBytesTotal()/1000) + (_level3.getBytesTotal()/1000) + (_root.getBytesTotal()/1000);
   Loaded =
Math.floor(_level1.getBytesLoaded()/1000) + (_level2.getBytesLoaded()/1000) + (_level3.getBytesLoaded()/1000) + (_root.getBytesLoaded()/1000);
Percent = Math.floor((Loaded/Total)*100);
_root.PercentDisplayTwo = int(Loaded)+" KB "+" | "+(Total)+" KB"+" | "+(Percent)+" %";
// Have a frame lable inside the loaded movie so you can park it
// and call it when ever you want

if (Percent == 100) {
   _level1.gotoAndStop("One"); _level2.gotoAndStop("One");
   _level3.gotoAndStop("One"); _root.play(); }
}
Author: Warrior
Advertisements

Premium Partners

  Free Website Templates - Flash templates, Affordable Website Design, Website Templates, Website Redesign, Custom Website Design, Web Design Tutorials, Flash Tutorials, Promotion Tutorials - that is what we do. Metamorphosis Design Studio offers quality, free and low cost web site templates for your business and personal life, we also offer affordable web design and site re-design.
  Vertex Website Tempales - It saves tones of time and money to use pre-made web designs to build your web site. You need a web site but you don't want to pay thousands dollars to professional web design companies? Our web templates is just for you! They are designed to be easilly edited by your favorite html editor, like MS FrontPage
  Website Design Tutorials - Web site design is an area that simply takes experience to perfect. Get started with these tutorials covering everything from page layout to content tips. At Webdesigntutorials.net you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced Adobe Photoshop, Macromedia Flash MX and 3D Studio Max software.
Free website templates and paid web templates are great tools to make your websites look perfect! You will save time and money with our flash templates and free website templates Our visitors are satisfied with the quality of our free and paid website templates! Please visit our free website templates and paid website templates sections. We offer free web templates, free web layouts, free web page templates and other stuff for free download. All templates come with the html and external css file so you may easily edit HTML with your favorite HTML editor. Feel free to download our free web templates for your personal websites.

Terms of use depend upon the website template vendor.

Home  |  Submit Tutorial  |  Top Sites  |  Free Templates  |  Website templates  |  Privacy Policy  |  Contact Us

All Right Reserved by ProDesignHost.com