RE: [flexcoders] Re: F2B3: Possible bugs with ComboBox ItemRenderer and ColorPicker

2006-06-19 Thread Gordon Smith
> I wonder if there is additional overhead associated with declaring untyped special type variables (*) compared to typed variables? Yes, I believe there is; if the compiler doesn't know anything about the type it can't optimize the generated code as well. But there is no reason to use *

Re: [flexcoders] Re: F2B3: Possible bugs with ComboBox ItemRenderer and ColorPicker

2006-06-18 Thread Jeremy Lu
oh, if you are worried about the overhead for *, you can also set the type as Object, or in a more common approach, a value object (VO). if my memory served me right, * will be converted to correct type during run time, don't know how much overhead it would take though. Jeremy.On 6/18/06, T

Re: [flexcoders] Re: F2B3: Possible bugs with ComboBox ItemRenderer and ColorPicker

2006-06-17 Thread Jeremy Lu
hi Tim, try this (solves yellow can't be selected problem): private function addColor(event:Event):void {    cp.visible = false;    //    var itm:* = cp.dataProvider[ cp.selectedIndex ];     Util.traceValue(itm);    //    colorArray.push({label:itm.label, color:itm.color});    messageText.setSty