ActionScripting Basics: What’s the difference between = and ==?
From Adrien-Luc Sanders, former About.com Guide
1 of 3
Have you ever....?
Ever typed if (x = y) into your ActionScripts and then wondered why it didn’t work?
= and == aren’t actually synonymous; == evaluates equality, while = assigns a value.