as i m new to flex i couldnt resolve this... can u please show me the complete way of doing this?
--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]> wrote: > > > > 1) write a custom renderer for your columnseries. This renderer should > fill the columns with the standard color, _unless_ it's filling the > selected index. Something like this: > > > Class MyCustomRenderer > { > public var index:Number; > public var selectedIndex:Number; > function beginDraw(...) > { > index = 0; > } > > function draw(...) > { > if (index == selectedindex) > { > // draw in selected color > } > else > { > // draw in normal color > } > index++; > } > } > > Then set the selected index in a mouseOverData function: > > <mx:ColumnChart > mouseOverData="event.hitData.element.renderer.selectedIndex = > event.hitData.index;event.hitData.element.invalidate()" > > <mx:series> > <mx:Array> > <mx:ColumnSeries> > <mx:renderer> > <MyCustomRenderer /> > > > Or something to that effect. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/