# HELP NEEDED! entering variables with input textbox

**URL:** https://forum.kirupa.com/t/help-needed-entering-variables-with-input-textbox/133603
**Category:** Uncategorized
**Created:** [January 10, 2005, 2:20pm UTC](https://forum.kirupa.com/t/help-needed-entering-variables-with-input-textbox/133603 "2005-01-10T14:20:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cris\_r](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@cris\_r](https://forum.kirupa.com/u/cris_r)
#### Post date: [January 10, 2005, 2:20pm UTC](https://forum.kirupa.com/t/help-needed-entering-variables-with-input-textbox/133603/1 "2005-01-10T14:20:00Z")

</div>

/\*  
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  
\*/

```auto

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;
	}
};

```

😕
