May 2008
5 posts
JSON parser for ActionScript2
It took us some time, but now we see the virtues of JSON. We’re moving from XML to JSON to communicate with the outside world. The Floorplanner 2D app is (still) AS2 and I’m very happy to see that 5etdemi created a nice JSON parser in AS2. Saves me a lot of work, thanks!
May 29th
BitmapData.draw(..) cross domains
Since recently we create a thumbnail image of every Floorplanner plan that is saved. To create a 240x180px image we use the BitmapData class (AS2) to get the pixel info and we send it to our server to create the PNG/JPG. It can happen that the content (images, swf’s) has to be loaded from a different server then the server that holds the HTML page with the Flash app. We noticed that the...
May 26th
Developing RESTful APIs in Rails
As you may have read on this blog, we are working on a RESTful API for Floorplanner. This post contains some random observations I have made and questions I had (and still have) during the development. to_xml incompatible with to_json ActiveRecord#to_json does not seem to be fully compatible with ActiveRecord#to_xml. With to_xml, it is possible to overwrite the to_xml method of your models. The...
May 22nd
Mousewheel events in Flash on OS X
The Flash Player on OS X currently lacks support for mousewheel events. This means that users cannot use their mousewheel on OS X, in the Floorplanner we use the mousewheel to easily zoom in to your Floorplan. After reading this post from pixelbreaker, I was inspired to implement this in the Floorplanner which was, in fact, very easy. I decided to only use the JavaScript class of pixelbreaker,...
May 7th
RAPIDoc Rails Rest Api documentation generation,...
Today I setup the first version of a RAPIDoc, a Rest API Rails Documentation Generator and we decided to open source this thing, from now on let’s call it RAPIDoc. It is a API code generator for Rails, describing your Rest resources. We we’re looking for a way to fully integrate documentation of our API into the code base, like Rdoc does. Rdoc didn’t suit our needs, cause it has...
May 6th