Probably localToContent() is more appropriate here; to get the point in relation to the chart.
var x:Number = 5; var y:Number = 10; myDisplayObject.graphics.moveTo(0,0); myDisplayObject.graphics.lineTo(x,y); var myPoint:Point = new Point(x, y); myPoint = myDisplayObject.localToContent(myPoint); // save point -TH --- In [email protected], "pratikshah83" <[EMAIL PROTECTED]> wrote: > > Just to add to it I tried localtoglobal() but that too is not giving > me the coordinates I am looking for. > > > --- In [email protected], "Fotis Chatzinikos" > fotis.chatzinikos@ wrote: > > > > i do not seem to get your point... quick example: > > > > x = 5 ; > > y = 5 ; > > > > lineTo(x,y) ; > > > > x y is now your last coordinate... > > > > On Thu, Nov 6, 2008 at 9:29 PM, pratikshah83 pratikshah83@ wrote: > > > > > Yes you are correct it moves the current position to the last lineto > > > coordinates, but I need to get the values of that coordinates as i > > > need to store them and reuse it to draw a line from some other point > > > to that stored point. > > > > > > Can you let me know how can i get the coordinates. > > > > > > Thanks > > > Pratik > > > > > > --- In [email protected] <flexcoders%40yahoogroups.com>, > "Fotis > > > Chatzinikos" > > > > > > <fotis.chatzinikos@> wrote: > > > > > > > > as far as i can remember the coordinate is the coordinate you used > > > to your > > > > last call of lineTo... > > > > > > > > On Thu, Nov 6, 2008 at 9:17 PM, pratikshah83 <pratikshah83@> wrote: > > > > > > > > > Hi Guys, > > > > > > > > > > I would like to know how to get the coordinates of current > location > > > > > after drawing graphics.lineto(). > > > > > > > > > > Thanks > > > > > Pratik > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Fotis Chatzinikos, Ph.D. > > > > Founder, > > > > Phinnovation > > > > Fotis.Chatzinikos@, > > > > > > > > > > > > > > > > > > > > > -- > > Fotis Chatzinikos, Ph.D. > > Founder, > > Phinnovation > > Fotis.Chatzinikos@, > > >

