Here is a type of thing I did with this a while ago if you want to look at it. It isn’t exactly super duper, but its something.
(check attachment)
In the main script you see a line that says
menuObj.button.loc = "You Clicked "+labels*;
That was my test area, where I had a variable called “loc” in the movie clip I was attaching, and in that movie clip I had a button when on(release) it traced the variable “loc”
If you look in the Library “Button” is the main button to which you do the editing. If you open that up you will see two layers, 1 with a textbox that lists the label, and another with a button (which is Button2 in the library). There is an action on the button layer that says
loc = null
This sets our variable, then the actions on the button say
on (release) {
trace(loc);
}
You can easily change that to getURL(loc, “_blank”) or whatever, but this brings us back to the line that says menuObj.button.loc = "You Clicked "+labels*;, but pulls the loc from the labels array.
Yeah… this isn’t good, so what we need to do here is create ANOTHER array that holds the URLs. I guess we could call it “urls”.
So the code will now be…
menuObj.button.loc = "You Clicked "+urls*;
I am really bad at explaining things sometimes, so if I made no sense, let me know what your confused on.
Oh yeah, and to get attachMovie() to work you must right click on the object you are attaching in the library and choose “Linkage”, then check the “Export for Actionscript” checkbox, and give it a name, and that name is used in your attachMovie() function.