If your mc's reg point is top left: mc._x = _root.xmouse - mc._width/2 mc._y = _root.ymouse - mc._height/2
if it's centered you need not bother about the width/2 etc, but if it's somewhere else, you'll need to change it or do other calcualtions. Karina > -----Original Message----- > From: [p e r c e p t i c o n] [mailto:[EMAIL PROTECTED] > Sent: 01 March 2007 23:57 > To: flashcoders > Subject: [Flashcoders] simple math question... > > good people, > > how do i move a moviClip to center itself at (_xmouse, > _ymouse)...i have the onPress part down...i just need to > center it on those coordinates > > thanks > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com http://training.figleaf.com > _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

