|
This shows you a different kind of preloader for movies with components or other objects exported in frame 1 (linkage). At the same time you learn how to create a local connection to let two movies talk to each other. What this type of preloader, however, cannot do is count the loading. So we have to put something in to entertain the user or show the loading happening. The principal idea is to create two movies, one which is the receiving movie and shows the loading and one which is the sending movie and will send a variable to indicate loading is finished. The final productSetting up the moviesParent movieWe create 2 movies: our parent movie and the lodd-indicating movie. Our parent movie will be the sender and we want to know when it is loaded. So the actionscript in the sending movie will be something like this.//we first create a local connection object Receiving movieNow we turn to the receiving movie. We create a movie with 2 frames and stop() in each frame. In the first frame we put our entertaining animation and in the second frame we put a welcome message for example as I did here. This will be the script in the first frame.stop(); //we first create a local connection object And this is basically all we need to do. We can reuse the receiving movie and the scripts allover again. |