开发者

How to return data to the popup window?

开发者 https://www.devze.com 2023-03-19 16:19 出处:网络
I have an application that called a popup window. From this popup window is called the second window in which data is transmitted, such as an array of strings. In the second box, I can change the data

I have an application that called a popup window. From this popup window is called the second window in which data is transmitted, such as an array of strings. In the second box, I can change the data in an array and return the modified data in the first popup window.

I've tried:

FlexGlo开发者_高级运维bals.topLevelApplication.myFunction(arrayWithData);

but of course get an error, because the data send to the main app.

Tell me how to transfer data in the first popup window from a second, please?


Make a common bus, the simplest but ugly way is dispatching a custom event (which contains the data of the second popup window) from FlexGlobals.topLevelApplication, the first popup initially adds listener to that event and manipulate the data.

0

精彩评论

暂无评论...
验证码 换一张
取 消