home *** CD-ROM | disk | FTP | other *** search
- function createString()
- {
- var tC1X = c1._x;
- var tC1Y = c1._y;
- tC1X += (p2._x - tC1X) * 0.1;
- tC1X += (p1._x - tC1X) * 0.1;
- tC1Y += (p2._y - tC1Y) * 0.1;
- tC1Y += (p1._y - tC1Y) * 0.1;
- tC1Y += 15;
- if(tC1Y > ground._y)
- {
- tC1X = c1._x;
- tC1Y = ground._y;
- }
- c1._x = tC1X;
- c1._y = tC1Y;
- moveByP4 = (p3._x - p4._x) * 0.2;
- p4._x += moveByP4;
- p4._y = p3._y + startDist;
- with(string_holder)
- {
- clear();
- beginFill();
- lineStyle(0.5,16777215,20);
- moveTo(p1._x,p1._y);
- curveTo(c1._x,c1._y,p2._x,p2._y);
- lineTo(p3._x,p3._y);
- lineTo(p4._x,p4._y);
- endFill();
- }
- }
- this.onEnterFrame = function()
- {
- createString();
- };
- moveByP4 = 0;
- startDist = 20;
-