View Full Version : How to stop preloader.
atomik
11-25-2003, 04:39 PM
Greetings,
I searched for the answer and I cant seem to find it.
I'm sure this has been asked before, but I'm using the preloader form the tut here, it works great, but it plays the whole preloader sequence everytime even after its been loaded. Is there a way to prevent this?
Thanks for the help
Doug
boyzdynasty
11-25-2003, 04:44 PM
what do you mean it plays everytime after it has been loaded?
Isn't suppose to :confused:
Probably need to explain more.
atomik
11-25-2003, 06:04 PM
Thanks,
I agree it is supposed to but let me explain what a mean a little better.
Lets say I have an intro movie to my site.
While the movie is loading the preloader animation plays.
Then once the swf is loaded into the cache movie plays. Normal right.
Now lets say the user wants to view the intro again.
Before the intro actually starts, the preloader animation plays even though the swf is already in the cache. What I'm trying to do is prevent the preloader from playing everytime after the swf has already been loaded.
I hope that makes it clear.
boyzdynasty
11-25-2003, 06:30 PM
I think I understand.
The Movieclip...does it have a stop() in the first frame?
when intro is to be played...
show the animation by MC_intro.play();
atomik
11-25-2003, 06:38 PM
Thanks,
Yes it does have a stop action in frame 1.
I m not sure I understand the second part though?
Could you explain a little please?
boyzdynasty
11-25-2003, 08:05 PM
ok.
In that movie clip...
When it reaches the end of frame do you tell it to loop back to play frame 2 ?
If the above question is answered "yes"
I think ... the loading Movie clip keeps playing in the background after the WHOLE movie finish loading.
So what you need to do is....
When Loading the Movie is complete -> MC_intro.gotoAndStop(1);
When "replay intro" is hit/release, set up what ever you need to set up...when done, execute this code: MC_intro.play();
Colin Campbell
11-25-2003, 08:10 PM
lets say you have a viewIntro button, and the into's located in the main timeline, and this is presuming the preloader code only lasts until frame 3, or 2, or whatever it is.
_root.viewIntro.onPress () {
gotoAndPlay (2); //or 3, or whatever
}
This works the same for if the intro's in a movieclip, just add the name onto the gotoAndPlay. I'm presuming you'd want a view intro button also...
Colin
boyzdynasty
11-25-2003, 08:37 PM
Colin... you are everywhere :o
Colin Campbell
11-25-2003, 08:39 PM
ever use the new posts function? Very handy indeed. You get to see all the new posts, across every as.org forum. Top right hand of the main page.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.