Posts Tagged ‘as3’

Shapefile code now loads DBF too

For the benefit of anyone following along via RSS, just a quick note to say that I have updated the AS3 shapefile loading and drawing helper classes from last week to include basic loading of attributes from a DBF file, again using Edwin van Rijkom’s libraries. I hope it helps a bit more for [...]

Simple shapefile drawing in ActionScript 3

Recently I’ve heard two friends independently inquire about some sort of basic guide for loading and drawing a shapefile in Flash. The only real tutorial/example I can recall is here, dealing with Google Maps. But these guys are looking for something more bare-bones. Being a regular user of Edwin van Rijkom’s invaluable code [...]

ActionScript curves update

I finally opened my CubicBezier AS3 class, the only reason anyone ever finds this site at all, for the first time in many months to attempt to address some of the various comments and reported problems from the original. It’s not perfected, but I’ve done three things:

Added a “moveTo” argument to the curveThroughPoints method, [...]

Simple map panning and zooming with ActionScript

A while ago I wrote a summary of basic map panning and zooming methods along with demonstrations of most of them. There were a few requests for code examples for those demos, so (finally) I thought I’d outline some of the simple methods for doing it in Flash/ActionScript.
I’ve put together two AS files:

A PanZoomMap [...]

Raster map projection with ActionScript 3

This is probably a stupid idea, but that’s never stopped me before.
Lately some of my Flash mapping colleagues and I have come to rely on transforming geographic data—say, shapefiles—into various map projections on the client side via the ActionScript vector drawing methods. (See, for example, a post by my friend Zachary Johnson with an [...]

Continuous curves with ActionScript 3

Seeing my comrade Zach Johnson’s impressive work on generating isoline maps in Flash, I offered to try to lend a hand with smoothing the lines (point-to-point connections) he was deriving from interpolations via Delauney triangulation. I first turned to the fantastic book Foundation Actionscript 3.0 Animation: Making Things Move!, in which Keith Peters presents [...]