on (press) {
var myVariable = 7;
var myOthervariable = “Macromedia”;
if ((myVariable+2) == myOtherVariable.length) {
trace(myOtherVariable);
}
}
Here is the code I put on a button. When I press the button, I thought that I would get the word Macromedia in the output window. myVariable +2 =9 and myOtherVariable.length =9 also. I am trying to learn this and I am having trouble. Please help