Null Data Type


Null Data Type

The null data type is a representation that a variable has no data or definable data (string, number, boolean, and so on). Null will not show up in the Output panel unless assigned in the code.

TIP

Null must be assigned manually; the interpreter will not assign it.


Because null is a representation of no data, it is only equal to itself and the undefined data type. Here's an example:

 if (null == undefined) {       trace ("no data equals no data"); } // output: no data equals no data 




Macromedia Flash Professional 8 Unleashed
Macromedia Flash Professional 8 Unleashed
ISBN: 0672327619
EAN: 2147483647
Year: 2005
Pages: 319

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net