Integrating preloader into Flash Video Player

Hey all,

I’ve got some code here that allows the user to select and play one of 3 possible videos. if it’s the first time they are watching a video, they have to watch an advertisement first, after which their chosen video gets played and they can select any others. the videos need to be preloaded because they are all kinda big (approx. 20mb each - not something I can control).

I’m using some preloader code that Dumsdei provided in this thread:
http://www.kirupa.com/forum/showthread.php?t=222301

The rest is a combination of my own and that from the Macromedia help files.

The problem: the movies are playing when you click their respective buttons, and the program plays the advertisement if it’s the first video you’ve selected. The only thing I can’t integrate is the preloading functionality. I hope someone can take a look at this and help me with the preloading!

Thanks in advance for those who help me!

-kendo