Learning Flash Lite 1.x ActionScript |
|
|
|
| Common Scripting Tasks > Opening a web page | |||
You use the getURL() command to open a web page in the device's web browser. This is the same way you open a web page from a desktop Flash application. For example, the following opens the Adobe web page:
getURL("http:www.adobe.com");
Flash Lite processes only one getURL() action per frame or per event handler. Certain handsets restrict the getURL() action to keypress events only, in which case the getURL() call is processed only if it is triggered within a keypress event handler. Even under such circumstances, only one getURL() action is processed per keypress event handler. The following code, attached to a button instance on the Stage, opens a web page when the user presses the Select button on the device:
on (keyPress "<Enter>"){
getURL("http://www.adobe.com");
}
|
|
|
|