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});        //为子窗口传值 
   }

posted on 2010-06-09 15:59  念时  阅读(705)  评论(0编辑  收藏  举报

细节决定成败!态度决定一切!