Flash is a little more difficult to include on a web page than Javascript was, but not significantly more difficult. The Frogger game above is done with Flash.
Flash programs exist separately from our web pages and we place instructions within our web page telling it where to find the Flash programs. You will be including the frogger game you see above to one of your web pages. These steps however will work for most Flash programs you might find out the Internet. Free Flash programs are not nearly as common as javascript programs were but they do exist and can be found with some careful searches.
As before you can include the Flash on an existing page or create a new one to showcase your Flash abilities. In either case be sure a link exists from your index.html page to the page that contains the Flash.
Save the following program by right clicking on the link and saving the link to your web development folder. This file is called frogger.swf and contains the Flash version of frogger (in a form that you can't read, i.e., it's not text). Be sure you save it to the same directory as the file into which it will be embedded. KompoZer will transfer this file automatically for us when we publish our web page. (Flash programs are treated like images in this respect.)
To actually have your web page execute the frogger program you will need to go into the Source of the html file you want to add to and then copy and paste the following lines into the body of your web page:
<center>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
id="frogger" align="middle" height="300" width="400">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="frogger.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="frogger.swf" quality="high" bgcolor="#FFFFFF"
name="frogger" allowscriptaccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
align="center" height="300" width="400" />
</object>
</center>
Now you should be able to save your web page.
Open your page up within a browser window to verify that everything works correctly.
Note that in real life you would not be given the necessary HTML
source visible in the web page and colored red like the above. You
will need to use your browser's View Source function and find the
relevant HTML to copy and then paste into your own page. Try it now
with this very page: in your browser use View Source and find the code
which is the same as the above red material but now the actual code
(without the line breaks). It is located right after the opening
<body> tag. Also you would not be given the link to
the Flash program, but will need to track it down by finding the URL
in the page you are viewing.