Hi,
how can I change the color of a selected piece of text dynamically?
I tried somethings like this (the function is called by a button):
function changeColor() {
    Selection.setFocus(textFieldname);
    Selection.setSelection(begin, end);
        sel = textFieldname.text.slice(begin, end);
    sel.textColor = "0xFF0000";
}
but I guess ‘sel’ isn’t a string, so i can’t add textColor to it?
Adding something like:
sel = new String(begin, end);
doesn’t help much.
thank you,
Jerryj.