AS3 WDDX-Class

Alexander Funke @ Nov 01 2007 9:41 am

Yesterday I completed version 0.5 of the new AS3 WDDX communication class. The use is really simple:
In order to serialize an Object:

var wddx:Wddx = new Wddx();
var output:XML = wddx.serialize(obj);

In order to deserialize an WDDX-XML:

var wddx:Wddx = new Wddx();
var obj:Object = wddx.deserialize(xml);

The documentation will be added and some bugs will be fixed in the next version. So here is the first version for download!

This class is released unter the MIT license. So feel free to use it.

4 comments zu “AS3 WDDX-Class”

  1. Devin says:

    I just tried this out in an AIR application that needed to parse wddx data from CF. It worked perfectly. Thanks!

  2. zu says:

    Hi Alexander, does this work with CS3? How do I include it in my project? It gives me an error saying that it cant find the classes when I try to compile. I’ve got all the files in one folder, including the SWC.

    Any help would be great, thanks :)

  3. Alexander Funke says:

    Dear zu. You need to add the swc to the classpath in the publishing settings of Flash. In your code you need to add the import for the Wddxparser like this:

    import de.bigsource.data.parser.wddx.Wddx;
    var wddx:Wddx = new Wddx();

    Then it should work fine.

    Kind regards Alex

  4. Tom says:

    Hi, Is your code is open source?

Your comment