Help with flags

Hey guys -

Can anyone point me toward a tutorial (or even what functions in flash might work) to make a flag flap in the wind?

I know I could have the sequence illustrated but I don’t want to physically animate it. I want it to be dynamic. Animated with script.

Anyone know HOW flash would do this? I imagine it’s some sort of bitmap data/matrix or something.

A tutorial or even a point in the right direction of AS would be so helpful.

Please and thank you. :snug: