PDA

View Full Version : getting selected text of TextArea


maroof_d
10-10-2003, 06:55 AM
how can i get the selected text of the TextArea component?? i want to change the font and other styles of the selected text.
can anyone help me out??
Regards,
maroof

motionid
10-12-2003, 11:27 PM
Hi,
take a look at this macromedia sample file found here:

C:\Program Files\Macromedia\Flash MX 2004\en\First Run\Samples\TextEnhancements

This should help you to get a basic understanding of changing TextArea content.

Also, here are a few sample commands that are easily found in the help under "Customizing the TextArea component"


componentName.setStyle("fontSize", "10");
componentName.setStyle("fontFamily", "Verdana");
componentName.setStyle("color", "0xff6400");
componentName.setStyle("fontWeight", "bold");

Cheers,
Sean

maroof_d
10-13-2003, 04:09 AM
hi.
thanx for that :-).
but how do i get the selected text of the TextArea for manipulation???

Durai_ram
01-29-2009, 05:18 AM
did u got the solution for this problem then tell me too.... Thanx in advance.