Array reference : Compare : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Compare »

 

Array reference


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var letters:Array = ["a""b""c"];
        
        var newLetters:Array = letters;
             
        trace(letters);        // Displays: "a,b,c"
        trace(newLetters);     // Displays: "a,b,c"
             
        letters = ["d""e""f"];
             
        trace(letters);        // Displays: "d,e,f"
        trace(newLetters);     // Displays: "d,e,f" (not "a,b,c")
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Compare