Undefined Data Type


Undefined Data Type

Much like null, undefined represents the absence of data. However, unlike null, undefined can be assigned in several ways:

  • It can be manually assigned in the Actions panel.

  • The interpreter will assign it if a variable does not exist.

  • The interpreter will assign it if a variable has no value.

Let's take a look at the undefined data type in action.

 var myTitle_str:String; trace (typeof(myTitle_str)); // output: undefined 

Like null, because undefined represents the absence of data, it is only equal to itself and null.




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