Revision: 6225
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 9, 2008 18:29 by rwitten
Initial Code
/** Adds a responder to an Array of responders. */ public function addResponder(responder:IResponder):void { if(responder == null) return; for each(var responderInList:IResponder in _responders) { if(responderInList == responder) return; } _responders.push(responder); } /** Removes a responder from an Array of responders. */ public function removeResponder(responder:IResponder):void { if(responder == null) return; for(var i:int=0; i < _responders.length; i++) { if(_responders[i] == responder) { _responders = _responders.splice(i, 1); } } }
Initial URL
Initial Description
Initial Title
Add & Remove to Array
Initial Tags
list, array
Initial Language
ActionScript 3