Flash Tutorials - Herong's Tutorial Examples - v3.03, by Dr. Herong Yang
Using Flash to Provide Interactivity
This section provides a flash game example called Flash Tetris Game. It shows how Flash can be used to provide interactivity to Web pages.
Flash technology is widely used to provide interactivity to Web pages like on-line game pages. Here is an example of a Web page using Flash technology to provide an online version of the classic game Tetris offered at slogan4u.com:
By looking at the page source code, you can see how Adobe Flash Player is invoked as a <object> tag to run the game program file, tetris.swf:
... <object style="border:#3399cc 2px solid" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="382" height="380" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/... <param name="movie" value="tetris.swf"> <param name="bgcolor" value="#eoe7ff"> <param name="quality" value="high"> <param name="tpw" value="mfg"> <param name="menu" value="false"> <embed src="tetris.swf" width="382" height="380" bgcolor="#e0e7ff" quality="high" menu="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer/"> </embed> <noembed>Sorry, you will need the <a href="http://www.macromedia.com/go/getflashplayer/" target="_blank">Flash Player</a> to play Flash Tetris Game. </noembed> </object> ...
Detail elements of the <object> tag will be explained later in the book.
Table of Contents
►Using Flash to Provide Interactivity
Using Flash to Provide Multimedia
Adobe Flash Player Plugin for Firefox
Adobe Flash Player Plugin for Chrome
Adobe Flash Player Plugin for Safari
Adobe Flash Player ActiveX for IE
Using "object" Elements for Flash Files
Using "embed" Elements for Flash Files
"mp3player" - MP3 Music Player
SWFObject - Hidding "object" behind JavaScript
SWFTools - SWF File Manipulation Tools
SWFC Script to Generate Flash SWF Files
ActionScript Embedded in SWFC Script
AS3Compile - ActionScript 3 Compiler