Thanks Andy. Worked like a charm. Tyson Tune [EMAIL PROTECTED] mobile -----Original Message----- From: "Andy Stone" <[EMAIL PROTECTED]> Date: Mon, 31 Jul 2006 09:45:59 To:"'Flashcoders mailing list'" <flashcoders@chattyfig.figleaf.com> Subject: RE: [Flashcoders] skinning the DataGrid component
This will work. var alpha = 20; var color = 0xFFFFFF; // _global.styles.ScrollSelectList.backgroundColor = null; mx.controls.listclasses.SelectableRow.prototype.drawRowFill = function(mc:MovieClip, newClr:Number):Void { mc.clear(); if (newClr == null) { mc.beginFill(color, alpha); } else { mc.beginFill(newClr); } mc.drawRect(1, 0, this.__width, this.__height); mc.endFill(); mc._width = this.__width; mc._height = this.__height; }; -Andy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tyson Tune Sent: Friday, July 28, 2006 9:59 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] skinning the DataGrid component I'm trying to skin the DataGrid component in Flash 8. All I really want to do is turn the background of the grid transparent. I've been able to skin other components by passing an object to the component as I create it. However, I'm having some trouble with DataGrid. Has anyone had any success with this? _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com