Senocular Tutorial question - Preloading + Transition

Hello,

To make it easy, go on http://www.senocular.com/flash/tutorials/preloading/

Take a look at Example 6 and dowload the source file : load_images_page_trans.zip
http://www.senocular.com/flash/tutorials/preloading/examples/load_images_page_trans.zip

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 also tried to put on frame 1:

[COLOR=“Red”]startPreload(“load/anymovieclip.swf”);[/COLOR]

And also:
[COLOR=“Red”]_root.onEnterFrame.startPreload(“load/anymovieclip.swf”);[/COLOR]

How can I preload a clip on start?

Thanks!

( the senocular forum is not so active, why I’m posting here )

I have found a way to solve the problem temporary:

I have created a transparent fullscreen button, and added the same action but with a onRollOver instead of onPress:

[COLOR=“Red”]
stop();

mybutton.onRollOver = function() {
startPreload(“load/anymovieclip.swf”);
_root.gotoAndPlay(2);
};[/COLOR]

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”)”.

Thank you,

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