I have a TextField and a MovieClip/Button. The user should
imput some text in the TextField, select some of it and then click
the MovieClip/Button and the selected text should change color to
red (and remain selected during the entire procedure, and after).
How can this be done? When clicking outside the TextField it looses
onRollOver (your button) you store the begin and end index of
the Selection (in the textfield), onRelease(of your button) you set
your red textFormat on the previously stored indices, then you set
Selection.setSelection back to what it was...
That should do it.. but still the textFormat loses focus
between onPress and onRelease creating a blinking effect. I don't
think you can workaround this one... I've tried it for a couple of
days without result.