Heatmap engine in ActionScript 3