So I defined a global array by
frame 5
_global.userMoods = new Array();
add some values with
function addMood(choice)
{
userMoods.push(choice);
trace ("Array add "+userMoods);
But when calling this function
function show()
{
for (i=0; i<userMoods.length; i++) {
//_root.attachMovie(_root.userMoods*,"Show"+i,i);
test = userMoods*;
trace("WHTA" +test);
}
trace("Length " +userMoods.length);
trace("Show " +userMoods);
}
I don’t get the expected array values (none returned) just the length is visible.
Where did I go wrong???