mx.events.EventDispatcher newbie mistake:
Question: If I am using the EventDispatcher class in mx.events, must I always make my class dynamic so it can be assigned the methods?
Answer: You can do the following if you don't want to use dynamic (which is better) so Flash can resolve it at compile time.
private var addEventListnener:Function;
private var removeEventListener:Function;
private var dispatchEvent:Function
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home