[AS]on (press){
_root.myArray.push(“colour1”);
}[/AS] is all you need for your buttons, this will add “colour1” to the end of the array called myArray in the _root timeline.
[AS]myArray = [“colour1”, “colour2”, “colour3”, “colour4”, “colour5”];
Array.prototype.removeItem = function(pos) {
this.splice(pos-1, 1);
return this;
};
myArray.removeItem(3);
for (var i = 0; i myString += myArray*+"
";
}
trace(myString);[/AS] was just merely an example of how to go about converting your array into a string the way you wanted.
If you would like to point out which parts of which scripts you don’t understand I will gladly try to explain them more clearly if I can.