remove

Delete a Flash ActionScript item from JScript.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

item - String - The ActionScript variable/object to be deleted.


Output Parameters:

value - String - The string representation of the value returned by the delete command. The value is always the current value, not necessarily the value at the time of the command execution.


Notes:

The path to the variable/object must originate in _level0 or _global. If you are calling a variable/object on _global, you must specify "global" - _global without the inital underscore. Default path is _level0.


Examples:

Example 1:
Example of deleting a variable.

Flash.remove({variable:"_level0.status"});

Example 2:
Example of deleting a _global variable.

Flash.remove({variable:"global.status"});