This code should do on key press left to check if variable x11 is empty and if it is to change those 3 variables,but it does not do that it actually sets x11 to empty i mean it erases the data in that variable...why? i tried this too "if(_root.x11 = undefined)" its the same again...
by the way if you did it in AS3 it would give you a warnning message when you do an assinment in as1/2 you need to be more carful one qeuals(=) is to assign things and two are to compare ''=='
in your case your if statement was
if("")
or in other words you asked if empty string and the answer to that is always true as an empty string is something. just adding into what @neilmmm said.