1. Home
  2. Computing & Technology
  3. Animation

ActionScripting Basics: What’s the difference between = and ==?

By Adrien-Luc Sanders, About.com

2 of 3

=

x = y
if (x ==y) {
gotoAndPlay(3) ;
}

In the bolded line of the example above, a single equals sign (=) is used; this assigns the value of y to x. Flash evaluates this operation and says, Whatever y is, x is now equal to it; they are the same.

Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. ActionScripting Basics: What’s the difference between = and ==?

©2009 About.com, a part of The New York Times Company.

All rights reserved.