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.

Availability<br />

ActionScript 1.0; Flash Player 7<br />

NOTE: This method is also supported in Flash Player 6 when used with Flash Media<br />

Server. For more information, see the Flash Media Server documentation.<br />

Parameters<br />

bufferTime:Number - The time, in seconds, during which data is buffered before Flash<br />

begins displaying data. The default value is 0.1 (one-tenth of a second).<br />

Example<br />

See the example for NetStream.bufferLength.<br />

Number<br />

Object<br />

|<br />

+-Number<br />

public class Number<br />

extends Object<br />

The Number class is a simple wrapper object for the Number data type. You can manipulate<br />

primitive numeric values by using the methods <strong>and</strong> properties associated with the Number<br />

class. This class is identical to the JavaScript Number class.<br />

The properties of the Number class are static, which means you do not need an object to use<br />

them, so you do not need to use the constructor.<br />

The following example calls the toString() method of the Number class, which returns the<br />

string 1234:<br />

var myNumber:Number = new Number(1234);<br />

myNumber.toString();<br />

The following example assigns the value of the MIN_VALUE property to a variable declared<br />

without the use of the constructor:<br />

var smallest:Number = Number.MIN_VALUE;<br />

514 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!