看几段as的代码。
第一步继承Event类,实现自己的事件
实例化类,并建立监听
关于给事件监听方法传递更多参数的问题,Flex的帮助原文如下
Passing additional parameters to listener functions
You can pass additional parameters to listener functions depending on how you add the listeners. If you add a listener with the addEventListener() method, you cannot pass any additional parameters to the listener function, and that listener function can only declare a single argument, the Event object (or one of its subclasses).
If you define an event listener inline (inside the MXML tag), you can add any number of parameters as long as the listener function's signature agrees with that number of parameters.