Skip to main content
Inspiring
Oct 14, 2009 7:37 AM UTC
Question

Read Inlinegraphic source

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Oct 14, 2009 8:09 AM UTC

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

Translate