When you compare composite datatypes, ActionScript compares them by reference.
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var arrayOne:Array = new Array("a", "b", "c");
var arrayTwo:Array = new Array("a", "b", "c");
trace(arrayOne == arrayTwo); // Displays: false
}
}
}
Related examples in the same category