button2.onRelease = function () { animation1._visible = false; animation2._visible = true; animation2.play(); }