# \[Flash8\] simple script with Array and movement doesn't obey me! sigh. help!

**URL:** <https://forum.kirupa.com/t/flash8-simple-script-with-array-and-movement-doesnt-obey-me-sigh-help/170108>\
**Category:** Uncategorized\
**Created:** [November 22, 2005, 9:18pm UTC](https://forum.kirupa.com/t/flash8-simple-script-with-array-and-movement-doesnt-obey-me-sigh-help/170108 "2005-11-22T21:18:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drey/32/1948_2.png) [@drey](https://forum.kirupa.com/u/drey)\
**Post date:** [November 22, 2005, 9:18pm UTC](https://forum.kirupa.com/t/flash8-simple-script-with-array-and-movement-doesnt-obey-me-sigh-help/170108/1 "2005-11-22T21:18:24Z")

</div>

Hej everybody,  
i have a problem for what i thought was such a simple action!  
After having duplicated a clip through a _for_ action, and having placed the clips outside the stage, i want them to enter the stage, sliding on their \_x coordinate.  
Two problems:

1. with my script, only the last of the 3 clips created obey the script, the other two don’t move! (MAIN PROBLEM)
2. How could i implement this script to make them slide not at the same time, but slightly one after the other? (OPTIONAL PROBLEM) 🙂  
Here is my script:

```auto
//to create the clips and position them out the stage
for (i=0; i<n.length; i++) {
    goccia = "dropMenu"+i;
    duplicateMovieClip(_root.cont.dropMenu, goccia, i+100);
    _root.cont[goccia]._y = i*200+100;
    _root.cont[goccia]._x = -70;
}
// to make the clips slide get into the stage
cont.onEnterFrame = function() {
    if (_root.cont[goccia]._x<30) {
        _root.cont[goccia]._x = _root.cont[goccia]._x+3;
    
    }
};

```

I feel like it should be so ■■■■ easy :puzzle:… any suggestion?

Drey (yeah, a beginner… eheheh )
