| onEnterFrame = function() { |
| if(_root.stopFlag01 == "0" || _root.stopFlag02 == "0" || |
| _root.stopFlag03 == "0" || _root.stopFlag04 == "0" || _root.stopFlag05 == "0"){ |
| _root.cosPoint1 = Math.cos(_root.point1 * Math.PI / 180) * 3; |
| _root.sinPoint1 = Math.sin(_root.point1 * Math.PI / 180) * 3; |
| _root.cosPoint2 = Math.cos(_root.point2 * Math.PI / 180) * 3; |
| _root.sinPoint2 = Math.sin(_root.point2 * Math.PI / 180) * 3; |
| _root.cosPoint3 = Math.cos(_root.point3 * Math.PI / 180) * 3; |
| _root.sinPoint3 = Math.sin(_root.point3 * Math.PI / 180) * 3; |
| _root.cosPoint4 = Math.cos(_root.point4 * Math.PI / 180) * 3; |
| _root.sinPoint4 = Math.sin(_root.point4 * Math.PI / 180) * 3; |
| _root.cosPoint5 = Math.cos(_root.point5 * Math.PI / 180) * 3; |
| _root.sinPoint5 = Math.sin(_root.point5 * Math.PI / 180) * 3; |
| |
| if(_root.point_cos1 <= _root.point1MaxCos){ |
| _root.point_cos1 += _root.cosPoint1; |
| _root.point_sin1 -= _root.sinPoint1; |
| }else{ |
| _root.stopFlag01 = 1; |
| } |
| |
| if(_root.point_cos2 >= _root.point2MaxCos){ |
| _root.point_cos2 += _root.cosPoint2; |
| _root.point_sin2 -= _root.sinPoint2; |
| }else{ |
| _root.stopFlag02 = 1; |
| } |
| |
| if(_root.point_cos3 >= _root.point3MaxCos){ |
| _root.point_cos3 += _root.cosPoint3; |
| _root.point_sin3 -= _root.sinPoint3; |
| }else{ |
| _root.stopFlag03 = 1; |
| } |
| |
| if(_root.point_cos4 <= _root.point4MaxCos){ |
| _root.point_cos4 += _root.cosPoint4; |
| _root.point_sin4 -= _root.sinPoint4; |
| }else{ |
| _root.stopFlag04 = 1; |
| } |
| |
| if(_root.point_sin5 <= _root.point5MaxSin){ |
| _root.point_cos5 -= _root.cosPoint5; |
| _root.point_sin5 += _root.sinPoint5; |
| }else{ |
| _root.stopFlag05 = 1; |
| } |
| |
| this.beginFill (0xb3c5db, 100); |
| this.lineStyle (0, 0xffffff, 100); |
| this.moveTo (0, _root.point_sin1); |
| this.lineTo (_root.point_cos2, _root.point_sin2); |
| this.lineTo (_root.point_cos3, _root.point_sin3); |
| this.lineTo (_root.point_cos4, _root.point_sin4); |
| this.lineTo (_root.point_sin5, _root.point_cos5); |
| this.endFill (); |
| } |
| } |