Package | adobe.utils |
Class | public final class CustomActions |
Inheritance | CustomActions Object |
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
You can use these methods to build SWF files that are extensions of the Flash authoring tool. Such an extension could, for example, use the Flash Application Protocol to navigate a Universal Description, Discovery and Integration (UDDI) repository and download web services into the Actions toolbox.
Property | Defined By | ||
---|---|---|---|
actionsList : Array [static] [read-only]
Returns an Array object containing the names of all the custom actions that are registered
with the Flash authoring tool. | CustomActions | ||
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object |
Method | Defined By | ||
---|---|---|---|
[static]
Reads the contents of the custom action XML definition file named name. | CustomActions | ||
Indicates whether an object has a specified property defined. | Object | ||
[static]
Installs a new custom action XML definition file indicated by the
name parameter. | CustomActions | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
[static]
Removes the Custom Actions XML definition file named name. | CustomActions | ||
Returns the primitive value of the specified object. | Object |
actionsList | property |
actionsList:Array
[read-only] Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
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, actionsList()
returns a zero-length array. If an error occurs, actionsList()
returns the value
undefined
.
Implementation
public static function get actionsList():Array
getActions | () | method |
public static function getActions(name:String):String
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
Reads the contents of the custom action XML definition file named name
.
The name of the definition file must be a simple filename, without the .xml file extension, and without any directory separators (':', '/' or '\').
If the definition file specified by the name
cannot be found, a value of undefined
is returned. If the custom action XML definition specified by the name
parameter is located, it is read in its entirety and returned as a string.
Parameters
name:String — The name of the custom action definition to retrieve.
|
String — If the custom action XML definition is located, returns a string; otherwise, returns undefined .
|
installActions | () | method |
public static function installActions(name:String, data:String):void
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
Installs a new custom action XML definition file indicated by the
name
parameter. The contents of the file is specified
by the string data
.
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
name
, it is overwritten.
If the Configuration/ActionsPanel/CustomActions directory does not exist when this method is invoked, the directory is created.
Parameters
name:String — The name of the custom action definition to install.
| |
data:String — The text of the XML definition to install.
|
uninstallActions | () | method |
public static function uninstallActions(name:String):void
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
Removes the Custom Actions XML definition file named name
.
The name of the definition file must be a simple filename, without the .xml file extension, and without any directory separators (':', '/' or '\').
Parameters
name:String — The name of the custom action definition to uninstall.
|
Related API Elements
Wed Nov 21 2018, 06:34 AM -08:00