1. Cast the current item as DisplayObject
Var myCurrentItem : DisplayObject = ( currentItem as DisplayObject );
2. Create a point out of the current item x's and y's
var point : Point() = new Point();
point.x = myCurrentItem .x;
point.y = myCurrentItem.y;
3. Use the localToGlobal() function on the current item cast as a
DisplayObject.
Var realX : Number = myCurrentItem.localToGlobal(point).x;
Var realY : Number = myCurrentItem.localToGlobal(point).x;
4. Complain to adobe that objects can not determine this for themselves
or show me a better way
B.
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of zipo13
Sent: Thursday, February 22, 2007 2:58 AM
To: [email protected]
Subject: [flexcoders] How to get the real X & Y of a repeater item
Hi,
In my app I create a repeater the generats VBoxes each with button in
it.
When the user clicks on the button I want to generate a small dialog
that will open up under the button.
I know how to get the repeater current item and target and current
target but I can't find the real X & Y of the button.
Am I going in the wrong direction?
--
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 - Join or create groups, clubs, forums & communities.
Links
***
The information in this e-mail is confidential and intended solely for the
individual or entity to whom it is addressed. If you have received this e-mail
in error please notify the sender by return e-mail delete this e-mail and
refrain from any disclosure or action based on the information.
***