This class provides functions for controlling the behavior of the
Wii Internet Channel Browser. The primary use of this class
is to enable and disable the default actions of the Wii Remote
buttons on the controller.
By default, this API attempts to disable all Wii Remote actions.
Tasks such as zooming, scrolling, and shortcuts are thus disabled.
However, it can be advantageous to enable these functions for
certain games. You can do this by calling
Browser.setDefaultEnabled(WiiRemote.BUTTON_<name>) or
by calling one of the convenience methods.
Note that all of the features provided by this class only operate
on the Nintendo Wii. If the movie is running on any other system,
any calls to these functions will be ignored.
static public function isDefaultEnabled(buttonCode:Number):BooleanThis function can tell you if the default action for a particular Wii Remote button is enabled or disabled.
buttonCode | One of the WiiRemote.BUTTON_<name> constants.
|
True if the default action is enabled, false otherwise.
static public function setDefaultEnabled(buttonCode:Number, enabled:Boolean)This function allows you to enable/disable the default action for a given Wii Remote button.
buttonCode | One of the WiiRemote.BUTTON_<name> constants.
|
static public function enableZooming():VoidA convenience method that enables all Wii Remote buttons related to zooming. This includes the +/- buttons. This is the same as calling setDefaultEnabled with true for each of the following buttons:
static public function disableZooming():VoidA convenience method that disables all Wii Remote buttons related to zooming. This includes the +/- buttons. This is the same as calling setDefaultEnabled with false for each of the following buttons:
static public function enableScrolling():VoidA convenience method that enables all Wii Remote buttons related to scrolling. This includes the DPad and the B button. This is the same as calling setDefaultEnabled with true for each of the following buttons:
static public function disableScrolling():VoidA convenience method that disables all Wii Remote buttons related to scrolling. This includes the DPad and the B button. This is the same as calling setDefaultEnabled with false for each of the following buttons:
static public function setBackgroundColor(color:Number):Void
Changes the background color of the webpage. This is useful in getting
the webpage to match the background color of your movie.
Colors should be passed in an 888 RGB format. For example,
Browser.setBackgroundColor(0xFF0000) will set the
background to red, while Browser.setBackgroundColor(0x000000)
will set the background to black.
color | A color in RGB integer format. |