flex3のTLFに画像を挿入すると、TLFの画像が正方形の領域に表示されていることがわかりました。そのため、画像の上部にスペースがあります。この問題については、添付の画像を参照してください。
このスペースを削除するにはどうすればよいですか?次の方法を試してみましたが、うまくいきません!
var graphic_element:InlineGraphicElement = IEditManager(activeFlow.interactionManager).insertInlineGraphic(foreignElementUrl, width, height, "none");
graphic_element.paddingTop = 0;
graphic_element.paddingBottom = 0;
graphic_element.paddingRight = 0;
graphic_element.paddingLeft = 0;
IEditManager(activeFlow.interactionManager).applyParagraphFormat(graphic_element);