Spark TextArea, setFormatOfRange performance issue


hi, dear

 

i building syntax highlight editor using spark.components.textarea

 

my app invokes setformatofrange put colour on syntax. find api very slow.

 

i need wait more 10s before ui response me


and if comment setformatofrange, runs smoothly without delay

 

 

seems tlf slow @ point, isn't it?

 

must change use mx.controls.textarea?  faster?

 

thank you

issue richeditabletext.setformatofrange updates display on every call.  want directly access textflow (its property of richeditabletext), make of format changes , update display using tlf apis.

 

something this

var textflow:textflow = ret.textflow

textflow.interactionmanager.begincompositeoperation

textflow.interactionmanager.applyleafformat  (as many times necessary)

textflow.interactionmanager.endcompoisteoperation

 

the composite operation calls let multiple updates without updating display.  there may additional things needed make sure textflow has interactionmanager.

 

 

richard



More discussions in Text Layout Framework


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support