请高人替我翻译一下这段代码,谢谢!

来源:百度知道 编辑:UC知道 时间:2024/05/22 11:06:32
stop();
function lefttoright(man1, man2) {
stepleft = 0;
_root.bridge.onEnterFrame = function() {
if ((stepleft<50) && (stepleft>=0)) {
_root["person"+man1]._x += 10;
_root["person"+man2]._x += 10;
_root["person"+man1]._rotation += 36;
_root["person"+man2]._rotation += 36;
_root.light._x += 10;
stepleft++;
} else if (stepleft == 50) {
if (man1>man2) {
_root.time -= man1;
} else {
_root.time -= man2;
}
man1 = 0;
man2 = 0;
_root.personstogo[0] = "";
_root.personstogo[1] = "";
_root.lightalign = "right";
_root.persons = "";
stepleft = -1;
if (_root.time<=0) {
_root.time = 0;
_root.light.nextFrame();
_root.ending = "You Lose!";
_root.restartmc._visible = true;
} el

停止( ) ;
功能lefttoright ( man1 , man2 ) (
stepleft = 0 ;
_root.bridge.onenterframe =函数( ) (
如果( ( stepleft < 50 ) & & ( stepleft > = 0 ) ) (
_root [ "人" + man1 ] 。 _x + = 10 ;
_root [ "人" + man2 ] 。 _x + = 10 ;
_root [ "人" + man1 ] 。 _rotation + = 36 ;
_root [ "人" + man2 ] 。 _rotation + = 36 ;
_root.light._x + = 10 ;
stepleft + + ;
)否则,如果( stepleft == 50 ) (
如果( man1 > man2 ) (
_root.time -= man1 ;
)否则(
_root.time -= man2 ;

man1 = 0 ;
man2 = 0 ;
_root.personstogo [ 0 ] = " " ;
_root.personstogo [ 1 ] = " " ;
_root.lightalign = "正确" ;
_root.persons = " " ;
stepleft = -1 ;
如果( _root.time < = 0 ) (
_root.time = 0 ;
_root.light.nextframe ( ) ;
_root.ending = "你输了! " ;
_root.restartmc._visible =属实;
)否则,如果( ( _root.ti