/** * The SmileArea is a replacement for the TextArea component in AS3. * It is useful to place smileys between text blocks whereas * the TextArea by Adobe creates unlovely breaks. * * Please contribute any changes and extensions back to me. * Feel free to use the SmileArea for your non-commercial projects. * For other purpose of use please drop me an email. * * @author Valentin Manthei (www.valentin-manthei.de - contact/at/valentin-manthei.de) */ package SmileArea { import flash.text.TextField; public class SmileRow extends TextField { public var realText; public var assignedSmileys:Array; public function SmileRow():void { this.condenseWhite = true; this.wordWrap = true; this.multiline = true; this.selectable = false; assignedSmileys = new Array(); } public function addSmiley(index:uint):void { assignedSmileys.push(index); } public function getAssignedSmileys():Array { return assignedSmileys; } } }