For example, take these two:
package nes {
import mx.controls.Label;
import mx.controls.dataGridClasses.DataGridListData;
import flash.display.Graphics;
import mx.controls.DataGrid;
public class DetailBgColorRenderer extends Label {
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
var g:Graphics = graphics;
if (data != null) {
if (data.backgroundColor != 0) {
var grid:DataGrid = DataGrid(DataGridListData(listData).owner);
g.beginFill(data.backgroundColor);
g.drawRect(0, 0, unscaledWidth, unscaledHeight);
g.endFill();
}
else
g.clear();
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<mx:Label xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
var g:Graphics = graphics;
if (data != null) {
if (data.backgroundColor != 0) {
var grid:DataGrid = DataGrid(DataGridListData(listData).owner);
g.beginFill(data.backgroundColor);
g.drawRect(0, 0, unscaledWidth, unscaledHeight);
g.endFill();
}
else
g.clear();
}
}
]]>
</mx:Script>
</mx:Label>
--
Jason __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

