Adobe 12040118 Using Help - Page 218
Method, Returns, Description, close [value], notify[event], onClick, onChange, onClose
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 218 highlights
Adobe After Effects Help Using Help Method close ([value]) hide() notify([event]) show() onClick() onChange() onClose() Creating User Interface Elements Back 218 Returns no return value Description Closes a Window. For modal dialogs, the optional value is returned as the result of the show() call that caused the dialog to display and execute. no return value Hides the element. If hide() is called on a modal dialog, dismiss the dialog and set the dialog result to 0. The application may choose to ignore this call for certain UI object types. no return value Sends a notification message to whatever listens to the UI object. notify() effectively lets you control a dialog programmatically. Calling this method with no argument on a control simulates the activation of the control; a Button signals that it has been clicked via its onClick() method, an EditText element tells its listener that it contents have changed via its onChange() method, and so on. You can supply an optional argument to notify(), which is the name of the event handler to call. For instance, to simulate a dialog dlg being moved by a user, you can send a notification message as follows: dlg.notify("onMove"). Number Displays the UI object. A Window may choose to ignore the setting of the visibility state if it is not applicable, like for inspectors whose visibility is controlled by the application only. If show() is called for a modal dialog, the dialog is displayed and executed. The call to show() will not return until the dialog has been dismissed. The result of show() is the dialog result as supplied to close(). For all other elements, the result is 0. no return value This method is called when a control has been activated by clicking it. Not all types of controls implement this callback. If you are interested in processing this event, define a function of this name in the control element. no return value This method is called when the content of a control has been changed. Not all types of controls implement this callback. If you are interested in processing this event, define a function of this name in the control element. no return value This method is called when a Window is closed. If you are interested in processing this event, define a function of this name in the Window object. Using Help Back 218