mardi 24 janvier 2017

flex - make text book with textArea

There are two TextAreas of spark components horizontally.

left TextArea id : taLeft

right TextArea id : taRight

and there is very long String.

var str:String = "blarblar....";

first, taLeft.text = str;

I input str to taLeft.

just then, I want input the rest string of taLeft viewport's height outside to taRight.

How can I do this work fast?

I tried something getting the last line string of taLeft with taLeft's textFlow, but the way was very slow...'cause all string is very loooong..

is there good idea? can I get more tip?

help me please and thank you.

Aucun commentaire:

Enregistrer un commentaire