Sometimes some events pass their own args and you dont even see them..
Try changing your function to this: function onHit1(o:Object, n:Number) //the o object is passed by the listener { trace("it was hit with the number: " + n); } On 8/13/06, dnk <[EMAIL PROTECTED]> wrote:
Ramon Miguel M. Tayag wrote: > http://board.flashkit.com/board/showthread.php?t=662329&highlight=delegate > > How do you call this class? I tried.... import com.includingatree.utils.Delegate; //use the delegate this.menuBtn.addEventListener("click", Delegate.create(this, onHit1, 1)); //create the btn event to handle the click function onHit1(n:Number) { trace("it was hit with the number: " + n); } But I get returned: it was hit with the number: [object Object] What would I be doing wrong? _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- Ramon Miguel M. Tayag _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com