add AMD support to Flash event dispatch