Many of my demos here are based on the same principles: create a rectangular grid and animate bending it in some groovy way. Flash Player 10’s graphics.drawTriangles has been quite a perfect tool for doing that. Usually I’ve handled the vertices and triangles – or indices – by some for-loop, like this example initialized the triangles for a mesh of size n*m: for (ii=i=0 ; i!=n-1; i++) { for (j=0 ;
![LinkedGrid](https://cdn-ak-scissors.b.st-hatena.com/image/square/480b5b24d5d529aec6229d338f795dce8cb2b87c/height=288;version=1;width=512/http%3A%2F%2Fwww.petrileskinen.fi%2FActionscript%2FLinkedGrid%2FLinkedGrid.gif)