It wouldn't be app.localToGlobal it would be child.localToGlobal

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Thursday, September 20, 2007 1:41 AM
To: [email protected]
Subject: RE: [flexcoders] How to get screen coordinate from child
application

 

Hi Alex, that's the first thing I tried, but unfortunately doing
application.localToGlobal(new Point(0, 0)) returns {0, 0}!

It's worth noting that the child application is loaded via SWFLoader.

 

 

Thanks,

 

Mark

 

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 19 September 2007 19:48
To: [email protected]
Subject: RE: [flexcoders] How to get screen coordinate from child
application

 

localToGlobal()

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Wednesday, September 19, 2007 8:16 AM
To: [email protected]
Subject: [flexcoders] How to get screen coordinate from child
application

 

Hi, if I have an application within an application, how can I convert
coordinates from the child app to the parent app? I need to display a
popup window and if I use the x, y values from the child application,
they are set to zero, but when loaded into a parent app, they are
actually around 200, 200.

 

|-------------------------|

|    Parent               |

|                         |

|       |----------|      |

|       |  Child   |      |

|       |----------|      |

|                         |

|                         |

|-------------------------|

 

Both parent and child are flex apps. But the x,y values for child are
{0,0}. I want to popup a dialog which completely covers the child
application, from within the child app.

 

Any ideas?

 

Thanks,

 

Mark

 

 

 

 

Reply via email to