Merge pull request #1 from typhoid/typhoid-patch-1
update inlinegraphicelement.as
diff --git a/textLayout/src/flashx/textLayout/elements/InlineGraphicElement.as b/textLayout/src/flashx/textLayout/elements/InlineGraphicElement.as
index c36eb4f..fcf39cb 100644
--- a/textLayout/src/flashx/textLayout/elements/InlineGraphicElement.as
+++ b/textLayout/src/flashx/textLayout/elements/InlineGraphicElement.as
@@ -700,7 +700,7 @@
_measuredHeight = g.height;
//bug #2931005 TLF cannot show Flex SWF after loading it as an ILG
- if(graphic is Loader && Loader(graphic).content != null && Loader(graphic).content.hasOwnProperty("setActualSize") && (!widthIsComputed() || !heightIsComputed()) )
+ if(graphic is Loader && Loader(graphic).contentLoaderInfo.contentType == "application/x-shockwave-flash" && Loader(graphic).content != null && Loader(graphic).content.hasOwnProperty("setActualSize") && (!widthIsComputed() || !heightIsComputed()) )
Object(Loader(graphic).content).setActualSize(elementWidth, elementHeight);
else
{