fox "; public var textSet:Boolean; public var numTextLines:int = 0; public function init():void { fteTxt = new FTETextField(); rawChildren.addChild(fteTxt); fteTxt.text = text; textSet = true; fteTxt.wordWrap = true; } public function canvas_renderHandler(event:Event):void { if (textSet) { numTextLines = fteTxt.numChildren; if (fteTxt.numChildren != 3) throw("Assert failed: expecting 3 lines of text"); } else { numTextLines = fteTxt.numChildren; if (fteTxt.numChildren != 2) throw("Assert failed: expecting 2 lines of htmlText"); } } ]]>