Monday, December 29, 2008

Example of using long url please in an Adobe Air application

@Swizec sent me a modified version of the longurlplease jquery plugin that works from an adobe air application. I'm quite new to AIR - but it turns out the two things you've got to do differently are how you make requests and how you parse JSON. 

I've put together an example air application using longurlplease, based on what @Swizec sent me, but without jquery, so that it will make sense to you no matter what other js libraries you may be using.

I use the URLLoader class to make calls to the api and this JSON parser to parse the responses.

Thanks @Swizec for helping me figure this out. Hopefully it will help more people lengthen short urls in their adobe air applications.
blog comments powered by Disqus