# Preloaders

**URL:** <https://forum.kirupa.com/t/preloaders/9265>\
**Category:** Uncategorized\
**Created:** [December 8, 2002, 6:22pm UTC](https://forum.kirupa.com/t/preloaders/9265 "2002-12-08T18:22:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![subjctskate](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@subjctskate](https://forum.kirupa.com/u/subjctskate)\
**Post date:** [December 8, 2002, 6:22pm UTC](https://forum.kirupa.com/t/preloaders/9265/1 "2002-12-08T18:22:53Z")

</div>

:q: i cannot figure out how to use preloaders. in my movie i have 103 frames, could you fill in the blanks of this code and tell me what is wrong? thank you

if (\_framesloaded\>=\_totalframes) {  
gotoAndPlay (2);  
} else {  
gotoAndPlay (1);  
}

---

<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:** [December 8, 2002, 6:31pm UTC](https://forum.kirupa.com/t/preloaders/9265/2 "2002-12-08T18:31:55Z")

</div>

there are no blanks! That code should be put into frame 2.  
Frame 1 should be empty, the code should be in frame 2 and the animation and stuff should be in frame 3+  
oh… didn’t notice that! you have to change the “2” to “3”  
gotoAndPlay(2); change to gotoAndPlay(3);

Syko
