You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
870 lines
25 KiB
870 lines
25 KiB
(function (cjs, an) {
|
|
|
|
var p; // shortcut to reference prototypes
|
|
var lib={};var ss={};var img={};
|
|
lib.ssMetadata = [
|
|
{name:"pullRadish_v1.6_atlas_1", frames: [[1026,309,400,99],[1428,309,400,99],[1882,517,124,46],[1026,0,435,307],[1795,410,29,29],[1987,165,53,53],[1618,410,88,89],[1695,501,73,67],[1708,410,85,89],[1933,418,91,97],[1428,410,93,92],[1523,410,93,92],[0,475,1024,350],[0,0,1024,473],[1770,523,108,31],[1428,504,112,30],[1830,323,101,126],[1900,165,85,156],[1900,0,120,163],[1933,323,104,93],[1463,0,435,307],[1026,410,400,99],[1795,451,85,70],[1618,501,75,75]]}
|
|
];
|
|
|
|
|
|
(lib.AnMovieClip = function(){
|
|
this.actionFrames = [];
|
|
this.ignorePause = false;
|
|
this.gotoAndPlay = function(positionOrLabel){
|
|
cjs.MovieClip.prototype.gotoAndPlay.call(this,positionOrLabel);
|
|
}
|
|
this.play = function(){
|
|
cjs.MovieClip.prototype.play.call(this);
|
|
}
|
|
this.gotoAndStop = function(positionOrLabel){
|
|
cjs.MovieClip.prototype.gotoAndStop.call(this,positionOrLabel);
|
|
}
|
|
this.stop = function(){
|
|
cjs.MovieClip.prototype.stop.call(this);
|
|
}
|
|
}).prototype = p = new cjs.MovieClip();
|
|
// symbols:
|
|
|
|
|
|
|
|
(lib.开始按钮 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(0);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.开始训练 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(1);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.分数 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(2);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.倒计时 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(3);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.B1 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(4);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.B2 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(5);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.B3 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(6);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.B4 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(7);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.B5 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(8);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.B6 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(9);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.B7 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(10);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.B8 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(11);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.bg_grassland = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(12);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.bg_ground = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(13);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.hole1 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(14);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.hole2 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(15);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.LB1 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(16);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.rabit1 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(17);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.rabit2 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(18);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.radish = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(19);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.任务完成 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(20);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.再来一次 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(21);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.计时 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(22);
|
|
}).prototype = p = new cjs.Sprite();
|
|
|
|
|
|
|
|
(lib.返回按钮 = function() {
|
|
this.initialize(ss["pullRadish_v1.6_atlas_1"]);
|
|
this.gotoAndStop(23);
|
|
}).prototype = p = new cjs.Sprite();
|
|
// helper functions:
|
|
|
|
function mc_symbol_clone() {
|
|
var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop, this.reversed));
|
|
clone.gotoAndStop(this.currentFrame);
|
|
clone.paused = this.paused;
|
|
clone.framerate = this.framerate;
|
|
return clone;
|
|
}
|
|
|
|
function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) {
|
|
var prototype = cjs.extend(symbol, cjs.MovieClip);
|
|
prototype.clone = mc_symbol_clone;
|
|
prototype.nominalBounds = nominalBounds;
|
|
prototype.frameBounds = frameBounds;
|
|
return prototype;
|
|
}
|
|
|
|
|
|
(lib.timeBg = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
this.isSingleFrame = false;
|
|
// timeline functions:
|
|
this.frame_0 = function() {
|
|
if(this.isSingleFrame) {
|
|
return;
|
|
}
|
|
if(this.totalFrames == 1) {
|
|
this.isSingleFrame = true;
|
|
}
|
|
this.stop();
|
|
}
|
|
|
|
// actions tween:
|
|
this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1));
|
|
|
|
// timeBg
|
|
this.instance = new lib.计时();
|
|
this.instance.setTransform(-60,-49,1.4118,1.4121);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.timeBg, new cjs.Rectangle(-60,-49,120,98.9), null);
|
|
|
|
|
|
(lib.scoreBg = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
this.isSingleFrame = false;
|
|
// timeline functions:
|
|
this.frame_0 = function() {
|
|
if(this.isSingleFrame) {
|
|
return;
|
|
}
|
|
if(this.totalFrames == 1) {
|
|
this.isSingleFrame = true;
|
|
}
|
|
this.stop();
|
|
}
|
|
|
|
// actions tween:
|
|
this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1));
|
|
|
|
// scoreBg
|
|
this.instance = new lib.分数();
|
|
this.instance.setTransform(-62,-23);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.scoreBg, new cjs.Rectangle(-62,-23,124,46), null);
|
|
|
|
|
|
(lib.LB1_1 = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.LB1();
|
|
this.instance.setTransform(-50.5,-63);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.LB1_1, new cjs.Rectangle(-50.5,-63,101,126), null);
|
|
|
|
|
|
(lib.hole = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {hole_normal:0,hole_active:1};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// timeline functions:
|
|
this.frame_0 = function() {
|
|
this.stop();
|
|
}
|
|
this.frame_1 = function() {
|
|
this.stop();
|
|
}
|
|
|
|
// actions tween:
|
|
this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1));
|
|
|
|
// Hole
|
|
this.instance = new lib.hole1();
|
|
|
|
this.instance_1 = new lib.hole2();
|
|
this.instance_1.setTransform(0,1);
|
|
|
|
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = p = new cjs.MovieClip();
|
|
p.nominalBounds = new cjs.Rectangle(0,0,112,31);
|
|
|
|
|
|
(lib.补间3 = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.radish();
|
|
this.instance.setTransform(-52,-46.5);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = p = new cjs.MovieClip();
|
|
p.nominalBounds = new cjs.Rectangle(-52,-46.5,104,93);
|
|
|
|
|
|
(lib.补间1 = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.rabit2();
|
|
this.instance.setTransform(-60,-81.5);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = p = new cjs.MovieClip();
|
|
p.nominalBounds = new cjs.Rectangle(-60,-81.5,120,163);
|
|
|
|
|
|
(lib.bgModalEnd = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.任务完成();
|
|
this.instance.setTransform(-218,-154);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.bgModalEnd, new cjs.Rectangle(-218,-154,435,307), null);
|
|
|
|
|
|
(lib.btnBack = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.返回按钮();
|
|
this.instance.setTransform(0,-38);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.btnBack, new cjs.Rectangle(0,-38,75,75), null);
|
|
|
|
|
|
(lib.btnBegin = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.开始按钮();
|
|
this.instance.setTransform(-180,-50,0.9,1);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.btnBegin, new cjs.Rectangle(-180,-50,360,99), null);
|
|
|
|
|
|
(lib.bomb = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {bomb_start:0,bomb_end:8};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// timeline functions:
|
|
this.frame_8 = function() {
|
|
this.stop();
|
|
}
|
|
|
|
// actions tween:
|
|
this.timeline.addTween(cjs.Tween.get(this).wait(8).call(this.frame_8).wait(1));
|
|
|
|
// bomb
|
|
this.instance = new lib.B1();
|
|
this.instance.setTransform(-15,-15);
|
|
|
|
this.instance_1 = new lib.B2();
|
|
this.instance_1.setTransform(-27,-27);
|
|
|
|
this.instance_2 = new lib.B3();
|
|
this.instance_2.setTransform(-44,-45);
|
|
|
|
this.instance_3 = new lib.B4();
|
|
this.instance_3.setTransform(-37,-34);
|
|
|
|
this.instance_4 = new lib.B5();
|
|
this.instance_4.setTransform(-43,-45);
|
|
|
|
this.instance_5 = new lib.B6();
|
|
this.instance_5.setTransform(-46,-49);
|
|
|
|
this.instance_6 = new lib.B7();
|
|
this.instance_6.setTransform(-47,-46);
|
|
|
|
this.instance_7 = new lib.B8();
|
|
this.instance_7.setTransform(-47,-46);
|
|
|
|
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).to({state:[{t:this.instance_3}]},1).to({state:[{t:this.instance_4}]},1).to({state:[{t:this.instance_5}]},1).to({state:[{t:this.instance_6}]},1).to({state:[{t:this.instance_7}]},1).to({state:[]},1).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = p = new cjs.MovieClip();
|
|
p.nominalBounds = new cjs.Rectangle(-47,-49,93,97);
|
|
|
|
|
|
(lib.btnBeginTrain = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.开始训练();
|
|
this.instance.setTransform(-180,-50,0.9,1.0101);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.btnBeginTrain, new cjs.Rectangle(-180,-50,360,100), null);
|
|
|
|
|
|
(lib.bgModalBegin = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.倒计时();
|
|
this.instance.setTransform(-218,-154);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.bgModalBegin, new cjs.Rectangle(-218,-154,435,307), null);
|
|
|
|
|
|
(lib.btnAgain = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.再来一次();
|
|
this.instance.setTransform(-125,-35,0.625,0.707);
|
|
|
|
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = getMCSymbolPrototype(lib.btnAgain, new cjs.Rectangle(-125,-35,250,70), null);
|
|
|
|
|
|
(lib.radish_1 = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {radish_normal:0,radish_start:1,radish_fly_start:10,radish_bomb_start:12,"radish_fly_start":17,"radish_bomb_start":22,"radish_bomb_start":28,radish_bomb_end:36};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// timeline functions:
|
|
this.frame_0 = function() {
|
|
this.stop();
|
|
}
|
|
this.frame_36 = function() {
|
|
this.stop();
|
|
}
|
|
|
|
// actions tween:
|
|
this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(36).call(this.frame_36).wait(1));
|
|
|
|
// radish
|
|
this.instance = new lib.radish();
|
|
this.instance.setTransform(-52,-47);
|
|
|
|
this.instance_1 = new lib.补间3("synched",0);
|
|
this.instance_1.setTransform(0,-0.5);
|
|
this.instance_1._off = true;
|
|
|
|
this.instance_2 = new lib.LB1_1();
|
|
this.instance_2.setTransform(-1.55,-0.1,0.9306,0.9303,0,0,0,-0.1,-0.1);
|
|
this.instance_2.alpha = 0.5313;
|
|
this.instance_2._off = true;
|
|
|
|
this.instance_3 = new lib.B1();
|
|
this.instance_3.setTransform(-92,-89);
|
|
this.instance_3._off = true;
|
|
|
|
this.instance_4 = new lib.B2();
|
|
this.instance_4.setTransform(-104,-101);
|
|
this.instance_4._off = true;
|
|
|
|
this.instance_5 = new lib.B3();
|
|
this.instance_5.setTransform(-121,-119);
|
|
this.instance_5._off = true;
|
|
|
|
this.instance_6 = new lib.B4();
|
|
this.instance_6.setTransform(-114,-108);
|
|
this.instance_6._off = true;
|
|
|
|
this.instance_7 = new lib.B5();
|
|
this.instance_7.setTransform(-120,-119);
|
|
this.instance_7._off = true;
|
|
|
|
this.instance_8 = new lib.B6();
|
|
this.instance_8.setTransform(-123,-123);
|
|
this.instance_8._off = true;
|
|
|
|
this.instance_9 = new lib.B7();
|
|
this.instance_9.setTransform(-124,-120);
|
|
this.instance_9._off = true;
|
|
|
|
this.instance_10 = new lib.B8();
|
|
this.instance_10.setTransform(-124,-123);
|
|
|
|
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},11).to({state:[{t:this.instance_1}]},11).to({state:[{t:this.instance_2}]},1).to({state:[{t:this.instance_2}]},3).to({state:[{t:this.instance_3}]},1).to({state:[{t:this.instance_4}]},1).to({state:[{t:this.instance_5}]},1).to({state:[{t:this.instance_6}]},1).to({state:[{t:this.instance_7}]},1).to({state:[{t:this.instance_8}]},1).to({state:[{t:this.instance_9}]},1).to({state:[{t:this.instance_10}]},1).to({state:[]},1).wait(1));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(1).to({_off:false},0).to({scaleX:0.8654,scaleY:0.8651,y:-0.45},11).to({scaleX:1,scaleY:1,y:-0.5},11).to({_off:true,regX:-0.1,regY:-0.1,scaleX:0.9306,scaleY:0.9303,x:-1.55,y:-0.1,alpha:0.5313,mode:"independent"},1).wait(13));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(23).to({_off:false},1).to({regX:0.1,scaleX:0.594,scaleY:0.594,rotation:-14.9986,x:-77.5,y:-75.05},3).to({_off:true,regX:0,regY:0,scaleX:1,scaleY:1,rotation:0,x:-92,y:-89,alpha:1},1).wait(9));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(27).to({_off:false},1).to({_off:true,x:-104,y:-101},1).wait(8));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_4).wait(28).to({_off:false},1).to({_off:true,x:-121,y:-119},1).wait(7));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_5).wait(29).to({_off:false},1).to({_off:true,x:-114,y:-108},1).wait(6));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_6).wait(30).to({_off:false},1).to({_off:true,x:-120,y:-119},1).wait(5));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(31).to({_off:false},1).to({_off:true,x:-123,y:-123},1).wait(4));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_8).wait(32).to({_off:false},1).to({_off:true,x:-124,y:-120},1).wait(3));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_9).wait(33).to({_off:false},1).to({_off:true,y:-123},1).wait(2));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = p = new cjs.MovieClip();
|
|
p.nominalBounds = new cjs.Rectangle(-124,-123,176,181.6);
|
|
|
|
|
|
(lib.rabbitCell = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = true; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {rabbit_normal:0,rabbit_start:1,rabbit_end:31};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// timeline functions:
|
|
this.frame_0 = function() {
|
|
this.stop();
|
|
}
|
|
this.frame_31 = function() {
|
|
this.stop();
|
|
}
|
|
|
|
// actions tween:
|
|
this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(31).call(this.frame_31).wait(1));
|
|
|
|
// rabit
|
|
this.instance = new lib.rabit1();
|
|
this.instance.setTransform(-43,-78);
|
|
|
|
this.instance_1 = new lib.补间1("synched",0);
|
|
this.instance_1._off = true;
|
|
|
|
this.instance_2 = new lib.B2();
|
|
this.instance_2.setTransform(-27,-27);
|
|
this.instance_2._off = true;
|
|
|
|
this.instance_3 = new lib.B3();
|
|
this.instance_3.setTransform(-44,-45);
|
|
this.instance_3._off = true;
|
|
|
|
this.instance_4 = new lib.B4();
|
|
this.instance_4.setTransform(-37,-34);
|
|
this.instance_4._off = true;
|
|
|
|
this.instance_5 = new lib.B5();
|
|
this.instance_5.setTransform(-43,-45);
|
|
this.instance_5._off = true;
|
|
|
|
this.instance_6 = new lib.B6();
|
|
this.instance_6.setTransform(-46,-49);
|
|
this.instance_6._off = true;
|
|
|
|
this.instance_7 = new lib.B7();
|
|
this.instance_7.setTransform(-47,-46);
|
|
this.instance_7._off = true;
|
|
|
|
this.instance_8 = new lib.B8();
|
|
this.instance_8.setTransform(-47,-46);
|
|
|
|
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},11).to({state:[{t:this.instance_1}]},11).to({state:[{t:this.instance_2}]},1).to({state:[{t:this.instance_3}]},1).to({state:[{t:this.instance_4}]},1).to({state:[{t:this.instance_5}]},1).to({state:[{t:this.instance_6}]},1).to({state:[{t:this.instance_7}]},1).to({state:[{t:this.instance_8}]},1).to({state:[]},1).wait(1));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(1).to({_off:false},0).to({scaleX:0.9167,scaleY:0.9166},11).to({scaleX:1,scaleY:1},11).to({_off:true,x:-27,y:-27},1).wait(8));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(23).to({_off:false},1).to({_off:true,x:-44,y:-45},1).wait(7));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(24).to({_off:false},1).to({_off:true,x:-37,y:-34},1).wait(6));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_4).wait(25).to({_off:false},1).to({_off:true,x:-43,y:-45},1).wait(5));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_5).wait(26).to({_off:false},1).to({_off:true,x:-46,y:-49},1).wait(4));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_6).wait(27).to({_off:false},1).to({_off:true,x:-47,y:-46},1).wait(3));
|
|
this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(28).to({_off:false},1).to({_off:true},1).wait(2));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = p = new cjs.MovieClip();
|
|
p.nominalBounds = new cjs.Rectangle(-60,-81.5,120,163);
|
|
|
|
|
|
// stage content:
|
|
(lib.pullRadishv16 = function(mode,startPosition,loop,reversed) {
|
|
if (loop == null) { loop = false; }
|
|
if (reversed == null) { reversed = false; }
|
|
var props = new Object();
|
|
props.mode = mode;
|
|
props.startPosition = startPosition;
|
|
props.labels = {bgm:0};
|
|
props.loop = loop;
|
|
props.reversed = reversed;
|
|
cjs.MovieClip.apply(this,[props]);
|
|
|
|
// 图层_1
|
|
this.instance = new lib.bg_ground();
|
|
this.instance.setTransform(0.5,214,1,1.1733);
|
|
|
|
this.instance_1 = new lib.bg_grassland();
|
|
this.instance_1.setTransform(0.5,-73);
|
|
|
|
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_1},{t:this.instance}]}).wait(1));
|
|
|
|
this._renderFirstFrame();
|
|
|
|
}).prototype = p = new lib.AnMovieClip();
|
|
p.nominalBounds = new cjs.Rectangle(512.5,311,512,458);
|
|
// library properties:
|
|
lib.properties = {
|
|
id: '94CA090E719F4688AE0D01901C9EA0D7',
|
|
width: 1024,
|
|
height: 768,
|
|
fps: 24,
|
|
color: "#F5F5F5",
|
|
opacity: 0.00,
|
|
manifest: [
|
|
{src:"images/pullRadish_v1.6_atlas_1.png", id:"pullRadish_v1.6_atlas_1"},
|
|
{src:"sounds/excitationMusic.mp3", id:"excitationMusic"}
|
|
],
|
|
preloads: []
|
|
};
|
|
|
|
|
|
|
|
// bootstrap callback support:
|
|
|
|
(lib.Stage = function(canvas) {
|
|
createjs.Stage.call(this, canvas);
|
|
}).prototype = p = new createjs.Stage();
|
|
|
|
p.setAutoPlay = function(autoPlay) {
|
|
this.tickEnabled = autoPlay;
|
|
}
|
|
p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) }
|
|
p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; }
|
|
p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); }
|
|
p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; }
|
|
|
|
p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; }
|
|
|
|
an.bootcompsLoaded = an.bootcompsLoaded || [];
|
|
if(!an.bootstrapListeners) {
|
|
an.bootstrapListeners=[];
|
|
}
|
|
|
|
an.bootstrapCallback=function(fnCallback) {
|
|
an.bootstrapListeners.push(fnCallback);
|
|
if(an.bootcompsLoaded.length > 0) {
|
|
for(var i=0; i<an.bootcompsLoaded.length; ++i) {
|
|
fnCallback(an.bootcompsLoaded[i]);
|
|
}
|
|
}
|
|
};
|
|
|
|
an.compositions = an.compositions || {};
|
|
an.compositions['94CA090E719F4688AE0D01901C9EA0D7'] = {
|
|
getStage: function() { return exportRoot.stage; },
|
|
getLibrary: function() { return lib; },
|
|
getSpriteSheet: function() { return ss; },
|
|
getImages: function() { return img; }
|
|
};
|
|
|
|
an.compositionLoaded = function(id) {
|
|
an.bootcompsLoaded.push(id);
|
|
for(var j=0; j<an.bootstrapListeners.length; j++) {
|
|
an.bootstrapListeners[j](id);
|
|
}
|
|
}
|
|
|
|
an.getComposition = function(id) {
|
|
return an.compositions[id];
|
|
}
|
|
|
|
|
|
an.makeResponsive = function(isResp, respDim, isScale, scaleType, domContainers) {
|
|
var lastW, lastH, lastS=1;
|
|
window.addEventListener('resize', resizeCanvas);
|
|
resizeCanvas();
|
|
function resizeCanvas() {
|
|
var w = lib.properties.width, h = lib.properties.height;
|
|
var iw = window.innerWidth, ih=window.innerHeight;
|
|
var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;
|
|
if(isResp) {
|
|
if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {
|
|
sRatio = lastS;
|
|
}
|
|
else if(!isScale) {
|
|
if(iw<w || ih<h)
|
|
sRatio = Math.min(xRatio, yRatio);
|
|
}
|
|
else if(scaleType==1) {
|
|
sRatio = Math.min(xRatio, yRatio);
|
|
}
|
|
else if(scaleType==2) {
|
|
sRatio = Math.max(xRatio, yRatio);
|
|
}
|
|
}
|
|
domContainers[0].width = w * pRatio * sRatio;
|
|
domContainers[0].height = h * pRatio * sRatio;
|
|
domContainers.forEach(function(container) {
|
|
container.style.width = w * sRatio + 'px';
|
|
container.style.height = h * sRatio + 'px';
|
|
});
|
|
stage.scaleX = pRatio*sRatio;
|
|
stage.scaleY = pRatio*sRatio;
|
|
lastW = iw; lastH = ih; lastS = sRatio;
|
|
stage.tickOnUpdate = false;
|
|
stage.update();
|
|
stage.tickOnUpdate = true;
|
|
}
|
|
}
|
|
an.handleSoundStreamOnTick = function(event) {
|
|
if(!event.paused){
|
|
var stageChild = stage.getChildAt(0);
|
|
if(!stageChild.paused || stageChild.ignorePause){
|
|
stageChild.syncStreamSounds();
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
|
|
var createjs, AdobeAn;
|
|
|