Preloading.....

What tricks do I make to create a flash movie that first it show the loading image while it keeps on downloading the whole file that will be used by the page. Coz when you upload a movie and played in the browser, the playing sequence is not as smooth as it plays when you compile it. It keeps on pausing until the whole file used in the movie is fully downloaded from the server. Also, if it is already done and when you click the refresh or back button it will not show the preloading image again......

Comments

: What tricks do I make to create a flash movie that first it show the loading image while it keeps on downloading the whole file that will be used by the page. Coz when you upload a movie and played in the browser, the playing sequence is not as smooth as it plays when you compile it. It keeps on pausing until the whole file used in the movie is fully downloaded from the server. Also, if it is already done and when you click the refresh or back button it will not show the preloading image again......:

What you need to do is make the second frame in your first scene check if:

[b]_framesloaded >= _totalframes [/b]

if it is then the movie is loaded otherwise, send it back to frame 1 where it can play and check again.

You can work out the percentage with simple math, and display it in a text field or resize an image to look like a progress bar.

Provided the browser has not cleared its cache, the movie will not need to go through the whole loading process again.

: : What tricks do I make to create a flash movie that first it show the loading image while it keeps on downloading the whole file that will be used by the page. Coz when you upload a movie and played in the browser, the playing sequence is not as smooth as it plays when you compile it. It keeps on pausing until the whole file used in the movie is fully downloaded from the server. Also, if it is already done and when you click the refresh or back button it will not show the preloading image again......: : : : What you need to do is make the second frame in your first scene check if: : : [b]_framesloaded >= _totalframes [/b]: : if it is then the movie is loaded otherwise, send it back to frame 1 where it can play and check again. : : You can work out the percentage with simple math, and display it in a text field or resize an image to look like a progress bar. : : Provided the browser has not cleared its cache, the movie will not need to go through the whole loading process again.: : Regards Jomac. : :

: : : What tricks do I make to create a flash movie that first it show the loading image while it keeps on downloading the whole file that will be used by the page. Coz when you upload a movie and played in the browser, the playing sequence is not as smooth as it plays when you compile it. It keeps on pausing until the whole file used in the movie is fully downloaded from the server. Also, if it is already done and when you click the refresh or back button it will not show the preloading image again......: : : : : : : What you need to do is make the second frame in your first scene check if: : : : : [b]_framesloaded >= _totalframes [/b]: : : : if it is then the movie is loaded otherwise, send it back to frame 1 where it can play and check again. : : : : You can work out the percentage with simple math, and display it in a text field or resize an image to look like a progress bar. : : : : Provided the browser has not cleared its cache, the movie will not need to go through the whole loading process again.: : : : Regards Jomac. : : : : : :