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

Flash Tetris Game
Flash Tetris Game

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" 
width="382" height="380" 
<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" 
<noembed>Sorry, you will need the 
<a href="" 
target="_blank">Flash Player</a> to play Flash Tetris Game.

Detail elements of the <object> tag will be explained later in the book.

Table of Contents

 About This Book

Introduction of Adobe Flash

 What Is Flash?

Using Flash to Provide Interactivity

 Using Flash to Provide Multimedia

 Flash Player Security Issues

 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

 Flash Player Projector

 SWFTools - SWF File Manipulation Tools

 SWFC Script to Generate Flash SWF Files

 ActionScript Embedded in SWFC Script

 AS3Compile - ActionScript 3 Compiler

 Adobe Flex SDK 4

 SWF File Structure and Tags

 SWF File Processing Rules

 SWF Files for Video and Audio Streams

 Outdated Tutorials


 Full Version in PDF/EPUB