View comments | RSS feed

null

Availability

Flash Player 5.

Usage

null

Parameters

None.

Returns

Nothing.

Description

Constant; a special value that can be assigned to variables or returned by a function if no data was provided. You can use null to represent values that are missing or that do not have a defined data type.

Example

In a numeric context, null evaluates to 0. Equality tests can be performed with null. In this statement, a binary tree node has no left child, so the field for its left child could be set to null.

if (tree.left == null) {
   tree.left = new TreeNode();
}

Comments


Lost Angel Online said on Feb 18, 2005 at 10:31 AM :
Can I use null to delete an Array?

myArray = new Array(999)
myArray = null

Does it work like this?

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001606.html