181
General Mach Discussion / Re: Help Please
« on: October 20, 2008, 02:41:54 PM »
also check that you are in "Constant Velocity" under "General Logical Configuration".
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Key.removeListener(key_Listener_Function);
///Remove one if there is one so they dont multiply////
delete key_Listener_Function;
///Create an object////;
key_Listener_Function = Object();
///On key down...you can change this to keyup/down ect...///;
key_Listener_Function.onKeyDown = function() {
///Which key was pressed///;
trace(Key.getAscii());
if (Key.isDown(Key.ENTER)) {
///What you are looking for///;
trace("enter key pressed");
///Send to Mach////
fscommand("Code", 'X10 Y5.6 Z 5.6');
}
};
///add listener to wait for the key press//;
Key.addListener(key_Listener_Function);
MyString.length
if (MyString.length == 9) {
trace("Is 9");
} else {
trace("Is not 9 it is:"+ MyString.length);
}