0 Replies Latest reply on Jul 10, 2007 7:14 AM by amamax01

    Coded animmation HELP PLEASE

      I am having a hard time figuring out why the lines that are crossing each other get jerky after you watch it for a little while, and why there becomes a big space once the green lines start. I think it has something to do with the lines not deleting after they get to the end, so it is just taking up a lot of virtual memory. Any help would be much appreciated. Here is the code I am using and the link is to the .swf so you can see what I am talking about. BEWARE, once you leave the .swf open too long it may freeze up your internet browser.

      i = 0;
      {_x:193, _y:119});
      function tweenBall() {
      attachMovie("Line_mc", "Line"+i+"_mc", this.getNextHighestDepth(), {_x:193, _y:119});
      //trace("in function")
      easeType = mx.transitions.easing.None.easeNone;
      var begin = this["Line"+i+"_mc"]._x;
      var end = 327;
      var begin2 = this["Line"+i+"_mc"]._y;
      var end2 = 270;
      var time = 1.5;
      var mc = this["Line"+i+"_mc"];
      ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
      ballTween2 = new mx.transitions.Tween(mc, "_y", easeType, begin2, end2, time, true);
      function removeclip() {
      for (j=0; j<i-1; j++) {
      if (this["Line"+j+"_mc"]._x == 327) {
      k = 0;
      {_x:193, _y:119});
      function tweenBall2() {
      attachMovie("Line2_mc", "Line2"+k+"_mc", this.getNextHighestDepth(), {_x:335, _y:277});
      // trace("in function");
      easeType = mx.transitions.easing.None.easeNone;
      var begin1 = this["Line2"+k+"_mc"]._x;
      var end1 = 200;
      var begin3 = this["Line2"+k+"_mc"]._y;
      var end3 = 132;
      var time1 = 1.5;
      var mc1 = this["Line2"+k+"_mc"];
      ballTween1 = new mx.transitions.Tween(mc1, "_x", easeType, begin1, end1, time1, true);
      ballTween3 = new mx.transitions.Tween(mc1, "_y", easeType, begin3, end3, time1, true);
      function removeclip1() {
      for (l=0; l<k-1; l++) {
      if (this["Line2"+l+"_mc"]._x == 200) {