im having a very strange array issue right now. any help on this would rock…
i am creating new movieclips, and then trying to store a reference to each one within an array called “openWin_array”
Here is that code…
cw_mc = windows_mc.attachMovie("contentWindow_mc", "contentWindow" + content_loc + "_mc", contentLoc + 1);
addToArray(openWin_array, cw_mc);
I pass the array and what needs to be added within the array to a function i setup called “addToArray”…here is that function
_global.addToArray = function(array, obj) {
// just keep adding stuff to array
r = array.push(obj);
trace(array);
};
now, it seems like this should work fine, but it doesn’t? It will add the mc to the array, but it will delete the previous entry within the array…
for instance, the first time an mc is created…it will push the value into the array, and then the second or third time, it will push the new value into the array at the end, but all previous entries are deleted? What the crap is that? What am i doing wrong?
please help…