# Preloading a scene :S

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