Skip to content

Instantly share code, notes, and snippets.

@edgarberm
Created December 18, 2012 17:14
Show Gist options
  • Save edgarberm/4329870 to your computer and use it in GitHub Desktop.
Save edgarberm/4329870 to your computer and use it in GitHub Desktop.
Change registration point on the fly AS3
private function setRegistration(obj:DisplayObject):void
{
obj.x = -obj.width >> 1;
obj.y = -obj.width >> 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment