# Assign a range of number to a variable

**URL:** <https://forum.kirupa.com/t/assign-a-range-of-number-to-a-variable/209372>\
**Category:** Uncategorized\
**Created:** [December 8, 2006, 3:37am UTC](https://forum.kirupa.com/t/assign-a-range-of-number-to-a-variable/209372 "2006-12-08T03:37:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaskvacuum](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@flaskvacuum](https://forum.kirupa.com/u/flaskvacuum)\
**Post date:** [December 8, 2006, 3:37am UTC](https://forum.kirupa.com/t/assign-a-range-of-number-to-a-variable/209372/1 "2006-12-08T03:37:44Z")

</div>

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?
