root/Scripts/Goal.as

User picture

Author: Ying

Revision: 7 («Previous)


File Size: 501 Bytes

(March 22, 2009 15:43 UTC) About 3 years ago


  

 
Show/hide line numbers
package Scripts
{
 
	import flash.display.MovieClip;
	import flash.ui.Keyboard;
	import flash.display.Stage;
	import flash.events.Event;
 
	public class Goal extends MovieClip
	{
		private var stageRef:Stage;

		
		public function Goal(stageRef:Stage)
		{
			trace("Goal: Constructor");
			this.stageRef=stageRef;
			
		}
		
		public function removeSelf() : void
		{
			trace("Goal: Destructor"); 
			if (stageRef.contains(this)) stageRef.removeChild(this);
		}
 
	}
 
}