Phlasch MX question
Phlasch MX question
Out of context: Reply #8
- Started
- Last post
- 8 Responses
- __j0
this will help,
params = [100, 120, 140, 160, 180, 200, 220, 240, 260, 280];
params2 = [100, 120, 140, 160, 180, 200, 220, 240, 260, 280];
speed = 8;
for (i=0; i<10; i++) {
_root.attachMovie("box", "box"+i, i);
_root["box"+i]._x = 0;
_root["box"+i]._y = params[i];
//set the param here !!
_root["box"+i].myParam2 = params2[i];
_root["box"+i].onEnterFrame = function() {
this._x += (this.myParam2-this._x)/speed;
};
}