[Flashcoders] trace command in .as3 docs

2009-01-30 Thread Rebecca Roberts
I'm having trouble running traces from a class in an external .as3 doc.
Forgive me...as I am still new to as3. Is there any way to do this?

 

Thanks.

Rebecca

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] simple math question...

2007-03-14 Thread Rebecca Roberts
An easy way to do this is to build your movieClip so that the graphics
inside align in the upper left corner at (0, 0). Then take the width of
your movie and divide it in half. If you take this half-width value and
subtract it from your _xmouse then it should center your movieClip over
the mouse horizontally. Do the same for the half the height of your
movieClip subtracted from the _ymouse and your movieClip should be
centered vertically.

Here is the equation, but you'll need to fiddle with the code a bit.

mc._x = _xmouse - (mc._width/2);
mc._y = _ymouse - (mc._height/2);

Good Luck.

Becky

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [p e r c
e p t i c o n]
Sent: Thursday, March 01, 2007 6:57 PM
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
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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