Don't know how to close UI-Window Component

I don't know how to write a close function for UI windows
component.
This is what i did.
1) Dragged windows UI component to the library.
2) Dragged button from UI to stage
3) Gave instance name to the button as my_button
4) For frame 1, i added this actionscript

that will create the pop up.. you will need another button if
you want to close it and make a call to the window.deletePopUp()
method

Similar Messages

Maybe you are looking for