Using an equality operator with two array variables only checks to see if they point to the same spot in memory. : Compare : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Compare »

 

Using an equality operator with two array variables only checks to see if they point to the same spot in memory.


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var letters:Array = ["a""b""c""d"];
        var lettersPointer:Array = letters;
        trace(letters == lettersPointer);  // Displays: true
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Array
» Compare