home *** CD-ROM | disk | FTP | other *** search
- function renderTree()
- {
- var _loc2_ = undefined;
- var _loc3_ = undefined;
- var _loc1_ = undefined;
- var y1;
- var d = 100;
- z += 5;
- this.swapDepths(5000 + z);
- _loc3_ = d / (d + z);
- _X = x * _loc3_;
- _Y = y * _loc3_;
- y1 = (y + 130) * _loc3_;
- _xscale = _yscale = (_Y - y1) * 300 / h;
- _loc2_ = this.getBounds(_parent);
- if(_loc2_.yMin > 200 || _loc2_.xMin > 300 || _loc2_.xMax < -300)
- {
- this.removeMovieClip();
- }
- _loc1_ = int(_Y * _totalframes / 300);
- if(_loc1_ < 1)
- {
- _loc1_ = 1;
- }
- if(_loc1_ > _totalframes)
- {
- _loc1_ = _totalframes;
- }
- this.gotoAndStop(_loc1_);
- first = 1;
- }
- if(Number(first) == 0)
- {
- h = _height;
- y = -300;
- renderTree();
- }
- stop();
-