Input text variables

hey, started a thread on this yesterday but it got deleted :S lol

so I am making something in flash in which I hav a text interface where tiles can be added to the screen, at least thats what I want to happen.

so I have a function which places the piece, in this example just a square with linkage “obj”


t = function(x, y, depth){
o = attachMovie("obj", "obj"+depth, depth);
o._x = x
o._y = y;
}

then I have and onenterframe function which calls a variable from an input text box. What I want is for people to be able to type in the function, ie t(200, 300, 1) for example, and then for that function to be carried out. It does not carry it out however. Oh yeah the variable of the text is called input…


_root.onEnterFrame = function(){
	_root.input;
}

I would very much appreciate any ideas :slight_smile: Thanks

Sam