Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Thread Tools Rate Thread Display Modes
Old 10-10-2003, 06:55 AM   #1
Registered User
Join Date: Oct 2003
Posts: 41
Question getting selected text of TextArea

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??
maroof_d is offline   Reply With Quote
Old 10-12-2003, 11:27 PM   #2
Registered User
Join Date: Jan 2002
Location: Tokyo Japan
Posts: 74
Send a message via ICQ to motionid
Default Macromedia Sample file

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");

motionid is offline   Reply With Quote
Old 10-13-2003, 04:09 AM   #3
Registered User
Join Date: Oct 2003
Posts: 41
Default selected text in TextArea

thanx for that :-).
but how do i get the selected text of the TextArea for manipulation???
maroof_d is offline   Reply With Quote
Old 01-29-2009, 05:18 AM   #4
Join Date: Jan 2009
Location: chennai
Posts: 19

did u got the solution for this problem then tell me too.... Thanx in advance.
Durai_ram is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:36 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.