Posts Tagged ‘AS3’

March 3, 2010 2

Actionscript Path Correction – No Going Back!

By duncanhall in Actionscript

Update: See the improved solution For a project I’m currently working on, I needed a way to remove extremities from a path of consecutive points. The extremities represent points or segments of the path that we want to remove from the route (usually “going back on yourself”), while maintaining the intended course as much possible. [...]

Tags: , , , ,

February 28, 2010 5

Actionscript AS3 TextButton Class

By duncanhall in Actionscript

The TextButton Class provides a method for creating button components based on simple text labels. It’s something that’s often overlooked in many component sets, but since writing it I’ve found it to be invaluable in almost all of my projects. In it’s simplest form, all you need to define for a new TextButton instance is [...]

Tags: , , ,

February 27, 2010 6

AS3 Encoded Polyline Algorithm For Google Maps

By duncanhall in Actionscript

The Google Maps API uses Polyline objects to represent a series of straight lines between a set of latitude and longitude points. Long and complicated lines can become quite cumbersome to describe (especially when needing to send Polyline data to a remote service for example). For this reason, Google provides a method for encoding a [...]

Tags: , , ,