[flexcoders] Re: How to get the real X Y of a repeater item

2007-03-01 Thread zipo13
Yay, Thanks Gordon the b.localToGlobal did it. Thanks again for the help. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Here is a sample app which does what you describe. - Gordon ?xml version=1.0 encoding=utf-8? mx:Application

RE: [flexcoders] Re: How to get the real X Y of a repeater item

2007-02-27 Thread Gordon Smith
Here is a sample app which does what you describe. - Gordon ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ import mx.containers.Canvas; import mx.containers.TitleWindow; import mx.controls.Button;

[flexcoders] Re: How to get the real X Y of a repeater item

2007-02-25 Thread zipo13
Hi, Thank you for the help but non of these methods seem to help. The repeater I use is in a canvas that sits in a tab navigator that sits in a vbox in an application. All in different components. I have tried to open the dialog: var pt:Point = new Point(event.stageX, event.stageY); pt =

Re: [flexcoders] Re: How to get the real X Y of a repeater item

2007-02-23 Thread Keun Lee
Hey you might want to also look into ³localToGlobal² I.e var comp : UIComponent = UIComponent( event.target ); var point : Point = comp.localToGlobal( new Point( comp.x, comp.y ) ); trace( point.x + : + point.y ); -Keun On 2/22/07 9:24 AM, jer_ela [EMAIL PROTECTED] wrote:

RE: [flexcoders] Re: How to get the real X Y of a repeater item

2007-02-23 Thread Robert Chyko
or if your container uses absolute positioning you would need to use contentToGlobal -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Keun Lee Sent: Friday, February 23, 2007 2:09 PM To: flexcoders@yahoogroups.com

[flexcoders] Re: How to get the real X Y of a repeater item

2007-02-22 Thread jer_ela
The following code gets the x and y positions of an image that has been clicked on that was generated by a repeater. Getting the coords for a button should be pretty much the same. stageX and Y are the x and y coords of the mouse position relative to the application stage. mainCanvas is a