Archive for July, 2012

Create Hotspots using the Fireworks JavaScript API

July 10, 2012

If you are a designer who happens to know JavaScript, you may be happy to know that Fireworks has a JavaScript API. This tip came from Justin Lee, from Herxun, who used it to create hotspots on an image of the Taipei Metro map and then used the vectors to embedded clickable regions within a mobile app. The result was impressive. You could touch areas of the map and view contextual info, like estimated wait times, etc.

I was impressed by how Justin approached the problem of data transformation, considering how painful it can be mobilize vectors of dynamic data. He used Adobe Fireworks, a graphics app. Fireworks has a JavaScript API the he used to perform data processing. When you clicked a region on the image map, contextual information could be displayed. It was an elegant approach that saved lots of time.

Here is how he did it (per his email to me):

Because Taipei Flora Expo closed a few days ago, the official taipei metro route map changes a lot. With the fireworks work flow, It only take me less than half hour to fix it.

Obtain the FIreworks Console:

Then draw hotspots on the canvas and select all of them.

After that, open the Fireworks Console, paste below code to in it.

var hotspots = [];
for(var i=0;i {
var hotspot={}; = sel[i].altText;
hotspot.l = sel[i].pixelRect.left;
hotspot.t = sel[i];
hotspot.r = sel[i].pixelRect.right;
hotspot.b = sel[i].pixelRect.bottom;

console.log("nhotspots = ");

Then click ‘Eval’ Button, you will get all coordinates of the hotspots in JSON format.
I hope this may help you sometime.

I haven’t tested this yet, but you I can foresee several use cases.  I may write an app that demonstrates this further.  In the mean time, you can download the map here and try it yourself. Pretty slick.


Flip & Zoom Skeuomorphic Effect w/ Titanium Mobile

July 7, 2012

This is a simple concept piece that attempts to recreate the effect of opening a box to view contents, in a realistic manner. It’s written in Titanium Mobile using 2D/3D animation, shadow views and skeuomorphic designs.

Flip & Zoom Skeuomorphic Effect w/ Titanium Mobile from Terry Martin on Vimeo.

Off Canvas UI/UX Example [VIDEO]

July 6, 2012

Here is an app I wrote as part of a mobile strategy for  This began as an experiment with Titanium Mobile to create a unique user experience based on navigation. Although this app is a prototype, it is nearly complete and may become a key part of the company’s strategy going forward.