SwfObject Control
This example shows off the QSwfObject control.
This control is a QControl wrapper for the popular SwfObject javascript control. It can be used to embed
Flash media easily into your QForms. You can get more information on SwfObect at the SwfObject wiki page. I used Alex Rabe's PHP SwfObject class as a guide. Information on Alex's class can be viewed
at Alex's blog.
Why use SwfObject to embed Flash?
- It will detect if Flash Player is present
- It will verify that the correct version of Flash Player is present
- It Will display Alternative content if Flash Player is not present or is wrong version
- Can utilize Adobe Express install to get latest Flash Player
- Easy API to access Flash Player's attributes
The control is easy to use. Just instantiate a QSwfObject and set the SwfUrl property to the URL of your Flash SWF file(can be a local or a remote URL). That is the minimum that is required.
This plugin copies the ExpressInstall.swf file from the SWFObect project into the images directory. It can be used as is if you plan on using the Adobe Express Install method. The FLA and AS source files are included in the assets/plugins/QSwfObject/example/SRC/ directory if you wish to customize ExpressInstall.swf.