<?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: Make an AS3 Flash Component with Custom UI Controls</title>
	<atom:link href="http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/</link>
	<description>David Barlia - Flash Developer / Designer / Animator</description>
	<lastBuildDate>Thu, 12 Jan 2012 01:53:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: barliesque</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-317</link>
		<dc:creator>barliesque</dc:creator>
		<pubDate>Thu, 12 Jan 2012 01:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-317</guid>
		<description>Yeah, I know!  :S
My WordPress installation got infected a while back.  I thought I cleaned out all the crud, but it looks like I must have missed something somewhere.  Any hints on how to get rid of that, I&#039;d be really grateful.
Glad you like the tutorial.  :)</description>
		<content:encoded><![CDATA[<p>Yeah, I know!  <img src='http://studio.barliesque.com/blog/wp-includes/images/smilies/16.png' alt=':S' class='wp-smiley' /> My WordPress installation got infected a while back.  I thought I cleaned out all the crud, but it looks like I must have missed something somewhere.  Any hints on how to get rid of that, I&#8217;d be really grateful.<br />
Glad you like the tutorial.  <img src='http://studio.barliesque.com/blog/wp-includes/images/smilies/01.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-316</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Wed, 11 Jan 2012 14:20:06 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-316</guid>
		<description>google find this --&gt;free live streaming p0rn - Studio Barliesque » Make an AS3 Flash ...studio barliesque components&lt;--- :D

PS: very nice tutorial,  thanks :)</description>
		<content:encoded><![CDATA[<p>google find this &#8211;&gt;free live streaming p0rn &#8211; Studio Barliesque » Make an AS3 Flash &#8230;studio barliesque components&lt;&#8212; <img src='http://studio.barliesque.com/blog/wp-includes/images/smilies/02.png' alt=':D' class='wp-smiley' /><br />
PS: very nice tutorial,  thanks <img src='http://studio.barliesque.com/blog/wp-includes/images/smilies/01.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Foran</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-244</link>
		<dc:creator>Ryan Foran</dc:creator>
		<pubDate>Wed, 14 Sep 2011 20:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-244</guid>
		<description>Instead of using array indexes, based on alphabetic order, to reference the component parameters in the UI, I prefer to use associative arrays:

private const ATITLEFONT:String= &quot;fl.getDocumentDOM().selection[0].parameters[&#039;aTitleFont&#039;].value&quot;;

Makes things easier to read and swap around.

Also, one &quot;Gotcha&quot; in particular is dealing with data that can be either a String or Int, such as an accountID. If the user enters a number, BAM! jsfl will pass it as type INT no matter how many quotation marks or toString() calls you place around it. One workaround is to just use parameters with type Object. The value is referenced as such:

private const ACCOUNT_NUM:String = &quot;fl.getDocumentDOM().selection[0].parameters[&#039;accountNumber&#039;].value[0].value&quot;;

That followed by a FOR IN loop in your setter will work around all those satanic auto-castings that may occur in the AS3--&gt;JSFL--&gt;AS3 translation.</description>
		<content:encoded><![CDATA[<p>Instead of using array indexes, based on alphabetic order, to reference the component parameters in the UI, I prefer to use associative arrays:</p>
<p>private const ATITLEFONT:String= &#8220;fl.getDocumentDOM().selection[0].parameters['aTitleFont'].value&#8221;;</p>
<p>Makes things easier to read and swap around.</p>
<p>Also, one &#8220;Gotcha&#8221; in particular is dealing with data that can be either a String or Int, such as an accountID. If the user enters a number, BAM! jsfl will pass it as type INT no matter how many quotation marks or toString() calls you place around it. One workaround is to just use parameters with type Object. The value is referenced as such:</p>
<p>private const ACCOUNT_NUM:String = &#8220;fl.getDocumentDOM().selection[0].parameters['accountNumber'].value[0].value&#8221;;</p>
<p>That followed by a FOR IN loop in your setter will work around all those satanic auto-castings that may occur in the AS3&#8211;&gt;JSFL&#8211;&gt;AS3 translation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SimonB</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-233</link>
		<dc:creator>SimonB</dc:creator>
		<pubDate>Wed, 31 Aug 2011 10:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-233</guid>
		<description>Thanks for the link barliesque.  I managed to get the components working again and this is what seems to have been the problem.  The metadata tags no longer like being bunched up the top of the class file. Instead the metadata must come just before your get and set declerations. e.g.

[Inspectable (name = &quot;color&quot;, type = &quot;Color&quot;, defaultValue = &quot;FF0000&quot;)]
public function get color():int { return _color; }
public function set color(value:int):void {
	_color = value;
	draw();
}

Also I have changed to extending the UIComponent class.  This has called a little more hassle that before but offers some automatically created functions that are of use for live preview etc</description>
		<content:encoded><![CDATA[<p>Thanks for the link barliesque.  I managed to get the components working again and this is what seems to have been the problem.  The metadata tags no longer like being bunched up the top of the class file. Instead the metadata must come just before your get and set declerations. e.g.</p>
<p>[Inspectable (name = "color", type = "Color", defaultValue = "FF0000")]<br />
public function get color():int { return _color; }<br />
public function set color(value:int):void {<br />
	_color = value;<br />
	draw();<br />
}</p>
<p>Also I have changed to extending the UIComponent class.  This has called a little more hassle that before but offers some automatically created functions that are of use for live preview etc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barliesque</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-232</link>
		<dc:creator>barliesque</dc:creator>
		<pubDate>Tue, 30 Aug 2011 19:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-232</guid>
		<description>I know that CS4 introduced a new way to allow components to communicate with the ide, but that was definitely in addition to the older method explored here.  It&#039;s just possible, that CS5 may have deprecated away the older method, but I haven&#039;t had a chance to look into it.  For more about the newer method, check out &lt;a href=&quot;http://jeffkamerer.com/blog/2009/04/03/custom-component-ui-with-actionscript-30/&quot; rel=&quot;nofollow&quot;&gt;this post on Jeff Kamerer&#039;s blog&lt;/a&gt;.
Also, that download link should be working again.  :)</description>
		<content:encoded><![CDATA[<p>I know that CS4 introduced a new way to allow components to communicate with the ide, but that was definitely in addition to the older method explored here.  It&#8217;s just possible, that CS5 may have deprecated away the older method, but I haven&#8217;t had a chance to look into it.  For more about the newer method, check out <a href="http://jeffkamerer.com/blog/2009/04/03/custom-component-ui-with-actionscript-30/" rel="nofollow">this post on Jeff Kamerer&#8217;s blog</a>.<br />
Also, that download link should be working again.  <img src='http://studio.barliesque.com/blog/wp-includes/images/smilies/01.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barliesque</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-231</link>
		<dc:creator>barliesque</dc:creator>
		<pubDate>Tue, 30 Aug 2011 19:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-231</guid>
		<description>I&#039;ve been away from the blog for a while.  Seems it was hacked, breaking all sorts of things.  :grit:  I managed to strip out the hack and get everything up and running again, including download links.   :happy: </description>
		<content:encoded><![CDATA[<p>I&#8217;ve been away from the blog for a while.  Seems it was hacked, breaking all sorts of things.  <img src='http://studio.barliesque.com/blog/wp-includes/images/smilies/46.png' alt=':grit:' class='wp-smiley' />  I managed to strip out the hack and get everything up and running again, including download links.   <img src='http://studio.barliesque.com/blog/wp-includes/images/smilies/133.png' alt=':happy:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SimonB</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-230</link>
		<dc:creator>SimonB</dc:creator>
		<pubDate>Fri, 19 Aug 2011 09:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-230</guid>
		<description>Hi there.  I have used this fantastic tutorial a while ago to create some as3 components. However I have recently migrated to cs5 from cs3 and almost all of the components have broken!  I came back here to take another look at your orignal files but have found the link to them does not work.

When ever I compile my components and then the swf I get a #1009 error.  From what I can tell this is generated by the component not being able to retrieve the values entered by the user. The error occurs so quickly that the constructor of the components class doesn&#039;t even trigger.  This is especially odd as when the component is modified on stage the get and set functions work and update the live preview with no problems.</description>
		<content:encoded><![CDATA[<p>Hi there.  I have used this fantastic tutorial a while ago to create some as3 components. However I have recently migrated to cs5 from cs3 and almost all of the components have broken!  I came back here to take another look at your orignal files but have found the link to them does not work.</p>
<p>When ever I compile my components and then the swf I get a #1009 error.  From what I can tell this is generated by the component not being able to retrieve the values entered by the user. The error occurs so quickly that the constructor of the components class doesn&#8217;t even trigger.  This is especially odd as when the component is modified on stage the get and set functions work and update the live preview with no problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-229</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Thu, 18 Aug 2011 12:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-229</guid>
		<description>Hi,

Download Link for source files is not working.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Download Link for source files is not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barliesque</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-223</link>
		<dc:creator>barliesque</dc:creator>
		<pubDate>Thu, 24 Feb 2011 18:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-223</guid>
		<description>Any of the component properties we created here are certainly accessible to ActionScript.  However, most of the topics covered by this tutorial are based on what the Flash IDE provides us:  a visual way to work with components, namely the stage, Component Inspector, control panels and live preview.  These are all powerful tools that are sometimes overlooked by die hard code heads who think it&#039;s best to do absolutely everything in code, a position I strongly disagree with.</description>
		<content:encoded><![CDATA[<p>Any of the component properties we created here are certainly accessible to ActionScript.  However, most of the topics covered by this tutorial are based on what the Flash IDE provides us:  a visual way to work with components, namely the stage, Component Inspector, control panels and live preview.  These are all powerful tools that are sometimes overlooked by die hard code heads who think it&#8217;s best to do absolutely everything in code, a position I strongly disagree with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Welcome to Glowsoft &#187; Blog Archive &#187; Masking</title>
		<link>http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/#comment-218</link>
		<dc:creator>Welcome to Glowsoft &#187; Blog Archive &#187; Masking</dc:creator>
		<pubDate>Wed, 15 Sep 2010 20:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://studio.barliesque.com/blog/?p=57#comment-218</guid>
		<description>[...] http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/" rel="nofollow">http://studio.barliesque.com/blog/2008/12/as3-component-custom-ui/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

