Chapter 35 Example 2

by actionscriptbible
♥0 | Line 12 | Modified 2010-02-09 06:01:37 | 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/uPTS
 */

package {
  import flash.display.Sprite;
  public class ch35ex2 extends Sprite {
    public function ch35ex2() {
      graphics.lineStyle(1);
      graphics.moveTo(0, 0);
      graphics.lineTo(20, 20);
      graphics.moveTo(20, 0);
      graphics.lineTo(0, 20);
    }
  }
}