Frame 1
function fwAd_onClickStartBtn() {
_root.play();
}
stop();
FWAd_AS2.showAd({container:this, x:0, y:0, wid:512, hei:448, starPoolID:"13381", starSubPoolID:"17", adType:"loading", onClickStartBtn:fwAd_onClickStartBtn});
Instance of Symbol 10 MovieClip in Frame 1
on (release) {
getURL ("http://www.freegameswow.com", "_blank");
}
Frame 3
System.security.allowInsecureDomain("*");
_global.game_name = "\u53F2\u4E0A\u6700\u96BE\u8D85\u7EA7\u739B\u4E3D";
_global.game_id = "398";
_global.game_key = "eb8d374cb179ed09";
Frame 4
_global.StageWidth = 512;
_global.StageHeight = 448;
_global.MapCount = 13;
_global.Map = new Array();
_global.HideDirenIndex = 0;
_global.LifeNum = 3;
_global.GameID = 37;
_global.Player = "Player";
stop();
_global.GameOver = function () {
stopAllSounds();
_global.Clear();
_global.Started = false;
_global.GameOvered = true;
_root["\u5730\u56FE"].removeMovieClip();
_root.sky.removeMovieClip();
_root["\u72B6\u6001\u680F"].removeMovieClip();
_root.Ball.removeMovieClip();
_root.attachMovie("\u7ED3\u675F\u6846", "\u7ED3\u675F\u6846", _root.getNextHighestDepth());
_root["\u7ED3\u675F\u6846"]._x = 0;
_root["\u7ED3\u675F\u6846"]._y = 0;
};
_global.InitMap = function (mov) {
var _local2 = mov;
for (var _local3 in _local2) {
if (typeof(_local2[_local3]) == "movieclip") {
if (((((((_local2[_local3]._name.indexOf("Floor") != -1) || (_local2[_local3]._name.indexOf("Box") != -1)) || (_local2[_local3]._name.indexOf("Pipe") != -1)) || (_local2[_local3]._name.indexOf("\u654C\u4EBA") != -1)) || (_local2[_local3]._name.indexOf("\u89E6\u53D1\u5668") != -1)) || (_local2[_local3]._name.indexOf("\u65D7") != -1)) || (_local2[_local3]._name.indexOf("\u70AE\u5F39") != -1)) {
trace(_local2[_local3]._name);
_global.Map.push(_local2[_local3]);
}
}
}
};
_global.PlayMovie = function (Name) {
var _local2 = 0;
while (_local2 < _global.Map.length) {
if (_global.Map[_local2]._name.indexOf(Name) != -1) {
_global.Map[_local2].gotoAndPlay(2);
}
_local2++;
}
};
_global.PlaySound = function (url) {
var _local1 = new Sound();
_local1.attachSound(url);
_local1.start();
};
_global.PlaySound = function (url, num) {
var _local1 = new Sound();
_local1.attachSound(url);
_local1.start(0, num);
};
_global.Ready = function () {
_global.ClearFire();
_global.Started = false;
_global.Clear();
_global.HideDirenIndex = 0;
_global.GameOvered = false;
_global.Score = _global.OldScore;
_global.CurrentLevel = _global.OldCurrentLevel;
_root.attachMovie("sky", "sky", _root.getNextHighestDepth());
_root.attachMovie("\u5730\u56FE", "\u5730\u56FE", _root.getNextHighestDepth());
_root.attachMovie("\u72B6\u6001\u680F", "\u72B6\u6001\u680F", _root.getNextHighestDepth());
_root.attachMovie("Ball", "Ball", _root.getNextHighestDepth());
_root.Ball._y = 363;
_root.attachMovie("\u5F00\u59CB\u6846", "\u5F00\u59CB\u6846", _root.getNextHighestDepth());
_root["\u5F00\u59CB\u6846"]._x = (_global.StageWidth / 2) - (_root["\u5F00\u59CB\u6846"]._width / 2);
_root["\u5F00\u59CB\u6846"]._y = (_global.StageHeight / 2) - (_root["\u5F00\u59CB\u6846"]._height / 2);
_global.UpdateStatus();
};
_global.Clear = function () {
_root["\u6210\u529F\u6846"].removeMovieClip();
_root["\u7ED3\u675F\u6846"].removeMovieClip();
_root["\u5F00\u59CB\u6846"].removeMovieClip();
};
_global.Start = function () {
_root["\u5730\u56FE"]._x = 0;
_global.Started = true;
_global.Clear();
_global.PlaySound("music.mp3", 100);
};
_global.Ready();
Symbol 1 MovieClip [FWAd_AS2] Frame 1
#initclip 2
Object.registerClass("FWAd_AS2", FWAd_AS2);
#endinitclip
Symbol 10 MovieClip Frame 1
Symbol 215 MovieClip [__Packages.FWAd_AS2] Frame 0
class FWAd_AS2 extends MovieClip
{
static var xx, yy, wid, hei, id, ifIsLoadingAdShowStartBtn, noShowLogo, noShowForbidden, onClickStartBtn, fwAd, frameworkLoader, lc, loadFrameworkSuccess, loadFrameworkFailed, frameworkInitFinished, loadGameCompleted, restLoadFrameworkTimes, xml, newsLoader, newsMcl, news_lc, lc_sendName, lc_connName, canNotShowAd, onLoadXML;
var adValues, _FWAd, createEmptyMovieClip, getNextHighestDepth, mcl, loadingBar, loadingBar_bar, onEnterFrame, removeMovieClip, _parent, swapDepths, _visible, _x;
function FWAd_AS2 () {
super();
xx = adValues.x;
yy = adValues.y;
wid = adValues.wid;
hei = adValues.hei;
id = adValues.id;
adType = adValues.adType;
ifIsLoadingAdShowStartBtn = adValues.ifIsLoadingAdShowStartBtn;
noShowLogo = adValues.noShowLogo;
noShowForbidden = adValues.noShowForbidden;
if (adValues.onClickCloseBtn) {
onClickStartBtn = adValues.onClickCloseBtn;
} else {
onClickStartBtn = adValues.onClickStartBtn;
}
fwAd = this;
_FWAd = FWAd_AS2;
frameworkLoader = null;
lc = null;
loadFrameworkSuccess = false;
loadFrameworkFailed = false;
frameworkInitFinished = false;
System.security.allowDomain(swfDomain);
System.security.allowInsecureDomain(swfDomain);
fscommand ("showMenu", "false");
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
fscommand ("trapallkeys", "true");
loadGameCompleted = _root.getBytesLoaded() == _root.getBytesTotal();
frameworkLoader = createEmptyMovieClip("frameworkLoader", getNextHighestDepth());
frameworkLoader.createEmptyMovieClip("content", frameworkLoader.getNextHighestDepth());
mcl = new MovieClipLoader();
mcl.onLoadInit = function () {
FWAd_AS2.fwAd.loadFrameworkComplete();
};
mcl.onLoadError = function () {
FWAd_AS2.fwAd.loadFrameworkError();
};
restLoadFrameworkTimes = loadFrameworkTimes;
loadFramework();
var txt_sp = createEmptyMovieClip("txt_sp", getNextHighestDepth());
var DropShadowFilterClassName = "flash.filters.DropShadowFilter";
var DropShadowFilterClass = eval (DropShadowFilterClassName);
if (DropShadowFilterClass) {
txt_sp.filters = [new DropShadowFilterClass(0, 0, 0, 1, 2, 2, 4)];
}
var loadingBar_hei = 8;
var loadingBar_x = 10;
var loadingBar_wid = (wid - (2 * loadingBar_x));
loadingBar = createEmptyMovieClip("loadingBar", getNextHighestDepth());
loadingBar._x = loadingBar_x;
loadingBar._y = (hei - loadingBar_hei) - 6;
var loadingBar_bottom = loadingBar.createEmptyMovieClip("loadingBar_bottom", loadingBar.getNextHighestDepth());
loadingBar_bar = loadingBar.createEmptyMovieClip("loadingBar_bar", loadingBar.getNextHighestDepth());
var loadingBar_line = loadingBar.createEmptyMovieClip("loadingBar_line", loadingBar.getNextHighestDepth());
loadingBar_bottom.clear();
loadingBar_bottom.beginFill(3355443);
loadingBar_bottom.moveTo(0, 0);
loadingBar_bottom.lineTo(loadingBar_wid, 0);
loadingBar_bottom.lineTo(loadingBar_wid, loadingBar_hei);
loadingBar_bottom.lineTo(0, loadingBar_hei);
loadingBar_bottom.lineTo(0, 0);
loadingBar_bottom.endFill();
loadingBar_bar.clear();
var MatrixClassName = "flash.geom.Matrix";
var MatrixClass = eval (MatrixClassName);
if (MatrixClass) {
loadingBar_bar.beginGradientFill("linear", [16777215, 16750950], [100, 100], [63, 255], new MatrixClass(0.006, 0, 0, 1, 0, 0));
} else {
loadingBar_bar.beginFill(16750950);
}
loadingBar_bar._rotation = 90;
loadingBar_bar.moveTo(0, -loadingBar_wid);
loadingBar_bar.lineTo(loadingBar_hei, -loadingBar_wid);
loadingBar_bar.lineTo(loadingBar_hei, 0);
loadingBar_bar.lineTo(0, 0);
loadingBar_bar.lineTo(0, -loadingBar_wid);
loadingBar_bar.endFill();
loadingBar_line.clear();
loadingBar_line.lineStyle(1, 6710886);
loadingBar_line.moveTo(0, 0);
loadingBar_line.lineTo(loadingBar_wid, 0);
loadingBar_line.lineTo(loadingBar_wid, loadingBar_hei);
loadingBar_line.lineTo(0, loadingBar_hei);
loadingBar_line.lineTo(0, 0);
loadingBar_line.endFill();
loadingBar_bar._width = 1;
loadingBar_bar._xscale = 100;
switch (adType) {
case AD_TYPE_LOADING :
break;
default :
loadingBar._visible = false;
}
if (loadGameCompleted) {
loadingBar._visible = false;
} else {
loadingBar.onEnterFrame = function () {
FWAd_AS2.fwAd.loadGameProgress();
};
}
}
static function getParam(paramName) {
if (xml) {
return(String(xml.firstChild.attributes[paramName]));
}
trace("xml\u672A\u52A0\u8F7D\u5B8C\u6BD5, \u6216xml\u52A0\u8F7D\u5931\u8D25");
return(null);
}
static function showNews(_newsValues) {
clearInterval(checkNewsFirstInitIntervalId);
newsValues.wid = wid;
for (var _local3 in _newsValues) {
newsValues[_local3] = _newsValues[_local3];
}
if (newsValues.id) {
} else {
newsValues.id = id + "_news";
}
var _local4 = newsValues.container || _root;
if (_local4) {
newsLoader = _local4.createEmptyMovieClip("newsLoader", _local4.getNextHighestDepth());
newsLoader.createEmptyMovieClip("content", newsLoader.getNextHighestDepth());
newsLoader.x = newsValues.x;
newsLoader.y = newsValues.y;
newsMcl = new MovieClipLoader();
newsMcl.onLoadInit = function () {
FWAd_AS2.loadNewsComplete();
};
newsMcl.loadClip(newsSWFPath, newsLoader.content);
} else {
trace("\u672A\u6307\u5B9A\u5BB9\u5668,\u8BF7\u6539\u6210\u4F8B\u5982: FWAd_AS2.showNews({container:_root}");
}
news_lc = new LocalConnection();
}
static function loadNewsComplete() {
clearInterval(checkNewsFirstInitIntervalId);
checkNewsFirstInitIntervalId = setInterval(checkNewsFirstInit, 100);
}
static function checkNewsFirstInit() {
var _local1 = Math.round(newsLoader.getBounds(newsLoader).xMin / 10);
if (_local1 < -1000) {
clearInterval(checkNewsFirstInitIntervalId);
news_lc.send("_News" + _local1, "that2this", "newsValues", newsValues);
}
}
static function showAd(_adValues) {
var _local6 = {x:xx, y:yy, wid:wid, hei:hei, id:id, adType:AD_TYPE_CONTAINER};
for (var _local3 in _adValues) {
_local6[_local3] = _adValues[_local3];
}
if (_adValues) {
if (_adValues.starPoolID && (_adValues.starSubPoolID)) {
_local6.id = (_adValues.starPoolID + newline) + _adValues.starSubPoolID;
}
}
var _local4 = _local6.container || _root;
if (_local4) {
if (_local6.adType == AD_TYPE_LOADING) {
if (hasLoadOnce) {
trace("\u7F13\u51B2\u5E7F\u544A\u4E0D\u5141\u8BB8\u77ED\u65F6\u95F4\u5185\u91CD\u590D\u521D\u59CB\u5316");
return(undefined);
}
hasLoadOnce = true;
}
} else {
trace("\u672A\u6307\u5B9A\u5BB9\u5668,\u8BF7\u6539\u6210\u4F8B\u5982: FWAd_AS2.showAd({container:_root}");
return(undefined);
}
_local4.attachMovie("FWAd_AS2", "fwAd", _local4.getNextHighestDepth(), {adValues:_local6});
}
function loadFramework() {
mcl.loadClip(frameworkSWFPath, frameworkLoader.content);
_global.clearTimeout(timeoutId);
timeoutId = _global.setTimeout(loadFrameworkTimeout, loadFrameworkTimeoutTime * 1000);
}
function loadGameProgress() {
switch (adType) {
case AD_TYPE_LOADING :
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
loadingBar_bar._xscale = 100;
loadingBar_bar._yscale = _local3 * 100;
if (_local3 >= 1) {
loadingBar.onEnterFrame = null;
loadGameComplete();
}
break;
default :
loadingBar.onEnterFrame = null;
}
}
function loadGameComplete() {
hasLoadOnce = false;
loadGameCompleted = true;
loadingBar._visible = false;
checkLoadGameCompleteAndTryStart();
if (frameworkInitFinished) {
lc.send(lc_sendName, "that2this", "loadGameCompleted");
}
}
function loadFrameworkComplete() {
onEnterFrame = checkFrameworkFirstInit;
}
function checkFrameworkFirstInit() {
var _local4 = Math.round(frameworkLoader.getBounds(frameworkLoader).xMin / 10);
if (_local4 < -1000) {
onEnterFrame = null;
lc_connName = "_FWAd" + _local4;
lc_sendName = "_Framework" + _local4;
lc = new LocalConnection();
lc.allowDomain = function () {
return(true);
};
lc.allowInsecureDomain = function () {
return(true);
};
lc.onStatus = function () {
var _local2 = arguments[0];
if (!(_local2.level === "error")) {
} else {
trace("lc error");
}
};
lc.connect(lc_connName);
lc.that2this = function () {
FWAd_AS2.fwAd.Framework2FWAd.apply(FWAd_AS2.fwAd, arguments);
};
_global.clearTimeout(timeoutId);
loadFrameworkSuccess = true;
checkLoadGameCompleteAndTryStart();
}
}
function loadFrameworkTimeout() {
trace("loadFrameworkTimeout");
fwAd.loadFrameworkError();
}
function loadFrameworkError() {
trace("\u5269\u4F59\u5C1D\u8BD5\u52A0\u8F7D\u6B21\u6570:" + restLoadFrameworkTimes);
_global.clearTimeout(timeoutId);
if ((--restLoadFrameworkTimes) < 0) {
loadFrameworkFailed = true;
checkLoadGameCompleteAndTryStart();
} else {
mcl.uploadClip();
loadFramework();
}
}
function Framework2FWAd() {
switch (arguments[0]) {
case "initFinished" :
frameworkInitFinished = true;
lc.send(lc_sendName, "that2this", "confirmInitFinished", getFWAdValuesByNameArr(arguments.slice(1)));
break;
case "clickStartBtn" :
clickStartBtn();
break;
case "canNotShowAd" :
case "noId" :
canNotShowAd = true;
checkLoadGameCompleteAndTryStart();
break;
case "xml" :
xml = new XML(arguments[1]);
onLoadXML();
}
}
function getFWAdValuesByNameArr(nameArr) {
var _local3 = new Object();
for (var _local4 in nameArr) {
var _local1 = nameArr[_local4];
_local3[_local1] = FWAd_AS2[_local1];
}
return(_local3);
}
function checkLoadGameCompleteAndTryStart() {
if (loadGameCompleted) {
if (loadFrameworkFailed) {
trace("\u52A0\u8F7D framework \u5931\u8D25");
if (ifLoadFrameworkErrorCanPlayGame || (checkIsOurDomain())) {
trace("\u81EA\u52A8\u8DF3\u5230\u6E38\u620F");
clickStartBtn();
} else {
trace("\u4E0D\u81EA\u52A8\u8DF3\u5230\u6E38\u620F");
}
} else if (canNotShowAd) {
if (checkIsOurDomain()) {
clickStartBtn();
}
}
}
}
function checkIsOurDomain() {
if (_root._url) {
var _local2 = _root._url.toLowerCase();
return((((_local2.indexOf(".youyouwin.com/") > 0) || (_local2.indexOf(".7k7k.com/") > 0)) || (_local2.indexOf(".flash8.net/") > 0)) || (_local2.indexOf("file:///") == 0));
}
return(true);
}
function clickStartBtn() {
if (onClickStartBtn != null) {
onClickStartBtn();
onClickStartBtn = null;
}
removeMovieClip();
var _local4 = new Array();
for (var _local5 in _parent) {
var _local3 = _parent[_local5];
if (_local3 instanceof MovieClip) {
var _local2 = _local3.getDepth();
if (_local2 >= 0) {
_local4[_local2] = true;
}
}
}
var _local2 = 65535;
while (_local2 >= 0) {
if (_local4[_local2]) {
} else {
swapDepths(_local2);
break;
}
_local2--;
}
removeMovieClip();
_visible = false;
_x = -10000;
}
function closeAd() {
clickStartBtn();
}
static var ifLoadFrameworkErrorCanPlayGame = true;
static var loadFrameworkTimeoutTime = 8;
static var loadFrameworkTimes = 2;
static var ifAdFailCanPlayGame = true;
static var ifAddCallBackErrorCanPlayGame = false;
static var swfDomain = "www.freegameswow.com";
static var swfFolder = ("http://" + swfDomain) + "/fgAds/";
static var frameworkSWFPath = swfFolder + "Framework.swf";
static var newsSWFPath = swfFolder + "News.swf";
static var AD_TYPE_LOADING = "loading";
static var AD_TYPE_CONTAINER = "container";
static var adType = AD_TYPE_LOADING;
static var hasLoadOnce = false;
static var newsValues = {x:0, y:0};
static var checkNewsFirstInitIntervalId = -1;
var timeoutId = -1;
}
Instance of Symbol 10 MovieClip in Symbol 17 MovieClip [状态栏] Frame 1
on (release) {
getURL ("http://www.freegameswow.com", "_blank");
}
Symbol 37 MovieClip [结束框] Frame 1
function submitScore(s) {
}
txtScore.text = _global.Score;
txtLifeNum.text = --_global.LifeNum;
txtName.text = _global.Player;
System.security.allowInsecureDomain("*");
var scoreObj = new Object();
scoreObj.game_id = _global.game_id;
scoreObj.game_key = _global.game_key;
scoreObj.game_name = _global.game_name;
Instance of Symbol 26 MovieClip in Symbol 37 MovieClip [结束框] Frame 1
on (release) {
_global.Ready();
}
Instance of Symbol 36 MovieClip [更多按钮] in Symbol 37 MovieClip [结束框] Frame 1
on (release) {
getURL ("http://www.freegameswow.com", "_blank");
}
Symbol 39 MovieClip [右炮弹] Frame 1
stop();
Symbol 39 MovieClip [右炮弹] Frame 26
stop();
Symbol 41 MovieClip [上炮弹] Frame 1
stop();
Symbol 41 MovieClip [上炮弹] Frame 23
stop();
Symbol 42 MovieClip [下炮弹] Frame 1
stop();
Symbol 42 MovieClip [下炮弹] Frame 23
stop();
Symbol 45 MovieClip [敌人死] Frame 34
this.removeMovieClip();
trace("end");
stop();
Symbol 47 MovieClip [死] Frame 50
_global.GameOver();
this.removeMovieClip();
Symbol 49 MovieClip [敌人] Frame 1
stop();
var thevx = 3;
if (this._name.indexOf("\u5DE6") != -1) {
thevx = -3;
}
var addx = -2;
theUpspeed = 2;
HitTest = function () {
if (!_global.Started) {
return(undefined);
}
var _local6 = false;
var _local7 = 0;
while (_local7 < _global.Map.length) {
var _local4 = _global.Map[_local7];
if (this.hitTest(_local4)) {
var _local3 = {x:_local4._x, y:_local4._y};
_local4._parent.localToGlobal(_local3);
var _local5 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local5);
if (_local5.y < _local3.y) {
var _local8 = {x:this._x, y:_local3.y - this._height};
this._parent.globalToLocal(_local3);
this._y = _local8.y;
theUpspeed = 0;
_local6 = true;
} else {
if ((_local5.x < _local3.x) && (thevx > 0)) {
var _local8 = {x:(_local3.x - this._width) - 1, y:this._y};
this._parent.globalToLocal(_local8);
this._x = _local8.x;
_local6 = true;
thevx = -thevx;
theUpspeed = 0;
return(_local6);
}
if (((((_local5.x + this._width) > (_local3.x + _local4._width)) && (thevx < 0)) && ((((_local5.y + this._height) - theUpspeed) + _global.Gravity) > _local3.y)) && (((_local5.y - theUpspeed) + _global.Gravity) < (_local3.y + _local4._height))) {
var _local8 = {x:(_local3.x + _local4._width) + 1, y:this._y};
this._parent.globalToLocal(_local8);
this._x = _local8.x;
_local6 = true;
thevx = -thevx;
theUpspeed = 0;
return(_local6);
}
}
}
_local7++;
}
return(_local6);
};
this.IsDeath = false;
onEnterFrame = function () {
if (!_global.Started) {
return(undefined);
}
if (this.IsDeath) {
return(undefined);
}
this._y = this._y + theUpspeed;
theUpspeed = theUpspeed + 1;
this._x = this._x + thevx;
if (HitTest()) {
theUpspeed = 0;
}
};
Symbol 49 MovieClip [敌人] Frame 2
this.removeMovieClip();
stop();
Symbol 57 MovieClip [过关Mali] Frame 1
stop();
var addx = -2;
var thevx = 3;
theUpspeed = 2;
var death = false;
ActorDeath = function (mov) {
death = true;
var _local4 = _root.attachMovie("\u6B7B", "\u6B7B", _root.getNextHighestDepth());
_local4._x = this._x;
_local4._y = this._y;
this._visible = false;
_global.Started = false;
stopAllSounds();
_global.PlaySound("death.mp3");
};
HitTest = function () {
if (death) {
return(undefined);
}
var _local5 = false;
var _local4 = 0;
while (_local4 < _global.Map.length) {
var _local3 = _global.Map[_local4];
if (this.hitTest(_local3)) {
if (_local3._name.indexOf("\u70AE\u5F39") != -1) {
ActorDeath(_local3);
return(false);
}
if (((((this._x + this._width) > (_local3._x + _local3._width)) && (thevx < 0)) && ((((this._y + this._height) - theUpspeed) + _global.Gravity) > _local3._y)) && (((this._y - theUpspeed) + _global.Gravity) < (_local3._y + _local3._height))) {
this._x = (_local3._x + _local3._width) + 1;
_local5 = true;
thevx = -thevx;
theUpspeed = 0;
} else {
if ((((this._x < _local3._x) && (thevx > 0)) && ((((this._y + this._height) - theUpspeed) + _global.Gravity) > _local3._y)) && (((this._y - theUpspeed) + _global.Gravity) < (_local3._y + _local3._height))) {
this._x = (_local3._x - this._width) - 1;
_local5 = true;
thevx = -thevx;
theUpspeed = 0;
return(_local5);
}
if (this._y < _local3._y) {
this._y = _local3._y - this._height;
theUpspeed = 0;
_local5 = true;
}
}
}
_local4++;
}
return(_local5);
};
this.IsDeath = false;
onEnterFrame = function () {
if (death) {
return(undefined);
}
if (this.IsDeath) {
return(undefined);
}
this._y = this._y + theUpspeed;
theUpspeed = theUpspeed + 1;
this._x = this._x + thevx;
if (HitTest()) {
theUpspeed = 0;
}
};
Symbol 57 MovieClip [过关Mali] Frame 2
this.removeMovieClip();
stop();
Symbol 62 MovieClip [右蹲] Frame 1
stop();
Symbol 66 MovieClip [右蹲下] Frame 20
stop();
Symbol 69 MovieClip [左蹲下] Frame 20
stop();
Symbol 71 MovieClip [右跳] Frame 1
stop();
Symbol 73 MovieClip [地图] Frame 1
stop();
var index = 0;
var i = index;
while (i < _global.MapCount) {
var mov = this.attachMovie("\u5730\u56FE" + i, "\u5730\u56FE" + i, this.getNextHighestDepth());
if (mov == undefined) {
break;
}
trace(mov);
mov._x = _global.StageWidth * (i - index);
mov._y = 0;
i++;
}
this._width = 512 * (i - index);
Symbol 84 MovieClip [地图0] Frame 1
_global.InitMap(this);
Symbol 91 MovieClip [地图2] Frame 1
_global.InitMap(this);
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 66
stop();
stopAllSounds();
_global.PlaySound("death.mp3");
var timeId = setInterval(function () {
clearInterval(timeId);
_global.GameOver();
}, 3000);
this.removeMovieClip();
Symbol 93 MovieClip [地图3] Frame 1
_global.InitMap(this);
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 7
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 25
stop();
Symbol 110 MovieClip Frame 26
stop();
this.removeMovieClip();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
var i = 0;
while (i < 2) {
var mov = _parent.attachMovie("\u654C\u4EBA", (("\u654C\u4EBA" + this._name) + "\u5DE6") + i, _parent.getNextHighestDepth());
_global.Map.push(mov);
trace(mov._width);
mov._x = (this._x + (i * mov._width)) + (i * 5);
mov._y = this._y - this._height;
i++;
}
Symbol 115 MovieClip [地图5] Frame 1
_global.InitMap(this);
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 7
stop();
_global.Map.push(_parent.attachMovie("\u654C\u4EBA", "\u654C\u4EBA" + _global.HideDirenIndex, _parent.getNextHighestDepth()));
_parent["\u654C\u4EBA" + _global.HideDirenIndex]._x = this._x;
_parent["\u654C\u4EBA" + _global.HideDirenIndex]._y = this._y - this._height;
var timeId = setInterval(function () {
clearInterval(timeId);
if (_global.HideDirenIndex < 10) {
gotoAndPlay (2);
}
}, 1000);
_global.HideDirenIndex++;
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 7
stop();
Symbol 127 MovieClip [地图4] Frame 1
_global.InitMap(this);
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 11
stop();
Symbol 132 MovieClip [地图6] Frame 1
_global.InitMap(this);
Symbol 133 MovieClip [地图7] Frame 1
_global.InitMap(this);
Symbol 140 MovieClip [地图8] Frame 1
_global.InitMap(this);
Symbol 144 MovieClip [地图9] Frame 1
_global.InitMap(this);
Symbol 148 MovieClip [地图10] Frame 1
_global.InitMap(this);
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
var i = 0;
while (i < 4) {
var mov = _parent.attachMovie("\u654C\u4EBA", (("\u654C\u4EBA" + this._name) + "\u5DE6") + i, _parent.getNextHighestDepth());
_global.Map.push(mov);
trace(mov._width);
mov._x = (this._x + (i * mov._width)) + (i * 5);
mov._y = this._y - this._height;
i++;
}
Symbol 150 MovieClip [地图11] Frame 1
_global.InitMap(this);
Symbol 157 MovieClip [地图12] Frame 1
_global.InitMap(this);
Symbol 158 MovieClip [地图13] Frame 1
_global.InitMap(this);
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 7
stop();
_global.Map.push(_parent.attachMovie("\u654C\u4EBA", "\u654C\u4EBAx", _parent.getNextHighestDepth()));
_parent["\u654C\u4EBAx"]._x = this._x;
_parent["\u654C\u4EBAx"]._y = this._y - this._height;
Symbol 162 MovieClip [地图1] Frame 1
_global.InitMap(this);
Symbol 169 MovieClip [ball] Frame 1
_global.oldUpSpeed = -33;
_global.upspeed = 0;
_global.jump = false;
_global.Gravity = 4;
_global.Actor = \u53F3\u8D70;
_global.MoveLeft = false;
_global.MoveUp = false;
_global.MoveRight = false;
HideCrouch();
this.attachMovie("\u5DE6\u8D70", "\u5DE6\u8D70", this.getNextHighestDepth());
\u5DE6\u8D70._visible = false;
this.attachMovie("\u5DE6\u8E72", "\u5DE6\u8E72", this.getNextHighestDepth());
\u5DE6\u8E72._visible = false;
this.attachMovie("\u53F3\u8E72", "\u53F3\u8E72", this.getNextHighestDepth());
\u53F3\u8E72._visible = false;
this.attachMovie("\u5DE6\u8DF3", "\u5DE6\u8DF3", this.getNextHighestDepth());
\u5DE6\u8DF3._visible = false;
this.attachMovie("\u53F3\u8DF3", "\u53F3\u8DF3", this.getNextHighestDepth());
\u53F3\u8DF3._visible = false;
this.attachMovie("\u5DE6\u722C", "\u5DE6\u722C", this.getNextHighestDepth());
\u5DE6\u722C._visible = false;
this.attachMovie("\u53F3\u722C", "\u53F3\u722C", this.getNextHighestDepth());
\u53F3\u722C._visible = false;
var HORIZONTAL_ACCELERATION = 2;
var MAX_HORIZONTAL_VELOCITY = 8;
var HORIZONTAL_DECAY = 0.88;
var vx = 0;
Key.addListener(this);
ShowMali = function (mov) {
if (\u53F3\u8DF3._visible || (\u5DE6\u8DF3._visible)) {
return(undefined);
}
\u53F3\u8DF3._visible = false;
\u5DE6\u8DF3._visible = false;
\u5DE6\u8E72._visible = false;
\u53F3\u8E72._visible = false;
\u5DE6\u8D70._visible = false;
\u53F3\u8D70._visible = false;
mov._visible = true;
_global.Actor = mov;
};
HideMali = function () {
\u53F3\u8DF3._visible = false;
\u5DE6\u8DF3._visible = false;
\u5DE6\u8E72._visible = false;
\u53F3\u8E72._visible = false;
\u5DE6\u8D70._visible = false;
\u53F3\u8D70._visible = false;
\u5DE6\u722C._visible = false;
\u53F3\u722C._visible = false;
};
ShowJump = function () {
if (\u5DE6\u8E72._visible || (\u5DE6\u8D70._visible)) {
HideMali();
\u5DE6\u8DF3._visible = true;
_global.Actor = \u5DE6\u8DF3;
} else {
HideMali();
\u53F3\u8DF3._visible = true;
_global.Actor = \u53F3\u8DF3;
}
};
HideJump = function () {
if (\u5DE6\u8DF3._visible) {
HideMali();
\u5DE6\u8D70._visible = true;
_global.Actor = \u5DE6\u8D70;
return(undefined);
}
if (\u53F3\u8DF3._visible) {
HideMali();
\u53F3\u8D70._visible = true;
_global.Actor = \u53F3\u8D70;
}
};
HideCrouch = function () {
if (\u5DE6\u8E72._visible) {
HideMali();
\u5DE6\u8D70._visible = true;
_global.Actor = \u5DE6\u8D70;
return(undefined);
}
if (\u53F3\u8E72._visible) {
HideMali();
\u53F3\u8D70._visible = true;
_global.Actor = \u53F3\u8D70;
}
};
ShowCrouch = function () {
if (_global.jump) {
return(undefined);
}
if (\u5DE6\u8DF3._visible || (\u5DE6\u8D70._visible)) {
HideMali();
\u5DE6\u8E72._visible = true;
_global.Actor = \u5DE6\u8E72;
} else {
HideMali();
\u53F3\u8E72._visible = true;
_global.Actor = \u53F3\u8E72;
}
};
ShowStand = function () {
if (\u5DE6\u8DF3._visible || (\u5DE6\u8E72._visible)) {
HideMali();
\u5DE6\u8D70._visible = true;
_global.Actor = \u5DE6\u8D70;
} else {
HideMali();
\u53F3\u8D70._visible = true;
_global.Actor = \u53F3\u8D70;
}
};
onKeyDown = function () {
if (!_global.Started) {
return(undefined);
}
switch (Key.getCode()) {
case 37 :
_global.MoveLeft = true;
break;
case 38 :
ShowJump();
if (!_global.jump) {
_global.jump = true;
_global.upspeed = _global.oldUpSpeed;
_global.PlaySound("jump.mp3");
}
break;
case 39 :
_global.MoveRight = true;
break;
case 40 :
ShowCrouch();
}
};
_global.UpdateStatus = function () {
_global.Score = -Math.floor(_root["\u5730\u56FE"]._x);
_root["\u72B6\u6001\u680F"].txtScore.text = _global.Score;
};
onKeyUp = function () {
if (!_global.Started) {
return(undefined);
}
switch (Key.getCode()) {
case 37 :
_global.MoveLeft = false;
break;
case 38 :
_global.MoveUp = false;
break;
case 39 :
_global.MoveRight = false;
break;
case 40 :
HideCrouch();
}
};
ActorDeath = function (mov) {
var _local4 = _root.attachMovie("\u6B7B", "\u6B7B", _root.getNextHighestDepth());
_local4._x = this._x;
_local4._y = this._y;
this._visible = false;
_global.Started = false;
stopAllSounds();
_global.PlaySound("death.mp3");
var timeId = setInterval(function () {
clearInterval(timeId);
}, 1000);
};
CheckDeath = function (mov) {
if (mov._name.indexOf("\u654C\u4EBA") != -1) {
var _local4 = _root.attachMovie("\u6B7B", "\u6B7B", _root.getNextHighestDepth());
_local4._x = this._x;
_local4._y = this._y;
this._visible = false;
_global.Started = false;
stopAllSounds();
_global.PlaySound("death.mp3");
var timeId = setInterval(function () {
clearInterval(timeId);
}, 1000);
return(true);
}
return(false);
};
LevelUp = function (QiMov) {
_global.Started = false;
stopAllSounds();
_global.PlaySound("goal.mp3");
HideMali();
var _local4 = this._y;
var _local3 = {x:QiMov._x, y:QiMov._y};
QiMov._parent.localToGlobal(_local3);
this["\u5DE6\u722C"]._visible = true;
var timeId = setInterval(function () {
\u5DE6\u722C._parent._y++;
if ((\u5DE6\u722C._parent._y + \u5DE6\u722C._height) > (QiMov._y + QiMov._height)) {
clearInterval(timeId);
LevelUp1(QiMov);
}
}, 10);
};
LevelUp1 = function (QiMov) {
HideMali();
this["\u53F3\u722C"]._visible = true;
this["\u53F3\u722C"]._y = this["\u5DE6\u722C"]._y;
this["\u53F3\u722C"]._x = this["\u5DE6\u722C"]._x + this["\u5DE6\u722C"]._width;
this["\u53F3\u722C"]._visible = false;
QiMov._parent.attachMovie("\u8FC7\u5173Mali", "\u8FC7\u5173Mali", QiMov._parent.getNextHighestDepth());
QiMov._parent["\u8FC7\u5173Mali"]._x = QiMov._parent["\u65D7"]._x + QiMov._parent["\u65D7"]._width;
QiMov._parent["\u8FC7\u5173Mali"]._y = (QiMov._parent["\u65D7"]._y + QiMov._parent["\u65D7"]._height) - QiMov._parent["\u8FC7\u5173Mali"]._height;
QiMov._parent["\u70AE\u5F39"].play();
};
HitTest = function () {
if (!_global.Started) {
return(undefined);
}
var _local9 = false;
var _local6 = 0;
while (_local6 < _global.Map.length) {
var _local4 = _global.Map[_local6];
if (this.hitTest(_local4)) {
var _local5 = {x:_local4._x, y:_local4._y};
_local4._parent.localToGlobal(_local5);
if (_local4._name.indexOf("\u70AE\u5F39") != -1) {
ActorDeath(_local4);
return(false);
}
if (_local4._name.indexOf("\u89E6\u53D1\u5668") != -1) {
if (_local4._name.indexOf("\u673A\u5173") == -1) {
_global.PlayMovie(_local4._name + "\u673A\u5173");
_local4.removeMovieClip();
_global.Map.splice(_local6, 1);
return(false);
}
} else if (_local4._name.indexOf("\u65D7") != -1) {
this._x = _local5.x - 20;
LevelUp(_local4);
return(false);
}
if (((((this._x + this._width) > (_local5.x + _local4._width)) && (vx < 0)) && ((((this._y + this._height) - _global.upspeed) + _global.Gravity) > _local5.y)) && (((this._y - _global.upspeed) + _global.Gravity) < (_local5.y + _local4._height))) {
if (_local4._name.indexOf("Hide") != -1) {
if (_local4._currentFrame == 1) {
return(false);
}
}
if (CheckDeath(_local4)) {
return(undefined);
}
this._x = (_local5.x + _local4._width) + 1;
_local9 = true;
} else if ((((this._x < _local5.x) && (vx > 0)) && ((((this._y + this._height) - _global.upspeed) + _global.Gravity) > _local5.y)) && (((this._y - _global.upspeed) + _global.Gravity) < (_local5.y + _local4._height))) {
if (_local4._name.indexOf("Hide") != -1) {
if (_local4._currentFrame == 1) {
return(false);
}
}
if (CheckDeath(_local4)) {
return(undefined);
}
this._x = (_local5.x - this._width) - 1;
_local9 = true;
} else if ((this._y > _local5.y) && (_global.upspeed < 0)) {
if (CheckDeath(_local4)) {
return(undefined);
}
if (_local4._name.indexOf("\u673A\u5173") != -1) {
ActorDeath(_local4);
return(true);
}
if (_local4._name.indexOf("Box") != -1) {
if (_local4._currentFrame == 1) {
if (_local4._name.indexOf("QuestionBox") != -1) {
_global.PlaySound("brockcoin.mp3");
_local4.gotoAndPlay(2);
} else if (_local4._name.indexOf("BrickBox") != -1) {
var _local8 = _root.attachMovie("\u7816\u788E", "\u7816\u788E" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local8._x = _local5.x;
_local8._y = _local5.y - 20;
_local8._width = (_local8._width * 28) / 20;
_local8._height = (_local8._height * 28) / 20;
_global.PlaySound("brockbreak.mp3");
_local4.gotoAndPlay(2);
} else if (_local4._name.indexOf("UpBox") != -1) {
_local4._y = this._y - _local4._height;
return(false);
}
}
}
this._y = (_local5.y + _local4._height) + 1;
_global.upspeed = -_global.upspeed;
_local9 = true;
} else if (this._y < _local5.y) {
if (_local4._name.indexOf("Hide") != -1) {
if (_local4._currentFrame == 1) {
return(false);
}
}
if (_local4._name.indexOf("\u654C\u4EBA") != -1) {
if (_local4._name.indexOf("\u5F39") != -1) {
this._y = (_local5.y - this._height) - 1;
_global.jump = true;
_global.upspeed = -40;
_global.PlaySound("DirenDeath.mp3");
return(true);
}
var _local7 = _local4._parent.attachMovie("\u654C\u4EBA\u6B7B", "\u654C\u4EBA\u6B7B", _root["\u5730\u56FE"].getNextHighestDepth());
_local7._x = _local4._x;
_local7._y = (_local4._y + _local4._height) - _local7._height;
_local4.gotoAndPlay(2);
_local4.IsDeath = true;
_global.jump = true;
_global.upspeed = -20;
_global.PlaySound("DirenDeath.mp3");
return(true);
}
if (_local4._name.indexOf("\u706B\u7BAD") != -1) {
if ((\u5DE6\u8E72._visible == true) || (\u53F3\u8E72._visible == true)) {
if ((this._x > _local5.x) && ((this._x + this._width) < (_local5.x + _local4._width))) {
if (_local4._currentFrame == 1) {
this._visible = false;
if (\u5DE6\u8E72._visible == true) {
_root["\u5DE6\u8E72\u4E0B"].removeMovieClip();
var _local8 = _root.attachMovie("\u5DE6\u8E72\u4E0B", "\u53F3\u8E72\u4E0B" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local8._x = this._x;
_local8._y = this._y;
}
if (\u53F3\u8E72._visible == true) {
_root["\u53F3\u8E72\u4E0B"].removeMovieClip();
var _local8 = _root.attachMovie("\u53F3\u8E72\u4E0B", "\u53F3\u8E72\u4E0B" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local8._x = this._x;
_local8._y = this._y;
}
_local4.gotoAndPlay(2);
_local8.play();
_global.Started = false;
}
}
}
}
this._y = (_local5.y - this._height) - 1;
_global.upspeed = 0;
_global.jump = false;
_local9 = true;
}
}
_local6++;
}
return(_local9);
};
onEnterFrame = function () {
if (!_global.Started) {
return(undefined);
}
this._y = this._y + _global.upspeed;
_global.upspeed = _global.upspeed + _global.Gravity;
if (_global.upspeed > 30) {
_global.upspeed = 30;
}
if (this._y > _global.StageHeight) {
ActorDeath(this);
return(undefined);
}
if (HitTest()) {
} else if (_global.upspeed > _global.Gravity) {
_global.jump = true;
}
if (_global.MoveLeft) {
if (vx > (-MAX_HORIZONTAL_VELOCITY)) {
vx = vx - HORIZONTAL_ACCELERATION;
}
ShowMali(\u5DE6\u8D70);
_global.Actor.play();
} else if (_global.MoveRight) {
if (vx < MAX_HORIZONTAL_VELOCITY) {
vx = vx + HORIZONTAL_ACCELERATION;
}
ShowMali(\u53F3\u8D70);
_global.Actor.play();
}
if (vx > 0) {
if ((this._x + this._width) < (_global.StageWidth / 2)) {
this._x = this._x + vx;
} else {
_root["\u5730\u56FE"]._x = _root["\u5730\u56FE"]._x - vx;
_root.sky._x = _root.sky._x - (vx / 4);
_global.UpdateStatus();
}
} else if (this._x > 0) {
this._x = this._x + vx;
} else {
this._x = 0;
vx = 0;
}
if (HitTest()) {
vx = 0;
}
vx = vx * HORIZONTAL_DECAY;
if (Math.abs(vx) < (HORIZONTAL_ACCELERATION / 2)) {
vx = 0;
}
if ((vx == 0) && (!_global.jump)) {
_global.Actor.gotoAndStop(1);
}
if (_global.MoveLeft || (_global.MoveRight)) {
_global.Actor.play();
}
if (_global.upspeed == 0) {
HideJump();
}
};
Symbol 170 MovieClip [sky] Frame 1
stop();
var i = 0;
while (i < 13) {
if ((i % 2) == 0) {
this.attachMovie("\u5929\u7A7A1", "\u5929\u7A7A" + i, this.getNextHighestDepth());
} else {
this.attachMovie("\u5929\u7A7A2", "\u5929\u7A7A" + i, this.getNextHighestDepth());
}
this["\u5929\u7A7A" + i]._x = 512 * i;
this["\u5929\u7A7A" + i]._y = 0;
this["\u5929\u7A7A" + i]._width = 512;
this["\u5929\u7A7A" + i]._height = 448;
i++;
}
this._width = 512 * (i + 1);
this._height = 448;
Symbol 177 MovieClip [砖碎] Frame 9
this.removeMovieClip();
Symbol 177 MovieClip [砖碎] Frame 11
this.removeMovieClip();
stop();
Symbol 180 MovieClip [左爬] Frame 1
stop();
Symbol 181 MovieClip [右爬] Frame 1
stop();
Symbol 194 Button
on (release) {
getURL ("http://www.twitter.com/freegameswow", "_blank");
}
Symbol 198 Button
on (release) {
getURL ("http://www.facebook.com/freegameswow", "_blank");
}
Symbol 205 MovieClip Frame 1
Instance of Symbol 186 MovieClip in Symbol 206 MovieClip [开始框] Frame 1
on (release) {
_global.Start();
}
Instance of Symbol 189 MovieClip in Symbol 206 MovieClip [开始框] Frame 1
/* no clip actions */
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip [开始框] Frame 1
on (release) {
getURL ("http://www.freegameswow.com", "_blank");
}
Instance of Symbol 36 MovieClip [更多按钮] in Symbol 206 MovieClip [开始框] Frame 1
on (release) {
getURL ("http://www.freegameswow.com", "_blank");
}
Symbol 214 MovieClip Frame 1
stop();