While()

hey! i have this


v=5;
i=0;
while(i<v) {
blah blah blah
i++;
}

for some reason it doesnt work :(??? wat am i doing wrong…

oh i must say… that v is loaded from a php file…

it is true when i’m trying it like:

v=5;
i=0;
while(i<v) {
trace(“ok”)
i++;
}

make sure v exists and is a number (data from text files come in as strings)

it is a number its from a database…

the php file gives out

&count=3

and in flash

loadVariables(“page.php?”+random(999),this);

and then


this.onEnterFrame = function(success) {
v = this.count;
	};

i think u should use:

v:number = this.count;

man! it dint work :(… man im soo dead… client is waiting i hate deadlines :stuck_out_tongue:

any other suggestions pleaseee