For Loop Problem - dynamic count limiter

I’m loading a variable from a .txt file into flash (per client request).
The variable is as follows…
&ClientNumberOf=4

so the variable = 4, this works on trace, happy, joy

When I try and add the variable to my for loop…

for (i=1;i<ClientNumberOf;i++){

Nothing happens.
Flash should see it as…
for (i=1;i<4;i++){

I’ve tried a slew of different options…
(for example)
var newVariable:Number = ClientNumberOf;

Nothing works, again, trace works, but script fails to work when I try and dynamically set the loop?!

Thanks.

z