SWF File Example - rectangle.swf

This section provides a tutorial example of SWF files, rectangle.swf, showing a rectangle with 5 tags.

To show you the basic structure of a SWF file, I created a simple SWF file called rectangle.swf based on an example given in the SWF 10 specification document.

Here is a hex dump of the rectangle.swf with the header and tags identified:

# HEADER
0x465753034F0000007800055F00000FA000000C0100 

# SETBACKGROUNDCOLOR tag
0x4302CCCCFF

# DEFINESHAPE (rectangle) tag
0xBF0023000000010070FB49970D0C7D5000011400000000
0x0125C9920D21ED488765303B6DE1D8B40000

# PLACEOBJECT2 tag
0x8606060100010000

# SHOWFRAME tag
0x4000

# END tag
0x0000

You can actually create your own rectangle.swf file by taking all Hex numbers presented above and convert them into a binary file.

If you open rectangle.swf with a Web browser with Flash player installed, you will see a rectangle displayed:
Rectangle in SWF

Last update: 2014.

Table of Contents

 About This Book

 Introduction of Adobe Flash

 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

 What Is SWF?

 SWF File Structure

SWF File Example - rectangle.swf

 SWF File Example - Dump Output

 SWF File Definition and Control Tags

 SWF File Processing Rules

 SWF Files for Video and Audio Streams

 Outdated Tutorials

 References

 PDF Printing Version