9 Replies Latest reply on Jun 2, 2009 2:02 PM by C-Rock

    Issue with AS2 Circle Carousel

    anthonyv1121

      I recently purchased this carousel, which has been very difficult to customize, see link below

       

      http://www.flashcomponents.net/upload/samples/2949/index.html?full=true

       

      I would like to make the diameter of the circle smaller (less space between each photo). There is so much code in this file I don't know what lines needs to be tweaked. Please take a look at the link above and see the code below. Not sure what is doing what. Thanks

       


      if (_global.hasLoaded_XML == undefined)
      {
          _global.hasLoaded_XML = true;
          Object.prototype.handleXML = function (xmlNode, xmlPath, doneFunc)
          {
              xmlNode.ignoreWhite = true;
              xmlNode.onLoad = function (success)
              {
                  addTier = function (currentPath)
                  {
                      for (var _loc2 in currentPath.attributes)
                      {
                          currentPath[_loc2] = currentPath.attributes[_loc2];
                      } // end of for...in
                      for (var _loc2 in currentPath.childNodes)
                      {
                          if (currentPath.childNodes[_loc2].childNodes.length >= 0)
                          {
                              addTier(currentPath.childNodes[_loc2]);
                          } // end if
                          currentPath[currentPath.childNodes[_loc2].nodeName + _loc2] = currentPath.childNodes[_loc2];
                          currentPath[currentPath.childNodes[_loc2].nodeName] = currentPath.childNodes[_loc2];
                      } // end of for...in
                  };
                  addTier(xmlNode);
                  doneFunc();
              };
              xmlNode.load(xmlPath);
          };
          Object.prototype.set_nodeText = function (textPass)
          {
              return (textPass);
          };
          Object.prototype.get_nodeText = function ()
          {
              return (this.firstChild.nodeValue);
          };
          Object.prototype.addProperty("nodeText", Object.prototype.get_nodeText, Object.prototype.set_nodeText);
          ASSetPropFlags(Object.prototype, ["get_nodeText", "set_nodeText", "nodeText"], 1);
      } // end if
      if (_global.hasLoaded_TWEENING == undefined)
      {
          _global.hasLoaded_TWEENING = true;
          MovieClip.prototype.propTween = function (id, propArray, valueArray, duration, method, nextStep, offset, nextParams)
          {
              var hasTripped = false;
              if (this.loopHolder == undefined)
              {
                  this.createEmptyMovieClip("loopHolder", this.getTopDepth());
              } // end if
              if (method == undefined)
              {
                  var method = "linearTween";
              } // end if
              if (this.loopHolder["loopCounter_" + id] != undefined)
              {
                  this.loopHolder["loopCounter_" + id].removeMovieClip();
              } // end if
              var _loc3 = this.loopHolder.createEmptyMovieClip("loopCounter_" + id, this.loopHolder.getTopDepth());
              if (offset != undefined)
              {
                  _loc3.duration = Math.max(1*1);
                  if (offset < 0)
                  {
                      _loc3.rollBack = duration + offset;
                  }
                  else
                  {
                      _loc3.rollBack = 0;
                  } // end else if
              }
              else
              {
                  _loc3.duration = duration;
              } // end else if
              _loc3.count = 1;
              _loc3.onEnterFrame = function ()
              {
                  if (this.count <= this.duration)
                  {
                      if (this.count <= duration)
                      {
                          for (var _loc2 = 0; _loc2 < propArray.length; ++_loc2)
                          {
                              if (this[b + "_" + propArray[_loc2]] == undefined || this.count == 1)
                              {
                                  this[b + "_" + propArray[_loc2]] = this._parent._parent[propArray[_loc2]];
                              } // end if
                              this._parent._parent[propArray[_loc2]] = Penner[method](this.count, this[b + "_" + propArray[_loc2]], valueArray[_loc2], duration);
                              if (propArray[_loc2] == "_xscale" || propArray[_loc2] == "_yscale")
                              {
                                  if (this._parent._parent[propArray[_loc2]] == 0 && this._parent._parent._visible == true)
                                  {
                                      this._parent._parent._visible = false;
                                  } // end if
                                  if (this._parent._parent[propArray[_loc2]] != 0 && this._parent._parent._visible != true)
                                  {
                                      this._parent._parent._visible = true;
                                  } // end if
                              } // end if
                          } // end of for
                      } // end if
                      if (this.rollBack == this.count && nextStep != undefined)
                      {
                          nextStep(nextParams);
                          hasTripped = true;
                      } // end if
                      ++this.count;
                  }
                  else
                  {
                      this.removeMovieClip();
                      if (nextStep != undefined && hasTripped != true)
                      {
                          nextStep(nextParams);
                      } // end if
                  } // end else if
              };
          };
          MovieClip.prototype.killTweens = function ()
          {
              this.loopHolder.removeMovieClip();
          };
         MovieClip.prototype.tweenScale = function (xscale, yscale, duration, method, nextStep, offset, nextParams)
          {
              var _loc2 = "Scale";
              var _loc4 = ["_xscale", "_yscale"];
              var _loc3 = [xscale - this._xscale, yscale - this._yscale];
              this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
          };
         MovieClip.prototype.tweenPosition = function (xVar, yVar, duration, method, nextStep, offset, nextParams)
          {
             
              var _loc2 = "Position";
              var _loc4 = ["_x", "_y"];
              var _loc3 = [xVar - this._x, yVar - this._y];
              this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
          };
          MovieClip.prototype.tweenRotation = function (rotation, duration, method, nextStep, offset, nextParams)
          {
              var _loc2 = "Rotation";
              var _loc4 = ["_rotation"];
              var _loc3 = [rotation];
              this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
          };
          MovieClip.prototype.tweenAlpha = function (alpha, duration, method, nextStep, offset, nextParams)
          {
              var _loc2 = "Alpha";
              var _loc4 = ["_alpha"];
              var _loc3 = [alpha - this._alpha];
              this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
          };
          MovieClip.prototype.tweenSize = function (width, height, duration, method, nextStep, offset, nextParams)
          {
            var _loc2 = "Size";
            var _loc4 = ["_width", "_height"];
            var _loc3 = [width - this._width, height - this._height];
            this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
          };
          MovieClip.prototype.tweenTint = function (rtint, gtint, btint, duration, method, nextStep, offset, nextParams)
          {
              var _loc2 = "RGB";
              var _loc4 = ["_rtint", "_gtint", "_btint"];
              var _loc3 = [rtint - this._rtint, gtint - this._gtint, btint - this._btint];
              this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
          };
      } // end if
      if (_global.hasLoaded_TMATH == undefined)
      {
          _global.hasLoaded_TMATH = true;
          _global.ranNum = function (low, high)
          {
              return (Math.round(Math.random() * (high - low)) + low);
          };
      } // end if
      if (_global.hasLoaded_PENNER == undefined)
      {
          _global.hasLoaded_PENNER = true;
          _global.Penner = {};
          ASSetPropFlags(_global, "Penner", 1, true);
          Penner.linearTween = function (t, b, c, d)
          {
              return (c * t / d + b);
          };
          Penner.easeInQuad = function (t, b, c, d)
          {
              t = t / d;
              return (c * (t) * t + b);
          };
          Penner.easeOutQuad = function (t, b, c, d)
          {
              t = t / d;
              return (-c * (t) * (t - 2) + b);
          };
          Penner.easeInOutQuad = function (t, b, c, d)
          {
              t = t / (d / 2);
              if (t < 1)
              {
                  return (c / 2 * t * t + b);
              } // end if
              return (-c / 2 * (--t * (t - 2) - 1) + b);
          };
          Penner.easeInCubic = function (t, b, c, d)
          {
              t = t / d;
              return (c * (t) * t * t + b);
          };
          Penner.easeOutCubic = function (t, b, c, d)
          {
              t = t / d - 1;
              return (c * ((t) * t * t + 1) + b);
          };
          Penner.easeInOutCubic = function (t, b, c, d)
          {
              t = t / (d / 2);
              if (t < 1)
              {
                  return (c / 2 * t * t * t + b);
              } // end if
              t = t - 2;
              return (c / 2 * ((t) * t * t + 2) + b);
          };
          Penner.easeInQuart = function (t, b, c, d)
          {
              t = t / d;
              return (c * (t) * t * t * t + b);
          };
          Penner.easeOutQuart = function (t, b, c, d)
          {
              t = t / d - 1;
              return (-c * ((t) * t * t * t - 1) + b);
          };
          Penner.easeInOutQuart = function (t, b, c, d)
          {
              t = t / (d / 2);
              if (t < 1)
              {
                  return (c / 2 * t * t * t * t + b);
              } // end if
              t = t - 2;
              return (-c / 2 * ((t) * t * t * t - 2) + b);
          };
          Penner.easeInQuint = function (t, b, c, d)
          {
              t = t / d;
              return (c * (t) * t * t * t * t + b);
          };
          Penner.easeOutQuint = function (t, b, c, d)
          {
              t = t / d - 1;
              return (c * ((t) * t * t * t * t + 1) + b);
          };
          Penner.easeInOutQuint = function (t, b, c, d)
          {
              t = t / (d / 2);
              if (t < 1)
              {
                  return (c / 2 * t * t * t * t * t + b);
              } // end if
              t = t - 2;
              return (c / 2 * ((t) * t * t * t * t + 2) + b);
          };
          Penner.easeInSine = function (t, b, c, d)
          {
              return (-c * Math.cos(t / d * 1.570796E+000) + c + b);
          };
          Penner.easeOutSine = function (t, b, c, d)
          {
              return (c * Math.sin(t / d * 1.570796E+000) + b);
          };
          Penner.easeInOutSine = function (t, b, c, d)
          {
              return (-c / 2 * (Math.cos(3.141593E+000 * t / d) - 1) + b);
          };
          Penner.easeInExpo = function (t, b, c, d)
          {
              return (t == 0 ? (b) : (c * Math.pow(2, 10 * (t / d - 1)) + b));
          };
          Penner.easeOutExpo = function (t, b, c, d)
          {
              return (t == d ? (b + c) : (c * (-Math.pow(2, -10 * t / d) + 1) + b));
          };
          Penner.easeInOutExpo = function (t, b, c, d)
          {
              if (t == 0)
              {
                  return (b);
              } // end if
              if (t == d)
              {
                  return (b + c);
              } // end if
              t = t / (d / 2);
              if (t < 1)
              {
                  return (c / 2 * Math.pow(2, 10 * (t - 1)) + b);
              } // end if
              return (c / 2 * (-Math.pow(2, -10 * --t) + 2) + b);
          };
          Penner.easeInCirc = function (t, b, c, d)
          {
              t = t / d;
              return (-c * (Math.sqrt(1 - t * t) - 1) + b);
          };
          Penner.easeOutCirc = function (t, b, c, d)
          {
              t = t / d - 1;
              return (c * Math.sqrt(1 - (t) * t) + b);
          };
          Penner.easeInOutCirc = function (t, b, c, d)
          {
              t = t / (d / 2);
              if (t < 1)
              {
                  return (-c / 2 * (Math.sqrt(1 - t * t) - 1) + b);
              } // end if
              t = t - 2;
              return (c / 2 * (Math.sqrt(1 - (t) * t) + 1) + b);
          };
          Penner.easeInElastic = function (t, b, c, d, a, p)
          {
              if (t == 0)
              {
                  return (b);
              } // end if
              t = t / d;
              if (t == 1)
              {
                  return (b + c);
              } // end if
              if (!p)
              {
                  p = d * 3.000000E-001;
              } // end if
              if (!a)
              {
                  a = 0;
              } // end if
              if (a < Math.abs(c))
              {
                  a = c;
                  var _loc7 = p / 4;
              }
              else
              {
                  _loc7 = p / 6.283185E+000 * Math.asin(c / a);
              } // end else if
              t = t - 1;
              return (-a * Math.pow(2, 10 * (t)) * Math.sin((t * d - _loc7) * 6.283185E+000 / p) + b);
          };
          Penner.easeOutElastic = function (t, b, c, d, a, p)
          {
              if (t == 0)
              {
                  return (b);
              } // end if
              t = t / d;
              if (t == 1)
              {
                  return (b + c);
              } // end if
              if (!p)
              {
                  p = d * 3.000000E-001;
              } // end if
              if (!a)
              {
                  a = 0;
              } // end if
              if (a < Math.abs(c))
              {
                  a = c;
                  var _loc7 = p / 4;
              }
              else
              {
                  _loc7 = p / 6.283185E+000 * Math.asin(c / a);
              } // end else if
              return (a * Math.pow(2, -10 * t) * Math.sin((t * d - _loc7) * 6.283185E+000 / p) + c + b);
          };
          Penner.easeInOutElastic = function (t, b, c, d, a, p)
          {
              if (t == 0)
              {
                  return (b);
              } // end if
              t = t / (d / 2);
              if (t == 2)
              {
                  return (b + c);
              } // end if
              if (!p)
              {
                  p = d * 4.500000E-001;
              } // end if
              if (!a)
              {
                  a = 0;
              } // end if
              if (a < Math.abs(c))
              {
                  a = c;
                  var _loc7 = p / 4;
              }
              else
              {
                  _loc7 = p / 6.283185E+000 * Math.asin(c / a);
              } // end else if
              if (t < 1)
              {
                  t = t - 1;
                  return (-5.000000E-001 * (a * Math.pow(2, 10 * (t)) * Math.sin((t * d - _loc7) * 6.283185E+000 / p)) + b);
              } // end if
              t = t - 1;
              return (a * Math.pow(2, -10 * (t)) * Math.sin((t * d - _loc7) * 6.283185E+000 / p) * 5.000000E-001 + c + b);
          };
          Penner.easeInBack = function (t, b, c, d, s)
          {
              if (s == undefined)
              {
                  s = 1.701580E+000;
              } // end if
              t = t / d;
              return (c * (t) * t * ((s + 1) * t - s) + b);
          };
          Penner.easeOutBack = function (t, b, c, d, s)
          {
              if (s == undefined)
              {
                  s = 1.701580E+000;
              } // end if
              t = t / d - 1;
              return (c * ((t) * t * ((s + 1) * t + s) + 1) + b);
          };
          Penner.easeInOutBack = function (t, b, c, d, s)
          {
              if (s == undefined)
              {
                  s = 1.701580E+000;
              } // end if
              t = t / (d / 2);
              if (t < 1)
              {
                  s = s * 1.525000E+000;
                  return (c / 2 * (t * t * ((s + 1) * t - s)) + b);
              } // end if
              t = t - 2;
              s = s * 1.525000E+000;
              return (c / 2 * ((t) * t * ((s + 1) * t + s) + 2) + b);
          };
          Penner.easeInBounce = function (t, b, c, d)
          {
              return (c - Penner.easeOutBounce(d - t, 0, c, d) + b);
          };
          Penner.easeOutBounce = function (t, b, c, d)
          {
              t = t / d;
              if (t < 3.636364E-001)
              {
                  return (c * (7.562500E+000 * t * t) + b);
              }
              else if (t < 7.272727E-001)
              {
                  t = t - 5.454545E-001;
                  return (c * (7.562500E+000 * (t) * t + 7.500000E-001) + b);
              }
              else if (t < 9.090909E-001)
              {
                  t = t - 8.181818E-001;
                  return (c * (7.562500E+000 * (t) * t + 9.375000E-001) + b);
              }
              else
              {
                  t = t - 9.545455E-001;
                  return (c * (7.562500E+000 * (t) * t + 9.843750E-001) + b);
              } // end else if
          };
          Penner.easeInOutBounce = function (t, b, c, d)
          {
              if (t < d / 2)
              {
                  return (Penner.easeInBounce(t * 2, 0, c, d) * 5.000000E-001 + b);
              } // end if
              return (Penner.easeOutBounce(t * 2 - d, 0, c, d) * 5.000000E-001 + c * 5.000000E-001 + b);
          };
      } // end if
      if (_global.hasLoaded_COLOR == undefined)
      {
          _global.hasLoaded_COLOR = true;
          MovieClip.prototype.apply_rtint = function (value)
          {
              var _loc2 = new Color(this);
              var _loc3 = {rb: value};
              _loc2.setTransform(_loc3);
          };
          MovieClip.prototype.fetch_rtint = function ()
          {
              var _loc2 = new Color(this);
              return (_loc2.getTransform().rb);
          };
          MovieClip.prototype.addProperty("_rtint", MovieClip.prototype.fetch_rtint, MovieClip.prototype.apply_rtint);
          ASSetPropFlags(MovieClip.prototype, ["apply_rtint", "fetch_rtint", "_rtint"], 1);
          MovieClip.prototype.apply_gtint = function (value)
          {
              var _loc2 = new Color(this);
              var _loc3 = {gb: value};
              _loc2.setTransform(_loc3);
          };
          MovieClip.prototype.fetch_gtint = function ()
          {
              var _loc2 = new Color(this);
              return (_loc2.getTransform().gb);
          };
          MovieClip.prototype.addProperty("_gtint", MovieClip.prototype.fetch_gtint, MovieClip.prototype.apply_gtint);
          ASSetPropFlags(MovieClip.prototype, ["apply_gtint", "fetch_gtint", "_gtint"], 1);
          MovieClip.prototype.apply_btint = function (value)
          {
              var _loc2 = new Color(this);
              var _loc3 = {bb: value};
              _loc2.setTransform(_loc3);
          };
          MovieClip.prototype.fetch_btint = function ()
          {
              var _loc2 = new Color(this);
              return (_loc2.getTransform().bb);
          };
          MovieClip.prototype.addProperty("_btint", MovieClip.prototype.fetch_btint, MovieClip.prototype.apply_btint);
          ASSetPropFlags(MovieClip.prototype, ["apply_btint", "fetch_btint", "_btint"], 1);
      } // end if
      if (_global.hasLoaded_DEPTHS == undefined)
      {
          _global.hasLoaded_DEPTHS = true;
          MovieClip.prototype.getTopDepth = function ()
          {
              var _loc3 = 0;
              for (var _loc4 in this)
              {
                  var _loc2 = this[_loc4];
                  if (_loc2.getDepth() != undefined && _loc2.getDepth() > _loc3)
                  {
                      _loc3 = _loc2.getDepth();
                  } // end if
              } // end of for...in
              return (_loc3 + 1);
          };
      } // end if
      var tick = 0;
      var transMethod = "easeInOutExpo";
      var openClip = null;
      _global.selectProject = function (whichClip)
      {
          if (!whichClip.isOpen)
          {
              lockMovie();
              selectedProject = whichClip;
              panelOpen = true;
              closeProject(openClip);
              openClip = whichClip;
              whichClip.isOpen = true;
              whichClip.fetchContent();
              dropMe(whichClip);
          } // end if
      };
      _global.deselectProject = function (whichClip)
      {
          delete selectedProject;
          unlockMovie();
          panelOpen = false;
          closeProject(whichClip);
          whichClip.setRollOvers();
      };
      _global.closeProject = function (whichClip)
      {
          whichClip.dropContent();
          if (whichClip.isOpen)
          {
              whichClip.isOpen = false;
              dropMe();
          } // end if
      };
      dropMe = function (whichClip)
      {
          if (!whichClip)
          {
              deselectProject(selectedProject);
          } // end if
          var _loc7 = [];
          var _loc5 = 0;
          for (var _loc2 = 0; _loc2 < projectArray.length; ++_loc2)
          {
              var _loc4 = projectArray[_loc2].dataObject.category;
              if (projectArray[_loc2] != whichClip)
              {
                  if (_global["filter_" + _loc4] == true)
                  {
                      _loc7.push(projectArray[_loc2]);
                      projectArray[_loc2].isOpen = false;
                      projectArray[_loc2].isOut = false;
                      continue;
                  } // end if
                  if (!projectArray[_loc2].isOut)
                  {
                      _loc5 = _loc5 + 2;
                      var _loc3 = 10 + _loc5;
                      projectArray[_loc2].isOut = true;
                      projectArray[_loc2].tweenScale(0, 0, _loc3, "easeInOutExpo");
                      projectArray[_loc2].tweenPosition(0, 0, _loc3, "easeInOutExpo");
                  } // end if
              } // end if
          } // end of for
          orderArray = _loc7;
          false;
          whichClip.tweenPosition(0, 0, 2, transMethod);
          whichClip.tweenScale(100, 100, 20, transMethod);
          whichClip.tweenAlpha(100, 20, transMethod);
          root["alignObjects_" + currentMode]();
      };
      _global.hideAll = function ()
      {
          for (var _loc1 = 0; _loc1 < projectArray.length; ++_loc1)
          {
              projectArray[_loc1].tweenTint(-150, -150, -150, 10);
          } // end of for
          displayPlane.tweenTint(-30, -30, -30, 10);
      };
      _global.showAll = function ()
      {
          for (var _loc1 = 0; _loc1 < projectArray.length; ++_loc1)
          {
              1;
              projectArray[_loc1].tweenTint(0, 0, 0, 10);
          } // end of for
          displayPlane.tweenTint(0, 0, 0, 10);
      };
      alignObjects_circle = function ()
      {
          delete displayPlane.onEnterFrame;
          setPos = function (jump)
          {
              for (var _loc2 = 0; _loc2 < orderArray.length; ++_loc2)
              {
                  var _loc12 = displayPlane._xmouse;
                  var _loc14 = displayPlane._ymouse;
                  var _loc10 = Math.atan2(_loc12, _loc14) * 5.729578E+001;
                  var _loc15 = _loc10;
                  var _loc1 = orderArray[_loc2];
                  var _loc13 = 360 / orderArray.length * _loc2 + (_loc15 - 90);
                  var _loc8 = _loc13 * 3.141593E+000 / 180;
                  var _loc9 = 250;
                  var _loc5 = Math.round(_loc9 * Math.cos(_loc8));
                  var _loc4 = Math.round(_loc9 * Math.sin(_loc8));
                  if (Math.sqrt(Math.pow(displayPlane._xmouse, 2) + Math.pow(displayPlane._xmouse, 2)) < 380)
                  {
                      var _loc11 = 120 - Math.max(0, Math.min(100, Math.sqrt(Math.pow(displayPlane._xmouse - _loc1._x, 2) + Math.pow(displayPlane._ymouse - _loc1._y, 2)) / 4));
                  }
                  else
                  {
                      _loc11 = 100;
                  } // end else if
                  //var _loc6 = _loc1._xscale - (_loc1._xscale - _loc11) * 1.000000E-001;
                  //var _loc7 = 100;
                  if (jump)
                  {
                      _loc1._x = _loc1._x - (_loc1._x - _loc5) * 1.000000E-001;
                      _loc1._y = _loc1._y - (_loc1._y - _loc4) * 1.000000E-001;
                      _loc1._xscale = _loc1._yscale = _loc6;
                      _loc1._alpha = _loc7;
                      continue;
                  } // end if
                  if (panelOpen)
                  {
                      _loc6 = 0;
                  }
                  else
                  {
                      _loc6 = 100;
                  } // end else if
                  var _loc3 = 5 + _loc2;
                  if (_loc2 == orderArray.length - 1)
                  {
                      _loc1.tweenPosition(_loc5, _loc4, _loc3, transMethod, setMotion);
                  }
                  else
                  {
                      _loc1.tweenPosition(_loc5, _loc4, _loc3, transMethod);
                  } // end else if
                 _loc1.tweenScale(_loc6, _loc6, _loc3, transMethod);
                  _loc1.tweenAlpha(_loc7, _loc3, transMethod);
              } // end of for
          };
          setMotion = function ()
          {
              if (panelOpen != true)
              {
                  displayPlane.onEnterFrame = function ()
                  {
                      setPos(true);
                  };
              } // end if
          };
          setPos();
      };
      alignObjects_ring = function ()
      {
          delete displayPlane.onEnterFrame;
          setPos = function (jump)
          {
              for (var _loc2 = 0; _loc2 < orderArray.length; ++_loc2)
              {
                  var _loc1 = orderArray[_loc2];
                  var _loc3 = 360 / orderArray.length * _loc2 + (tick - 90);
                  if (_loc3 > 360)
                  {
                      _loc3 = _loc3 - 360;
                  } // end if
                  if (_loc3 < 0)
                  {
                      _loc3 = _loc3 + 360;
                  } // end if
                  var _loc9 = _loc3 * 3.141593E+000 / 180;
                  var _loc10 = 300;
                  var _loc6 = Math.round(_loc10 * Math.cos(_loc9));
                  var _loc5 = Math.round(_loc10 * Math.sin(_loc9)) / 3 + _loc6 * ((-450 + _xmouse) / 800);
                  var _loc7 = Math.min(100, Math.max(10, _loc5));
                  var _loc8 = 100;
                  if (jump)
                  {
                      _loc1._x = _loc1._x - (_loc1._x - _loc6) * 2.000000E-001;
                      _loc1._y = _loc1._y - (_loc1._y - _loc5) * 4.000000E-002;
                      _loc1._xscale = _loc1._xscale - (_loc1._xscale - _loc7) * 2.000000E-001;
                      _loc1._yscale = _loc1._yscale - (_loc1._yscale - _loc7) * 2.000000E-001;
                      _loc1._alpha = _loc1._alpha - (_loc1._alpha - _loc8) * 2.000000E-001;
                      continue;
                  } // end if
                  if (panelOpen)
                  {
                      _loc7 = 0;
                  } // end if
                  var _loc4 = 5 + _loc2;
                  if (_loc2 == orderArray.length - 1)
                  {
                      _loc1.tweenPosition(_loc6, _loc5, _loc4, transMethod, setMotion);
                  }
                  else
                  {
                      _loc1.tweenPosition(_loc6, _loc5, _loc4, transMethod);
                  } // end else if
                  _loc1.tweenScale(_loc7, _loc7, _loc4, transMethod);
                  _loc1.tweenAlpha(_loc8, _loc4, transMethod);
              } // end of for
          };
          setMotion = function ()
          {
              if (panelOpen != true)
              {
                  displayPlane.onEnterFrame = function ()
                  {
                      setPos(true);
                      if (!navOpen)
                      {
                          tick = tick + this._xmouse / 100;
                      } // end if
                  };
              } // end if
          };
          setPos();
      };
      alignObjects_random = function ()
      {
          delete displayPlane.onEnterFrame;
          setPos = function (jump)
          {
              for (var _loc2 = 0; _loc2 < orderArray.length; ++_loc2)
              {
                  var _loc1 = orderArray[_loc2];
                  var _loc5 = ranNum(-450, 450);
                  var _loc4 = ranNum(-300, 300);
                  var _loc6 = Math.min(100, Math.max(20, Math.abs(_loc4 / 2)));
                  var _loc7 = 100;
                  if (jump)
                  {
                      _loc1._x = _loc5;
                      _loc1._y = _loc4;
                      _loc1._xscale = _loc1._yscale = _loc6;
                      _loc1._alpha = _loc7;
                      continue;
                  } // end if
                  var _loc3 = 5 + _loc2;
                  if (panelOpen)
                  {
                      _loc6 = 0;
                  } // end if
                  if (_loc2 == orderArray.length - 1)
                  {
                      _loc1.tweenPosition(_loc5, _loc4, _loc3, transMethod, setMotion);
                  }
                  else
                  {
                      _loc1.tweenPosition(_loc5, _loc4, _loc3, transMethod);
                  } // end else if
                  //_loc1.tweenScale(_loc6, _loc6, _loc3, transMethod);
                  _loc1.tweenAlpha(_loc7, _loc3, transMethod);
              } // end of for
          };
          setMotion = function ()
          {
          };
          setPos();
      };
      alignObjects_vertical = function ()
      {
          delete displayPlane.onEnterFrame;
          setPos = function (jump)
          {
              for (var _loc2 = 0; _loc2 < orderArray.length; ++_loc2)
              {
                  var _loc1 = orderArray[_loc2];
                  var _loc8 = orderArray[_loc2 - 1];
                  if (_loc2 == 0)
                  {
                      var _loc12 = orderArray.length * 50 - Stage.height + 100;
                      var _loc7 = _loc12 / Stage.height;
                      var _loc9 = _loc1._y - (_loc1._y - (100 - Stage.height / 2 + -_ymouse * _loc7)) * 1.000000E-001;
                  }
                  else
                  {
                      _loc9 = _loc8._y + _loc8._height / 2 + _loc1._height / 2 + 10;
                  } // end else if
                  var _loc4 = 0;
                  var _loc11 = Math.sqrt(Math.pow(displayPlane._xmouse - _loc1._x, 2) + Math.pow(displayPlane._ymouse - _loc1._y, 2)) / 4;
                  if (Math.abs(displayPlane._xmouse) < 80)
                  {
                      var _loc10 = 150 - Math.max(0, Math.min(100, _loc11));
                      if (_loc2 == 0)
                      {
                          _loc9 = _loc1._y - (_loc1._y - (100 - Stage.height / 2 + -_ymouse * _loc7)) * 1.000000E-001;
                      } // end if
                  }
                  else
                  {
                      _loc10 = _loc1._yscale - (_loc1._yscale - 100) * 2.000000E-001;
                      _loc9 = _loc1._y - (_loc1._y - (-orderArray.length * 75 / 2 + _loc2 * 75)) * 2.000000E-001;
                  } // end else if
                  var _loc5 = _loc1._xscale - (_loc1._xscale - _loc10) * 3.000000E-001;
                  var _loc6 = 100;
                  if (jump)
                  {
                      _loc1._x = _loc4;
                      _loc1._y = _loc1._y - (_loc1._y - _loc9) * 9.000000E-001;
                      _loc1._xscale = _loc1._yscale = _loc5;
                      _loc1._alpha = _loc6;
                      continue;
                  } // end if
                  if (panelOpen)
                  {
                      _loc5 = 0;
                  }
                  else
                  {
                      _loc5 = 100;
                  } // end else if
                  _loc9 = -orderArray.length * 75 / 2 + _loc2 * 75;
                  var _loc3 = 5 + _loc2;
                  if (_loc2 == orderArray.length - 1)
                  {
                      _loc1.tweenPosition(_loc4, _loc9, _loc3, transMethod, setMotion);
                  }
                  else
                  {
                      _loc1.tweenPosition(_loc4, _loc9, _loc3, transMethod);
                  } // end else if
                  //_loc1.tweenScale(_loc5, _loc5, _loc3, transMethod);
                  _loc1.tweenAlpha(_loc6, _loc3, transMethod);
              } // end of for
          };
          setMotion = function ()
          {
              if (panelOpen != true)
              {
                  displayPlane.onEnterFrame = function ()
                  {
                      setPos(true);
                  };
              } // end if
          };
          setPos();
      };
      alignObjects_horizontal = function ()
      {
          delete displayPlane.onEnterFrame;
          var range = 0;
          setPos = function (jump)
          {
              for (var _loc2 = 0; _loc2 < orderArray.length; ++_loc2)
              {
                  var _loc1 = orderArray[_loc2];
                  var _loc8 = orderArray[_loc2 - 1];
                  if (_loc2 == 0)
                  {
                      range = range - (range - (displayPlane._width +100 - Stage.width)) * 1.000000E-001;
                      var _loc7 = range / Stage.width;
                      var _loc9 = _loc1._x - (_loc1._x - (100 - Stage.width / 2 + -_xmouse * _loc7)) * 1.000000E-001;
                  }
                  else
                  {
                      _loc9 = _loc8._x + _loc8._width / 2 + _loc1._width / 2 + 10;
                  } // end else if
                  var _loc4 = 0;
                  var _loc11 = Math.sqrt(Math.pow(displayPlane._xmouse - _loc1._x, 2) + Math.pow(displayPlane._ymouse - _loc1._y, 2)) / 4;
                  if (Math.abs(displayPlane._ymouse) < 80 && !navOpen)
                  {
                      var _loc10 = 150 - Math.max(0, Math.min(100, _loc11));
                      if (_loc2 == 0)
                      {
                          _loc9 = _loc1._x - (_loc1._x - (100 - Stage.width / 2 + -_xmouse * _loc7)) * 1.000000E-001;
                      } // end if
                  }
                  else
                  {
                      _loc10 = _loc1._xscale - (_loc1._xscale - 100) * 2.000000E-001;
                      _loc9 = _loc1._x - (_loc1._x - (-orderArray.length * 120 / 2 + _loc2 * 120)) * 2.000000E-001;
                  } // end else if
                  var _loc5 = _loc1._xscale - (_loc1._xscale - _loc10) * 3.000000E-001;
                  var _loc6 = 100;
                  if (jump)
                  {
                      _loc1._y = _loc4;
                      _loc1._x = _loc1._x - (_loc1._x - _loc9) * 9.000000E-001;
                      _loc1._xscale = _loc1._yscale = _loc5;
                      _loc1._alpha = _loc6;
                      continue;
                  } // end if
                  if (panelOpen)
                  {
                      _loc5 = 0;
                  }
                  else
                  {
                      _loc5 = 100;
                  } // end else if
                  _loc9 = -orderArray.length * 120 / 2 + _loc2 * 120;
                  var _loc3 = 5 + _loc2;
                  if (_loc2 == orderArray.length - 1)
                  {
                      _loc1.tweenPosition(_loc9, _loc4, _loc3, transMethod, setMotion);
                  }
                  else
                  {
                      _loc1.tweenPosition(_loc9, _loc4, _loc3, transMethod);
                  } // end else if
                 // _loc1.tweenScale(_loc5, _loc5, _loc3, transMethod);
                  _loc1.tweenAlpha(_loc6, _loc3, transMethod);
              } // end of for
          };
          setMotion = function ()
          {
              if (panelOpen != true)
              {
                  displayPlane.onEnterFrame = function ()
                  {
                      setPos(true);
                  };
              } // end if
          };
          setPos();
      };
      alignObjects_sine = function ()
      {
          delete displayPlane.onEnterFrame;
          setPos = function (jump)
          {
              for (var _loc2 = 0; _loc2 < orderArray.length; ++_loc2)
              {
                  var _loc1 = orderArray[_loc2];
                  var _loc3 = 360 / orderArray.length * _loc2 + (tick - 90);
                  if (_loc3 > 360)
                  {
                      _loc3 = _loc3 - 360;
                  } // end if
                  if (_loc3 < 0)
                  {
                      _loc3 = _loc3 + 360;
                  } // end if
                  var _loc10 = _loc3 * 3.141593E+000 / 180;
                  var _loc11 = 300;
                  var _loc9 = Stage.height / 2;
                  var _loc6 = Math.round(_loc11 * Math.cos(_loc10)) / 2;
                  var _loc5 = Math.round(_loc2 * _loc9 - orderArray.length / 2 * _loc9);
                  var _loc12 = Math.sqrt(Math.pow(displayPlane._xmouse - _loc1._x, 2) + Math.pow(displayPlane._ymouse - _loc1._y, 2)) / 3;
                  var _loc7 = 100 - Math.max(0, Math.min(80, _loc12 / 2));
                  var _loc8 = 100;
                  if (jump)
                  {
                      _loc1._x = _loc1._x - (_loc1._x - _loc6) * 2.000000E-001;
                      _loc1._y = _loc1._y - (_loc1._y - _loc5) * 4.000000E-002;
                      //_loc1._xscale = _loc1._xscale - (_loc1._xscale - _loc7) * 2.000000E-001;
                      //_loc1._yscale = _loc1._yscale - (_loc1._yscale - _loc7) * 2.000000E-001;
                      _loc1._alpha = _loc1._alpha - (_loc1._alpha - _loc8) * 2.000000E-001;
                      continue;
                  } // end if
                  if (panelOpen)
                  {
                      _loc7 = 0;
                  }
                  else
                  {
                      _loc7 = 20;
                  } // end else if
                  var _loc4 = 5 + _loc2;
                  if (_loc2 == orderArray.length - 1)
                  {
                      _loc1.tweenPosition(_loc6, _loc5, _loc4, transMethod, setMotion);
                  }
                  else
                  {
                      _loc1.tweenPosition(_loc6, _loc5, _loc4, transMethod);
                  } // end else if
                  //_loc1.tweenScale(_loc7, _loc7, _loc4, transMethod);
                  _loc1.tweenAlpha(_loc8, _loc4, transMethod);
              } // end of for
          };
          setMotion = function ()
          {
              if (panelOpen != true)
              {
                  displayPlane.onEnterFrame = function ()
                  {
                      setPos(true);
                      tick = -_ymouse / 2;
                  };
              } // end if
          };
          setPos();
      };
      alignObjects_grid = function ()
      {
          delete displayPlane.onEnterFrame;
          setPos = function (jump)
          {
              var _loc7 = 0;
              var _loc16 = 0;
              var _loc4 = Math.floor(Math.sqrt(orderArray.length - 1));
              for (var _loc2 = 0; _loc2 < orderArray.length; ++_loc2)
              {
                  var _loc1 = orderArray[_loc2];
                  var _loc6 = -_loc4 * 110 / 2 + _loc7 * 110;
                  var _loc5 = -Math.ceil(orderArray.length / (_loc4 + 1)) * 90 / 2 + _loc16 * 90;
                  var _loc13 = Math.sqrt(Math.pow(displayPlane._xmouse - _loc1._x, 2) + Math.pow(displayPlane._ymouse - _loc1._y, 2)) / 4;
                  var _loc9 = 100;
                  if (jump)
                  {
                      var _loc10 = (_loc4 + 1) * 150 / 2;
                      var _loc11 = _loc4 * 130 / 2;
                      if (displayPlane._xmouse > -_loc10 && displayPlane._xmouse < _loc10 && displayPlane._ymouse > -_loc11 && displayPlane._ymouse < _loc11 && !navOpen)
                      {
                          var _loc15 = -_loc1._xmouse / _loc1._xscale * 10;
                          var _loc14 = -_loc1._ymouse / _loc1._yscale * 10;
                          var _loc12 = 150 - Math.max(0, Math.min(105, _loc13));
                      }
                      else
                      {
                          _loc15 = 0;
                          _loc14 = 0;
                          _loc12 = 100;
                      } // end else if
                      _loc1._x = _loc1._x - (_loc1._x - (_loc6 + _loc15)) * 3.000000E-001;
                      _loc1._y = _loc1._y - (_loc1._y - (_loc5 + _loc14)) * 3.000000E-001;
                      _loc1._xscale = _loc1._yscale = _loc1._xscale - (_loc1._xscale - _loc12) * 3.000000E-001;
                      _loc1._alpha = _loc9;
                  }
                  else
                  {
                      if (panelOpen)
                      {
                          var _loc8 = 0;
                      }
                      else
                      {
                          _loc8 = 100;
                      } // end else if
                      var _loc3 = 5 + _loc2;
                      if (_loc2 == orderArray.length - 1)
                      {
                          _loc1.tweenPosition(_loc6, _loc5, _loc3, transMethod, setMotion);
                      }
                      else
                      {
                          _loc1.tweenPosition(_loc6, _loc5, _loc3, transMethod);
                      } // end else if
                      //_loc1.tweenScale(_loc8, _loc8, _loc3, transMethod);
                      _loc1.tweenAlpha(_loc9, _loc3, transMethod);
                  } // end else if
                  if (_loc7 < _loc4)
                  {
                      ++_loc7;
                      continue;
                  } // end if
                  _loc7 = 0;
                  ++_loc16;
              } // end of for
          };
          setMotion = function ()
          {
              if (panelOpen != true)
              {
                  displayPlane.onEnterFrame = function ()
                  {
                      setPos(true);
                  };
              } // end if
          };
          setPos();
      };
      _global.root = this;
      if (_root.swfRoot)
      {
          _global.swfRoot = _root.swfRoot;
      }
      else
      {
          _global.swfRoot = "";
      } // end else if
      setProperty("", _quality, "BEST");
      var stageListener = new Object();
      stageListener.onResize = function ()
      {
          layoutScreen();
      };
      Stage.addListener(stageListener);
      layoutScreen = function ()
      {
          navBar._x = Math.round((Stage.width - 900) / 2);
          navBar._y = Math.round((Stage.height + 600) / 2);
          displayPlane.BG._width = displayPlane.slug._width = Stage.width;
          displayPlane.BG._height = displayPlane.slug._height = Stage.height;
          navBar.mainNav.grabber._x = Stage.width/2;
          navBar.mainNav.BG._height = 30;
          navBar.mainNav.BG._width = Stage.width/2;
      };
      beginMovie = function ()
      {
          populatePanel();
          createObjects();
          layoutScreen();
          displayPlane.tweenAlpha(100, 10);
      };
      populatePanel = function ()
      {
          createInterfaces();
          createBackgrounds();
          createFilters();
      };
      createInterfaces = function ()
      {
          _global.interfaceArray = [];
          var _loc5 = interfaceNode.data0;
          var _loc6 = navBar.mainNav.attachMovie("interfacePanel", "interfacePanel_1", 0);
          navBar.mainNav.BG._x
          _loc6._y = 1;
          _loc6._x = 1;
          for (var _loc4 = 0; _loc4 < _loc5.childNodes.length; ++_loc4)
          {
              var thisObject = _loc5["interface" + _loc4];
              var _loc3 = _loc6.attachMovie("navClip", "navClip" + _loc4, _loc4);
              _loc3.thisObject = thisObject;
              interfaceArray.push(thisObject);
              _loc3._x = _loc4 * 150+ 1;
              _loc3.textClip.displayText.text = thisObject.title.toUpperCase();
              _loc3.textClip.displayText.autoSize = true;
              _loc3.onRollOver = function ()
              {
                  this.gotoAndPlay("in");
              };
              _loc3.onRollOut = function ()
              {
                  this.gotoAndPlay("out");
              };
              _loc3.onPress = function ()
              {
                  _global.currentMode = this.thisObject.id;
                  dropMe();
                  root["alignObjects_" + this.thisObject.id]();
                  setInterfaceRollovers(currentMode);
              };
          } // end of for
          _global.currentMode = interfaceArray[ranNum(0, interfaceArray.length - 1)].id;
          setInterfaceRollovers(currentMode);
      };
      setInterfaceRollovers = function (id)
      {
          var _loc4 = interfaceNode.data0;
          var _loc3 = navBar.mainNav.interfacePanel_1;
          for (var _loc1 = 0; _loc1 < _loc4.childNodes.length; ++_loc1)
          {
              var _loc2 = _loc3["navClip" + _loc1];
              if (id == _loc2.thisObject.id)
              {
                  _loc2.toggleClip.gotoAndStop(1);
                  continue;
              } // end if
              _loc2.toggleClip.gotoAndStop(2);
          } // end of for
      };
      createBackgrounds = function ()
      {
          _global.backgroundArray = [];
          var _loc5 = backgroundNode.data0;
          var _loc6 = navBar.mainNav.attachMovie("interfacePanel", "interfacePanel_2", 1);
          _loc6._y = navBar.mainNav.interfacePanel_1._height + 50;
          _loc6._x = 1;
          for (var _loc4 = 0; _loc4 < _loc5.childNodes.length; ++_loc4)
          {
              var thisObject = _loc5["interface" + _loc4];
              var _loc3 = _loc6.attachMovie("navClip", "navClip" + _loc4, _loc4);
              _loc3.thisObject = thisObject;
              backgroundArray.push(thisObject);
              _loc3._y = _loc4 * 23 + 34;
              _loc3.textClip.displayText.text = thisObject.title.toUpperCase();
              _loc3.textClip.displayText.autoSize = true;
              _loc3.onRollOver = function ()
              {
                  this.gotoAndPlay("in");
              };
              _loc3.onRollOut = function ()
              {
                  this.gotoAndPlay("out");
              };
              _loc3.onPress = function ()
              {
                  changeBG(this.thisObject.path);
              };
          } // end of for
          changeBG(backgroundArray[ranNum(0, backgroundArray.length - 1)].path);
      };
      setBGRollovers = function (path)
      {
          var _loc4 = backgroundNode.data0;
          var _loc3 = navBar.mainNav.interfacePanel_2;
          for (var _loc1 = 0; _loc1 < _loc4.childNodes.length; ++_loc1)
          {
              var _loc2 = _loc3["navClip" + _loc1];
              if (path == _loc2.thisObject.path)
              {
                  _loc2.toggleClip.gotoAndStop(1);
                  continue;
              } // end if
              _loc2.toggleClip.gotoAndStop(2);
          } // end of for
      };
      changeBG = function (path)
      {
          setBGRollovers(path);
          var imageHolder = displayPlane.BG.createEmptyMovieClip("imageHolder", 0);
          if (path)
          {
              imageHolder._alpha = 0;
              imageHolder.loadMovie(swfRoot + path);
              displayPlane.BG.onEnterFrame = function ()
              {
                  if (imageHolder.getBytesLoaded() == imageHolder.getBytesTotal() && imageHolder.getBytesTotal() > 10)
                  {
                      imageHolder._x = -imageHolder._width / 2;
                      imageHolder._y = -imageHolder._height / 2;
                      imageHolder.tweenAlpha(100, 10);
                      delete this.onEnterFrame;
                  } // end if
              };
          } // end if
      };
      createFilters = function ()
      {
          var _loc6 = projectsNode.data0;
          for (var _loc4 = 0; _loc4 < _loc6.projects.childNodes.length; ++_loc4)
          {
              var _loc5 = _loc6.projects["category" + _loc4];
              _global["filter_" + _loc5.type] = true;
          } // end of for
      };
      createObjects = function ()
      {
          _global.projectCount = 0;
          _global.projectArray = [];
          var _loc8 = projectsNode.data0;
          for (var _loc7 = 0; _loc7 < _loc8.projects.childNodes.length; ++_loc7)
          {
              var _loc5 = _loc8.projects["category" + _loc7];
              for (var _loc4 = 0; _loc4 < _loc5.childNodes.length; ++_loc4)
              {
                  var _loc6 = _loc5["project" + _loc4];
                  _loc6.category = _loc5.type;
                  var _loc3 = displayPlane.attachMovie("displayNode", "displayNode_" + projectCount, projectCount);
                  _loc3._xscale = _loc3._yscale = 0;
                  _loc3.dataObject = _loc6;
                  projectArray.push(_loc3);
                  ++projectCount;
              } // end of for
          } // end of for
          _global.orderArray = projectArray;
          var _loc9 = displayPlane.attachMovie("slug", "slug", projectCount);
          _loc9._visible = false;
          _loc9.onRollOver = function ()
          {
          };
          _loc9.useHandCursor = false;
          displayPlane.createEmptyMovieClip("topClip", projectCount + 1);
          displayPlane.createEmptyMovieClip("topClip2", projectCount + 2);
          this["alignObjects_" + currentMode]();
      };
      _global.bumpToTopLevel = function (whichClip)
      {
          if (whichClip.getDepth() < displayPlane.topClip.getDepth())
          {
              displayPlane.topClip.swapDepths(whichClip);
          } // end if
      };
      _global.bumpToOrgLevel = function (whichClip)
      {
          if (whichClip.getDepth() > displayPlane.topClip.getDepth())
          {
              displayPlane.topClip.swapDepths(whichClip);
          } // end if
      };
      _global.bumpToTopLevel2 = function (whichClip)
      {
          if (whichClip.getDepth() < displayPlane.topClip2.getDepth())
          {
              displayPlane.topClip2.swapDepths(whichClip);
          } // end if
      };
      _global.bumpToOrgLevel2 = function (whichClip)
      {
          if (whichClip.getDepth() > displayPlane.topClip2.getDepth())
          {
              displayPlane.topClip2.swapDepths(whichClip);
          } // end if
      };
      _global.lockMovie = function ()
      {
          displayPlane.slug._visible = true;
      };
      _global.unlockMovie = function ()
      {
          displayPlane.slug._visible = false;
      };
      _global.setTag = function (textPass)
      {
          nameTag.displayText.text = textPass.toUpperCase();
          nameTag.displayText.autoSize = true;
          nameTag.BG._width = nameTag.displayText._width + 20;
          nameTag.BG._height = nameTag.displayText._height + 6;
          nameTag.displayText._x = -Math.round(nameTag.displayText._width / 2);
          nameTag.displayText._y = -Math.round(nameTag.displayText._height / 2) + 1;
          var X = Math.round(nameTag.displayText._width / 2) + 30;
          var Y = Math.round(nameTag.displayText._height / 2) + 30;
          if (nameTag._visible != true)
          {
              nameTag._visible = true;
              if (_xmouse > 500)
              {
                  var hTag = "left";
                  nameTag._x = _xmouse - X;
              }
              else
              {
                  var hTag = "right";
                  nameTag._x = _xmouse + X;
              } // end else if
              if (_ymouse > 100)
              {
                  var vTag = "bottom";
                  nameTag._y = _ymouse - Y;
              }
              else
              {
                  var vTag = "top";
                  nameTag._y = _ymouse - Y;
              } // end else if
              nameTag._y = _ymouse;
              nameTag.onEnterFrame = function ()
              {
                  if (hTag == "left")
                  {
                      var _loc4 = _root._xmouse - (this._x + X);
                  }
                  else
                  {
                      _loc4 = _root._xmouse - (this._x - X);
                  } // end else if
                  if (vTag == "bottom")
                  {
                      var _loc3 = _root._ymouse - (this._y + Y);
                  }
                  else
                  {
                      _loc3 = _root._ymouse - (this._y - Y);
                  } // end else if
                  this._x = Math.round(this._x + _loc4 * 1.000000E-001);
                  this._y = Math.round(this._y + _loc3 * 1.000000E-001);
              };
          } // end if
      };
      _global.killTag = function ()
      {
          _root.nameTag._visible = false;
          delete _root.nameTag.onEnterFrame();
      };