Hi!
First thing first. I don’t know who the creator of this sine wave animation is in the first place, but all credits to the author!
This script actually works fine if you want to create one set of waves/instance of DrawSine class. But as soon as you add another set of waves both waves starts to act strange.
I have attached the fla and the following classes and if you run the fla you will see one working wave. But if you uncomment line 11 in the fla you will see the strange behavior:
//var wave2 = new DrawSine( sin_mc2, 200, 100, 100 );
If you feel like helping me, what do I have to do in order to make two working waves on stage? Any help in the right direction is really appreciated!