I have this array in frame one of my main timeline:
for (var j = 0; j<randomValues.length; j++) {
var different = true;
var value = Math.floor(Math.random()*numbers.length);
for (var k = 0; k<randomValues.length; k++) {
if (randomValues2[k] == numbers[value]) {
different = false;
j--;
}
}
if (different) {
randomValues2[j] = numbers[value];
}
}
trace(randomValues);
trace(randomValues2);
for (i=0; i<12; i++) {
temp = (randomValues[i]);
randomValues2.push(temp);
}
trace(randomValues2);

I can trace it in frame two but I can not trace it in a movie instance when I call it from a button inside a movie...I need to get a value, if I say
var depth= _root.randomValues2[x];
trace depth;
I get and undefined.

Anyone who can help it would be appreciated.
padme@mac.com