Menu problem

Hello,

i am having a problem with my menu. i am creating a new flash site and i decited to make my own menu, instead of getting it from Flash Kit. the problem is, i put in this script, after i selected the button.

on (release) {
	_root.contents.loadMovie("locations.swf");
}

and i add the link. but when i go to test out my web site it doesnt work, nothing happens.

i made a seperate page in MX and i uploaded it to my server.

please help. this is probally a really stupid question but i am stuck.
:-\
thanks

Did you remember to create a empty movieclip with an instance name of “content”? That script above is loadeing it into a movieclip with an instance called “content” so if you didn’t make it then it wont have nothing to load to.

Where ever you want your locations.swf to appear is where the empty movieclip should be. Just think of it this way, the locations.swf will replace the empty movieclip once it’s loaded.

So create the empty movieclip on your main movie and place it wherever you want, but make sure it’s sitting on the main timeline of course. =)

i didnt know how to make a movie clip so i tried to use this method

on (release) {
    gotoAndStop(11);
}

and it just opens up a new window.

i cant beleve nothing is working out for me.:frowning:

Come on Alex, work with me here, I’m sure you know how to make movieclips.

Just go to insert > New symbol and select movieclip, that should create a new blank movieclip for you. Now give it a name.

Next open your library and drag out an instance of that same movieclip you just made and place it on the stage on the main timeline

Click on it to select it then open your properties panel and give it an instance name of something like “blahMC” for example and that should be it.

Now that you’ve made the empty movieclip, the loadMovie script I posted should work for you.

that is what i have so far. i am not sure if i did it correctly.=)

I can’t really tell what you did so far by that pic, did you get it to work or not?

the link didnt work:hair:

but when i did that, a little circle showed up with a cross.

P.S

congrats about becoming a mod.
i’m jelous:bad: (-:

that is what you said to do, if i followed it correctly. but i probally didnt because its not working.:frowning:

Thanks Alex, there’s no need to be jealous, I’m still the same as everyone here, we’re all here to learn and help out each other. =)

As for the image you just posted, that circle with a cross in the center is the registration point of the new movieclip you created. And judging by the properties panel in that pic, you gave that movieclip an instance name of main which would be wrong since the script you posted targets an movieclip with an instance name of content.

So change main to content or vice versa and it should work. =)

wooohoo it worked, but is there any way i can controll where it pops up. because it loaded at the bottom of the web site.:stuck_out_tongue:

Yeah just move the movieclip to whever you want because like what I’ve said above, the movieclip is basically where the external movie is going to be.

I’m glad it worked for you. =)

so i just move the little circle with the cross? to where i want the contents to load.

thanks for all of you help:beam:

By clicking on the lil cross, you’re basically selecting the whole movieclip so yes, you can do that. Just move that lil cross, but keep in mind that lil cross represents the center of the movieclip so it will also be the center of your external movie.

Just play around and move it to different spots until you get it right. =)

ok…i had trouble with the load from an external .swf with placement before…so you are saying…if i move the little cross to the center of the blank mc, it will center the movieclip? because whenever i try to load an external .swf…it places it somewhere really weird…

:+) hmm…i think i’ll try this…

i had to play around with it to get it close into the center
<:}