<?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: Making Flash and Flex talk (Part 2)</title>
	<atom:link href="http://flash.fincanon.com/archives/152/feed" rel="self" type="application/rss+xml" />
	<link>http://flash.fincanon.com/archives/152</link>
	<description>Flash Platform stuff from Jason Fincanon</description>
	<lastBuildDate>Wed, 10 Feb 2010 05:55:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: awildasp</title>
		<link>http://flash.fincanon.com/archives/152/comment-page-1#comment-44827</link>
		<dc:creator>awildasp</dc:creator>
		<pubDate>Thu, 06 Aug 2009 01:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://flash.fincanon.com/?p=152#comment-44827</guid>
		<description>You sir are a life saver! Thank you very much! Worked like a charm. One thing that messed me up was that I had set 	loadForCompatibility=&quot;true&quot; as I was trying to get my sub-flash app to work. Following your instructions I was able to execute methods but my events would give me errors about being unable to convert events. Well removing the loadForCompatibility solved that issue.

Once again, thank you!!</description>
		<content:encoded><![CDATA[<p>You sir are a life saver! Thank you very much! Worked like a charm. One thing that messed me up was that I had set 	loadForCompatibility=&#8221;true&#8221; as I was trying to get my sub-flash app to work. Following your instructions I was able to execute methods but my events would give me errors about being unable to convert events. Well removing the loadForCompatibility solved that issue.</p>
<p>Once again, thank you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rion</title>
		<link>http://flash.fincanon.com/archives/152/comment-page-1#comment-43642</link>
		<dc:creator>Rion</dc:creator>
		<pubDate>Fri, 23 Jan 2009 15:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://flash.fincanon.com/?p=152#comment-43642</guid>
		<description>I think the perferct solution is to use just an event name in both applications which are trying to communicate.  Let&#039;s say MainApplication trigers &quot;eventA&quot; and that event can be handled in SubApplication, wheras SubAplication triggers &quot;eventB&quot; which can be handled by MainApplication. This way your applications are not tightly coupled.

I don&#039;t see serious security issue here because:
- MainApplication needs to load Subapplication (SubApplication can not inject yourself and start to listen for events generated by MainApplication
- there are security domains, when you load something from your domain probably you trust it and it is in the same domain otherwise it is in different

I was trying to follow the information in this document http://livedocs.adobe.com/flex/3/loading_applications.pdf 
especially the section called &quot;communication accross domains&quot; page number 15. But either it is not doable or I am doing something wrong because I was able to send events from main to sub but not in the opposite direction.
The same issue is described here http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan
and the &quot;funny&quot; thing is that contentHolder field does not exist in SWFLoader.</description>
		<content:encoded><![CDATA[<p>I think the perferct solution is to use just an event name in both applications which are trying to communicate.  Let&#8217;s say MainApplication trigers &#8220;eventA&#8221; and that event can be handled in SubApplication, wheras SubAplication triggers &#8220;eventB&#8221; which can be handled by MainApplication. This way your applications are not tightly coupled.</p>
<p>I don&#8217;t see serious security issue here because:<br />
- MainApplication needs to load Subapplication (SubApplication can not inject yourself and start to listen for events generated by MainApplication<br />
- there are security domains, when you load something from your domain probably you trust it and it is in the same domain otherwise it is in different</p>
<p>I was trying to follow the information in this document <a href="http://livedocs.adobe.com/flex/3/loading_applications.pdf" rel="nofollow">http://livedocs.adobe.com/flex/3/loading_applications.pdf</a><br />
especially the section called &#8220;communication accross domains&#8221; page number 15. But either it is not doable or I am doing something wrong because I was able to send events from main to sub but not in the opposite direction.<br />
The same issue is described here <a href="http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan" rel="nofollow">http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan</a><br />
and the &#8220;funny&#8221; thing is that contentHolder field does not exist in SWFLoader.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://flash.fincanon.com/archives/152/comment-page-1#comment-43629</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 22 Jan 2009 16:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://flash.fincanon.com/?p=152#comment-43629</guid>
		<description>Thanks Rion, you are correct, but here&#039;s a question:
If you don&#039;t know the name of the method in the child swf, how would you tell it how to react when the listener is triggered?

On top of that, if you don&#039;t know the name of the method in the child swf, then you are either not the developer of the child swf or you are not working directly with the developer of the child swf. I would think that being able to load and then control child swfs that you had no part in creating could lead to some serious security issues.</description>
		<content:encoded><![CDATA[<p>Thanks Rion, you are correct, but here&#8217;s a question:<br />
If you don&#8217;t know the name of the method in the child swf, how would you tell it how to react when the listener is triggered?</p>
<p>On top of that, if you don&#8217;t know the name of the method in the child swf, then you are either not the developer of the child swf or you are not working directly with the developer of the child swf. I would think that being able to load and then control child swfs that you had no part in creating could lead to some serious security issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rion</title>
		<link>http://flash.fincanon.com/archives/152/comment-page-1#comment-43628</link>
		<dc:creator>Rion</dc:creator>
		<pubDate>Thu, 22 Jan 2009 15:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://flash.fincanon.com/?p=152#comment-43628</guid>
		<description>This is a nice example, but you still need to know the name of the method in the child SWF. Please glance at line number 4 and the listenToFlex method.

   1.private function setSwfMc():void{
   2.   mySwfMc = mySWFLoader.content as MovieClip;
   3.   mySwfMc.addEventListener(FFTalkEvent.TALK_TO_FLEX,listenToFlash);
   4.   this.addEventListener(FFTalkEvent.TALK_TO_FLASH,mySwfMc.listenToFlex);
   5.}</description>
		<content:encoded><![CDATA[<p>This is a nice example, but you still need to know the name of the method in the child SWF. Please glance at line number 4 and the listenToFlex method.</p>
<p>   1.private function setSwfMc():void{<br />
   2.   mySwfMc = mySWFLoader.content as MovieClip;<br />
   3.   mySwfMc.addEventListener(FFTalkEvent.TALK_TO_FLEX,listenToFlash);<br />
   4.   this.addEventListener(FFTalkEvent.TALK_TO_FLASH,mySwfMc.listenToFlex);<br />
   5.}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kanUcme</title>
		<link>http://flash.fincanon.com/archives/152/comment-page-1#comment-43602</link>
		<dc:creator>kanUcme</dc:creator>
		<pubDate>Thu, 15 Jan 2009 18:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://flash.fincanon.com/?p=152#comment-43602</guid>
		<description>This post was a life saver was trying to figure this out...

Much Appreciated...

Peace...</description>
		<content:encoded><![CDATA[<p>This post was a life saver was trying to figure this out&#8230;</p>
<p>Much Appreciated&#8230;</p>
<p>Peace&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
