thanks for the info...very helpful!
cheers
[p]
On 3/2/07, Joshua Sera <[EMAIL PROTECTED]> wrote:
For an arbitrary registration point, use
var b:Object = mc.getBounds(mc._parent);
var offset:Object = {x:(mc._x - b.xMin, y:instance._y
- b.yMin)};
then
mc._x = (_root.xmouse - mc._width/2) - offset.x;
mc._y = (_root.ymouse - mc._height/2) - offset.y;
--- Karina Steffens <[EMAIL PROTECTED]> wrote:
> 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
>
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
_______________________________________________
[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