added function to change sprite for flamingo-flash