actionscript 3 - How to create and use popup window in flex 3? -
i have used datagrid , 1 button in control bar. clicking button application goes edit state base state. question how can use popup editing selected record of datagrid instead of changing state. please give me example code describe how pop ups can used in flex 3 application.
i got answer above problem. first have create custom component popup named mypopup
and in application:
import components.popups.mypopup; public var pop:mypopup; public function show_pop():void { pop= popupmanager.createpopup(this,mypopup,true) mypopup; popupmanager.centerpopup(pop); }
calling function:
<mx:button click="show_pop()" id="btn1" label="show popup"/>
Comments
Post a Comment