Chapter 8 Example 2

by actionscriptbible
♥0 | Line 13 | Modified 2009-06-12 01:48:52 | MIT License
play

ActionScript3 source code

/**
 * Copyright actionscriptbible ( http://wonderfl.net/user/actionscriptbible )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/z0u8
 */

package {
  import com.actionscriptbible.Example;
  
  public class ch8ex2 extends Example {
    public function ch8ex2() {
      var a:Array = [1,2,3];
      var b:Array = [4,5,6];
      var c:Array = a.concat(b, 7, "eight");
      
      trace(a); //1,2,3
      trace(b); //4,5,6
      trace(c); //1,2,3,4,5,6,7,eight
    }
  }
}