Give us the code of the dispatching of the event ... dnk 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 _______________________________________________ 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