Uninstall (Customactions.uninstall Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

uninstall (CustomActions.uninstall method)

public static uninstall(name:String) : Boolean
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 '\').
Availability: ActionScript 1.0; Flash Player 6
Parameters
- The name of the custom action definition to uninstall.
name:String
Returns
- A Boolean value of
Boolean
the custom actions were successfully removed, a value of
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
ActionScript onto 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
See also
install (CustomActions.install method)
474
ActionScript classes
if no custom actions are found with the name
false
uninstall_btn
CustomActions.install()
.
name
is returned.
true
and then enter the following
.
. If
name

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF