# Preloading a scene :S

**URL:** <https://forum.kirupa.com/t/preloading-a-scene-s/34495>\
**Category:** Uncategorized\
**Created:** [November 3, 2003, 6:02am UTC](https://forum.kirupa.com/t/preloading-a-scene-s/34495 "2003-11-03T06:02:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doOfus](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@doOfus](https://forum.kirupa.com/u/doOfus)\
**Post date:** [November 3, 2003, 6:02am UTC](https://forum.kirupa.com/t/preloading-a-scene-s/34495/1 "2003-11-03T06:02:12Z")

</div>

hey guys… ok im trying to preload a certain scene… i put this on the first frame of my preloader

LOADED = Math.round(getBytesLoaded());  
TOTAL = Math.round(getBytesTotal());  
PERCENT = LOADED/TOTAL;  
BAR.\_width = PERCENT_400;  
TEXT = Math.round(PERCENT_100)+"%";  
if (LOADED==TOTAL){  
gotoAndPlay(“scene1”);  
}

[preloader is scene3, but i rearranged them… 😃]

then i put this on the second frame of the preloader

\_parent.gotoAndPlay(1);

i know that something is seriously wrong with the code… coz what comes out is Infinity% … ☹

please help me !!! !😃

---

<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:** [November 3, 2003, 7:16am UTC](https://forum.kirupa.com/t/preloading-a-scene-s/34495/2 "2003-11-03T07:16:04Z")

</div>

never mind… i got it heh
