In this recipe we are going to replicate the visualization found on http://www.mta.me, done by Alexander Chen. The original piece is done in HTML, but we are going to do it in Flash, without the music component.
Open the files downloaded from the Packt Publishing website, look into the Chapter 7 | recipe 5 folder, and follow along.
The following are the steps required the animate the New York City subway system:
Head over to http://www.mta.info/developers/download.html and download the New York City Transit Subway data.
From the data derive these information: line color, departures, and duration of each trip.
Download this map: http://www.nycsubway.org/perl/caption.pl?/img/maps/system_1972.jpg and open it in Photoshop.
In Photoshop, note the coordinates for the paths of each line.
Create
Main.as
and copy the data into it.Create the
Subway
class.In its constructor, determine the distance of each section of the path and with that information...