MODELO DE SCROLL EN FLASH
var limiteTop:Number = 10; var limiteBot:Number = 350; var step:Number = 40;
myMC.posY = limiteTop;
btn_up.onPress = function (){ if (myMC.posY - step > limiteTop){ myMC.posY -= step; } };
btn_down.onPress = function (){ if (myMC.posY + step < limiteBot){ myMC.posY += step;
}
};
myMC.onEnterFrame = function():Void{ var dif:Number = (this.posY - this._y)*.25; this._y += dif; } |