Keeping in mind that scrollbars can mess up localToGlobal(), it's a known
bug. Actually I haven't tested that in Flex 3 release, maybe it's fixed but
I don't think so :)

-Josh

On Fri, Jun 27, 2008 at 12:14 PM, Dimitrios Gianninas <
[EMAIL PROTECTED]> wrote:

> I think what you what is this:
>
> 1)from the click event get the ref to the button:
>
> var btn:Button = event.target as Button;
>
> 2) then get its coordinates:
>
> var point:Point = new Point(0, 0);
> point = btn.globalToLocal( point );
>
> 3) now use it to position your pop up
>
> mypop.x = point.x;
> mypop.y = point.y + 10;
>
> Dimitrios Gianninas
> Optimal Payments Inc.
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to