1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4   dynamic class org.aswing.Event{
     5  	private var _source:Object;
     6  	private var _type:String;
     7  	
     8  	/**
     9  	 * Creates a Event instance by specified source and type.
    10  	 * @param source the source of the event
    11  	 * @param type the type of the event
    12  	 */
    13  	public function Event(source:Object, type:String){
    14  		this._source = source;
    15  		this._type = type;
    16  	}
    17  	
    18  	/**
    19  	 * Returns the type of the event.
    20  	 * @return the type of the event
    21  	 */
    22  	public function getType():String{
    23  		return _type;
    24  	}
    25  	
    26  	/**
    27  	 * Returns the source of the event.
    28  	 * @return the source of the event
    29  	 */
    30  	public function getSource():Object{
    31  		return _source;
    32  	}
    33  }
    34