[Laszlo-dev] new FLash 9 TextField API, appendText

P T Withington ptw at pobox.com
Thu Feb 7 06:09:23 PST 2008


That would be LzText#addText.

I was also thinking that LzText#format should append by default, and  
that you should call LzText#clearText first if you don't want to append.

On 2008-02-06, at 23:01 EST, Henry Minsky wrote:

> There is a new API on Flash 9 TextField objects, appendText, which
> they say is more efficient for appending text. We should
> see if there is code that can make use of this, and probably add an
> API call for LzText to support it.
>
>
> appendText	()	method
> public function appendText(newText:String):void
>
> Language Version : 	ActionScript 3.0
> Player Version : 	Flash Player 9
>
> Appends the string specified by the newText parameter to the end of
> the text of the text field. This method is more efficient than an
> addition assignment (+=) on a text property (such as
> someTextField.text += moreText), particularly for a text field that
> contains a significant amount of content.
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list