EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 348

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
348 Chapter 12: ActionScript Dictionary
CustomActions.install()
Availability
Flash Player 6.
Usage
CustomActions.install(customActionsName, customXMLDefinition)
Parameters
customActionsName
The name of the custom action definition to install.
customXMLDefinition The text of the XML definition to install.
Returns
A Boolean value of false if an error occurs during installation; otherwise, a value of true is
returned to indicate that the custom action has been successfully installed.
Description
Method; installs a new custom action XML definition file indicated by the customActionsName
parameter. The contents of the file is specified by the string
customXMLDefinition.
The name of the definition file must be a simple filename, without the .xml file extension, and
without any directory separators (':', '/' or '\').
If a custom actions file already exists with the name
customActionsName, it is overwritten.
If the Configuration/ActionsPanel/CustomActions directory does not exist when this method is
invoked, the directory is created.
CustomActions.list()
Availability
Flash Player 6.
Usage
CustomActions.list()
Parameters
None.
Returns
An array.
Description
Method; returns an Array object containing the names of all the custom actions that are registered
with the Flash authoring tool. The elements of the array are simple names, without the .xml file
extension, and without any directory separators (for example, “:”, “/”, or “\”). If there are no
registered custom actions,
list() returns a zero-length array. If an error occurs, list() returns
the value undefined.

Table of Contents

Related product manuals