migrate the samples of "Vectors for Flash" tutorial(written by TONYPA) to Actionscript 3.