加载loading
加载loading
_root.onEnterFrame = function() {
gbl = _root.getBytesLoaded();
gbt = _root.getBytesTotal();
per = int(gbl/gbt*100);
txt = per+"%";
if (per < 100) {
_root.stop();
} else {
delete onEnterFrame;
_root.play();
}
};
right按钮
on (release) {
if (main._currentframe>759 || main._currentframe < 180) {
_root.main.gotoAndPlay(220);
}
else if (main._currentframe>180 && main._currentframe<370) {
_root.main.gotoAndPlay(410);
}
else if (main._currentframe>370 && main._currentframe<560) {
_root.main.gotoAndPlay(600);
}
else if (main._currentframe>560 && main._currentframe<759) {
_root.main.gotoAndPlay(1);
}
}
left按钮
on (release) {
//trace(main._currentframe);
if (main._currentframe>759 || main._currentframe<180) {
_root.main.gotoAndPlay(600);
} else if (main._currentframe>180 && main._currentframe<370) {
_root.main.gotoAndPlay(1);
} else if (main._currentframe>370 && main._currentframe<560) {
_root.main.gotoAndPlay(220);
} else if (main._currentframe>560 && main._currentframe<759) {
_root.main.gotoAndPlay(410);
}
}