function func() { if(!deleted) clip._visible = true; } ESCbutton.onRelease = func3; function func3() { deleted = true; }