# Movie clip slideshow in loader

**URL:** https://forum.kirupa.com/t/movie-clip-slideshow-in-loader/192551
**Category:** flash
**Created:** [June 29, 2006, 11:09am UTC](https://forum.kirupa.com/t/movie-clip-slideshow-in-loader/192551 "2006-06-29T11:09:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jay\_church](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@jay\_church](https://forum.kirupa.com/u/jay_church)
#### Post date: [June 29, 2006, 11:09am UTC](https://forum.kirupa.com/t/movie-clip-slideshow-in-loader/192551/1 "2006-06-29T11:09:54Z")

</div>

I am developing a flash website.

I have a slideshow movie clip playing whilst the site loads, the problem is the site jumps to the next scene before the slideshow is finished. Is there any way I can get the code to check if the slideshow is finished before jumping to the next scene?  
(If it has then go to next scene, if it is still playing wait until its finished.)

The code looks like this at the moment:

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndPlay(4);  
}
