Copying Objects : Copy : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Copy »

 

Copying Objects


 

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

        var arrayA:Array = new Array("a""b""c""d");
        var arrayB:Array = arrayA;
        arrayB.push("e""f""g""h");
        trace(arrayA.length)// Outputs 8

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Copy