/*
this code works so far, but when i also try to replace the hardcoding of var xPROGRESS, var YPROGRESS, var LINElengthPROGRESS it does not work anymore???
I do not see the logic in that !
any hint is welcomed
thanx
on the stage:
input textboxes: STAx, STAy, DUB, ROTA, XPROG etc.
enter_btn
*/
this.enter_btn.onRelease = function() {
var STARTx = STAx;
var STARTy = STAy;
var DUBLICATIONS = Number(DUB.text);
var ROTATION = ROTA;
var xPROGRESS = 10; //Number(xPROG.text);
var yPROGRESS = 5; //Number(yPROG.text);
var LINElenghtSTART = LINElenghtSTA;
var LINElenghtPROGRESS = 10; //Number(LINElenghtPRO.text);
this.line_mc._visible = 0;
for (var i = 1; i<=DUBLICATIONS; i++) {
duplicateMovieClip("line_mc", "lineX_mc"+i, i);
_root.lineX_mc1._x = STARTx;
_root.lineX_mc1._y = STARTy;
_root.lineX_mc1._rotation = ROTA;
_root.lineX_mc1._height = LINElenghtSTART;
_root["lineX_mc"+i]._x = _root["lineX_mc"+(i-1)]._x+xPROGRESS;
_root["lineX_mc"+i]._y = _root["lineX_mc"+(i-1)]._y+yPROGRESS;
_root["lineX_mc"+i]._yscale = _root["lineX_mc"+(i-1)]._yscale+LINElenghtPROGRESS;
_root["lineX_mc"+i]._rotation += ROTATION;
}
};