It might help if you created a stand alone project and exported it. Also put it online so people can see what you see quickly. Then someone else can import it and take a look.
And no the position of the post doesn't generally get a better response but you could you try it. On Sat, Oct 31, 2009 at 8:04 AM, cjsteury2 <cra...@steury.com> wrote: > > > I am trying everything.... I have the Open value in HLOCItemSeries at > screen coordinate but it's not computing with drawRect(x,y,w,h)... I keep > plugging away at it adding, subtracting, trying this, trying that... !! > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, dorkie > dork from dorktown <dorkiedorkfromdorkt...@...> wrote: > > > > Maybe try starting them 1/2 to 1 pixel before your current positions and > 1/2 > > to 1px after your end position. > > > > On Fri, Oct 30, 2009 at 6:41 PM, cjsteury2 <cra...@...> wrote: > > > > > > > > > > > > > > > > > --- In flexcoders@yahoogroups.com > > > <flexcoders%40yahoogroups.com><flexcoders% > 40yahoogroups.com>, > > > > "cjsteury2" <craigj@> wrote: > > > > > > > > Okay... i have finally figured out how to write a custom itemrenderer > for > > > HOLC Chart Series Item... And the secret is posted below (about 99% of > the > > > way)... can anyone PLEASE tell me how to render the Open and Close Tick > > > marks correctly?? Using this code they are a little off... > > > > > > > > I have tried to get the DrawRect() function a million diff ways but > do > > > not know what is throwing it off... > > > > > > > > package com.steury.controls.orders { // empty package. > > > > > > > > import flash.display.Graphics; > > > > import mx.charts.series.items.HLOCSeriesItem; > > > > import mx.core.IDataRenderer; > > > > import mx.skins.ProgrammaticSkin; > > > > > > > > public class ChartColorRenderer extends mx.skins.ProgrammaticSkin > > > > implements IDataRenderer{ > > > > > > > > private var color:Number; > > > > private var green:Number = 0x00ff00; > > > > private var red:Number = 0xfe0000; > > > > private var _hlocItem:HLOCSeriesItem; > > > > private var open:Number; > > > > private var close:Number; > > > > > > > > public function ChartColorRenderer() { > > > > // Empty constructor. > > > > } > > > > public function get data():Object { > > > > return _hlocItem; > > > > } > > > > > > > > public function set data(value:Object):void { > > > > _hlocItem = value as HLOCSeriesItem > > > > invalidateDisplayList(); > > > > open=_hlocItem.openFilter; > > > > close=_hlocItem.closeFilter; > > > > } > > > > > > > > override protected function > > > > updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void { > > > > super.updateDisplayList(unscaledWidth, unscaledHeight); > > > > if (open > close) color = red; > > > > if (open < close) color = green; > > > > var g:Graphics = graphics; > > > > g.clear(); > > > > g.beginFill(color,1); > > > > g.drawRect(0, 0, unscaledWidth, unscaledHeight); > > > > g.endFill(); > > > > g.beginFill(color,1); > > > > g.drawRect(open,0,10,1); > > > > g.endFill(); > > > > g.beginFill(color,1); > > > > g.drawRect(0,close,10,1); > > > > g.endFill(); > > > > } > > > > } // Close class. > > > > } // Close package. > > > > > > > > > > > > > > > > > >