# If frames loaded

**URL:** <https://forum.kirupa.com/t/if-frames-loaded/6012>\
**Category:** Uncategorized\
**Created:** [September 27, 2002, 3:00pm UTC](https://forum.kirupa.com/t/if-frames-loaded/6012 "2002-09-27T15:00:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yolande](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@Yolande](https://forum.kirupa.com/u/Yolande)\
**Post date:** [September 27, 2002, 3:00pm UTC](https://forum.kirupa.com/t/if-frames-loaded/6012/1 "2002-09-27T15:00:34Z")

</div>

Does anyone know howcome this code is working in “control \> test movie” and in the “preview in browser” but it is not working anymore when it is published it to the web ?

The code:  
if (\_framesloaded\>=\_totalframes) {  
gotoAndPlay(“leclick”,1);  
} else {  
gotoAndPlay(“loading”,1);  
}

See tutorial:  
[http://www.webthang.co.uk/tutorials/gor\_fmx1/mxpl3.htm](http://www.webthang.co.uk/tutorials/gor_fmx1/mxpl3.htm)

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2002, 7:04pm UTC](https://forum.kirupa.com/t/if-frames-loaded/6012/2 "2002-09-27T19:04:47Z")

</div>

use this preloader …just put it in your 1st scene…it will show you what your doing wrong with your also…
