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

2007-02-22 Thread zipo13
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

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

2007-02-22 Thread Tom Chiverton
On Thursday 22 Feb 2007, zipo13 wrote: target but I can't find the real X Y of the button. Even with globalToLocal() et. al. ? -- Tom Chiverton Helping to carefully empower real-time users This email is sent for and on behalf of

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

2007-02-22 Thread Brian Holmes
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;