Cудя по всему, Вы взяли мой пример из темы
http://flasher.ru/forum/showthread.php?t=148963
Там совсем другой контекст, речь шла ИМЕННО о событиях с единственным типом. Будьте внимательней.
В вашем случае я бы сделал так –

Код AS3:
package
{
import flash.events.Event
public class ApiErrorEvent extends Event
{
public static const DATA:String = "apiErrorEventData";
public static const ERROR:String = "apiErrorEventError";
public var message:String;
public function ApiErrorEvent(type:String, message:String, bubbles:Boolean=false, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
this.message = message;
}
public override function clone():Event
{
return new SizeEvent(this.type, this.message, this.bubbles, this.cancelable);
}
public override function toString():String
{
return formatToString("ApiErrorEvent", "type", "message", "bubbles", "cancelable", "eventPhase");
}
}
}