title: Clearing a textbox when clicked in actionscript 3.0
body: <p>I've got an array of multiple textboxes that will be used for entering information. However I made this function that should clear them all whenever they're clicked yet it says that the object I entered into the parameters==null. </p>
  
  <pre><code>var arrange:Array=new Array(TB1,TB2,TB3,TB4,TB5);
  
  function focuser(ityou:Object):void {
      trace(ityou)
          ityou.text="";  
  }
  
  for (var i=0;i&lt;arrange.length;i++) {
      arrange[i].addEventListener(FocusEvent.FOCUS_IN,function(event:FocusEvent):void { focuser(arrange[i]) });
  }
  </code></pre>
  
  <p>I don't know if you can enter functions inside .addEventListener like in Lua but, I tried :P</p>