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:
- with my script, only the last of the 3 clips created obey the script, the other two don’t move! (MAIN PROBLEM)
- 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:
//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 )