User Guide

522 Chapter 12: Methods
Example
This statement moves focus to the button under a specified point:
-- Lingo syntax
member(10).selectAtLoc(point(50, 75))
// JavaScript syntax
member(10).selectAtLoc(point(50, 75));
See also
DVD
selectButton()
Usage
-- Lingo syntax
dvdObjRef.selectButton(intButton)
// JavaScript syntax
dvdObjRef.selectButton(intButton);
Description
DVD method; selects a specified button.
This method returns
0 if successful.
Parameters
intButton
Required. An integer that specifies the button that is given focus.
Example
This statement selects button 5:
-- Lingo syntax
sprite(11).selectButton(5)
// JavaScript syntax
sprite(11).selectButton(5);
See also
DVD
selectButtonRelative()
Usage
-- Lingo syntax
dvdObjRef.selectButtonRelative(direction)
// JavaScript syntax
dvdObjRef.selectButtonRelative(direction);
Description
DVD method; selects a button relative to the current button position in the menu.