Hi Folks,
Here something to play. Maybe useful for charts.
this.kreis_btn.onPress = function() {
_root.setClips('line', 10, 100, 100, 5, 100, _root);
};
function setClips(id, posx, posy, max, diff, tempo, path) {
var i;
function setit() {
i++;
if (i <= max) {
path.attachMovie(id, id + i, i - max);
path[id + i]._x = posx + path[id]._x + (diff * i);
path[id + i]._y = posy;
} else {
clearInterval(iv);
}
}
var iv = setInterval(setit, tempo);
}
Note: You need a movieclip with an identifier “line”.
Example:
linie
another one
yours
Matze K.