IGE.graphic dispatches Event.REMOVED_FROM_STAGE events after each updatecomplete event
When I type in TLFtextField dispatches RemovedFromStage events after each word! Why?
var em:EditManager= new EditManager()
em=txt.textFlow.interactionManager as EditManager
var MC:mc=new mc()
MC.addEventListener(Event.REMOVED_FROM_STAGE,rs)
txt.textFlow.addEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE,u)
em.insertInlineGraphic(MC,"auto","auto")
function u(e:StatusChangeEvent):void{
if(e.status==InlineGraphicElementStatus.READY ||e.status==InlineGraphicElementStatus.SIZE_PENDING){
txt.textFlow.flowComposer.updateAllControllers()
if(e.status=="ready")txt.textFlow.removeEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE,u)
}
}
function rs(e:Event):void{
trace(e.type)
}
