<?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: Communicate betwen C# and an embeded Flash application</title>
	<atom:link href="http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/</link>
	<description>No matter how you see things, reality changes when you reach understanding</description>
	<lastBuildDate>Mon, 09 Aug 2010 17:01:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: kepica</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-380</link>
		<dc:creator>kepica</dc:creator>
		<pubDate>Wed, 28 Jul 2010 08:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-380</guid>
		<description>thank you !
it was really helpfull !
sample on adobe site is horror !
this is awsome !

KISS ! ( keep it simple &amp; stupid )</description>
		<content:encoded><![CDATA[<p>thank you !<br />
it was really helpfull !<br />
sample on adobe site is horror !<br />
this is awsome !</p>
<p>KISS ! ( keep it simple &amp; stupid )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: meenakshi</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-270</link>
		<dc:creator>meenakshi</dc:creator>
		<pubDate>Wed, 31 Mar 2010 07:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-270</guid>
		<description>great Work!Really Helpful.</description>
		<content:encoded><![CDATA[<p>great Work!Really Helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Communicate betwen C# and an embeded Flash application &#124; Source code bank</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-268</link>
		<dc:creator>Communicate betwen C# and an embeded Flash application &#124; Source code bank</dc:creator>
		<pubDate>Thu, 25 Mar 2010 05:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-268</guid>
		<description>[...] Demo :  Download this example : Click here source : blog.another-d-mention.ro [...]</description>
		<content:encoded><![CDATA[<p>[...] Demo :  Download this example : Click here source : blog.another-d-mention.ro [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-243</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 29 Jan 2010 07:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-243</guid>
		<description>&lt;a href=&quot;#comment-242&quot; rel=&quot;nofollow&quot;&gt;@Scott&lt;/a&gt; 
Flash Lite has no equivalent api feature like the AS3 ExternalInterface api. One potential way to send data from Flash to another local application is with fscommand(). Another common approach is to build the native application as a local server and use xml sockets as a way to send data back and forth.</description>
		<content:encoded><![CDATA[<p><a href="#comment-242" rel="nofollow">@Scott</a><br />
Flash Lite has no equivalent api feature like the AS3 ExternalInterface api. One potential way to send data from Flash to another local application is with fscommand(). Another common approach is to build the native application as a local server and use xml sockets as a way to send data back and forth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-242</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Thu, 28 Jan 2010 21:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-242</guid>
		<description>Any way to do this with Flash Lite?</description>
		<content:encoded><![CDATA[<p>Any way to do this with Flash Lite?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Istvan</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-226</link>
		<dc:creator>Istvan</dc:creator>
		<pubDate>Thu, 03 Dec 2009 10:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-226</guid>
		<description>Hi,

Thank you for this very useful article. Do you have idea, how can I extend this to give back a return value at AS-&gt;C# call ?
Because now AS-&gt;C# is a simple procedure, not a function call and in a lot case return value is needed...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thank you for this very useful article. Do you have idea, how can I extend this to give back a return value at AS-&gt;C# call ?<br />
Because now AS-&gt;C# is a simple procedure, not a function call and in a lot case return value is needed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thakur</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-199</link>
		<dc:creator>Thakur</dc:creator>
		<pubDate>Tue, 22 Sep 2009 15:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-199</guid>
		<description>Hi,

This is my first interaction with flex.
Can i use flex to carry out memory dump of flash application without using ShockwaveFlash COM object?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is my first interaction with flex.<br />
Can i use flex to carry out memory dump of flash application without using ShockwaveFlash COM object?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-75</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 18 Jun 2009 06:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-75</guid>
		<description>&lt;a href=&quot;#comment-74&quot; rel=&quot;nofollow&quot;&gt;@Lucas&lt;/a&gt; 
As you see, in c# there is a switch on the command function recived from flash. in the example i gave a comment ago, the function send(message:String) uses the command sendText, but you can use that as a parameter as well.

public function send(command : String, message : String):void
{
    ExternalInterface.call(command, message);
}

and in c#

switch (command)
{
     case &quot;sendText&quot; : doSometing(); break;
     case &quot;Some_Other_Command&quot; : doSometingElse(); break;
     case ....
     .....
}</description>
		<content:encoded><![CDATA[<p><a href="#comment-74" rel="nofollow">@Lucas</a><br />
As you see, in c# there is a switch on the command function recived from flash. in the example i gave a comment ago, the function send(message:String) uses the command sendText, but you can use that as a parameter as well.</p>
<p>public function send(command : String, message : String):void<br />
{<br />
    ExternalInterface.call(command, message);<br />
}</p>
<p>and in c#</p>
<p>switch (command)<br />
{<br />
     case &#8220;sendText&#8221; : doSometing(); break;<br />
     case &#8220;Some_Other_Command&#8221; : doSometingElse(); break;<br />
     case &#8230;.<br />
     &#8230;..<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-74</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Wed, 17 Jun 2009 23:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-74</guid>
		<description>Hey man, this works perfect, but what if I want to send more than 1 data to C# with the same function. Do I have to put several ExternalInterface.call inside the button function o with just one I can send a lot of data ?</description>
		<content:encoded><![CDATA[<p>Hey man, this works perfect, but what if I want to send more than 1 data to C# with the same function. Do I have to put several ExternalInterface.call inside the button function o with just one I can send a lot of data ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/comment-page-1/#comment-58</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 13 May 2009 13:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=230#comment-58</guid>
		<description>&lt;a href=&quot;#comment-57&quot; rel=&quot;nofollow&quot;&gt;@Pankaj&lt;/a&gt; 

csharp.as
--------------------
package
{
    import flash.external.ExternalInterface;

    public class Csharp
    {
         private var _text : TextArea;

         public function Csharp(someTextArea : TextArea)
         {
             this._text = someTextArea;
             ExternalInterface.addCallback(&quot;addText&quot;,addText);
         }        
         
         // get message from c#
         private function addText(val:String):void
         {
	     _text.appendText(val + &quot;\n&quot;);
         }
         
         // Send message to C#
         public function send(message : String):void
         {
	     ExternalInterface.call(&quot;sendText&quot;, message);
         }
    }
}

the way to use it is


var com : Csharp = new Csharp(responseBox); // where responseBox is a textarea where messages will be apended when recived from c#

and if you want to send someting you do
com.send(&#039;hello from flash&#039;);

that&#039;s it. the code was in the article, rest of it was just...interface</description>
		<content:encoded><![CDATA[<p><a href="#comment-57" rel="nofollow">@Pankaj</a> </p>
<p>csharp.as<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
package<br />
{<br />
    import flash.external.ExternalInterface;</p>
<p>    public class Csharp<br />
    {<br />
         private var _text : TextArea;</p>
<p>         public function Csharp(someTextArea : TextArea)<br />
         {<br />
             this._text = someTextArea;<br />
             ExternalInterface.addCallback(&#8220;addText&#8221;,addText);<br />
         }        </p>
<p>         // get message from c#<br />
         private function addText(val:String):void<br />
         {<br />
	     _text.appendText(val + &#8220;\n&#8221;);<br />
         }</p>
<p>         // Send message to C#<br />
         public function send(message : String):void<br />
         {<br />
	     ExternalInterface.call(&#8220;sendText&#8221;, message);<br />
         }<br />
    }<br />
}</p>
<p>the way to use it is</p>
<p>var com : Csharp = new Csharp(responseBox); // where responseBox is a textarea where messages will be apended when recived from c#</p>
<p>and if you want to send someting you do<br />
com.send(&#8216;hello from flash&#8217;);</p>
<p>that&#8217;s it. the code was in the article, rest of it was just&#8230;interface</p>
]]></content:encoded>
	</item>
</channel>
</rss>
