A while ago I stumbled upon this nice ActionScript 3.0 library to work with the Wordpress XML-RPC calls.
It does extends the more abstract XML-RPC AS3 library brought from Akeem Philbert.
I did decide to give it a try.
After fixed a couple of deprecated functions whether you are using FlexSDK 3.0, I gave the example class to Flash CS4 then hit the publish command, not before to set in the publish setting of Flash, the Flex framework needed to compile the library, since it uses Flex specific library, something like in ‘ActionScript 3.0 setting’ / ‘library path’:
If you are using FlexSDK 3.0 you have to fix a couple of function which are deprecated with the latest Flex Framework, so open the com/ak33m/rpc/xmlrpc/XMLRPCObject.as class and add one parameter to these function:
If you have some troubles and don’t receive anything, you need to make an additional fix to have the Event class to work properly. Don’t forget to enable the XML-RPC publishing protocol in Settings/Writing of your WordPress blog.
Open the com/absentdesign/core/webapis/events/ServiceEvent.as class and add this code to the constructor:
Thats it, now you should be able to compile the example class which comes with the library.
Just a quick note:
If you want to use this library, you have to authenticate the application using the admin login of the wordpress installation, even if you want just to read.
For this reason, no live example on this site
Nice work updating the outdated code. Could you post the code with the fixes in it? It’d save your readers some time.
Thanks for your blog post! I just might use this!