<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jozef Chúťka&#039;s blog &#187; LoaderContext</title>
	<atom:link href="http://blog.yoz.sk/tag/loadercontext/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flex Error #1034: Type Coercion Failed: Cannot Convert *** to mx.core.IFlexDisplayObject</title>
		<link>http://blog.yoz.sk/2009/10/flex-error-1034-type-coercion-failed-cannot-convert-to-mx-core-iflexdisplayobject/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=flex-error-1034-type-coercion-failed-cannot-convert-to-mx-core-iflexdisplayobject</link>
		<comments>http://blog.yoz.sk/2009/10/flex-error-1034-type-coercion-failed-cannot-convert-to-mx-core-iflexdisplayobject/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 16:10:11 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[ApplicationDomain]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[IFlexDisplayObject]]></category>
		<category><![CDATA[Loader]]></category>
		<category><![CDATA[LoaderContext]]></category>
		<category><![CDATA[URLRequest]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=501</guid>
		<description><![CDATA[When you keep getting: Flex Error #1034: Type Coercion Failed: Cannot Convert *** to mx.core.IFlexDisplayObject &#8230; after using getDefinition() method, in my case: The problem is, in fact, the security not coercion! Try move your .swf (the one that is beeing loaded) into the same directory where master .swf file is located.]]></description>
			<content:encoded><![CDATA[<p>When you keep getting:</p>
<pre>Flex Error #1034: Type Coercion Failed: Cannot Convert *** to mx.core.IFlexDisplayObject</pre>
<p>&#8230; after using getDefinition() method, in my case:</p>
<pre class="brush: as3; title: ; notranslate">
// url = &quot;../some.swf&quot;
var request:URLRequest = new URLRequest(url);
var context:LoaderContext = new LoaderContext();
context.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, assetsComplete);
loader.load(request, context);
...
// assetsComplete()
var applicationDomain:ApplicationDomain = assetsLoader.contentLoaderInfo.applicationDomain;
var assetsClass:Class = applicationDomain.getDefinition(&quot;Assets&quot;) as Class;
...
</pre>
<p>The problem is, in fact, the security not coercion! Try move your .swf (the one that is beeing loaded) into the same directory where master .swf file is located.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/10/flex-error-1034-type-coercion-failed-cannot-convert-to-mx-core-iflexdisplayobject/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

