
WEBXTRA HELP: FUNCTIONS
WebXtra cast members have only one function:
member(x).register(serialnumber) - This function can be used in Projectors to
register the Xtra at runtime, and allow developers to save linked casts. It is not
necessary for the normal operation of the Xtra, as WebXtra castmembers already
save their registration status in the Director movie.
Example:
member("browser").register("SERIALNUMBERHERE")
WebXtra sprites have several properties that are used to invoke operations of the
browser component. These functions are usually called by other interface elements
on your movie, such as a menu item used to print the contents of the browser
window or a button used to go back to the last page visited in the history.
sprite(x).navigate(url) - Used to initiate a navigation to the specified URL.
Example:
sprite(1).navigate("www.macromedia.com")
sprite(x).navigateFrame(url, frameName) - Used to initiate a navigation to the
specified URL in a given HTML frame. This is useful if you want to have script
controls in Director that change the content of just one frame while a frameset is
loaded in the browser.
Example:
sprite(1).navigateFrame("https://www.secure.com", "_contentFrame")
Online Help
23
Komentáře k této Příručce