Hi here ist the
sourcecode I am experimenting with… Unfortunealy the setValue function (I
found a lot of examples for flash 8) doesn’t work with AS3. Do have any
idea? Regards, Harry package
CellRenderer { import
mx.controls.Image; import
mx.controls.Label; import
mx.containers.HBox; import
mx.core.IDataObject; public
class KundeCellRenderer extends HBox { [Embed(source="Kunde.png")] public
static const cKundeImage:Class; [Embed(source="Kunde_Del.png")] public
static const cKundeDeleteImage:Class; private
var _Icon:Image; private
var _Label:Label; private
var _DataObject:Object; public
function setValue(str:String, item:Object, sel:Boolean):void { _Label.text
= item.KundenName; } protected
override function createChildren():void { super.createChildren(); this.setStyle("verticalAlign",
"middle"); this.setStyle("marginLeft",
6); _Icon
= new Image(); _Icon.source
= KundeCellRenderer.cKundeImage; this.addChild(_Icon); _Label
= new Label(); //
_Label.text = "1234"; this.addChild(_Label); } public
function KundeCellRenderer() { } } } Von:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von jeremy lu what you want to do with
it ? On 3/3/06, harald_dehn
<[EMAIL PROTECTED]> wrote: Hello,
|
- AW: [flexcoders] Coustom cellRenderer in AS3 for a DataGrid Harald Dehn