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
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;
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 =
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:
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
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
6 matches
Mail list logo