# Smee again

**URL:** <https://forum.kirupa.com/t/smee-again/228256>\
**Category:** Uncategorized\
**Created:** [June 6, 2007, 3:06pm UTC](https://forum.kirupa.com/t/smee-again/228256 "2007-06-06T15:06:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikomax](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nikomax/32/3664_2.png) [@nikomax](https://forum.kirupa.com/u/nikomax)\
**Post date:** [June 6, 2007, 3:06pm UTC](https://forum.kirupa.com/t/smee-again/228256/1 "2007-06-06T15:06:36Z")

</div>

Hello again 🙂  
OK here is the idea  
I am spawning a Circle and it does stuff.  
Now this circle goes to different points of the screen using random numbers called  
[COLOR=Blue]k\_posx[/COLOR] and [COLOR=Blue]k\_posy. [COLOR=Black]Thats all fine and dandy. But i want to have more that one circle on the screen, so i considered on making an array that contains all of the values like this

circle one, x, y  
[/COLOR][/COLOR][COLOR=Blue][COLOR=Black]circle two, x, y  
[/COLOR][/COLOR][COLOR=Blue][COLOR=Black]circle three, x, y

(Btw i really get stuck on arrays)

In order to move the circle i use this script:

[/COLOR][/COLOR]

```php
function Move_to() {
    for (i=0; i<_root.k_num; i++) {
        _root.k_xpos = Math.round(random(530+10));
        _root.k_ypos = Math.round(random(380+10));
        _root.k_speed = Math.round(random(10)+5);
    }
}

```

which is called after 5 second intervals (not using the setInterval)  
How can this script be modified in order to Different create multiple values in an array and How can i get the circles to use the newly created numbers??

Sorry for the long post i am really having trouble thinking this one through  
(sorry i was meant to post this is the AS 2 forum)
