Re: [Flashcoders] Compiler chokes when using a class method as eventhandler

2007-04-19 Thread Alexander Farber
Hello Muzak, On 4/19/07, Muzak <[EMAIL PROTECTED]> wrote: Because each card instance now uses the EventDispatcher class you can easily determine which card instance was pressed/released through the argument passed to the event handler. your suggestion is excellent as always - I'll try that!

Re: [Flashcoders] Compiler chokes when using a class method as eventhandler

2007-04-19 Thread Muzak
t setDepthTo is defined in the Card class, not the Deck class. And allthough it is now defined, it's actually no longer needed, because I'm defining the target as MovieClip var t:MovieClip = o.target; t.setDepthTo(...); The following would actually be better: var t:Card = o.target; t.s