Flex父子窗口传值
窗口传值
子窗口定义
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="296" height="379">
<mx:Script>
<![CDATA[
[Bindable]
public var functionXml:XML; //定义子窗口属性
]]>
</mx:Script>
</mx:Application>
父窗口定义
import mx.managers.PopUpManager;
private function openFunc(event:MouseEvent):void
{
var child:ChildWindow= ChildWindow(PopUpManager.createPopUp(this,ChildWindow,true));
child.functionXml = XML({xmlData}); //为子窗口传值
}