# Trouble preloading the infinite menu

**URL:** <https://forum.kirupa.com/t/trouble-preloading-the-infinite-menu/136425>\
**Category:** Uncategorized\
**Created:** [February 4, 2005, 6:38pm UTC](https://forum.kirupa.com/t/trouble-preloading-the-infinite-menu/136425 "2005-02-04T18:38:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starbuck](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@Starbuck](https://forum.kirupa.com/u/Starbuck)\
**Post date:** [February 4, 2005, 6:38pm UTC](https://forum.kirupa.com/t/trouble-preloading-the-infinite-menu/136425/1 "2005-02-04T18:38:46Z")

</div>

Hi,

i’ve created an infinite menu using the tutorial here (thx kirupa :party:) and i’ve tried to put a preloader in front. The preloader is nothing special, i’m using a simple animation instead of the preloader bar and dynamic text (these are layers 1 and 2 both 2 frames long). In the actions layer i have the following actionscript:

FRAME 1

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

[u]FRAME 2

[/u]gotoAndPlay(1);

Now the preloader has been tested and it works fine when i put any large file in the third frame but “and here is my problem” when i put the infinite menu on frame 3 the menu doesn’t work. Loader works fine, the menu is loaded but it doesn’t move. I think there’s a catch with the actionscript but i’m still too fresh to Flash to figure it out so please help!
