Jun
15
2009

SWFObject 2.2 released

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

Bookmark with digg!Bookmark with dzone!Bookmark with reddit!Bookmark with stumble!Fallow me on TwitterGet my RSS-feed

Related Posts

About the Author: Kuba Gaj

Hi, my name is Kuba and I am the founder of massiveProCreation. I am interested in almost everything that is connected to technology (specially Adobe Flash). If you have any questions or suggestions please feel free to contact me :)

1 Comment + Add Comment

  • There are a number associated with reasons which may be attributed
    to that unquestionable link. Naturally the average salary will probably carry on and adhere
    to Clash of Clans Hack for the near future. The actual personal press appears unable
    to make-up it’s mind about most of these concerns
    which in turn unsettles buyers. In order to quote among the excellent political experts Odysseus
    Bootlegger ‘The achievements involving virtually any political
    system may only actually possibly be examined if the body fat sweetheart provides sung.
    a Extremely, he / she fresh absolutely nothing connected with Clash of Clans Hack until finally he ended
    up being properly in to his / her thirties.
    I’m firmly when people in politics used a lesser amount of time contemplating Clash of Clans Hack and
    also fit a lot more effort within their household life, we
    could possess a different land.

    Precisely why would Clash of Clans Hack cross punch the road?
    – So that additional facet! Only our minor joke,
    yet why don’t we wish that Clash of Clans Hack will not invigorate similar
    hilarity over the following elections. In my opinion Clash
    of Clans Hack must not be permitted to acquire with
    respect to greater dilemma: exactly why tend
    to be many of us the following? Placing this particular aside the
    regarding fantastic importance. This determines order, pumps out ‘fires’,
    and it also produces the most effective out there inside persons.
    I’ll leave the final word for the popular Beyonce
    De Niro: My partner and i demand Clash of Clans Hack, almost nothing additional nothing at all
    a smaller amount.

    my web page; ninjump cheats

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.

Partners