분류없음2009/07/08 11:27
크리에이티브 커먼즈 라이선스
Creative Commons License
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins
Posted by breadfit
2009/07/08 08:57

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

분류없음2009/07/08 08:54
크리에이티브 커먼즈 라이선스
Creative Commons License

Posted by breadfit
분류없음2009/07/06 12:57
크리에이티브 커먼즈 라이선스
Creative Commons License

Posted by breadfit
분류없음2009/07/03 13:01
크리에이티브 커먼즈 라이선스
Creative Commons License
참고하세요
Posted by breadfit
분류없음2009/07/03 11:03
크리에이티브 커먼즈 라이선스
Creative Commons License

PopUpManager Tip

 

주제: 팝업을 호출하고, 호출된 팝업에서 호출한 부모의 변수나 함수를 호출하는 방법

 

PopupCaller

 

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" verticalAlign="top" horizontalAlign="center" fontSize="12">
  3.     <mx:Script>
  4.         <![CDATA[
  5. import mx.controls.Alert;

  6.             import mx.managers.PopUpManager;
  7.             private function showWindow():void {
  8.                 var login:myPopup=myPopup(PopUpManager.createPopUp( this, myPopup , true));
  9.                 login.loginName=returnedName;
  10.                 login.testFunc = test;
  11.             }
  12.             
  13.             public function test(value:String):void
  14.             {
  15.             mx.controls.Alert.show(value, "test");
  16.             }
  17.         ]]>
  18.     </mx:Script>
  19.  
  20.     <mx:Panel title="팝업 호출하는 곳" layout="vertical" horizontalCenter="0" verticalCenter="0">
  21.         <mx:Text id="returnedName" width="100%" text="팝업이 사용할 곳..."/>
  22.         <mx:ControlBar>
  23.             <mx:Button id="myButton" label="팝업 띄우기" click="showWindow()" width="100%"/>
  24.         </mx:ControlBar>
  25.     </mx:Panel>
  26. </mx:Application>

 

 

PopupCallee

 

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" title="팝업 창"
  3.     showCloseButton="true" close="PopUpManager.removePopUp(this)">

  4.     <mx:Script>
  5.         <![CDATA[       
  6.             import mx.managers.PopUpManager;
  7.             import mx.controls.Text;
  8.            
  9.             public var loginName:Text;
  10.             private function returnName():void {
  11.                 loginName.text="이름: " + userName.text; 
  12.                 PopUpManager.removePopUp(this);
  13.             }
  14.             
  15.             public var testFunc:Function;
  16.             private function callFunction():void
  17.             {
  18.             testFunc(userName.text);
  19.             }
  20.         ]]>
  21.     </mx:Script>

  22.     <mx:HBox>
  23.         <mx:Label text="이름:"/>
  24.         <mx:TextInput id="userName" width="100%"/>
  25.     </mx:HBox>
  26.     <mx:ControlBar>
  27.         <mx:Button label="확인" click="returnName();"/>
  28.         <mx:Button label="호출" click="callFunction()"/>
  29.     </mx:ControlBar>
  30. </mx:TitleWindow>

 

 


Posted by breadfit