LinkElement + InlineGraphicElement causes an error
I may be coding this incorrectly, so if I am, please forgive me. I am trying to add an InlineGraphicElement to a LinkElement and it appears to be giving an error. I believe this used to work in the November beta, but in the most recent build it produces an error.
Here is a code snippet using a simple update from the InlineGraphic.as example:
var link:LinkElement = new LinkElement();
link.href = "http://www.adobe.com";
var inlineGraphic:InlineGraphicElement = new InlineGraphicElement();
inlineGraphic.source = "http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg";
inlineGraphic.width = 100;
inlineGraphic.height = 100;
link.addChild(inlineGraphic);
p.addChild(link);
When it runs, it produces the following error:
undefined
at flashx.textLayout.compose::StandardFlowComposer/internalCompose()
at flashx.textLayout.compose::StandardFlowComposer/composeToController()
at flashx.textLayout.compose::StandardFlowComposer/updateToController()
at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()
at InlineGraphic()
Let me know if there is something I am missing. Thanks!
-Kevin
