The last part is what you change (The "if" Statement).
Now if you have external movies you are waiting on to load before playing your main movie then this code will need to be modified to suit your needs but works for most movies. Sample attached.
Also remember, you can NOT see the "Preloader" while it is on your computer, it must be uploaded to your server.
Hope this helps.
Download Example