Color of String
Sorry, dont have any code at the moment because I saved it as CS4 and now it wont let me open the file at home on CS3 (or I think thats why it wont open!).
Anyway, will explain what I did.
I have a textfield where the user can enter text. On the submit Button, the text field displays the text in a static text field. Now, I wanted to also make each char of the inputted text change color.
So, I use the split method to split the text into a String Array. for instance
var myArray:Array = myString.text.split(); //dont know if this is precisely right
Now, i set up a loop to loop through this array. Now inside the loop, I wanted to change each char color. So i done something like
myArray.toString().color = 0xFFFFFF;
but it says it cant apply a color to a String. I have tried it without the toString but get a similar result.
So, how can I take text from a text field, split it into individual chars, and set the color of each char?
Any advise appreciated.
cheers
