Welcome, Guest
  • Author Topic: Centering the Registration Point of a movie clip  (Read 582 times)

    jwduncan

    • Seasoned Programmer
    • ***
    • Posts: 232
      • View Profile
    I've been using Flash for 3 years now, so you would think I would know this already, but here it goes:

    I have a movie clip with a lot of graphics and animation in it.  Is there an easy way to get the registration point of the movie clip right in the center?  Or do I have to select "Edit Multiple Frames", select all the frames and then move all my graphics and animation to where I am guessing that the registration point of the mc is in the center?  Thanks for your help!

    ShilohWarrior

    • Moderator
    • Senior Programmer
    • *****
    • Posts: 289
      • AOL Instant Messenger - shilohwarrio12
      • View Profile
    Re:Centering the Registration Point of a movie clip
    « Reply #1 on: 03/28/03, 20:18 »
    try matching the x and y value of the MC so that it is in the center like this:

    [script]

    //Adjust these values so that the x and y value of the MC is in the center.

    MCinstanceName._x = 123;
    MCinstanceName._y = 456;

    [/script]

    You will have to adjust the values of the x and y value according to your whole movie's center.
    -Ryan

    eallen

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    Re:Centering the Registration Point of a movie clip
    « Reply #2 on: 04/01/03, 12:27 »
    what about the following?

    MCinstanceName._x = Stage.width / 2;
    MCinstanceName._y = Stage.height / 2;



    edwin



    jwduncan

    • Seasoned Programmer
    • ***
    • Posts: 232
      • View Profile
    Re:Centering the Registration Point of a movie clip
    « Reply #3 on: 04/01/03, 13:07 »
    That will center the movie clip in the browser window, but it will center it using the registration point of the movie clip.  So, if the registration point of the movie clip is at the top left corner the movie clip won't be centered.  My question is how do you get the registration point to be centered?

    Apolo

    • Server what's that
    • *
    • Posts: 17
      • View Profile
      • Email
    Re:Centering the Registration Point of a movie clip
    « Reply #4 on: 04/01/03, 19:09 »
    As far as I know you will have to move each registration point by hand. make sure that you have snap to objects on, then you wont have to guess where the center of each instance is.