MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 243

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Example
The following example sets a variable named
referenced by
field
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
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
the value of
field
var stringVal: String = "The new value";
field.setAsString (stringVal);
DataType.setTypedValue()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.setTypedValue(newTypedValue)
Parameters
newTypedValue
to
.
num
A string.
stringVal
to the string.
A TypedValue object value to set in the field.
to the Number value of 32. It then sets the value
num
to the string
"The new value"
Data binding classes (Flash Professional only)
. It then sets
243

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents