二:窗口传值

子窗口定义

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

相关文章:

  • 2021-04-27
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2022-02-16
  • 2021-07-08
  • 2021-08-08
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案