Skip navigation
Currently Being Moderated

Add new porperty to extended text input component

Jan 9, 2013 5:49 AM

Hi All,

I have this text input component:

http://forums.adobe.com/message/3798449

 

I wan to restrict the negative symbol. I try adding a new property as:

 

          private var _allowNegative:Boolean = true;             public function set allowNegative(value:Boolean):void             {                 _allowNegative = value;                 if (_allowNegative)                     super.restrict = "0-9\.\\-";                 else                     super.restrict = "0-9\.";             }

 

I am getting an error:

Error #1056: Cannot create property allowNegative on com.NumberInput.

 

Any ideas?

Thanks

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points