The code is not very long or complex. What I want to do it to make a movie clip load right at the beginning of this. Currently I can only preload movieclips by clicking a button ( onPress or onRelease ).
I added gotoAndPlay frame 2 ( killed the transparent button on frame 2 ) to avoid reloading the movieclip endlessly.
This solution works ok… the problem is that the Flash animation will be within a HTML page, so it’s not 100% sure that the user will rollover where I want them to.
Is there another solution? Like … replace the onRollover part with :
[COLOR=“red”]
“When the movie is on frame 1, startPreload. Once this done, go on frame 2 so it will not load again”[/COLOR]
the probelm is that the “startPreload()” function is not avalaible until it is declared, why dont you just take out the “stop()”? That would make it automatically advance to the second fram, where you could have your “startPreload(“load/anymovieclip.swf”)”.
at first, there was no stop. I added it because of my “button solution”.
The simple line:
startPreload(“load/anymovieclip.swf”)
didnt worked ok… the loaded clip was freezing.
So the problem was in the preloader, which had a stop.
If you look in the senocular tutorial, you’ll see what I mean.
Now on frame 2 of the preloader, I added a PLAY(); …
And everything works!
Thanks