Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Data binding classes > DataType.getAsNumber() | |||
Flash Player 6.
Flash MX Professional 2004.
dataTypeObject.getAsNumber()
None.
A number.
Method; fetches the current value of the field and converts it to Number form, if necessary.
In this example, a field named propName that belongs to a component named myComponent is retrieved as a number, and assigned to a variable:
var dataTypeObj:mx.data.binding.DataType = myComponent.getField("propName");
var propValue:Number = dataTypeObj.getAsNumber();
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002696.html