MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Instrukcja Użytkownika Strona 29

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 44
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 28
showContextMenu(spriteRef) - Called by the Xtra when the user clicks with the
right mouse button over the HTML area, to invoke the standard browser context
menu. You can return TRUE to allow the menu to appear (the default value), or
FALSE to prevent the menu from being displayed.
Lingo example:
on showContextMenu spriteRef
return false
end
JavaScript syntax example:
function showContextMenu(spriteRef){
return false
}
navigateError(spriteRef, URL, frameName) - This event is generated when the
browser can not load an URL. It may be a malformed URL or one that is not
currently online. The event parameters include the name of the URL that failed as
well as the name of the frame containing it if the navigation was invoked in an
HTML frame. The default action is to display the standard error URL for Internet
Explorer, but you can instead return FALSE from this handler and present your
own customized error message.
Lingo example:
on navigateError spriteRef, URL, frameName
alert("There was an error trying to load "&URL)
return false
end
JavaScript syntax example:
function navigateError(spriteRef, URL, frameName ){
_player.alert("There was an error trying to load "+URL)
Online Help
29
Przeglądanie stron 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 43 44

Komentarze do niniejszej Instrukcji

Brak uwag