modifyInlineGraphic ???
Hi,
How can I use modifyInlineGraphi? The main problem is find a way to supply the "source property". All my images are remote, the only value I have is the url. I tried these options without luck:
1)
var urlreq:URLRequest = new URLRequest( 'www.example.com/img.jpg' );
IEditManager( textFlow.interactionManager ).modifyInlineGraphic(urlreq, newWidth, newHeight);
2)
IEditManager( textFlow.interactionManager ).modifyInlineGraphic( 'www.example.com/img.jpg' ,newWidth, newHeight);
3)
var img:InlineGraphicElement = textFlow.getElementByID( imgId ) as InlineGraphicElement;
IEditManager( textFlow.interactionManager ).modifyInlineGraphic(img.source, newWidth, newHeight);
4)
var img:InlineGraphicElement = textFlow.getElementByID( imgId ) as InlineGraphicElement;
IEditManager( textFlow.interactionManager ).modifyInlineGraphic(img, newWidth, newHeight);
This is what the documentation:
@9397041 source can be either a String interpreted as a uri, a Class interpreted as the class of an Embed DisplayObject, a DisplayObject instance or a URLRequest.
I'm able to modify the InlineGraphicElement directly, but that is less than optimal, because resets the undomanager.
Any ideas?
