Infinte menu loading

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

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?

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 ;
}

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]

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

cheers

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.

Shouldnt you use loadMovieNum to load into a level?

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

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

here’s my site so far.

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]

Thankyou!

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

Cheers,

Roy

No problem. =)