added hasInstance for flash