Preloader Component version 1.1.0

Download file.

The SWF

INSTRUCTIONS

The Preloader component can be used as a regular Preloader or as a Preloader for movies with many components. Special parameter is that when loading is done, it can be determined to which frame the timeline goes. Going to a frame within scene 1 or going to a frame in a different scene just enetr a framename like scene3frame5 for example. The loader component has a loaderbar with 100 frames, which allows to add your own animations.

PARAMETERS:

  • level0true or false will set the loader as a preloader for the _root or when false as a movieloader.
  • go frame..(name): enter the framename.
  • comp movie: enter the main movie with components to load.
  • INSTRUCTIONS for use as a Component Preloader:
    //create a base movie with the Preloader,
    //set level0 to "false",
    //enter name of your main movie, stage sizes of both movies should be the same.

Movieloader Component version 1.4.0

Download file.

This replaces the former version of the component before 5-21-2003. The Movieloader component has the following functions: Loading an external movie or preloading jpgs and swfs into cache, which however, can also be called by button functions. See a live version here.

INSTRUCTIONS:

You can change some animations as you like by selecting movieclipsand the button in the assets folder. You can add an animation, since there are 100 frames for the loaderbar. You can also change the button.

PARAMETERS:

  1. button (true): if you select button you can use a button to load one movie. If set "false", from 1-10 movies/jpgs can be preloaded. Loading is done in separate movieclips which can be called and alpha value set to 100.
  2. buttontext: enter the text you want your button to have.
  3. name of movie: the name of the movie or jpg when you use the button option.
  4. go frame: option true or false to go to another frame after loading.
  5. go frame..(name): enter the framename.
  6. alpha value: enter a value to see the loaded pic/movie or leave 0. Can be called on the stage, see below.
  7. movie x position: x position on stage of movie.
  8. movie y position: y position on stage of movie.
  9. loader disappear: if loader should disappear after loading set to true.
  10. number of jpg/swf: enter the number jpg/swf to load (from 1 -10).
  11. 1. jpg/swf: enter the names now. Up to 10 jpg and/or swf can be preloaded.

How to call preloaded swfs/jpg by using buttons for example:

							pressCount = 0;

							button1.onPress = function(){
								myClip._alpha = 0;
								pressCount++;
								_root.clip1._alpha = 100;
								if(pressCount == 1){
									myClip=_root.clip1;
									pressCount = 0;
								}
							}
							
							button2.onPress = function(){
								myClip._alpha = 0;//make the previous movie invisible
								pressCount++;
								_root.clip2._alpha = 100;//make the new movie visible
								_root.clip2.gotoAndPlay("begin");//to manipulate the loaded movie
								if(pressCount == 1){
									myClip = _root.clip2;//fill the variable myClip
									pressCount = 0;//set pressCount to 0.
								}
							}

Both components are designed not to interfere each other in one movie. If there are problems please inform me.