home *** CD-ROM | disk | FTP | other *** search
- ratio = 1;
- _X = _X + _root.movevar * ratio;
- myR = _X + _width * 0.5;
- myL = _X - _width * 0.5;
- if(_root.movevar > 0)
- {
- if(myL > _root.stagew + 50)
- {
- _X = eval("_root." add buddy)._x - (eval("_root." add buddy)._width - _root.movevar * ratio);
- }
- }
- else if(_root.movevar < 0)
- {
- if(myR < -50)
- {
- trace("_root." add buddy);
- undefined._x + (eval("_root." add buddy)._width + _root.movevar * ratio);
- _X = eval("_root." add buddy)._x + (eval("_root." add buddy)._width + _root.movevar * ratio);
- §§push(undefined);
- }
- }
- gotoAndPlay(_currentframe - 1);
-