[MX] Need help getting IF Stament working!

Well I finally got my script working, however im trying to make it so that user can use ENTER key on keyboard in place of the enter button in my MC if they want and also would like to be able to use CTRL+Z in place of use the clear button in my MC. I put in an IF Statement but its not working. Anyone mind looking at my code and see whats wrong?

Thanks!

Well see. Key.isDown only works on onEnterFrame in situation likes this… instead of making a whole new movie clip, just do this…

_root.createEmptyMovieClip("container", 1);
_root.container.onEnterFrame = function() {
	if (Key.isDown(Key.CONTROL) && Key.isDown(90)) {
		output = spaces;
		input = spaces;
	}
};

Works like a charm.

Thanks Lost! At least I had the logic correct :). I still have problems relating the AS to MC, Buttons, Etc…

Well I figured that out a while back after banging my head up against the wall for a while trying to figure out why it wasn’t working…lol.