Assign a range of number to a variable

i wanted to create a cuePoint within this range of number. The question is how do i assign a range of numbers to a variable?

for( i = 290; i<300; i++){
trace(i);
}

The tracing result is as follow, 290,291,292,293,294,294 onwards to 290.

But when i replace it this way:
myMedia.addCuepoint(“name”,i); … nothing was created or either only on the last number of the range numbers are able to be created on which is on 299.

Any idea how shoud i go about writing my code?