REvent=function()
{this.m_eventListenerList=new Array();}
REvent.prototype.addEventListener=function(listener)
{this.m_eventListenerList.push(listener);}
REvent.prototype.removeAll=function()
{this.m_eventListenerList.splice(0,this.m_eventListenerList.length);}
REvent.prototype.trigger=function()
{var returnValue=true;for(var i=0;i<this.m_eventListenerList.length;i++)
{var listenerReturn=this.m_eventListenerList[i].trigger.apply(this.m_eventListenerList[i],arguments);if(false==listenerReturn)
returnValue=false;}
return returnValue;}
REventListener=function(functionCall,context)
{this.m_functionCall=functionCall;this.m_context=context;}
REventListener.prototype.trigger=function()
{return this.m_functionCall.apply(this.m_context,arguments);}