<?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: Color Name Class (SVG 1.0 &#8211; X11 and VGA)</title>
	<atom:link href="http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/feed/" rel="self" type="application/rss+xml" />
	<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/</link>
	<description>lulz</description>
	<lastBuildDate>Sat, 07 Jan 2012 17:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Adrian Parr</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-1966</link>
		<dc:creator>Adrian Parr</dc:creator>
		<pubDate>Tue, 31 Aug 2010 13:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-1966</guid>
		<description>Hi Mark,

I just though I&#039;d check back here and was happy to see your reply from February. Thought I&#039;d let you know that thanks to your reply I got it to work. If anyone else is interested here is my demo code ...

&lt;code&gt;package 
{
	import flash.display.Sprite;
	import com.yourpalmark.utils.ColorName;

	public class Main extends Sprite 
	{
		private var canvas:Sprite;
		
		public function Main():void 
		{
			canvas = new Sprite();
			canvas.graphics.beginFill(ColorName.LAVENDER_BLUSH.color, 1);
			canvas.graphics.drawRect(0, 0, 500, 250);
			canvas.graphics.endFill();
			addChild(canvas);
		}
		
	}
	
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>I just though I&#8217;d check back here and was happy to see your reply from February. Thought I&#8217;d let you know that thanks to your reply I got it to work. If anyone else is interested here is my demo code &#8230;</p>
<p><code>package<br />
{<br />
	import flash.display.Sprite;<br />
	import com.yourpalmark.utils.ColorName;</p>
<p>	public class Main extends Sprite<br />
	{<br />
		private var canvas:Sprite;</p>
<p>		public function Main():void<br />
		{<br />
			canvas = new Sprite();<br />
			canvas.graphics.beginFill(ColorName.LAVENDER_BLUSH.color, 1);<br />
			canvas.graphics.drawRect(0, 0, 500, 250);<br />
			canvas.graphics.endFill();<br />
			addChild(canvas);<br />
		}</p>
<p>	}</p>
<p>}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-1934</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 01 Mar 2010 01:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-1934</guid>
		<description>Hey Adrian,
Sorry for the really late reply...
You do not need to instantiate the class, all of the properties and methods are static.
Each color in the class is an instance of the ColorName class. So, BLUE, for example, has a color and name property.
To use a color, you would just need to say ColorName.BLUE.color.
You don&#039;t actually need to use the getColorNameByName() method. If you do use the method, there&#039;s a reason that it doesn&#039;t work for the colors with an underscore.
The name of LAVENDER_BLUSH is actually &quot;lavenderBlush&quot;. You can find that out by tracing out ColorName.LAVENDER_BLUSH.name.
But again, the easiest way to get the color would just be to say ColorName.LAVENDER_BLUSH.color.
Hope that helps!!</description>
		<content:encoded><![CDATA[<p>Hey Adrian,<br />
Sorry for the really late reply&#8230;<br />
You do not need to instantiate the class, all of the properties and methods are static.<br />
Each color in the class is an instance of the ColorName class. So, BLUE, for example, has a color and name property.<br />
To use a color, you would just need to say ColorName.BLUE.color.<br />
You don&#8217;t actually need to use the getColorNameByName() method. If you do use the method, there&#8217;s a reason that it doesn&#8217;t work for the colors with an underscore.<br />
The name of LAVENDER_BLUSH is actually &#8220;lavenderBlush&#8221;. You can find that out by tracing out ColorName.LAVENDER_BLUSH.name.<br />
But again, the easiest way to get the color would just be to say ColorName.LAVENDER_BLUSH.color.<br />
Hope that helps!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Parr</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-1930</link>
		<dc:creator>Adrian Parr</dc:creator>
		<pubDate>Mon, 08 Feb 2010 19:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-1930</guid>
		<description>Hi Mark,

I think I have figured out how to use this class and have managed to get it to work with colours that use a name without underscores. Like this ...

import com.yourpalmark.utils.ColorName;
var canvas:Sprite;
canvas = new Sprite();
canvas.graphics.beginFill(ColorName.getColorNameByName(&quot;LAVENDER&quot;).color, 1);
canvas.graphics.drawRect(0, 0, 550, 400);
canvas.graphics.endFill();
addChild(canvas);

But when I try to get a colour that has underscores in it&#039;s name like this ...

import com.yourpalmark.utils.ColorName;
var canvas:Sprite;
canvas = new Sprite();
canvas.graphics.beginFill(ColorName.getColorNameByName(&quot;LAVENDER_BLUSH&quot;).color, 1);
canvas.graphics.drawRect(0, 0, 550, 400);
canvas.graphics.endFill();
addChild(canvas);

I get the following error message ...

&quot;TypeError: Error #1009: Cannot access a property or method of a null object reference. at colorNameDemo_fla::MainTimeline/frame1()&quot;

Any ideas why this is?

Any help would be gratefully appreciated.

Cheers,

Adrian</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>I think I have figured out how to use this class and have managed to get it to work with colours that use a name without underscores. Like this &#8230;</p>
<p>import com.yourpalmark.utils.ColorName;<br />
var canvas:Sprite;<br />
canvas = new Sprite();<br />
canvas.graphics.beginFill(ColorName.getColorNameByName(&#8220;LAVENDER&#8221;).color, 1);<br />
canvas.graphics.drawRect(0, 0, 550, 400);<br />
canvas.graphics.endFill();<br />
addChild(canvas);</p>
<p>But when I try to get a colour that has underscores in it&#8217;s name like this &#8230;</p>
<p>import com.yourpalmark.utils.ColorName;<br />
var canvas:Sprite;<br />
canvas = new Sprite();<br />
canvas.graphics.beginFill(ColorName.getColorNameByName(&#8220;LAVENDER_BLUSH&#8221;).color, 1);<br />
canvas.graphics.drawRect(0, 0, 550, 400);<br />
canvas.graphics.endFill();<br />
addChild(canvas);</p>
<p>I get the following error message &#8230;</p>
<p>&#8220;TypeError: Error #1009: Cannot access a property or method of a null object reference. at colorNameDemo_fla::MainTimeline/frame1()&#8221;</p>
<p>Any ideas why this is?</p>
<p>Any help would be gratefully appreciated.</p>
<p>Cheers,</p>
<p>Adrian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Parr</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-1917</link>
		<dc:creator>Adrian Parr</dc:creator>
		<pubDate>Wed, 06 Jan 2010 15:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-1917</guid>
		<description>Hi Mark,

Are you there?</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>Are you there?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Parr</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-1910</link>
		<dc:creator>Adrian Parr</dc:creator>
		<pubDate>Tue, 22 Dec 2009 12:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-1910</guid>
		<description>Do I need to instantiate the class first?</description>
		<content:encoded><![CDATA[<p>Do I need to instantiate the class first?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Parr</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-1908</link>
		<dc:creator>Adrian Parr</dc:creator>
		<pubDate>Mon, 21 Dec 2009 16:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-1908</guid>
		<description>Hi Mark, 

This looks pretty handy. Can you provide an example of how to use it?

I&#039;ve tried the following code but I get an error ...

&lt;code&gt;package
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import com.yourpalmark.utils.ColorName;

	public class Main extends MovieClip
	{
		private var canvas:Sprite;

		public function Main():void
		{
			canvas = new Sprite();
			canvas.graphics.beginFill(BLUE, 1);
			canvas.graphics.drawRect(0, 0, 500, 250);
			canvas.graphics.endFill();
			addChild(canvas);
		}
	}
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Mark, </p>
<p>This looks pretty handy. Can you provide an example of how to use it?</p>
<p>I&#8217;ve tried the following code but I get an error &#8230;</p>
<p><code>package<br />
{<br />
	import flash.display.MovieClip;<br />
	import flash.display.Sprite;</p>
<p>	import com.yourpalmark.utils.ColorName;</p>
<p>	public class Main extends MovieClip<br />
	{<br />
		private var canvas:Sprite;</p>
<p>		public function Main():void<br />
		{<br />
			canvas = new Sprite();<br />
			canvas.graphics.beginFill(BLUE, 1);<br />
			canvas.graphics.drawRect(0, 0, 500, 250);<br />
			canvas.graphics.endFill();<br />
			addChild(canvas);<br />
		}<br />
	}<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bug</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-1758</link>
		<dc:creator>Bug</dc:creator>
		<pubDate>Mon, 27 Jul 2009 12:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-1758</guid>
		<description>Just what I needed, thanks.</description>
		<content:encoded><![CDATA[<p>Just what I needed, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Topher</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-1225</link>
		<dc:creator>Topher</dc:creator>
		<pubDate>Sun, 05 Apr 2009 07:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-1225</guid>
		<description>Sweet. I knew someone must have taken the initiative. Thanks yous.</description>
		<content:encoded><![CDATA[<p>Sweet. I knew someone must have taken the initiative. Thanks yous.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-402</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 20 Jun 2008 19:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-402</guid>
		<description>Thanks pal!
Sometimes you&#039;ve just got to take action on these kinds of things.
</description>
		<content:encoded><![CDATA[<p>Thanks pal!<br />
Sometimes you&#8217;ve just got to take action on these kinds of things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Unicorn</title>
		<link>http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/comment-page-1/#comment-401</link>
		<dc:creator>Alex Unicorn</dc:creator>
		<pubDate>Fri, 20 Jun 2008 19:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/20/color-name-class-svg-10-x11-and-vga/#comment-401</guid>
		<description>Finally I will be able to simply write &quot;majesticunicornwhite&quot; and flash will know what I am talking about.  Thank you Mark Walters.  I owe you one million thanks.  If only you had a link to unicornpaypal.com I could donate to your magnificence.  Stay strong my flash brother.
</description>
		<content:encoded><![CDATA[<p>Finally I will be able to simply write &#8220;majesticunicornwhite&#8221; and flash will know what I am talking about.  Thank you Mark Walters.  I owe you one million thanks.  If only you had a link to unicornpaypal.com I could donate to your magnificence.  Stay strong my flash brother.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

