You don't have to remember, your code tells you what your buttons' names need to be.
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
The way you have the swf's being targeted requires that the buttons' names match the names of the swf files. So if you are using "inicio_mc" as the button's instance name, then your swf file name would need to be inicio_mc.swf. Likewise, if you swf file is named "inicio.swf, your button should be named "inicio"..
Hi Ned, Thanks very much for your great help, I developed this dropdownmenu from an example which it works perfect but when I want that it load some file swf, it doesn't works. This dropdownmenu is composed for a movie clip called navBar_mc and inside are the"buttons" movie clips and each one has one dropdownmenu displaying simbols of buttons, some of the "buttons" like "inicio" is considered just one button however I would like to know if this movie clip can receive buttons events to call an swf file, this is my confusion.
mark out this error
TypeError: Error # 1010: A term is undefined and has no properties.
at menuDropDown_fla :: MainTimeline/frame1 ()
Error # 2044: uncontrolled ioError: text = Error # 2035: Can not find the URL. URL:
I have changed the names of the externs swfs still to match with each "button" the problem is when I down some button of the navBar_mc menu it does not load the swf extern.
Well I appreciated as always any suggestion or advice.
Use the trace function to find out which term is undefined. Use the trace function to see what the url is that is not being found.
in others ocasions your helped was very helpful, but now, I was tried to learn of trace function, so anyway, I appreciated your help.