Here is an example of custom event that can pass unlimited parameters using … (rest) parameter:

?View Code ACTIONSCRIPT1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package {
// Import class
import flash.events.Event;
// EventType
public class EventType extends Event {
// Properties
public var arg:*;
// Constructor
public function EventType(type:String, bubbles:Boolean = false, cancelable:Boolean = false, … a:*) {
super(type, bubbles, cancelable);
[...]

continue reading.....