|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am using the loadVariables() function to grab some variables from an ASP file. I would like to sue these variables as a numeric value to set the _x property of an object.
The variables are not an integer and the _x property can only accept integers. I am trying to convert the string value of the variable into an integer, but I cannot seem to figure out how to do it. I have tried the Number() function and it does not work. Does anyone know how to convert a string to an integer in actionscript? This seems like it should be a simple thing to figure out. |
|
#2
|
|||
|
|||
|
Depending on what you want, specifically...
eval()
int() [deprecated syntax in Flash 5] Number() parseInt() parseFloat()
__________________
Michael
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Variables in Flash |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|