Select Page

Dynamic Text around an Ellipse

Recently I had to create a dynamic menu that required some text to wrap around an ellipse. Getting the rotation correct involved calculating the angle of the tangent around the ellipse which was a challenge. Also the letter spacing was tricky and I don’t think I have the best solution for this but it seems to work quite well.

Here is a quick demo I put together tonight of it in action

ellipticaltext

click to launch
download source CS5 (also requires minimalcomps Slider source)

Expenditure Map – Rewired State

On the weekend I went to “National Hack the Government Day” here in London, organised by Rewired State. (Rewired State runs hackdays where developers show government what is possible, and government shows developers what is needed.)

It was a great day and a chance to collaborate with other developers on a project of our choosing. I have been meaning to get into data-visualisation for a long time, but hadn’t managed to actually get around to building anything, so this day was a great opportunity to finally put something together.

I teamed up with Gareth Shapiro, flash/flex developer I have worked with before, and Ian Shortman, who found the data and managed most of the back-end.

Expenditure Map We settled on an animated map showing the relative spending by different regions across the UK, using a set of circles that scale and change colour according to the relative values in the data.

It was an intense build as we only had a day to get a demo working, but it was very rewarding and I enjoyed the experience.

The end product is by no means polished and ready to go, but it shows what 3 developers can achieve in a day, and is a good starting point for more data-visualisation projects.

There are two colour pickers that let you choose the colour gradient of the regions, so you can quickly customise the way this looks, and radio buttons to choose the data sets to display. Thanks to Keith Peters (BIT-101) for the easily integrated components from minimalcomps. The project is Flash (AS3.0) with a MySQL and PHP back-end.

The project demonstration at the end of the day went well and the Expenditure Map was awarded one of the two Vodaphone-sponsored prizes which was unexpected but a nice surprise.

The project page at Rewired State is: http://rewiredstate.org/projects/expendituremap
and it can be viewed here: http://ishortman.com/projects/expendituremap

Expenditure Map

Zooming using transform Matrix

Here is a brilliant post ‘Zooming in Flash & Flex’ on how to use the transform Matrix to zoom and rotate DisplayObjects. Daniel Gasienica writes well and has some great examples demonstrating to correct way to apply these transformations to your clips.
Using this method saves you messing around with the Point class and localToGlobal / globalToLocal methods. This solution is elegant and efficient.

http://gasi.ch/blog/zooming-in-flash-flex/

Site launch – portfolio site v3

I’ve just launched my new portfolio site. This is v3.0 of sitedaniel.com, and takes a more minimalist approach to the design than the previous versions. This site is powered by ActionScript3.0 and XML, and uses some fun BitmapData effects.

site_portfolio_v3

link