Yesterday SWFObject was released. For those of you who don’t know what SWFObject is:
The ilbrary is used to embed Adobe Flash content onto Web pages, which is supplied as one small JavaScript file. The library can also detect the installed Adobe Flash Player plug-in in all major web browsers, on all major operating systems, and can redirect the visitor to another webpage or show alternate HTML content if the installed plug-in is not suitable. The library is independent, although it optionally integrates with external libraries, such as SWFAddress.
Version 2.2 of SWFObject was developed for almost a year, you can download it at their google code site. The new version brought many new features:
1. Improved DomContentLoaded emulation for Internet Explorer
SWFObject 2.2 uses Diego Perini’s solution to emulate DomContentLoaded for Internet Explorer. This solution is also used by jQuery and offers advantages (e.g. no more document.write or invalid paths) over the solution used by SWFObject 2.1 and 2.0.
2. Dynamic library support
API methods are now also supported when the SWFObject library itself is added dynamically after the onload event has fired.
3. Callback method for embedding Flash content
SWFObject 2.2 extends the registerObject and embedSWF API methods with the optional callbackFn parameter, which points to a user defined callback function that is called after SWFObject has embedded Flash content.
4. Bye, bye embed
We cleaned up code aimed at old browsers and old Flash Player versions. SWFObject 2.1 still uses the proprietary HTML embed element as a fallback for old Webkit engines that don’t support nested param elements for the object element. SWFObject 2.2 will now show alternative content for these browsers instead.
5. Improved Flash Player version detection for non-Internet Explorer browsers
SWFObject 2.2 now corrects wrong version numbers provided by corrupt Player installments and includes build and development versions as requested by the Flash Player team.
6. Improved Adobe Express Install
Express Install now:
* inherits all parameters and attributes from the targeted SWF
* redirects correctly when using multiple GET variables
* reverts to alternative content in cases where it previously failed silently
7. Improved createCSS method
SWFObject 2.2 reuses earlier created dynamic style sheets when possible.
8. Detected user agent properties are now public via the swfobject.ua object
JavaScript developers can now reuse SWFObject’s feature and user agent detection functionality.
9. Bye, bye conditional compilation directives
We removed all conditional compilation directives as a proprietary feature test for Internet Explorer, so now it is easier for developers to create their own minified SWFObject library.
10. The option to switch off SWFObject’s default show/hide behavior
Developers now have the option to switch off SWFObject’s default hide/show behavior (SWFObject temporarily hides your SWF or alternative content until the library has decided which content to display).
And much more…
We fixed a series of minor bugs, made small improvements to existing methods and made a few tweaks to ensure better HTML5 compatibility.
To see full list of changes fallow this link. If you are new to SWFObject Lee Brimelow has posted some great video tutorial on how to use it.
Kuba











It‘s quite in here! Why not leave a response?