A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Can I change the center point of an MC

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    5

    Question Can I change the center point of an MC

    I have a got an MC embedded in another MC and I want to change/set the center point of the embedded MC from within the _root . Is this possible..???

    Cheers - GF

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Not on the dole any more
    Posts
    1,040
    There's no facility in actionscript for doing this automatically, but you can simulate it.

    Briefly, you place your movie clip (mc1) inside another movie clip (mc2). When you want to change the centre point of mc1, just move mc2 to the new position, and move mc1 by the opposite amount.

    Here's a file that demonstrates the idea.

    Hope this helps.

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Posts
    5
    Thanks very much for your help, i can see roughly how to port it across but cant do it till tommorow my boss is back in the office
    Thanks for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center