Scale sprite from center

I have a sprite that I want to scale using actuate (to have some animation). However, modyfing the scaleX and scaleY properties of the object make it scale from it’s top left corner. So is there any simple way to modify the scale origin of the object so that it remain centered on it’s original center point when scaled down or up?

Center your sprite inside another sprite, and scale the latter.

or this maybe: https://gist.github.com/mattlundstrom/3092911?