added event binding to Flash player