Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Movie is not loading prior to playing.

Status
Not open for further replies.

hoja

Technical User
Dec 3, 2003
102
US
Hi, I have the following line of code on my Load Scene :

ifFrameLoaded ("Scene 4", 75) {
}

But it's not working...it is not loading the whole movie before it starts playing. The movie consist of 4 scenes, the first is the Load and then another 3 scenes (actual movie) what would be the best way to load the movie before it starts playing, or what am I doing wrong. Thank you
 
Well first, although it might still work, the ifFrameLoaded action is deprecated, and you should really be using _framesLoaded & _totalframes or getBytesLoaded() & getBytesTotal().

That said, post the full code of your preloader... Or is that it?

If so, that obviously won't work. A preloader is basically a loop that checks if a condition is met (the movie has in fact fully preloaded), and only then has the movie play.

So your preloader should at least be 2 frames...

Frame 1:
ifFrameLoaded ("Scene 4", 75) {
_root.gotoAndPlay("Scene 2",1);
// would have the movie play...
}

Frame 2:
_root.gotoAndPlay(1);
//Loop back to first frame, until the condition is met.

 
This really helps, thank you....yeah your right ...nowonder it didn't work. !!! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top