# Infinte menu loading

**URL:** <https://forum.kirupa.com/t/infinte-menu-loading/22893>\
**Category:** flash\
**Created:** [June 10, 2003, 9:28am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893 "2003-06-10T09:28:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoyGerbil](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@RoyGerbil](https://forum.kirupa.com/u/RoyGerbil)\
**Post date:** [June 10, 2003, 9:28am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/1 "2003-06-10T09:28:57Z")

</div>

Hey.

I have made a webpage in Flash, and used your tutorial for the infinite menu (awesome). However, i’m having trouble making the buttons dynamically load other .swf files. I’ve made them do it before on other pages, it just seems that the infinte menu doens’t like the way I do it. Could someone please help me out,

muchos gracias.

Roy

---

<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:** [June 10, 2003, 9:53am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/2 "2003-06-10T09:53:56Z")

</div>

well first off, what is the script you’re using to load the movies? Since the buttons are inside a movieclip, you might have a scope problem so could you post the script you’re using on your buttons?

---

<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:** [June 10, 2003, 9:56am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/3 "2003-06-10T09:56:35Z")

</div>

Yup, sure thing.

This is for a button which brings up a page of services

butServices.onPress = function () {  
\_root.createEmptyMovieClip(“container”, 1);  
loadMovie(“services.swf”, “container”);  
container.\_x = 0 ;  
container.\_y = 154 ;  
}

---

<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:** [June 10, 2003, 9:59am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/4 "2003-06-10T09:59:53Z")

</div>

Hmm…well it’s not a scope problem, why don’t you try this. Instead of using that function, apply the script directly to the button itself. Just click on the button to select it, open your actions panel and apply this script:[AS]on (release) {  
\_root.createEmptyMovieClip(“container”, 1);  
loadMovie(“services.swf”, “container”);  
container.\_x = 0;  
container.\_y = 154;  
}[/AS]

---

<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:** [June 10, 2003, 10:04am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/5 "2003-06-10T10:04:22Z")

</div>

thanks, but that didn’t seem to work. do you have any other suggestions?

cheers

---

<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:** [June 10, 2003, 10:06am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/6 "2003-06-10T10:06:51Z")

</div>

how about this?[AS]on (release) {  
\_root.createEmptyMovieClip(“container”, 1);  
\_root.loadMovie(“services.swf”, “container”);  
\_root.container.\_x = 0;  
\_root.container.\_y = 154;  
}[/AS]

If that doesn’t work then zip up your files and upload them here so I can take a look.

---

<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:** [June 10, 2003, 10:08am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/7 "2003-06-10T10:08:20Z")

</div>

Shouldnt you use loadMovieNum to load into a level?

---

<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:** [June 10, 2003, 10:09am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/8 "2003-06-10T10:09:23Z")

</div>

nice. that worked, but…

when i click on the button, it get’s rid of everything on the page, and just opens the services.swf. So…i lose my header and footer, and just end up with the services.swf.

Thanks alot for this man, I really appreciate it

---

<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:** [June 10, 2003, 10:09am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/9 "2003-06-10T10:09:51Z")

</div>

Actually try this first.[AS]on (release) {  
\_root.createEmptyMovieClip(“container”);  
\_root.loadMovie(“services.swf”, “container”);  
\_root.container.\_x = 0;  
\_root.container.\_y = 154;  
}[/AS]

---

<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:** [June 10, 2003, 10:15am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/10 "2003-06-10T10:15:57Z")

</div>

here’s my site so far.

---

<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:** [June 10, 2003, 10:26am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/11 "2003-06-10T10:26:34Z")

</div>

Ok I got it, just apply this to your button and it should work, I tested it out as well. =)[AS]on (release) {  
\_root.createEmptyMovieClip(“container”, 0);  
\_root.container.loadMovie(“services.swf”);  
\_root.container.\_x = 0;  
\_root.container.\_y = 154;  
}  
[/AS]

---

<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:** [June 10, 2003, 10:30am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/12 "2003-06-10T10:30:15Z")

</div>

Thankyou!

You are a saviour. Thanks so much for that, that was a big stepping stone for me.

Cheers,

Roy

---

<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:** [June 10, 2003, 10:30am UTC](https://forum.kirupa.com/t/infinte-menu-loading/22893/13 "2003-06-10T10:30:35Z")

</div>

No problem. =)
