embedSWF() Function and Arguments

This section describes the embedWF() function provided in SWFObject 2 and its 5 required arguments and 5 optional arguments.

Embedding a simple SWF file using SWFObject is easy. Embedding more complex SWF files requires us to read the embedSWF() function and it 5 required arguments and 5 optional arguments more carefully:

swfobject.embedSWF(swfUrl, id, width, height, version, expressInstallSwfurl, flashvars, params, attributes, callbackFn):

As you can see, embedSWF() is powerful, it allows to enter everything we can enter in "object" element through this single function call. See the next section for an example on using "flashvars" parameters.

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

 What Is SWFObject?

 Calling swfobject.embedSWF() Function

embedSWF() Function and Arguments

 Calling embedSWF() with "flashvars"

 What is SWFObject HTML Code Generator?

 Generating SWFObject HTML Code

 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