Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-03-2010, 01:16 PM   #1
mcmuffy
Registered User
 
Join Date: Dec 2010
Posts: 1
Default Am I missing an import?

The following line of code is throwing an error:
var tempTextFormat:TextFormat = myTextArea.getTextFormat(myTextArea.selectionBegin Index, myTextArea.selectionEndIndex);

Call to a possibly undefined method getTextFormat

Am I missing a library (I have flash.text.textformat included) or am I doing something wrong?

Cheers
Ray
mcmuffy is offline   Reply With Quote
Old 12-03-2010, 07:45 PM   #2
greetification
Registered User
 
Join Date: May 2005
Posts: 27
Default

Can you post the full error?
greetification is offline   Reply With Quote
Old 12-03-2010, 11:00 PM   #3
dan.hunter
Registered User
 
Join Date: Dec 2010
Posts: 1
Default

I'm assuming myTextArea is a TextArea? Only TextFields have the getTextFormat method.

Try myTextArea.textField.getTextFormat instead.
dan.hunter is offline   Reply With Quote
Reply


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 02:29 PM.

///
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.