//    Instruction Example :      button.kill (objectid)


        screen.resolution.set (512,384)

        screen.set (BACK)
          pattern.display ("avo\bubble.gif")
        screen.end ()

        button.display ("avo\button_01.btn",CENTER,CENTER,Event.Manager,PRESS_LEFT_BUTTON)

        text.display ("Press a key to exit.",CENTER,350)
        text.display ("Click on the button to kill it.",CENTER,10)

        keyboard.wait ()

        script.stop ()

        procedure Event.Manager (@event,%status)
          button.kill (@event)
        end procedure