# Preloader goto problem

**URL:** <https://forum.kirupa.com/t/preloader-goto-problem/149477>\
**Category:** Uncategorized\
**Created:** [May 29, 2005, 8:52pm UTC](https://forum.kirupa.com/t/preloader-goto-problem/149477 "2005-05-29T20:52:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danulf](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danulf/32/555_2.png) [@danulf](https://forum.kirupa.com/u/danulf)\
**Post date:** [May 29, 2005, 8:52pm UTC](https://forum.kirupa.com/t/preloader-goto-problem/149477/1 "2005-05-29T20:52:34Z")

</div>

ok, so I can make “normal” preloaders work, you know, with a bar that goes up and all. But I´’m curious about a preloader wich jumps to a different frame in lets say “loader” MC. I can’t really explain so here’s the code that I thought would work:

bytes\_loaded = Math.round(getBytesLoaded());  
bytes\_total = Math.round(getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
if (getPercent = 10) {  
loader.gotoAndPlay(2);  
}  
and so on…

I’m not a good actionscripter, so this is the best I could come up with…

Hope you understand what I’m talking about!  
Thanks in advance!
