MIDTERM ASSIGNMENT MAIN CLASS

by telcanty
♥0 | Line 20 | Modified 2009-10-16 09:57:33 | MIT License
play

ActionScript3 source code

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

package
{
	import flash.display.Sprite;
	
	public class Main extends Sprite
	{
		
		public function Main()
		{
			/*
			
				You must create a class called MyAnalogClock.
				You must create a class called MyDigitalClock.
				
				The clocks will start when you call the start() function.
				You will need one or more additional classes for the Hands of the Digital Clock.
				These additional classes for the digital clock should be called MyHand or MySecondHand, MyHourHand, MyMinuteHand
				
			*/

			var analog:MyAnalogClock = new MyAnalogClock();
				analog.start();
				
			var digital:MyDigitalClock = new MyDigitalClock();
				digital.start();
			
			
			addChild(analog);
                   addChild(digital);
			// DO NOT CHANGE THIS CLASS EXCEPT THE VALUES LISTED HERE
			// You May change the values under this line
			
			analog.x = 10;
			analog.y = 80;
			
			digital.x = 10;
			digital.y = 20;

			// DO NOT CHANGE ANYTHING PAST THIS LINE
		}
		
	}

}