SWX: SWF Data Format

Icon

SWX is the native data format for Adobe Flash. This blog is about all things SWX, SWX RPC, SWX PHP and the SWX APIs (Flickr, Twitter, etc.)

SWX Bug with Flash Player 10 Fixed

If you have been using the Flash Player 10 RC and came across a site or widget using SWX, you undoubtedly noticed that it wasn't working. After a couple of days of back-and-forth on the SWX mailing list, the issue has been found and a solution posted.

[Update September 5, 2008 - a different fix was suggested in an attempt to allow SWX to continue to be used by hitting the gateway directly, allowing for easier debugging. Code below reflects this update.]

The problem is that FP 10 does not like one of the headers returned from SWX. To fix the issue, open SwxAssembler.php and change line 538 from:

header('Content-Disposition: attachment; filename="data.swf"');

to:

header('Content-Disposition: inline; filename="data.swf"');

This seems to fix the issue, as all SWX sites this has been tested on now work in FP 10 again.

Thanks to Fabrício Kolling for finding the proper solution, and to Folkert Hielema and Ben Lagoutte for helping test broken sites and debug the issue.

While this issue has not yet been fixed in the project's SVN or downloads, we hope to make this addition soon and release an updated version with the last couple of minor fixes.

One Response

  1. Hi,
    i’m looking forward to being able to use SWX again with AS3. Keep up the good work!
    Ariel