Flash - Page tear animation?

1.3k Views Asked by At

Can anyone recommend a decent tutorial, add-on or approach to creating a page rip off effect in flash?

I want to create a notepad where each page can be ripped off to reveal further content.

Thanks Paul

1

There are 1 best solutions below

2
On

are you looking for a pageFlip with a tearing feature? if so it does exist even though I can't find the link (anyway it was AS2).

if you want more flexibility, you can take a look at a cloth simulation ; derschmale did a great example and pixelero did sort of the same with linked lists (=faster)

there's also this particle physics engine called Traer that have been ported from java and that allows you to get the cloth behaviour with fewer lines of code and some fine tuning (stiffness, damping a.s.o. ).

the general idea is to subdivide the displayObject you want to tear off into a series of triangles, take a snapshot of that object in a BitmapData, then redraw the distorted grid with the drawTriangles() method. I think it is how they do the thing in the cloth examples.