Hey yall I am trying to grab a movie clip instance which is amongst an array and attach it to a string.
I am trying this:
stateArray = new Array(AL,AK,AZ, ect....);//names of mc instances
for (var i = 0; i<stateArray.length; i++) {
stateArray*.onRelease = function() {
getURL("/pagoso/browsestate.aspx?cat="+cat+"&state="+stateArray*, "_self");
};//each mc onRelease will grab "cat" from string and add its respective state Array to String
}
Results in state being undefined state;
Have tried this:
stateArray*.onRelease = function() {
getURL("/pagoso/browsestate.aspx?cat="+cat+"&state="+stateArray[0], "_self");
};
}
Resulting in:
/pagoso/browsestate.aspx?cat=8&state=_level0.AL
and if I do just stateArray it adds all the states with _level0.AL, _level0.AK ect…
How come I cant get it to just grab MC instance?