<?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>Ticklish Techs &#187; flash</title>
	<atom:link href="http://www.ticklishtechs.net/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ticklishtechs.net</link>
	<description>a mostly .NET but also some other cool techs blog</description>
	<lastBuildDate>Wed, 05 Jan 2011 21:44:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>&quot;GOA Winforms&quot; is amazing</title>
		<link>http://www.ticklishtechs.net/2008/02/27/goa-winforms-is-amazing/</link>
		<comments>http://www.ticklishtechs.net/2008/02/27/goa-winforms-is-amazing/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 22:39:17 +0000</pubDate>
		<dc:creator>Wolfram Bernhardt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.ticklishtechs.net/2008/02/27/goa-winforms-is-amazing/</guid>
		<description><![CDATA[Today my world changed a little bit. My friend Rob asked me to write a fun application: You answer some questions and it tells you something, fairly simple. But he wanted to put it up his blog&#8230; oh-oh&#8230; Well&#8230; I am not much of a network- or server-guy and he runs a WordPress-blog on a [...]]]></description>
			<content:encoded><![CDATA[<p>Today my world changed a little bit. My friend Rob asked me to write a fun application: You answer some questions and it tells you something, fairly simple. But he wanted to put it up his blog&#8230; oh-oh&#8230; Well&#8230; I am not much of a network- or server-guy and he runs a WordPress-blog on a hosted linux maschine, so .NET wouldn&#8217;t work. I started thinking about HTML-forms and java-script stuff but I don&#8217;t think it works too well with blog-posts and &#8211; by the way &#8211; I hate that sh*t, so I dropped it after one second.</p>
<h3>Flash or Silverlight?</h3>
<p>Then I thought about Flash and I guess that&#8217;s what you would use for a little game like that. But I don&#8217;t have it, I don&#8217;t want to buy it (is there a free version?) and I don&#8217;t have the time to learn it; although I think it&#8217;s pretty cool.</p>
<p>But&#8230; wait a moment? What about Silverlight? Isn&#8217;t it similar to Flash? I checked it out and I tell you: No, it&#8217;s not. Or nor yet. I downloaded the SDK, played a bit, read some pages. But&#8230; it&#8217;s just not the way you want it to be. Works only with java-script, isn&#8217;t easy, needs a lot of learning, doesn&#8217;t give you any moments of success. It&#8217;s just no fun.</p>
<h3>Here comes GOA</h3>
<p>So I complained in a chat with Benjamin. &quot;Do I have to write a .NET-to-Flash-converter first?&quot; He said: &quot;There is one.&quot; &#8211; &quot;WHAT?&quot; &#8211; &quot;Yes, I heard about something like that.&quot; and a minute later he produced <a href="http://www.netikatech.com/products/editions.aspx">a link to a product called &quot;Goa Winforms&quot;.</a> I could hardly believe my eyes. They claim to have an engine to compile .NET-Winform-Code to Flash (.swf) applications.</p>
<p>The basic version is free and comes as a 3MB installer, which integrates the tool smoothly into VS2005. After installing VS comes up with new project-types.</p>
<p><a href="http://www.ticklishtechs.net/wp-content/uploads/2008/02/goa-projects1.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="198" alt="Goa_Projects" src="http://www.ticklishtechs.net/wp-content/uploads/2008/02/goa-projects-thumb1.png" width="464" border="0" /></a></p>
<p>I choose the GOA Application and VS prepares a solution with a new project and a file that looks like a regular C#-file (the extension is .ccs by the way). Okay, let&#8217;s start it&#8230; Wow! A real Flash-application comes up. So far it&#8217;s just an empty form with one button &#8211; but it runs. It runs!!!</p>
<p>I think they implemented most of the common gui-components for flash and engineered a compiler that somehow converts C#-Code into an flash-interpretable format. Cool achievement!</p>
<p>Now, let&#8217;s design a fancy gui&#8230; but&#8230; were is the designer? In brief: There is none. You can&#8217;t design the gui as you usually would. Ouch. Okay, there is a solution to this &#8216;issue&#8217;, but it hurts and can&#8217;t be more than an temporary workaround: Add a Windows-application project to your solution, design your gui and copy the generated code to the GOA-application file.</p>
<p>Done? No. When you try to compile it, you get a bunch of errors and you have to manually delete any usages of properties that have been generated but are not supported by the GOA-version of the corresponding controls.</p>
<p>Now it works and you can continue to write your logic&#8230; but that takes us to another annoying point: The integration to Visual Studio could be improved a lot. Syntax-highlighting and intellisense work, but that&#8217;s it. Auto-re-indentation doesn&#8217;t work, errors and warnings do not all occur in the &quot;Error-List&quot;-Window, and my loved <a href="http://www.jetbrains.com/resharper/">ReSharper</a> didn&#8217;t recognize the code; but maybe that&#8217;s just because of the extension .css &#8211; is there a way to make ReSharper recognize those files as regular C#-files? Please let me know.</p>
<p>That&#8217;s was a lot of bleating, but lord don&#8217;t let me be misunderstood: It&#8217;s works and you get a lot for your effort; I had the fun application for Rob done in three hours (including learning, fighting, reading) and I am happy with it.</p>
<p>There is a lot more to play around with &#8211; like dymanic creation of controls &#8211; but it should be fine for the most purposes.</p>
<h3>GOA vs. Silverlight</h3>
<p>As soon as the GOA guys can get rid of the drawbacks, I think this approach has great potential. As long as Silverlight is ugly, &quot;GOA Winforms&quot; is something to really keep an eye on. And Silverlight 2.0 hasn&#8217;t proven yet that it can beat Flash. So, let&#8217;s see if Microsoft will take    <br />the challenge.</p>
<h3>Bonustrack</h3>
<p>By the way.. here is the &quot;application&quot;. It&#8217;s in German and doesn&#8217;t do much&#8230; but blame Rob for that <img src='http://www.ticklishtechs.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&#160;</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_goaapplication1_1803779321"
			class="flashmovie"
			width="350"
			height="270">
	<param name="movie" value="http://www.ticklishtechs.net/wp-content/uploads/2008/02/goaapplication1.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.ticklishtechs.net/wp-content/uploads/2008/02/goaapplication1.swf"
			name="fm_goaapplication1_1803779321"
			width="350"
			height="270">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.ticklishtechs.net/2008/02/27/goa-winforms-is-amazing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

