<?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: Code-Behind and Flex 2.0 (Partial Classes)</title>
	<atom:link href="http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/</link>
	<description>Flash Platform development and personal rants.</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:01:17 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: adampetrie.com &#124;   Adam Vs. The Flex Machine - Round 2</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-196283</link>
		<dc:creator>adampetrie.com &#124;   Adam Vs. The Flex Machine - Round 2</dc:creator>
		<pubDate>Wed, 10 Jun 2009 15:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-196283</guid>
		<description>[...] ns of the interface elements.  As I struggled through it, I read up on the code-behind and partial-classes principles that seem to be generally accepted by the Flex commun [...]</description>
		<content:encoded><![CDATA[<p>[...] ns of the interface elements.  As I struggled through it, I read up on the code-behind and partial-classes principles that seem to be generally accepted by the Flex commun [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wiibart.com  &#187; Blog Archive   &#187; Code behind in Flex, I guess just not! - bart burkhardt</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-192484</link>
		<dc:creator>wiibart.com  &#187; Blog Archive   &#187; Code behind in Flex, I guess just not! - bart burkhardt</dc:creator>
		<pubDate>Wed, 13 May 2009 12:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-192484</guid>
		<description>[...]  started reading… I learnt really few things in the post, but one comment had a link to aTink BlogPost&#160;where he advocated that Flex [...]</description>
		<content:encoded><![CDATA[<p>[...]  started reading… I learnt really few things in the post, but one comment had a link to aTink BlogPost&nbsp;where he advocated that Flex [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex View Component Techniques in MXML &#38; AS at tsclausing.com</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-56882</link>
		<dc:creator>Flex View Component Techniques in MXML &#38; AS at tsclausing.com</dc:creator>
		<pubDate>Fri, 29 Feb 2008 19:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-56882</guid>
		<description>[...] 216;code-behind&#8216; techniques that Ted and Adobe promote.  I&#8217;ve tried the &#8216;script src&#8216; technique that Tink is passionate about.  And I&#8217;ve even  [...]</description>
		<content:encoded><![CDATA[<p>[...] 216;code-behind&#8216; techniques that Ted and Adobe promote.  I&#8217;ve tried the &#8216;script src&#8216; technique that Tink is passionate about.  And I&#8217;ve even  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-46390</link>
		<dc:creator>Axel</dc:creator>
		<pubDate>Mon, 19 Nov 2007 14:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-46390</guid>
		<description>Alright, thanks for your help, i&#039;ll check it out.</description>
		<content:encoded><![CDATA[<p>Alright, thanks for your help, i&#8217;ll check it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tink</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-46382</link>
		<dc:creator>Tink</dc:creator>
		<pubDate>Mon, 19 Nov 2007 10:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-46382</guid>
		<description>Hey Alex, what version of FB are you using.

We&#039;re using FB 3.0 beta 2.0 and have tested on both OSX and Windows and goto definition works fine on both. That said, I don&#039;t ever remember this not woking for me in previous versions such as FB 2.0.

We don&#039;t provide the full path, just the name of the file as its in the same directory. So i have a main MXML file called &#039;CodeBehindTest.mxml&#039; and an AS file named &#039;codeBehindTest.as&#039; and then in the script tag I use:

source=&quot;codeBehindTest.as&quot;

Everything works the same as if the code was written inline inside the script tag and MXML file.</description>
		<content:encoded><![CDATA[<p>Hey Alex, what version of FB are you using.</p>
<p>We&#8217;re using FB 3.0 beta 2.0 and have tested on both OSX and Windows and goto definition works fine on both. That said, I don&#8217;t ever remember this not woking for me in previous versions such as FB 2.0.</p>
<p>We don&#8217;t provide the full path, just the name of the file as its in the same directory. So i have a main MXML file called &#8216;CodeBehindTest.mxml&#8217; and an AS file named &#8216;codeBehindTest.as&#8217; and then in the script tag I use:</p>
<p>source=&#8221;codeBehindTest.as&#8221;</p>
<p>Everything works the same as if the code was written inline inside the script tag and MXML file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-46345</link>
		<dc:creator>Axel</dc:creator>
		<pubDate>Sun, 18 Nov 2007 21:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-46345</guid>
		<description>Thanks for the reply, i can&#039;t say how much i appreciate that, i post comments out there, and on flexcoders an no one ever seems to reply... so thanks for that...

so the code minus the &quot;opening and closing carrots&quot; is 

vbox
  button click=&quot;doClick()&quot;
endvbox

thats all it was... 

you say that your goto definition works? do you provide the full path to the file or something? lets say i&#039;m knee deep in my structure 

com/acj/view/login/Login_code.as
com/acj/view/login/Login.mxml

the mxml includes the _code file via the source=&quot;Login_code.as&quot; the goto definition doesn&#039;t work... it just jumps to the top of whatever file i&#039;m in... do i have to provide the full path or something? I don&#039;t want to hardcode the full path in the source... I&#039;m not sure why the goto definition doesn&#039;t work for me when i use the source=&quot;someAsFile.as&quot; in the script block....

so in short, the problem is... you say the goto definition works when using the source=&quot;someAsFile.as&quot;  (which is code-behind) but i&#039;m saying it doesnt work and never has... (not for me at least)

any example would be awesome... later man, thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply, i can&#8217;t say how much i appreciate that, i post comments out there, and on flexcoders an no one ever seems to reply&#8230; so thanks for that&#8230;</p>
<p>so the code minus the &#8220;opening and closing carrots&#8221; is </p>
<p>vbox<br />
  button click=&#8221;doClick()&#8221;<br />
endvbox</p>
<p>thats all it was&#8230; </p>
<p>you say that your goto definition works? do you provide the full path to the file or something? lets say i&#8217;m knee deep in my structure </p>
<p>com/acj/view/login/Login_code.as<br />
com/acj/view/login/Login.mxml</p>
<p>the mxml includes the _code file via the source=&#8221;Login_code.as&#8221; the goto definition doesn&#8217;t work&#8230; it just jumps to the top of whatever file i&#8217;m in&#8230; do i have to provide the full path or something? I don&#8217;t want to hardcode the full path in the source&#8230; I&#8217;m not sure why the goto definition doesn&#8217;t work for me when i use the source=&#8221;someAsFile.as&#8221; in the script block&#8230;.</p>
<p>so in short, the problem is&#8230; you say the goto definition works when using the source=&#8221;someAsFile.as&#8221;  (which is code-behind) but i&#8217;m saying it doesnt work and never has&#8230; (not for me at least)</p>
<p>any example would be awesome&#8230; later man, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tink</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-46326</link>
		<dc:creator>Tink</dc:creator>
		<pubDate>Sun, 18 Nov 2007 15:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-46326</guid>
		<description>Hey Axel

Unfortunetly your code was removed when you posted (pesky wordpress, i&#039;d be interested if anyone know how I can allow MXML with wordpress alongside proper code hinting in comments).

I&#039;m not sure I understand your problem without seeing the code.

Lets say I have an .as file and it has a private method call test() in it. If i create an MXML file and create a script tage and add the .as file as the source, i can now create components and invoke the method test(). The FB IDE gives me code hinting/completion for the method, and if i use &#039;goto definition&#039; (CTRL + click/F3), it will open the file and take me directly to the test() method as you would expect with any iinline code or inheritance.

I don&#039;t implement code-behind in all projects, but when I have used it I have kept the files in the same directly and named them exactly the same but the name isn&#039;t capilatlize on the .as file as it isn&#039;t a class. This way the 2 files sit next to each other in the navigator.</description>
		<content:encoded><![CDATA[<p>Hey Axel</p>
<p>Unfortunetly your code was removed when you posted (pesky wordpress, i&#8217;d be interested if anyone know how I can allow MXML with wordpress alongside proper code hinting in comments).</p>
<p>I&#8217;m not sure I understand your problem without seeing the code.</p>
<p>Lets say I have an .as file and it has a private method call test() in it. If i create an MXML file and create a script tage and add the .as file as the source, i can now create components and invoke the method test(). The FB IDE gives me code hinting/completion for the method, and if i use &#8216;goto definition&#8217; (CTRL + click/F3), it will open the file and take me directly to the test() method as you would expect with any iinline code or inheritance.</p>
<p>I don&#8217;t implement code-behind in all projects, but when I have used it I have kept the files in the same directly and named them exactly the same but the name isn&#8217;t capilatlize on the .as file as it isn&#8217;t a class. This way the 2 files sit next to each other in the navigator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-46285</link>
		<dc:creator>Axel</dc:creator>
		<pubDate>Sun, 18 Nov 2007 02:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-46285</guid>
		<description>Hey Tink,

I have one massive problem with the script block and the source attribute... the IDE(flexbuilder/eclipse) doesn&#039;t introspect into the file... 

so lets say i have a mxml file with some mxml components in it

--psuedo code

  


i can&#039;t control + click on the function (&quot;doClick()&quot;) and have the IDE jump to the function... it just jumps to the top of the file, like it&#039;s trying to find it... I&#039;m all for clean code... but since the IDE doesn&#039;t pick up the function, I just use the script block for convenience in the IDE... i would like more clean code... but just haven&#039;t found a good way to seperate... so i started looking up the code-behind method, and i like the way of using inheritance, and that would solve my IDE problem, because then it could introspect into the class because it&#039;s a class, and the IDE already does that... do you actually use the script block in tandem with the source? and seperating your files... back in the flash IDE I did this and it was just the way to do it... and it seperated the code fine... but now i&#039;ve been spoiled by eclipse... and i&#039;m sad that it can&#039;t introspect into the source file of the script block...

also... if you do use the source attribute, do you just keep your files in the same directory as your mxml files? and what sort of naming standard have you came up with for the code files...?

I&#039;m just sharing my opinion, but if you&#039;ve got any advice it would be appreciated very much...

thanks

Axel</description>
		<content:encoded><![CDATA[<p>Hey Tink,</p>
<p>I have one massive problem with the script block and the source attribute&#8230; the IDE(flexbuilder/eclipse) doesn&#8217;t introspect into the file&#8230; </p>
<p>so lets say i have a mxml file with some mxml components in it</p>
<p>&#8211;psuedo code</p>
<p>i can&#8217;t control + click on the function (&#8220;doClick()&#8221;) and have the IDE jump to the function&#8230; it just jumps to the top of the file, like it&#8217;s trying to find it&#8230; I&#8217;m all for clean code&#8230; but since the IDE doesn&#8217;t pick up the function, I just use the script block for convenience in the IDE&#8230; i would like more clean code&#8230; but just haven&#8217;t found a good way to seperate&#8230; so i started looking up the code-behind method, and i like the way of using inheritance, and that would solve my IDE problem, because then it could introspect into the class because it&#8217;s a class, and the IDE already does that&#8230; do you actually use the script block in tandem with the source? and seperating your files&#8230; back in the flash IDE I did this and it was just the way to do it&#8230; and it seperated the code fine&#8230; but now i&#8217;ve been spoiled by eclipse&#8230; and i&#8217;m sad that it can&#8217;t introspect into the source file of the script block&#8230;</p>
<p>also&#8230; if you do use the source attribute, do you just keep your files in the same directory as your mxml files? and what sort of naming standard have you came up with for the code files&#8230;?</p>
<p>I&#8217;m just sharing my opinion, but if you&#8217;ve got any advice it would be appreciated very much&#8230;</p>
<p>thanks</p>
<p>Axel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Code behind, or not code behind ? &#171; Yoann on flex</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-38851</link>
		<dc:creator>Code behind, or not code behind ? &#171; Yoann on flex</dc:creator>
		<pubDate>Wed, 11 Jul 2007 01:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-38851</guid>
		<description>[...] rted reading&#8230; I learnt really few things in the post, but one comment had a link to aTink BlogPost where he advocated that Flex&#8217; way of doing code behind is ba [...]</description>
		<content:encoded><![CDATA[<p>[...] rted reading&#8230; I learnt really few things in the post, but one comment had a link to aTink BlogPost where he advocated that Flex&#8217; way of doing code behind is ba [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres - Clonyx</title>
		<link>http://www.tink.ws/blog/code-behind-and-flex-20-partial-classes/#comment-32133</link>
		<dc:creator>Andres - Clonyx</dc:creator>
		<pubDate>Fri, 13 Apr 2007 15:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=226#comment-32133</guid>
		<description>Correction:
I know that you didn&#039;t say that :)</description>
		<content:encoded><![CDATA[<p>Correction:<br />
I know that you didn&#8217;t say that <img src='http://www.tink.ws/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
