SWFObject 2.2 released
Yesterday SWFObject was released. For those of you who don’t know what SWFObject is:
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
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.
1 Comment + Add Comment
Leave a comment
Become an Author
We are looking for Authors, if you have a Flash (or related) knowledge and you want to share it with the community on our blog please contact us.