<?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: DataGrid Component V2 Header Gradient</title>
	<atom:link href="http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/</link>
	<description>By Jason Gill</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:45:00 +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: Anthony Cintron</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-40</link>
		<dc:creator>Anthony Cintron</dc:creator>
		<pubDate>Tue, 08 Aug 2006 21:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-40</guid>
		<description>Thank you, this worked out great.</description>
		<content:encoded><![CDATA[<p>Thank you, this worked out great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-39</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 20 Sep 2005 08:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-39</guid>
		<description>Found this elsewhere, very helpful as you dont even have to physically modify a component.

mx.controls.DataGrid.prototype.drawHeaderBG = function(Void) {
	var mc:MovieClip = this.header_mc;
	mc.clear();
	var clr:Number = this.getStyle(&quot;headerColor&quot;);
	var o:Object = this.__viewMetrics;
	var tot:Number = Math.max(this.totalWidth, this.displayWidth+3);
	mc.moveTo(o.left, o.top);
	mc.beginFill(clr, 100);
	mc.lineStyle(0, 0x000000, 0);
	mc.lineTo(tot, o.top);
	mc.lineTo(tot, this.__headerHeight+1);
	mc.lineStyle(0, 0x000000, 0);
	mc.lineTo(o.left, this.__headerHeight+1);
	mc.lineStyle(0, 0x000000, 0);
	mc.endFill();
};
your_datagrid.setStyle(&quot;headerColor&quot;, 0xFFCC00);</description>
		<content:encoded><![CDATA[<p>Found this elsewhere, very helpful as you dont even have to physically modify a component.</p>
<p>mx.controls.DataGrid.prototype.drawHeaderBG = function(Void) {<br />
	var mc:MovieClip = this.header_mc;<br />
	mc.clear();<br />
	var clr:Number = this.getStyle(&#8220;headerColor&#8221;);<br />
	var o:Object = this.__viewMetrics;<br />
	var tot:Number = Math.max(this.totalWidth, this.displayWidth+3);<br />
	mc.moveTo(o.left, o.top);<br />
	mc.beginFill(clr, 100);<br />
	mc.lineStyle(0, 0&#215;000000, 0);<br />
	mc.lineTo(tot, o.top);<br />
	mc.lineTo(tot, this.__headerHeight+1);<br />
	mc.lineStyle(0, 0&#215;000000, 0);<br />
	mc.lineTo(o.left, this.__headerHeight+1);<br />
	mc.lineStyle(0, 0&#215;000000, 0);<br />
	mc.endFill();<br />
};<br />
your_datagrid.setStyle(&#8220;headerColor&#8221;, 0xFFCC00);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ã˜ivind</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-38</link>
		<dc:creator>Ã˜ivind</dc:creator>
		<pubDate>Tue, 09 Aug 2005 09:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-38</guid>
		<description>Thanks man!</description>
		<content:encoded><![CDATA[<p>Thanks man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Leggett</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-37</link>
		<dc:creator>Richard Leggett</dc:creator>
		<pubDate>Thu, 02 Jun 2005 15:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-37</guid>
		<description>Instead of modifying the core Macromedia classes, a better option would be to either:

- Copy DataGrid.as into the same directory as the FLA and modify it there, this will take precedence over the other classpath.

- Subclass DataGrid like so:

class SolidDataGrid extends mx.controls.DataGrid {
function drawHeaderBG() {
// Edited code here
}
}

And change the class linkage for the DataGrid component you dragged into your library from StandardComponents.fla so that it uses your custom class and is called SolidDataGrid.

This way you don&#039;t break the functionality of the standard component. Hope that helps!

Read more + sample FLA here:
&lt;a href=&quot;http://flashmove.com/forum/showthread.php?p=76889&quot; rel=&quot;nofollow&quot;&gt;http://flashmove.com/forum/showthread.php?p=76889&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Instead of modifying the core Macromedia classes, a better option would be to either:</p>
<p>- Copy DataGrid.as into the same directory as the FLA and modify it there, this will take precedence over the other classpath.</p>
<p>- Subclass DataGrid like so:</p>
<p>class SolidDataGrid extends mx.controls.DataGrid {<br />
function drawHeaderBG() {<br />
// Edited code here<br />
}<br />
}</p>
<p>And change the class linkage for the DataGrid component you dragged into your library from StandardComponents.fla so that it uses your custom class and is called SolidDataGrid.</p>
<p>This way you don&#8217;t break the functionality of the standard component. Hope that helps!</p>
<p>Read more + sample FLA here:<br />
<a href="http://flashmove.com/forum/showthread.php?p=76889" rel="nofollow">http://flashmove.com/forum/showthread.php?p=76889</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lester</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-36</link>
		<dc:creator>Lester</dc:creator>
		<pubDate>Tue, 26 Apr 2005 20:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-36</guid>
		<description>Hi Jason,
Exactly what I have tried but didn&#039;t work.
Have found a solution already thnx to Blueskies ...

&lt;a href=&quot;http://www.actionscript.org/forums/printthread.php3?t=51477&quot; rel=&quot;nofollow&quot;&gt;http://www.actionscript.org/forums/printthread.php3?t=51477&lt;/a&gt;

kind regards,
Lester.</description>
		<content:encoded><![CDATA[<p>Hi Jason,<br />
Exactly what I have tried but didn&#8217;t work.<br />
Have found a solution already thnx to Blueskies &#8230;</p>
<p><a href="http://www.actionscript.org/forums/printthread.php3?t=51477" rel="nofollow">http://www.actionscript.org/forums/printthread.php3?t=51477</a></p>
<p>kind regards,<br />
Lester.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Gill</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-35</link>
		<dc:creator>Jason Gill</dc:creator>
		<pubDate>Tue, 26 Apr 2005 20:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-35</guid>
		<description>You are right Lester, version 7.2 has StandardComponents.fla instead of StandardTheme.fla, so you should use that instead. Open the StandardComponents.fla (preferrably as a Shared Libriary: File -&gt; Import -&gt; Open Shared Library) and drag the dataGrid component from that library to your own fla&#039;s stage. I hope that helps.</description>
		<content:encoded><![CDATA[<p>You are right Lester, version 7.2 has StandardComponents.fla instead of StandardTheme.fla, so you should use that instead. Open the StandardComponents.fla (preferrably as a Shared Libriary: File -&gt; Import -&gt; Open Shared Library) and drag the dataGrid component from that library to your own fla&#8217;s stage. I hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lester</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-34</link>
		<dc:creator>Lester</dc:creator>
		<pubDate>Tue, 26 Apr 2005 19:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-34</guid>
		<description>Hi, maybe a stupid question, but I don&#039;t have a standardTheme.fla, took StandardComponents.fla, I&#039;m using 7.2 version, probably different. But I can&#039;t make it work. What do I have to do exactly when you say &quot;open fla and add it from there.&quot;? drag it from StandardComponents.fla&#039;s library(if correct fla)on my new blank file?
Help would be great...
thnx in advance,
Lester.</description>
		<content:encoded><![CDATA[<p>Hi, maybe a stupid question, but I don&#8217;t have a standardTheme.fla, took StandardComponents.fla, I&#8217;m using 7.2 version, probably different. But I can&#8217;t make it work. What do I have to do exactly when you say &#8220;open fla and add it from there.&#8221;? drag it from StandardComponents.fla&#8217;s library(if correct fla)on my new blank file?<br />
Help would be great&#8230;<br />
thnx in advance,<br />
Lester.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve o</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-33</link>
		<dc:creator>steve o</dc:creator>
		<pubDate>Sat, 12 Feb 2005 16:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-33</guid>
		<description>Saved me some time. Thanks.</description>
		<content:encoded><![CDATA[<p>Saved me some time. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vilo</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-32</link>
		<dc:creator>vilo</dc:creator>
		<pubDate>Wed, 09 Feb 2005 20:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-32</guid>
		<description>great hack, thank you</description>
		<content:encoded><![CDATA[<p>great hack, thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FÃƒÂ¡bio</title>
		<link>http://www.gilluminate.com/2004/11/02/datagrid-component-v2-header-gradient/#comment-41</link>
		<dc:creator>FÃƒÂ¡bio</dc:creator>
		<pubDate>Tue, 02 Nov 2004 23:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gillumiante.com/2004/11/02/datagrid-component-v2-header-gradient#comment-41</guid>
		<description>Awesome! Just what I was looking for. Will try that now!
Do you know if there&#039;s a way of changing the selection color (that green is really lame)</description>
		<content:encoded><![CDATA[<p>Awesome! Just what I was looking for. Will try that now!<br />
Do you know if there&#8217;s a way of changing the selection color (that green is really lame)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

