Sha256: 8bfc47dafe7aae07a1e666158690b452cadea1275a42ae318ac1683fc04c0eae

Contents?: true

Size: 813 Bytes

Versions: 28

Compression:

Stored size: 813 Bytes

Contents

// immutable, protected class...
class com.asunit.util.EventListener extends Object {
	private var source:Object;
	private var event:String;
	private var scope:Object;
	public static var defaultEvent:String = "all"
	
	public function EventListener(evnt:String, src:Object, scp:Object) {
		if(src instanceof Function && !(scp instanceof Object)) {
			Sys.println(">> EventListener constructor may cause problems because Function reference passed without appropriate scope argument.");
		}
		source = src;
		scope = scp;
		event = (evnt == undefined || evnt == null) ? EventListener.defaultEvent : evnt;
	}
	
	public function getScope():Object {
		return scope;
	}
	
	public function getSource():Object {
		return source;
	}
	
	public function getEvent():String {
		return event;
	}
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
asproject-0.1.30 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.21 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.31 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.27 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.28 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.29 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.33 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.32 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.36 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.35 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.37 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.34 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.41 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.43 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.44 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.40 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.38 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.42 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.60 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
asproject-0.1.68 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as