Create a new Dreamweaver document or open an existing one.
2. Create a null link that represents a button in your Flash movie. If you want a Flash button to
open a new browser window, attach the Open Browser Window behavior to your null link, as
shown in Figure 25-13.
FIGURE 25-13
Attach a behavior you want to trigger from Flash to a null link in Dreamweaver.
3. Place your cursor within the null link, and select the
tag from the Tag Selector in
Dreamweaver??™s status bar to completely select the link.
4. Choose View ??? Code and Design to display the page code and design together. Note that the
null link is selected in both the Code and Design portions of the Document window and looks
something like the following:
onClick=???MM_openBrWindow(???index.htm??™,??™newWindow??™,;
???status=yes,scrollbars=yes,width=200,height=300??™)???>
Play5. Select everything between the quotes (???...???) in the onClick attribute??”including the
parentheses??”and copy it to the clipboard. This is the actual JavaScript that you want the Flash
button to execute.
6. In Flash, select the button to which you want to add the Dreamweaver behavior and then open
the Actions pane.
7. Click the Add Action (+) button, and choose Actions ??? Browser/Network ??? getURL to add a
getURL behavior to your Flash button.
Pages:
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411