MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 239

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

Advertisement

Parameters
None.
Returns
A number.
Description
Method; fetches the current value of the field and converts it to Number form, if necessary.
Example
In this example, a field named
retrieved as a number, and assigned to a variable:
var dataTypeObj:mx.data.binding.DataType = myComponent.getField("propName");
var propValue:Number = dataTypeObj.getAsNumber();
See also
DataType.getAnyTypedValue()
DataType.getAsString()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
dataTypeObject.getAsString()
Parameters
None.
Returns
A string.
Description
Method; fetches the current value of the field and converts it to String form, if necessary.
Example
In this example, a property named
is retrieved as a string and assigned to a variable:
var dataTypeObj:mx.data.binding.DataType = myComponent.getField("propName");
var propValue:String = dataTypeObj.getAsString();
See also
DataType.getAnyTypedValue()
that belongs to a component named
propName
that belongs to a component named
propName
Data binding classes (Flash Professional only)
is
myComponent
myComponent
239

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?

This manual is also suitable for:

Flash mx

Table of Contents