Advertisement
Guest User

Untitled

a guest
Sep 29th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public function setTextFormat(format:TextLayoutFormat, begin:int, end:int):void{
  2.  
  3. var selection:SelectionState = new SelectionState(this._textFlow, begin, end, this._normalFormat);
  4. IEditManager(_textFlow.interactionManager).applyLeafFormat(format, selection);
  5.  
  6. }
  7.  
  8. for each (var id:String in ids) {
  9. var element:SpanElement = _textFlow.getElementByID(id) as SpanElement;
  10. if (element) {
  11. element.format = getAppropriateFormatForElement(element);
  12. }
  13. }
  14. _textFlow.flowComposer.updateAllControllers();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement