Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: [flasher] Preload a Loadmovie
From: Paul Willoughby
Date: Fri, 09 Feb 2001 14:43:14 -0000

If you load the movie into an empty movie clip you can use
myMovieClip._framesLoaded and myMovieClip._totalFrames to preload it. You'd
need a 2 frame loop to preload it, or you could put it in an onClipEvent in
the object actions of an empty MC, something like (pseudo code):

OnClipEvent(enterFrame){
If(myMovieClip._framesloaded < myMovieClip._totalFrames){
//the movie is still loading
}else{
//the movie is loaded
}

or

Frame 1
Load the movie

Frame 2: label 'loop'

Frame 3
If(myMovieClip._framesloaded < myMovieClip._totalFrames){
gotoAndPlay("loop")
}else{
play
}

There are other ways you could play with the syntax to suit your purpose,
but the functions and properties are there to let you do this. I'm not sure
if this works with levels i.e. level1._framesLoaded etc. Anybody?

Another approach would be to have a preloader built into the movie you're
loading.

paul


> -----Original Message-----
> From: Richard Lettau [richardatfotoinfo [dot] com (mailto:richardatfotoinfo [dot] com)]
> Sent: 09 February 2001 07:52
> To: flasher from chinwag
> Subject: [flasher] Preload a Loadmovie
>
>
> I would like to preload a loadmovie. Is that possible? Or I
> assume it is
> possible to test for framesloaded of a loadmovie...
>
> Thanks for the help



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]