Adding formated Span at current position


hi,

 

i want have external button insert formatted spanelement @ current position.

how can insert own elements in required(cursor) position?

 

element might like:

var span:spanelement = new spanelement(); span.text = text; span.setstyle('custom',true); span.color = '0xff0000'; 

 

thank you

find leaf element using texflow.findleaf.  if position insert in middle of span use splitatposition split in two.

 

compute index want add new span @ using parent.getchildindex , replacechildren api can insert new span.

 

hope helps,

richard



More discussions in Text Layout Framework


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい