I’ve got an array of strings, and I want when each movie clip with the same name is pressed, to call a function of the same name. But I can’t get it to work. I’ve tried quite a few different ways, but nothing is working.
Anyone know how to do this?
Here’s the last one I tried…
linksArray = new Array("gabe", "vesna", "hel", "sam", "walt", "kirupa");
trace(linksArray);
for (var i = 0; i<linksArray.length; i++) {
var temp = this[linksArray*];
temp.id = i;
temp.onRelease = linksArray[this.id];
}
gabe = function () {
trace("pressed");
getURL("www.gabrielmathews.com");
};
gabeInfo = function () {
trace("info");
};