xmlui.accept()
#### Availability
Flash MX 2004.
#### Usage
xmlui.accept()
#### Parameters
None.
#### Returns
Nothing.
#### Description
Method; closes the current XMLUI dialog box with an accept state, which is equivalent to the user clicking the OK button.
#### See also
fl.xmlui (../flash_object_(fl)/fl81.md) , document.xmlPanel() (../Document_object/docu6198.md), xmlui.cancel() (../XMLUI_object/xmlui1.md)
<span id="xmlui.cancel()" class="anchor"></span>