I would just make a global var(flip) if you're trying to flip every single sprite. make it equal -1 when you want them flipped, and 1 when you don't
then
sprite.width=sprite.originalwidth*global('flip')
Oh my god thank-you so much it worked, my game was dependant on this flip feature. thank-you lots and lots you're my hero! (no homo :D)