i’m trying to dynamically name currentArray and return the length, and it keeps returning the wrong value–here’s the code:
womenArray = ["","nina.jpg", "tina.jpg", "colleen.jpg"];
_global.currentArray="_root.womenArray";
function aLen(){
hLen=currentArray.length;
trace(hLen);
}
aLen();
it works fine w. the static name in, but this code returns the wrong value–can somebody please help me figure out what’s going wrong?
thanks much,
-mojo