This content has been marked as final. Show 6 replies
you want to change the background of selected parts of dynamic text? if so, that will require a cumbersome work-around.
if you can accept changing the text color of selected parts of dynamic text, that would be less cumbersome and could be done using the setTextFormat() method.
Oh yeah! (Slaps hand to forehead) This is what I'm talking about.. me over complicating things.
If the text itself changed colors that would not be a big deal. But..
Would that work on individual words in the same text box? Or would I need to break them up..
you can color each character in the textfield with a different color if you want. that's no stretch for setTextFormat().
Sorry for the delayed reponse regarding this, hard to find time to work on this problem. So how do you specify an individual word in a text box to have the color, font, whatever changed when the user clicks/selects that word. I understand how to set the text format after reading up on it a bit, but still unsure what event would trigger one word to change it's format.
Any advice is most welcome.
I believe looking into lineStyle in Flash Help will surely help.
the lineStyle() methods of movieclips couldn't conceivably help.
the function below will assign different colors to different words in your textfield. just pass the textfield instance name followed by word,color pairs: