<?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: Changing the Flex ColorPicker control&#8217;s swatch panel background color</title>
	<atom:link href="http://blog.flexexamples.com/2007/12/27/changing-the-flex-colorpicker-controls-swatch-panel-background-color/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/12/27/changing-the-flex-colorpicker-controls-swatch-panel-background-color/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Mon, 22 Mar 2010 01:36:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jude Fisher</title>
		<link>http://blog.flexexamples.com/2007/12/27/changing-the-flex-colorpicker-controls-swatch-panel-background-color/comment-page-1/#comment-2161</link>
		<dc:creator>Jude Fisher</dc:creator>
		<pubDate>Mon, 08 Jun 2009 13:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/27/changing-the-flex-colorpicker-controls-swatch-panel-background-color/#comment-2161</guid>
		<description>I&#039;ve was stuck for some time trying to style the ColorPicker when it&#039;s been created in AS3 (without MXML). I thought I&#039;d record the issue here in case anyone else has encountered it.

I kept trying this:

var colorPicker:ColorPicker = new ColorPicker();
var pickerStyle:CSSStyleDeclaration = new CSSStyleDeclaration(&quot;pickerStyle&quot;);
pickerStyle.setStyle(&quot;backgroundColor&quot;, 0xFF0000);
colorPicker.setStyle(&quot;swatchPanelStyleName&quot;, &quot;pickerStyle&quot;);

- which fails, without providing any error.

The problem is with the last line. Even though &quot;swatchPanelStyleName&quot; suggests a string, you actually have to set the style to the object, not it&#039;s name. So, in the above example:

colorPicker.setStyle(&quot;swatchPanelStyleName&quot;, pickerStyle);

- works fine.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve was stuck for some time trying to style the ColorPicker when it&#8217;s been created in AS3 (without MXML). I thought I&#8217;d record the issue here in case anyone else has encountered it.</p>
<p>I kept trying this:</p>
<p>var colorPicker:ColorPicker = new ColorPicker();<br />
var pickerStyle:CSSStyleDeclaration = new CSSStyleDeclaration(&#8220;pickerStyle&#8221;);<br />
pickerStyle.setStyle(&#8220;backgroundColor&#8221;, 0xFF0000);<br />
colorPicker.setStyle(&#8220;swatchPanelStyleName&#8221;, &#8220;pickerStyle&#8221;);</p>
<p>- which fails, without providing any error.</p>
<p>The problem is with the last line. Even though &#8220;swatchPanelStyleName&#8221; suggests a string, you actually have to set the style to the object, not it&#8217;s name. So, in the above example:</p>
<p>colorPicker.setStyle(&#8220;swatchPanelStyleName&#8221;, pickerStyle);</p>
<p>- works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/12/27/changing-the-flex-colorpicker-controls-swatch-panel-background-color/comment-page-1/#comment-2160</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Tue, 01 Jan 2008 06:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/27/changing-the-flex-colorpicker-controls-swatch-panel-background-color/#comment-2160</guid>
		<description>flexLover,

How about this, &lt;a href=&quot;http://blog.flexexamples.com/2007/12/31/creating-a-custom-context-menu-on-a-richtexteditor-control-in-flex/&quot; rel=&quot;nofollow&quot;&gt;&quot;&lt;u&gt;Creating a custom context menu on a RichTextEditor control in Flex&lt;/u&gt;&quot;&lt;/a&gt;?

It adds three custom context menu commands, &quot;Show selection&quot;, &quot;Convert to upper case&quot;, and &quot;Convert to lower case&quot;. Selecting the first command displays whatever text is currently selected in an Alert control. The last two commands convert the currently selected text to upper case or lower case.

Hope that helps,
Peter</description>
		<content:encoded><![CDATA[<p>flexLover,</p>
<p>How about this, <a href="http://blog.flexexamples.com/2007/12/31/creating-a-custom-context-menu-on-a-richtexteditor-control-in-flex/" rel="nofollow">&#8220;<u>Creating a custom context menu on a RichTextEditor control in Flex</u>&#8220;</a>?</p>
<p>It adds three custom context menu commands, &#8220;Show selection&#8221;, &#8220;Convert to upper case&#8221;, and &#8220;Convert to lower case&#8221;. Selecting the first command displays whatever text is currently selected in an Alert control. The last two commands convert the currently selected text to upper case or lower case.</p>
<p>Hope that helps,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flexLover</title>
		<link>http://blog.flexexamples.com/2007/12/27/changing-the-flex-colorpicker-controls-swatch-panel-background-color/comment-page-1/#comment-2159</link>
		<dc:creator>flexLover</dc:creator>
		<pubDate>Fri, 28 Dec 2007 16:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/27/changing-the-flex-colorpicker-controls-swatch-panel-background-color/#comment-2159</guid>
		<description>HiPeter
Please i need this example:
contextMenu on the RichTextEditor that adds selected text to the List.

thank you in advance

flexLover</description>
		<content:encoded><![CDATA[<p>HiPeter<br />
Please i need this example:<br />
contextMenu on the RichTextEditor that adds selected text to the List.</p>
<p>thank you in advance</p>
<p>flexLover</p>
]]></content:encoded>
	</item>
</channel>
</rss>
