<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Load an external flex swf into a flash project and communicate with him.</title>
	<atom:link href="http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<lastBuildDate>Wed, 28 Jul 2010 11:46:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cihan Polat</title>
		<link>http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/comment-page-1/#comment-875</link>
		<dc:creator>Cihan Polat</dc:creator>
		<pubDate>Fri, 10 Apr 2009 16:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/#comment-875</guid>
		<description>I think this version is handier

package {
	import flash.display.Loader;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.TimerEvent;
	import flash.net.URLRequest;
	import flash.utils.Timer;

	[SWF(width=&#039;1024&#039;,height=&#039;768&#039;,backgroundColor=&#039;0x000000&#039;,frameRate=&#039;25&#039;)]

	public class testes extends Sprite
	{
		
		private var _swfTimer:Timer;
		private var _loader:Loader;
		
		public function testes()
		{
			_loader = new Loader();
			_loader.load(new URLRequest(&quot;Gui.swf&quot;));
			_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadIt);
			addChild(_loader);
		}
			
		private function loadIt(e:Event):void
		{
			var myclip:MovieClip = _loader.content as MovieClip;
			if(myclip.application == null ) 
				myclip.addEventListener( &quot;applicationComplete&quot;, onAppComplete );
			else
				onAppComplete();
		}
		
		private function onAppComplete(e:Event=null):void
		{	
			var myclip:MovieClip = _loader.content as MovieClip;
		
			// call the function here eg: traceFunction(&quot;Hello World&quot;)				
			myclip.application.traceFunction(&quot;Hello World&quot;);
			
		}
		
	}
}</description>
		<content:encoded><![CDATA[<p>I think this version is handier</p>
<p>package {<br />
	import flash.display.Loader;<br />
	import flash.display.MovieClip;<br />
	import flash.display.Sprite;<br />
	import flash.events.Event;<br />
	import flash.events.TimerEvent;<br />
	import flash.net.URLRequest;<br />
	import flash.utils.Timer;</p>
<p>	[SWF(width='1024',height='768',backgroundColor='0x000000',frameRate='25')]</p>
<p>	public class testes extends Sprite<br />
	{</p>
<p>		private var _swfTimer:Timer;<br />
		private var _loader:Loader;</p>
<p>		public function testes()<br />
		{<br />
			_loader = new Loader();<br />
			_loader.load(new URLRequest(&#8220;Gui.swf&#8221;));<br />
			_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadIt);<br />
			addChild(_loader);<br />
		}</p>
<p>		private function loadIt(e:Event):void<br />
		{<br />
			var myclip:MovieClip = _loader.content as MovieClip;<br />
			if(myclip.application == null )<br />
				myclip.addEventListener( &#8220;applicationComplete&#8221;, onAppComplete );<br />
			else<br />
				onAppComplete();<br />
		}</p>
<p>		private function onAppComplete(e:Event=null):void<br />
		{<br />
			var myclip:MovieClip = _loader.content as MovieClip;</p>
<p>			// call the function here eg: traceFunction(&#8220;Hello World&#8221;)<br />
			myclip.application.traceFunction(&#8220;Hello World&#8221;);</p>
<p>		}</p>
<p>	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/comment-page-1/#comment-871</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 07 Apr 2009 12:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/#comment-871</guid>
		<description>As soon as I try to load a SWF created with Flex 3 in a Flash CS3 project using a Loader instance, I get the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert xxx@40cd4d01 to mx.core.IUIComponent.	at mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3188] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3064] at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2916]

Do you have any idea how I can resolve this, in order to use SWFs created with Flex in a Flash CS3 project? Or isn&#039;t this possible at all?</description>
		<content:encoded><![CDATA[<p>As soon as I try to load a SWF created with Flex 3 in a Flash CS3 project using a Loader instance, I get the following error:</p>
<p>TypeError: Error #1034: Type Coercion failed: cannot convert xxx@40cd4d01 to mx.core.IUIComponent.	at mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3188] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3064] at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2916]</p>
<p>Do you have any idea how I can resolve this, in order to use SWFs created with Flex in a Flash CS3 project? Or isn&#8217;t this possible at all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drew</title>
		<link>http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/comment-page-1/#comment-805</link>
		<dc:creator>drew</dc:creator>
		<pubDate>Fri, 06 Feb 2009 12:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/#comment-805</guid>
		<description>i would avoid using the word &quot;testes&quot; in source code.
thx for the timer example</description>
		<content:encoded><![CDATA[<p>i would avoid using the word &#8220;testes&#8221; in source code.<br />
thx for the timer example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DeepBlock</title>
		<link>http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/comment-page-1/#comment-370</link>
		<dc:creator>DeepBlock</dc:creator>
		<pubDate>Mon, 02 Jun 2008 02:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/#comment-370</guid>
		<description>is it possible to use the uiloader to load an external swf compiled with flex 3 into a swf compile with flash cs3 at runtime. is there any principle to folow?</description>
		<content:encoded><![CDATA[<p>is it possible to use the uiloader to load an external swf compiled with flex 3 into a swf compile with flash cs3 at runtime. is there any principle to folow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kino</title>
		<link>http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/comment-page-1/#comment-356</link>
		<dc:creator>kino</dc:creator>
		<pubDate>Sat, 24 May 2008 00:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/04/15/load-an-external-flex-swf-into-a-flash-project-and-comunite-with-him/#comment-356</guid>
		<description>Omnipotence is an idea. Does Wittgenstein really believe that Foucault says that justice is separate from the universe? Does Hume really believe that I agree with Locke on this belief? Skepticism proves Reductionism.

    My philosophy teacher says that consciousness can be inconsistent with reality, but my life can be thought of as my consciousness. If existence breaks down society&#039;s beliefs about thought, is it true that an outside influence breaks down epistemology? I&#039;m wondering whether or not according to Kierkegaard, religion can be similar to Postmodernism. Thought leads inevitably to society&#039;s beliefs about my consciousness. If existence can be without a connection to Existentialism, is it true that Descartes says that the Prisoner&#039;s Dilemma cannot be separate from an idea?</description>
		<content:encoded><![CDATA[<p>Omnipotence is an idea. Does Wittgenstein really believe that Foucault says that justice is separate from the universe? Does Hume really believe that I agree with Locke on this belief? Skepticism proves Reductionism.</p>
<p>    My philosophy teacher says that consciousness can be inconsistent with reality, but my life can be thought of as my consciousness. If existence breaks down society&#8217;s beliefs about thought, is it true that an outside influence breaks down epistemology? I&#8217;m wondering whether or not according to Kierkegaard, religion can be similar to Postmodernism. Thought leads inevitably to society&#8217;s beliefs about my consciousness. If existence can be without a connection to Existentialism, is it true that Descartes says that the Prisoner&#8217;s Dilemma cannot be separate from an idea?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
