[font=Arial]Can anyone help with this; I have tried several ways but does not work.[/font]
[color=black][font=Arial]The first for loop creates the numbers to collect the correct tag in my xml file, that works, but I need a second variable in the for loop to select my random Array numbers [0][1][2][3]âŚ[/font][/color]
here is the code, the code in red is the script im trying to work out
MyArray = [4, 5, 6, 7, 8];
function shuffleArray() {
return Math.round(Math.random());
}
myArray.sort(shuffleArray);
for (var i = 4; i < 9; i++; [color=red]var e = 0; e < 5; e++)[/color][color=black]{[/color]
[color=red]spread = myArray[e];[/color]
questionClip.attachMovie(âRandomAnswerâ, âcontaineranswerâ+i, i);
questionClip[âcontaineranswerâ+i]._y = 0+((i*15)-34);
questionClip[âcontaineranswerâ+i]._x = 95;
questionClip[âcontaineranswerâ+i].ranAnswer = questionsArray[currentQuestion].[color=red]answers[spread];[/color]
}
}