Skip to main content
This topic has been closed for replies.

1 reply

Participating Frequently
September 7, 2009

Hi.

My code might help.

textFlow.addEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE, updateGraphic);

Then, in the updateGraphic function, you can get all images' DisplayObjects.

private function updateGraphic(e:StatusChangeEvent):void {

    if (e.status == InlineGraphicElementStatus.SIZE_PENDING){

        var g:DisplayObject = (e.element as InlineGraphicElement).graphic;

        ... then g.addEventListener() for whatever you like;

Yoshiki Okawa

ErnIvanAuthor
Known Participant
September 9, 2009

thanks

now I try to use ModifyInlineGraphicOperationin in flex 4(gumbo)

http://livedocs.adobe.com/flex/gumbo/langref/

it is more simple

bye