Return to Snippet

Revision: 38944
at January 10, 2011 23:23 by martin9999uk


Initial Code
var prevText:String;
inputfield.addEventListener(Event.CHANGE, onUpdate);

private function onUpdate(e:Event):void {
if (inputfield.textHeight > inputfield.height) inputfield.text = prevText;
else prevText= inputfield.text;
}

Initial URL

                                

Initial Description

                                

Initial Title
Limit lines in a textfield

Initial Tags

                                

Initial Language
ActionScript 3