How to find Inline graphic URL in TLF 2.1
Hi,
In TLF 1.0 we used following code snippet to get image URL when Mouse is clicked with in TextFlow. The following code not working ever since i have updated to TLF2.1.
Earlier, the image was also getting selected on Mouse click but not happening with this build. It always gives null on click.
private function onMouseUp():void
{
var textFlowLine:TextFlowLine = _textFlow.flowComposer.findLineAtPosition(_textFlow.interactionManager.anchorPosition)
var textLine:TextLine = textFlowLine.getTextLine();
var caretIndex:int = _textFlow.interactionManager.anchorPosition - textFlowLine.absoluteStart;
var inlineGraphic:Loader = textLine.getAtomGraphic(caretIndex) as Loader;
if(inlineGraphic != null)
{
var url:String = LoaderInfo(inlineGraphic.contentLoaderInfo).url;
}
}
Please suggest us further to resolve this issue.
