In the URL text box, enter the following:
javascript:
and then paste the contents of the clipboard??”your JavaScript code??”so that you have something
that looks like the following:
javascript:MM_openBrWindow(???myBuddy.htm??™,??™??™,??™;
scrollbars=yes??™,??™width=250,height=200??™)
816
Including Multimedia Elements Part V
8. Repeat steps 2 through 7 for each additional button or behavior you??™d like to use. Note that multiple
function calls in a javascript: statement must be separated by semicolons:
javascript:funcCall1(arglist); funcCall2(arglist); etc.
9. Export your Flash movie as an SWF file, and place it into the same page in Dreamweaver where
you built your null links. Note that the tag of this page contains JavaScript functions that
match your null links and the JavaScript inside your Flash movie.
10. Delete your null links??”but not the JavaScript functions in the tag??”and publish
your page.
When users click the buttons in your Flash movie, javascript: URL sends the commands to the
browser, executing the JavaScript functions in your Web page. Flash buttons open new browser windows,
pop-up messages, and so on. This works in Netscape and in Internet Explorer.
Shockwave authors can also use JavaScript URLs from Lingo to trigger Dreamweaver behaviors
in a manner similar to the procedure just shown.
Pages:
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412