What is SWFObject?
Advantages of Using SWFObject
Three big advantages are:
- Manipulation: You can use the API to modify properties of the SWF, such as its location or size. Behavior such as SWF removal from a page when the user clicks a button or does a rollover with a mouse can be written quickly in a few lines.
- Customization: You can write functions that change the behavior of a SWF as the web page loads, or easily pass parameters to the SWF from a URL.
To use SWFObject, obtain the JS code and the generator from the URL indicated in the resources section. For the generator, you'll have the choice of using the Adobe Air version or the traditional manual HTML version. Create a directory, and place the JS script there. You also have the option of linking to a script on a Google server. Afterwards, use the generator to create the HTML embedding.