Creación del evento en ObjetoActivoEvent.as:
Código PHP:
   package {
    
    import flash.events.Event;
    
    public class ObjetoActivoEvent extends Event {
        
        public static const ACTIVADO:String = "activado";
        
        function ObjetoActivoEvent(type:String):void {
            var bubbles:Boolean = true;
            super(type, bubbles);
        }
    }
} 
    Código PHP:
   // Lanzar evento de objeto activado
dispatchEvent(new ObjetoActivoEvent("Event.ACTIVADO")); 
    Código PHP:
   contenedor.addEventListener(ObjetoActivoEvent.ACTIVADO, objetoActivo);
 
function objetoActivo(e:ObjetoActivoEvent):void {
    trace("Se ha activado el objeto: " + e.target);
} 
    Alguna ayuda?
 
 Ya funciona!! 
 Pensaba que se debía pasar como cadena, ya que el constructor de Event espera un String. 

