Skip to main content
Inspiring
October 14, 2009
Question

Read Inlinegraphic source

  • October 14, 2009
  • 1 reply
  • 595 views

Hi

I am using this code

var start:int=textFlow.interactionManager.absoluteStart;

var elem:FlowLeafElement=textFlow.findLeaf(start);

trace(elem)

it traces '[object InlineGraphicElement]'

how i can get source of specific graphic i clicked

Thanks

This topic has been closed for replies.

1 reply

October 14, 2009

I'm not positive about what exactly you're asking for, but this might be what you're looking for:

var start:int=textFlow.interactionManager.absoluteStart;

var elem:FlowLeafElement=textFlow.findLeaf(start);

if (elem is InlineGraphicElement)

{

     var sourceObj:Object = InlineGraphicElement(elem).source;

     trace(sourceObj);

}

else

{

     trace(elem);

}

Does that help at all?

Brent