flashMX center Q

Out of context: Reply #5

  • Started
  • Last post
  • 8 Responses
  • stewart0

    F18, try this:

    ----
    in the first frame of your fla file:
    ----
    Stage.scaleMode = "noScale";
    Stage.align = "LT";
    Stage.addListener(MC);

    ----
    in your MovieClip actions:
    ----
    onClipEvent (enterFrame) {
    _root.MC.onResize = positionMC;
    function positionMC() {
    endX = (Stage.width/2)-(_root.MC._width...
    endY = (Stage.height/2)-(_root.MC._heig...

    _root.MC._x = endX;
    _root.MC._y = endY;
    }
    positionMC();
    }

View thread