Flash mc positioning

Out of context: Reply #12

  • Started
  • Last post
  • 14 Responses
  • jpea0

    yep. I thought you said you were working with clip events, which means your code is on top of clip rather than on the timeline. If you're working with code on the timeline somewhere, just use it's instance name instead.

    myClip1._x = Stage.width / 2 - myClip1._width/2
    myClip1._y = Stage.height / 2 - myClip1._height/2

    then to have one to the left of it,
    myClip2._x = Stage.width / 2 - myClip1._x - myClip2._width - 10
    myClip2._y = myClip1._y

    that'll give it a buffer of 10 on the left. not sure if that's what you're looking for. seemed to be though...

View thread