whole site scroll

Out of context: Reply #10

  • Started
  • Last post
  • 12 Responses
  • lvl_130

    you could just use this. i've been using it for a long while (you can just put it in a function as well but i'm too lazy to dig that up) and this is a really easy way to call this stuff...

    on your big mc put this code:
    onClipEvent (load) {
    change speed to determine how fast it gets from orig. to new
    speed = 4;
    }
    onClipEvent (enterFrame) {
    //x position
    _x += (_parent.xmark-_x)/speed;
    //y position
    _y += (_parent.ymark-_y)/speed;
    // x scale
    _xscale += (_parent.xsmark-_xscale)/speed;
    //y scale
    _yscale += (_parent.ysmark-_yscale)/speed;
    //rotation
    _rotation += (_parent.rmark-_rotation)/speed;
    _alpha += (_parent.amark-_alpha)/speed;
    }

    place this code on your button (oh and just for example sake i also instance named your main big mc to 'main':

    on (release){
    main.xmarck=300;
    main.ymark=200;
    main.amark=70;
    main.rmark=45;
    }

View thread