Customactions.uninstall() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

CustomActions.uninstall()

Availability
Flash Player 6.
Usage
CustomActions.uninstall(customName:String) : Boolean
Parameters
The name of the custom action definition to uninstall.
customName
Returns
A Boolean value of
custom actions were successfully removed, a value of
Description
Method; removes the Custom Actions XML definition file named
The name of the definition file must be a simple filename, without the .xml file extension, and
without any directory separators (':', '/' or '\').
Example
The following example installs a new custom action and displays an array containing the names of
all the custom actions that are registered with the Flash authoring tool in the Output panel.
When the uninstall_btn is clicked, the custom action is then uninstalled. An array containing
names of the custom actions installed is displayed, and dogclass should then be removed from the
array. Create a button called
Frame 1 of the Timeline:
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
trace(success);
CustomActions.install("dogclass", this.firstChild);
trace(CustomActions.list());
};
my_xml.load("dogclass.xml");
uninstall_btn.onRelease = function() {
CustomActions.uninstall("dogclass");
trace(CustomActions.list());
};
For information on creating dogclass.xml, see
236
Chapter 2: ActionScript Language Reference
if no custom actions are found with the name
false
uninstall_btn
is returned.
true
customName
and then enter the following ActionScript onto
CustomActions.install()
. If the
customName
.
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx

Table of Contents