Interactivity on the web
233
Lesson 10, Introduction to Interactivity
10
6 Return to your insertFlash.html fi le and scroll to locate the line

Recipe of the
Day: Honeydew Melon

. Click once above this heading and paste the code you
just copied.
Add the multiple lines of code immediately before the

heading.
Now you need to update the link to your new SWF fi le and a few other properties.
7 Locate the following line of code:

Change the value to point to a Flash fi le located in the FlashAssets folder in your
web10lessons folder (highlighted in red):

There is another object element nested within the fi rst object element, so you need to
update the link to the SWF fi le again. This second object element is needed for certain
versions of Internet Explorer.
8 Locate the second object tag and modify this code (highlighted in red):



There are two remaining steps: you must update the ID name for this Flash object and
update the reference to the ID in your JavaScript.
9 In the fi rst tag, update the name of the ID (highlighted in red):
width="220" height="250" id="smoothiead">
Scroll to your head section and make sure the reference to this ID is updated in your last

webdesign.indb 233
webdesign.indb 233
3/17/11 1:51 PM
3/17/11 1:51 PM
Précédent

- 251/307

Suivant