Removing selective data from a variable

no problem claudio, I forgot to mention… to add colors to the array you can use…

[AS]on (press){
_root.myArray.push(“colour1”);
}[/AS]

And then to split it back into a string you can use a for loop… for example… [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<myArray.length; i++) {
myString += myArray*+"
";
}
trace(myString);[/AS]