December 2001
Intermediate to advanced
480 pages
9h 22m
English
Probably the most valuable and simple technique that you can use with JavaScript and Flash is calling a JavaScript function using this ActionScript format:
getURL("javascript:jsFunction()"); For example, in one project I wanted to call up HTML pages with lots of text. While text is relatively “light” in HTML, it can really bog down a Flash movie. I created three buttons in Flash, and each one contained this script, with a variation on the function swissy1()–swissy2() and swissy3().
on (release) {
getURL ("javascript:swissy1()");
} Figure 18.1 shows the script in the Object Actions window being developed in Flash.
After the HTML ...
Read now
Unlock full access