Need a little help

hey guys, i’ve made a drop down menu, but now the buttons doesn’t seem to work. al the menu contents are in a movie clip, so they can’t operate over the primary stage. I want to tell the buttons that

on (release) {
loadMovie(“star.swf”, “movies”);
}
// but the “movies” object is in the primary stage,
// and it doesn’t seem to work!

which command did i missed? or which one would help me in this code?

_root.movies.loadMovie(“star.swf”)

Try that.

no, it doesn’t work… i tryed…

I’ll send the files, try exporting both as swf to a folder.
and go and click in the ENFOQUE button…

That code that lost gave is correct.

on (release) {
_root.movies.loadMovie(“star.swf”);
}

double check the instance name of “movies”

on (release) {
_root.–movies–.loadMovie(“star.swf”);
}

instead of --movies-- i have to put the movieclip target instance name? it still don’t work…

i tried to make a drop menu. Maybe i’m having something wrong… which is the best way to make one? or to make the code you are gaving me, work…

i never thougth that to make a drop menu, it would be so hard… - sob - :wink:

post your fla im sure someone will be able to fix the code

Hello again!..

I’m still gettin problems with this thing to work…
check the attachment, it speaks for itself :wink:

if you can help me i’ll be gratefull

and the files.:evil:
help meeee:beam:

Don’t crosspost Flug. You didn’t need to create a new thread to attach the files with, you could have done it in here. I merged the threads since the other one contained your files.

And your error is in the targeting.

The container clip you are loading to has the instance name of “target” (no quotes).

So why are you targetting it as _root.movies?

And…

[AS]on (release) {
_root.movies.loadMovie(“button2.swf”, “target”);
}[/AS]

That syntax doesn’t really make sense. You don’t need the “target” at the end if you are putting the target before the load movie code. There are two ways to write loadMovie code…

Method 1) movieClip.loadMovie(“file”)
Method 2) loadMovie(“file”, “movieClip”)

I prefer method one, its easier.

So your code would become something like…

[AS]on (release) {
_root.target.loadMovie(“button2.swf”);
}[/AS]

Now… onto problem 2. Your buttons aren’t actually clickable. Given the setup of the menu you have here, You have a main invisible button over the content, this button takes all the attention off of the buttons underneith it, so actually your menu items are unclickable.

Syko wrote a tutorial on drop down menus, perhaps you should check that out.

http://www.kirupa.com/developer/mx/dropdownmenu.htm

I really thank you, and i’m sorry about the THREAD thing… i don’t really know much about forums, i’m a newbie… but i discovered how to post files, and that sort of things, more than easy… ill check what you are saying, and if it works… I’LL BE REALLY HAPPY!!! :d