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.

Returns<br />

String - A string.<br />

Example<br />

In the following example, you use ActionScript to convert specified expressions to a string:<br />

var string1:String = String("3");<br />

var string2:String = String("9");<br />

trace(string1+string2); // output: 39<br />

Because both parameters are strings, the values are concatenated rather than added.<br />

See also<br />

toString (Number.toString method), toString (Object.toString method), String,<br />

" string delimiter operator<br />

substring function<br />

substring("string", index, count) : String<br />

Deprecated since Flash Player 5. This function was deprecated in favor of String.substr().<br />

Extracts part of a string. This function is one-based, whereas the String object methods are<br />

zero-based.<br />

Parameters<br />

string:String - The string from which to extract the new string.<br />

index:Number - The number of the first character to extract.<br />

count:Number - The number of characters to include in the extracted string, not including<br />

the index character.<br />

Returns<br />

String - The extracted substring.<br />

See also<br />

substr (String.substr method)<br />

targetPath function<br />

targetpath(targetObject:Object) : String<br />

Global Functions 81

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

Saved successfully!

Ooh no, something went wrong!