PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/org/osflash/signals/natives/sets/InteractiveObjectSignalSet.as

http://github.com/robertpenner/as3-signals
ActionScript | 123 lines | 97 code | 23 blank | 3 comment | 0 complexity | dd1d528408c6aca7e505d473070dba5e MD5 | raw file
  1package org.osflash.signals.natives.sets 
  2{
  3	import org.osflash.signals.natives.NativeSignal;
  4
  5	import flash.display.InteractiveObject;
  6	import flash.events.Event;
  7	import flash.events.FocusEvent;
  8	import flash.events.KeyboardEvent;
  9	import flash.events.MouseEvent;
 10	import flash.events.TextEvent;
 11
 12	/**
 13	 * @author Jon Adams
 14	 */
 15	public class InteractiveObjectSignalSet extends DisplayObjectSignalSet 
 16	{
 17		
 18		public function InteractiveObjectSignalSet(target:InteractiveObject) 
 19		{
 20			super(target);
 21		}
 22
 23		public function get click():NativeSignal 
 24		{
 25			return getNativeSignal(MouseEvent.CLICK, MouseEvent);
 26		}
 27
 28		public function get doubleClick():NativeSignal 
 29		{
 30			return getNativeSignal(MouseEvent.DOUBLE_CLICK, MouseEvent);
 31		}
 32
 33		public function get focusIn():NativeSignal 
 34		{
 35			return getNativeSignal(FocusEvent.FOCUS_IN, FocusEvent);
 36		}
 37
 38		public function get focusOut():NativeSignal 
 39		{
 40			return getNativeSignal(FocusEvent.FOCUS_OUT, FocusEvent);
 41		}
 42
 43		public function get keyDown():NativeSignal 
 44		{
 45			return getNativeSignal(KeyboardEvent.KEY_DOWN, KeyboardEvent);
 46		}
 47
 48		public function get keyFocusChange():NativeSignal 
 49		{
 50			return getNativeSignal(FocusEvent.KEY_FOCUS_CHANGE, FocusEvent);
 51		}
 52
 53		public function get keyUp():NativeSignal 
 54		{
 55			return getNativeSignal(KeyboardEvent.KEY_UP, KeyboardEvent);
 56		}
 57
 58		public function get mouseDown():NativeSignal 
 59		{
 60			return getNativeSignal(MouseEvent.MOUSE_DOWN, MouseEvent);
 61		}
 62
 63		public function get mouseFocusChange():NativeSignal 
 64		{
 65			return getNativeSignal(FocusEvent.MOUSE_FOCUS_CHANGE, FocusEvent);
 66		}
 67
 68		public function get mouseMove():NativeSignal 
 69		{
 70			return getNativeSignal(MouseEvent.MOUSE_MOVE, MouseEvent);
 71		}
 72
 73		public function get mouseOut():NativeSignal 
 74		{
 75			return getNativeSignal(MouseEvent.MOUSE_OUT, MouseEvent);
 76		}
 77
 78		public function get mouseOver():NativeSignal 
 79		{
 80			return getNativeSignal(MouseEvent.MOUSE_OVER, MouseEvent);
 81		}
 82
 83		public function get mouseUp():NativeSignal 
 84		{
 85			return getNativeSignal(MouseEvent.MOUSE_UP, MouseEvent);
 86		}
 87
 88		public function get mouseWheel():NativeSignal 
 89		{
 90			return getNativeSignal(MouseEvent.MOUSE_WHEEL, MouseEvent);
 91		}
 92
 93		public function get rollOut():NativeSignal 
 94		{
 95			return getNativeSignal(MouseEvent.ROLL_OUT, MouseEvent);
 96		}
 97
 98		public function get rollOver():NativeSignal 
 99		{
100			return getNativeSignal(MouseEvent.ROLL_OVER, MouseEvent);
101		}
102
103		public function get tabChildrenChange():NativeSignal 
104		{
105			return getNativeSignal(Event.TAB_CHILDREN_CHANGE);
106		}
107
108		public function get tabEnabledChange():NativeSignal 
109		{
110			return getNativeSignal(Event.TAB_ENABLED_CHANGE);
111		}
112
113		public function get tabIndexChange():NativeSignal 
114		{
115			return getNativeSignal(Event.TAB_INDEX_CHANGE);
116		}
117
118		public function get textInput():NativeSignal 
119		{
120			return getNativeSignal(TextEvent.TEXT_INPUT, TextEvent);
121		}
122	}
123}