03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Constants summary<br />

Modifiers Constant Description<br />

false constant<br />

A unique Boolean value that represents the opposite of true.<br />

When automatic data typing converts false to a number, it becomes 0; when it converts<br />

false to a string, it becomes "false".<br />

Example<br />

This example shows how automatic data typing converts false to a number <strong>and</strong> to a string:<br />

var bool1:Boolean = Boolean(false);<br />

// converts it to the number 0<br />

trace(1 + bool1); // outputs 1<br />

false A unique Boolean value that represents the<br />

opposite of true.<br />

Infinity Specifies the IEEE-754 value representing<br />

positive infinity.<br />

-Infinity Specifies the IEEE-754 value representing<br />

negative infinity.<br />

NaN A predefined variable with the IEEE-754 value for<br />

NaN (not a number).<br />

newline Inserts a carriage return character (\r) that<br />

generates a blank line in text output generated by<br />

your code.<br />

null A special value that can be assigned to variables or<br />

returned by a function if no data was provided.<br />

true A unique Boolean value that represents the<br />

opposite of false.<br />

undefined A special value, usually used to indicate that a<br />

variable has not yet been assigned a value.<br />

// converts it to a string<br />

trace("String: " + bool1); // outputs String: false<br />

Constants 27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!