all groups > flash data integration > may 2005 >
You're in the

flash data integration

group:

string to integer


string to integer iffy_aris
5/23/2005 12:00:00 AM
flash data integration:
hi its me iffy..
I want to convert a string comming from a PHP file
e.g .....
<?
$var = "some value212" ;
print "content=$var";
?>
then i call this variable in Flash through LoadVariableNum Function....
i m trying to use this variable in a loop...
foo = 0;
while (foo<j) {
duplicateMovieClip("_root.cross", "cross2"+foo, foo);
setProperty("cross2"+foo, _x, 160+random(275));
setProperty("cross2"+foo, _y, 45+random(190));
foo++;
}
I want to use this variable in replace of "J" ................ but when i
trace this value (content) in Flash.. it gives an undefined value...
should i replave this content value to integer... if so.. then how can i
convert this value to integer.... ?
what i should do ????

Re: string to integer adireddy
5/23/2005 12:00:00 AM
You can convert string to number using...

AddThis Social Bookmark Button