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.

var b:Number = new Number(114);<br />

var rgb:String = "0x"+ r.toString(16)+g.toString(16)+b.toString(16);<br />

trace(rgb);<br />

// output: rgb:0xFA8072 (Hexadecimal equivalent of the color 'salmon')<br />

valueOf (Number.valueOf method)<br />

public valueOf() : Number<br />

Returns the primitive value type of the specified Number object.<br />

Returns<br />

Number - A string.<br />

Example<br />

The following example results in the primative value of the numSocks object.<br />

var numSocks = new Number(2);<br />

trace(numSocks.valueOf()); // output: 2<br />

Object<br />

Object<br />

public class Object<br />

The Object class is at the root of the ActionScript class hierarchy. This class contains a small<br />

subset of the features provided by the JavaScript Object class.<br />

Property summary<br />

Modifiers Property Description<br />

constructor:Object Reference to the constructor function for a given<br />

object instance.<br />

__proto__:Object Refers to the prototype property of the class<br />

(ActionScript 2.0) or constructor function<br />

(ActionScript 1.0) used to create the object.<br />

static prototype:Object A reference to the superclass of a class or function<br />

object.<br />

__resolve:Object A reference to a user-defined function that is<br />

invoked if ActionScript code refers to an undefined<br />

property or method.<br />

Object 519

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

Saved successfully!

Ooh no, something went wrong!