Flash help urgent

Out of context: Reply #15

  • Started
  • Last post
  • 16 Responses
  • versa0

    thanks guys - i don't need to zoom, just want to ease to the edges; i understand that i can check the value of x and y and stop if i exceed a certain cooridinate, but this seems crude - i don't want it to stop suddenly, i want to ease to its edge

    i am starting with this:

    on(release){
    _global.mapTipSeen = true;
    if(_global.mapTipSeen == true)
    {
    _root.tipMC.tipArrowMC.AniStop...
    _parent.gotoAndStop("map2");
    }

    on(rollOver)
    {
    this.onEnterFrame = function()
    {
    mouseX = (-_root._xmouse);
    mouseY = (-_root._ymouse);
    thisX = this._x;
    thisY = this._y;
    diffX = mouseX-thisX;
    diffY = mouseY-thisY;
    moveX = diffX/10;
    moveY = diffY/10;
    this._x += moveX;
    this._y += moveY;
    }
    }

    not quite there obviously

View thread