Datatype.setasstring() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example sets a variable named
to the Number value of 32. It then sets the
num
value referenced by
to
.
field
num
var num: Number = 32;
field.setAsNumber (num);

DataType.setAsString()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.setAsString(newStringValue)
Parameters
A string.
newStringValue
Returns
Nothing.
Description
Method; sets the field to the new value, which is given as a string. The value is converted to,
and stored as, the data type that is appropriate for this field.
Example
The following example sets the variable
to the string
. It then
stringVal
"The new value"
sets the value of
to the string.
field
var stringVal: String = "The new value";
field.setAsString (stringVal);
DataType.setAsString()
243

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents