SWiSH Player Support
SWF5 or later - Supported Internally
Syntax
toString(value);
value.toString();
toString(value,base);
value.toString([base]);
Arguments
value; a variable representing a numerical value.
base; the numeric base used for the conversion from number to string. The base is a number between 2 and 36 and defaults to a value of 10 if this argument is not specified.
Returns
Nothing.
Description
Method; returns a string representing the specified value.
Sample
onLoad () {
a = 7 + 6;
trace(a.toString());
}
// displays "13" in the debug window
onLoad () {
a = 7 + 6;
trace(a.toString(2));
}
// displays "1101" in the debug window