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:
- 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.
- buttontext: enter the text you want your button to have.
- name of movie: the name of the movie or jpg when you use the button option.
- go frame: option true or false to go to another frame after loading.
- go frame..(name): enter the framename.
- alpha value: enter a value to see the loaded pic/movie or leave 0. Can be called on the stage, see below.
- movie x position: x position on stage of movie.
- movie y position: y position on stage of movie.
- loader disappear: if loader should disappear after loading set to true.
- number of jpg/swf: enter the number jpg/swf to load (from 1 -10).
- 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.
|