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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -