;

PDA

Click to See Complete Forum and Search --> : Calling MC within MC


docree
10-19-2004, 01:52 AM
I'm so close to getting an actionscripted project done.
But, I have a couple questions...

How would I call/target a movieclip within a movieclip from an actionscript on the root movie?

How does one center a movieclip in actionscript?

I seem to be running in circles.
_________________________
DocRee

FYI:The project is my version of the "raycasting" engine I mentioned in the "game pad" post.

w.brants
10-19-2004, 06:39 AM
Referring to a movieclip
_root.rootChild.childOfRootChild._x = 5

Centering a movieclip
myMc._x = Stage.width / 2
myMC._y = Stage.height / 2

docree
10-19-2004, 11:30 PM
Thanks, that works to an extent...
When centering a MC within MC it references close to the center, but not close enough.
Right now, it is just about 10 pixels [40 fips] left and up from center.
Is it possible that it is referencing around the center point of itself?
I have the cross hair at the uper left corner of the child mc and parent mc.
DocRee