prevent some default behaviors in flash