Section 1
//bsyj_11_176 (cherry_fla.bsyj_11_176)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class bsyj_11_176 extends MovieClip {
public function bsyj_11_176(){
addFrameScript(0, frame1);
}
function frame1(){
addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameRetry);
}
}
}//package cherry_fla
Section 2
//bsyj_13_173 (cherry_fla.bsyj_13_173)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class bsyj_13_173 extends MovieClip {
public function bsyj_13_173(){
addFrameScript(0, frame1);
}
function frame1(){
addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameMenu);
}
}
}//package cherry_fla
Section 3
//bsyj_24_165 (cherry_fla.bsyj_24_165)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class bsyj_24_165 extends MovieClip {
public var More_bt:SimpleButton;
public function bsyj_24_165(){
addFrameScript(0, frame1);
}
function frame1(){
More_bt.addEventListener(MouseEvent.CLICK, MovieClip(root).moregamelink);
}
}
}//package cherry_fla
Section 4
//bsyj_7_179 (cherry_fla.bsyj_7_179)
package cherry_fla {
import flash.display.*;
public dynamic class bsyj_7_179 extends MovieClip {
public function bsyj_7_179(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package cherry_fla
Section 5
//bsyj_8_171 (cherry_fla.bsyj_8_171)
package cherry_fla {
import flash.display.*;
public dynamic class bsyj_8_171 extends MovieClip {
public function bsyj_8_171(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package cherry_fla
Section 6
//bsyj_9_181 (cherry_fla.bsyj_9_181)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class bsyj_9_181 extends MovieClip {
public function bsyj_9_181(){
addFrameScript(0, frame1);
}
function frame1(){
addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameNext);
}
}
}//package cherry_fla
Section 7
//logo07_103 (cherry_fla.logo07_103)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class logo07_103 extends MovieClip {
public function logo07_103(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = (this.buttonMode = (this.useHandCursor = true));
this.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
}
}
}//package cherry_fla
Section 8
//Prelaoder_0026_53 (cherry_fla.Prelaoder_0026_53)
package cherry_fla {
import flash.display.*;
public dynamic class Prelaoder_0026_53 extends MovieClip {
public function Prelaoder_0026_53(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package cherry_fla
Section 9
//Prelaoder_0034_52 (cherry_fla.Prelaoder_0034_52)
package cherry_fla {
import flash.display.*;
public dynamic class Prelaoder_0034_52 extends MovieClip {
public function Prelaoder_0034_52(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package cherry_fla
Section 10
//Prelaoder_0040_51 (cherry_fla.Prelaoder_0040_51)
package cherry_fla {
import flash.display.*;
public dynamic class Prelaoder_0040_51 extends MovieClip {
public function Prelaoder_0040_51(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package cherry_fla
Section 11
//Timeline_148 (cherry_fla.Timeline_148)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_148 extends MovieClip {
public var completenum:Number;
public var completefd:Number;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p4:MovieClip;
public var p5:MovieClip;
public var p6:MovieClip;
public var p7:MovieClip;
public var p8:MovieClip;
public var d1:MovieClip;
public var d2:MovieClip;
public var d3:MovieClip;
public var d4:MovieClip;
public var prompt_mc:MovieClip;
public var d6:MovieClip;
public var d7:MovieClip;
public var d8:MovieClip;
public var hint_mc:MovieClip;
public var d5:MovieClip;
public var countright:Number;
public function Timeline_148(){
addFrameScript(0, frame1);
}
public function hintlist(_arg1:Event){
if (!MovieClip(root).gamestop){
_arg1.currentTarget.listtime--;
if (_arg1.currentTarget.listtime > 89){
_arg1.currentTarget.alpha = (_arg1.currentTarget.alpha + 0.1);
} else {
if ((((_arg1.currentTarget.listtime > 0)) && ((_arg1.currentTarget.listtime < 11)))){
_arg1.currentTarget.alpha = (_arg1.currentTarget.alpha - 0.1);
} else {
if (_arg1.currentTarget.listtime == 0){
_arg1.currentTarget.gotoAndStop(_arg1.currentTarget.totalFrames);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, hintlist);
};
};
};
};
}
public function moveptod(_arg1:Event){
if (_arg1.currentTarget.jl < 10){
_arg1.currentTarget.jl++;
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.movex);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.movey);
} else {
if (_arg1.currentTarget.alpha > 0){
_arg1.currentTarget.alpha = (_arg1.currentTarget.alpha - 0.1);
} else {
_arg1.currentTarget.parent[("d" + _arg1.currentTarget.n)].play();
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, moveptod);
};
};
}
public function prompt_fun(_arg1:MouseEvent){
var _local2:*;
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local2 = 1;
while (_local2 <= 8) {
trace(_arg1.currentTarget.parent[("p" + _local2)].jl);
if (_arg1.currentTarget.parent[("p" + _local2)].jl == 0){
break;
};
_local2++;
};
if (_local2 <= 8){
_arg1.currentTarget.parent.hint_mc.gotoAndStop(_local2);
_arg1.currentTarget.parent.hint_mc.alpha = 0;
_arg1.currentTarget.parent.hint_mc.listtime = 100;
_arg1.currentTarget.parent.hint_mc.addEventListener(Event.ENTER_FRAME, hintlist);
};
_arg1.currentTarget.gotoAndPlay(1);
};
}
public function findp(_arg1:MouseEvent){
completenum = (completenum + completefd);
MovieClip(root).stepgo(completenum);
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, findp);
_arg1.currentTarget.addEventListener(Event.ENTER_FRAME, moveptod);
}
function frame1(){
completenum = 0;
completefd = (1 / 8);
initlevel();
}
public function prompt_ctrl(_arg1:Event){
if (!MovieClip(root).gamestop){
if (_arg1.currentTarget.currentFrame != _arg1.currentTarget.totalFrames){
_arg1.currentTarget.play();
};
} else {
_arg1.currentTarget.stop();
};
}
public function nextlevel(){
prompt_mc.removeEventListener(MouseEvent.CLICK, prompt_fun);
prompt_mc.removeEventListener(Event.ENTER_FRAME, prompt_ctrl);
prompt_mc.stop();
if (hint_mc.listtime != 0){
hint_mc.removeEventListener(Event.ENTER_FRAME, hintlist);
};
MovieClip(root).gamestop = true;
MovieClip(root).post_mc.gotoAndStop(2);
}
public function initlevel(){
countright = 0;
var _local1:* = 1;
while (_local1 <= 8) {
this[("p" + _local1)].visible = true;
this[("d" + _local1)].gotoAndStop(1);
this[("p" + _local1)].n = _local1;
this[("p" + _local1)].movex = ((this[("d" + _local1)].x - this[("p" + _local1)].x) / 10);
this[("p" + _local1)].movey = ((this[("d" + _local1)].y - this[("p" + _local1)].y) / 10);
this[("p" + _local1)].jl = 0;
this[("p" + _local1)].addEventListener(MouseEvent.CLICK, findp);
_local1++;
};
hint_mc.gotoAndStop(this.hint_mc.totalFrames);
hint_mc.listtime = 0;
prompt_mc.addEventListener(MouseEvent.CLICK, prompt_fun);
prompt_mc.addEventListener(Event.ENTER_FRAME, prompt_ctrl);
prompt_mc.gotoAndPlay(1);
}
}
}//package cherry_fla
Section 12
//Timeline_149 (cherry_fla.Timeline_149)
package cherry_fla {
import flash.display.*;
public dynamic class Timeline_149 extends MovieClip {
public function Timeline_149(){
addFrameScript(0, frame1, 184, frame185);
}
function frame185(){
stop();
this.buttonMode = true;
}
function frame1(){
this.buttonMode = false;
}
}
}//package cherry_fla
Section 13
//Timeline_153 (cherry_fla.Timeline_153)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_153 extends MovieClip {
public function Timeline_153(){
addFrameScript(0, frame1, 1, frame2, 5, frame6);
}
function frame6(){
stop();
MovieClip(root).level1_mc.countright++;
if (MovieClip(root).level1_mc.countright >= 8){
MovieClip(root).level1_mc.nextlevel();
};
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package cherry_fla
Section 14
//Timeline_185 (cherry_fla.Timeline_185)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_185 extends MovieClip {
public var completenum:Number;
public var completefd:Number;
public function Timeline_185(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 5, frame6, 7, frame8, 9, frame10, 11, frame12, 13, frame14, 15, frame16, 19, frame20, 20, frame21);
}
function frame20(){
MovieClip(root).levelstop = true;
}
function frame1(){
completenum = 0;
completefd = (1 / 8);
MovieClip(root).levelstop = false;
this.addEventListener(Event.ENTER_FRAME, ctrldh);
}
function frame2(){
MovieClip(root).levelstop = true;
}
function frame4(){
MovieClip(root).levelstop = true;
}
function frame6(){
MovieClip(root).levelstop = true;
}
function frame8(){
MovieClip(root).levelstop = true;
}
function frame10(){
MovieClip(root).levelstop = true;
}
function frame12(){
MovieClip(root).levelstop = true;
}
public function ctrldh(_arg1:Event){
if (MovieClip(root).gamestop){
_arg1.currentTarget.stop();
} else {
if (MovieClip(root).levelstop){
_arg1.currentTarget.stop();
} else {
_arg1.currentTarget.play();
};
};
}
function frame14(){
MovieClip(root).levelstop = true;
}
function frame16(){
MovieClip(root).levelstop = true;
}
function frame21(){
MovieClip(root).gamestop = true;
MovieClip(root).post_mc.gotoAndStop(2);
}
}
}//package cherry_fla
Section 15
//Timeline_189 (cherry_fla.Timeline_189)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_189 extends MovieClip {
public var point_count;
public var point_1:MovieClip;
public var point_2:MovieClip;
public var point_3:MovieClip;
public var isDown:Boolean;
public function Timeline_189(){
addFrameScript(0, frame1);
}
public function onDown(_arg1:MouseEvent):void{
isDown = true;
}
public function onMove(_arg1:MouseEvent):void{
if (isDown){
if (point_count < 4){
if (this[("point_" + point_count)].hitTestPoint(MovieClip(root).mouseX, MovieClip(root).mouseY, true)){
point_count++;
};
} else {
isDown = false;
MovieClip(parent).completenum = (MovieClip(parent).completenum + MovieClip(parent).completefd);
MovieClip(root).stepgo(MovieClip(parent).completenum);
MovieClip(root).levelstop = false;
};
};
}
function frame1(){
point_count = 1;
isDown = false;
this.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.addEventListener(MouseEvent.MOUSE_UP, onUp);
this.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
}
public function onUp(_arg1:MouseEvent):void{
isDown = false;
point_count = 1;
}
}
}//package cherry_fla
Section 16
//Timeline_193 (cherry_fla.Timeline_193)
package cherry_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_193 extends MovieClip {
public var isDown:Boolean;
public var oldX:Number;
public var oldY:Number;
public var linesize:uint;
public function Timeline_193(){
addFrameScript(0, frame1);
}
public function onDown(_arg1:MouseEvent):void{
isDown = true;
oldX = mouseX;
oldY = mouseY;
}
function frame1(){
linesize = 2;
isDown = false;
this.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.addEventListener(MouseEvent.MOUSE_UP, onUp);
this.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
}
public function onMove(_arg1:MouseEvent):void{
if (isDown){
graphics.lineStyle(linesize, 0xFFFFFF);
graphics.moveTo(oldX, oldY);
graphics.lineTo(mouseX, mouseY);
oldX = mouseX;
oldY = mouseY;
};
}
public function onUp(_arg1:MouseEvent):void{
isDown = false;
graphics.clear();
}
}
}//package cherry_fla
Section 17
//Timeline_194 (cherry_fla.Timeline_194)
package cherry_fla {
import flash.display.*;
public dynamic class Timeline_194 extends MovieClip {
public function Timeline_194(){
addFrameScript(0, frame1);
}
function frame1(){
mouseEnabled = false;
startDrag(true);
}
}
}//package cherry_fla
Section 18
//Timeline_195 (cherry_fla.Timeline_195)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_195 extends MovieClip {
public var completenum:Number;
public var completefd:Number;
public var s1:MovieClip;
public function Timeline_195(){
addFrameScript(0, frame1, 1, frame2, 77, frame78, 79, frame80, 115, frame116, 117, frame118, 184, frame185, 186, frame187, 260, frame261, 318, frame319, 320, frame321, 383, frame384, 385, frame386, 421, frame422, 470, frame471, 471, frame472);
}
function frame261(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(0);
}
function frame185(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(4);
}
function frame384(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(6);
}
function frame187(){
MovieClip(root).hintlist(0);
}
function frame1(){
stop();
completenum = 0;
completefd = (1 / 8);
MovieClip(root).levelstop = true;
this.addEventListener(Event.ENTER_FRAME, ctrldh);
MovieClip(root).hintlist(1);
}
function frame2(){
MovieClip(root).hintlist(0);
}
function frame422(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(0);
}
function frame471(){
MovieClip(root).levelstop = true;
}
function frame116(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(3);
}
function frame118(){
MovieClip(root).hintlist(0);
}
function frame80(){
MovieClip(root).hintlist(0);
}
function frame78(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(2);
}
public function ctrldh(_arg1:Event){
if (MovieClip(root).gamestop){
_arg1.currentTarget.stop();
} else {
if (MovieClip(root).levelstop){
_arg1.currentTarget.stop();
} else {
_arg1.currentTarget.play();
};
};
}
function frame472(){
MovieClip(root).gamestop = true;
MovieClip(root).post_mc.gotoAndStop(2);
}
function frame386(){
MovieClip(root).hintlist(0);
}
function frame321(){
MovieClip(root).hintlist(0);
}
function frame319(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(5);
}
}
}//package cherry_fla
Section 19
//Timeline_204 (cherry_fla.Timeline_204)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_204 extends MovieClip {
public function Timeline_204(){
addFrameScript(0, frame1);
}
public function thisDown(_arg1:MouseEvent):void{
MovieClip(parent).completenum = (MovieClip(parent).completenum + MovieClip(parent).completefd);
MovieClip(root).stepgo(MovieClip(parent).completenum);
MovieClip(root).levelstop = false;
}
function frame1(){
buttonMode = true;
MovieClip(parent).stop();
addEventListener(MouseEvent.MOUSE_DOWN, thisDown);
}
}
}//package cherry_fla
Section 20
//Timeline_209 (cherry_fla.Timeline_209)
package cherry_fla {
import flash.display.*;
public dynamic class Timeline_209 extends MovieClip {
public var wp_mc:MovieClip;
public function Timeline_209(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package cherry_fla
Section 21
//Timeline_214 (cherry_fla.Timeline_214)
package cherry_fla {
import flash.display.*;
public dynamic class Timeline_214 extends MovieClip {
public function Timeline_214(){
addFrameScript(0, frame1);
}
function frame1(){
startDrag(true);
}
}
}//package cherry_fla
Section 22
//Timeline_215 (cherry_fla.Timeline_215)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_215 extends MovieClip {
public var completenum:Number;
public var completefd:Number;
public function Timeline_215(){
addFrameScript(0, frame1, 20, frame21, 30, frame31, 32, frame33, 112, frame113, 123, frame124, 134, frame135, 147, frame148, 148, frame149);
}
function frame1(){
stop();
completenum = 0;
completefd = (1 / 6);
MovieClip(root).levelstop = true;
this.addEventListener(Event.ENTER_FRAME, ctrldh);
}
function frame135(){
MovieClip(root).levelstop = true;
}
function frame148(){
MovieClip(root).levelstop = true;
}
function frame149(){
MovieClip(root).gamestop = true;
MovieClip(root).post_mc.gotoAndStop(2);
}
function frame31(){
MovieClip(root).levelstop = true;
MovieClip(root).initnumbtn();
MovieClip(root).tshint_mc.gotoAndPlay(1);
}
function frame21(){
MovieClip(root).levelstop = true;
}
function frame33(){
completenum = (completenum + completefd);
MovieClip(root).stepgo(completenum);
MovieClip(root).tshint_mc.gotoAndStop(MovieClip(root).tshint_mc.totalFrames);
}
public function ctrldh(_arg1:Event){
if (MovieClip(root).gamestop){
_arg1.currentTarget.stop();
} else {
if (MovieClip(root).levelstop){
_arg1.currentTarget.stop();
} else {
_arg1.currentTarget.play();
};
};
}
function frame113(){
MovieClip(root).levelstop = true;
}
function frame124(){
MovieClip(root).levelstop = true;
}
}
}//package cherry_fla
Section 23
//Timeline_235 (cherry_fla.Timeline_235)
package cherry_fla {
import flash.display.*;
public dynamic class Timeline_235 extends MovieClip {
public function Timeline_235(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
gotoAndPlay(2);
}
function frame1(){
mouseEnabled = false;
}
}
}//package cherry_fla
Section 24
//Timeline_236 (cherry_fla.Timeline_236)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_236 extends MovieClip {
public var completenum:Number;
public var s1:MovieClip;
public var completefd:Number;
public function Timeline_236(){
addFrameScript(0, frame1, 1, frame2, 57, frame58, 59, frame60, 159, frame160, 161, frame162, 197, frame198, 199, frame200, 248, frame249, 250, frame251, 313, frame314, 315, frame316, 413, frame414, 415, frame416, 460, frame461, 462, frame463, 517, frame518, 519, frame520, 547, frame548, 548, frame549);
}
function frame251(){
MovieClip(root).hintlist(0);
}
function frame198(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(1);
}
function frame314(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(2);
}
function frame414(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(5);
}
function frame316(){
MovieClip(root).hintlist(0);
}
function frame416(){
MovieClip(root).hintlist(0);
}
function frame518(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(3);
}
function frame58(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(2);
}
function frame160(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(5);
}
function frame162(){
MovieClip(root).hintlist(0);
}
function frame461(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(1);
}
function frame1(){
stop();
completenum = 0;
completefd = (1 / 8);
MovieClip(root).levelstop = true;
this.addEventListener(Event.ENTER_FRAME, ctrldh);
MovieClip(root).hintlist(4);
}
function frame2(){
MovieClip(root).hintlist(0);
}
function frame520(){
MovieClip(root).hintlist(0);
}
function frame60(){
MovieClip(root).hintlist(0);
}
function frame249(){
MovieClip(root).levelstop = true;
MovieClip(root).hintlist(4);
}
function frame463(){
MovieClip(root).hintlist(0);
}
function frame200(){
MovieClip(root).hintlist(0);
}
public function ctrldh(_arg1:Event){
if (MovieClip(root).gamestop){
_arg1.currentTarget.stop();
} else {
if (MovieClip(root).levelstop){
_arg1.currentTarget.stop();
} else {
_arg1.currentTarget.play();
};
};
}
function frame548(){
MovieClip(root).levelstop = true;
}
function frame549(){
MovieClip(root).gamestop = true;
MovieClip(root).post_mc.gotoAndStop(2);
}
}
}//package cherry_fla
Section 25
//Timeline_247 (cherry_fla.Timeline_247)
package cherry_fla {
import flash.display.*;
public dynamic class Timeline_247 extends MovieClip {
public var wp_mc:MovieClip;
public function Timeline_247(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package cherry_fla
Section 26
//Timeline_254 (cherry_fla.Timeline_254)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_254 extends MovieClip {
public function Timeline_254(){
addFrameScript(179, frame180);
}
function frame180(){
stop();
MovieClip(root).gamestop = true;
MovieClip(root).post_mc.gotoAndStop(3);
}
}
}//package cherry_fla
Section 27
//Timeline_80 (cherry_fla.Timeline_80)
package cherry_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_80 extends MovieClip {
public var play_btn:SimpleButton;
public function Timeline_80(){
addFrameScript(61, frame62);
}
public function playscene(_arg1:MouseEvent){
play_btn.removeEventListener(MouseEvent.CLICK, playscene);
MovieClip(root).nextFrame();
}
function frame62(){
stop();
play_btn.addEventListener(MouseEvent.CLICK, playscene);
}
}
}//package cherry_fla
Section 28
//Timeline_85 (cherry_fla.Timeline_85)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_85 extends MovieClip {
public var More_bt:SimpleButton;
public function Timeline_85(){
addFrameScript(0, frame1);
}
function frame1(){
More_bt.addEventListener(MouseEvent.CLICK, MovieClip(root).moregamelink);
}
}
}//package cherry_fla
Section 29
//y8_pre_004_64 (cherry_fla.y8_pre_004_64)
package cherry_fla {
import flash.display.*;
public dynamic class y8_pre_004_64 extends MovieClip {
public function y8_pre_004_64(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(1);
}
}
}//package cherry_fla
Section 30
//y8_pre_009_61 (cherry_fla.y8_pre_009_61)
package cherry_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class y8_pre_009_61 extends MovieClip {
public var but2:MovieClip;
public var _pre:MovieClip;
public var mc_but:MovieClip;
public function y8_pre_009_61(){
addFrameScript(150, frame151);
}
public function myButtonFunction(_arg1:MouseEvent){
trace("linked2");
MovieClip(root).play();
this.but2.but.removeEventListener(MouseEvent.CLICK, myButtonFunction);
}
function frame151(){
this.stop();
this.but2.but.addEventListener(MouseEvent.CLICK, myButtonFunction);
}
}
}//package cherry_fla
Section 31
//y8_pre_012_76 (cherry_fla.y8_pre_012_76)
package cherry_fla {
import flash.display.*;
public dynamic class y8_pre_012_76 extends MovieClip {
public function y8_pre_012_76(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package cherry_fla
Section 32
//y8_pre_026_67 (cherry_fla.y8_pre_026_67)
package cherry_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class y8_pre_026_67 extends MovieClip {
public var but:SimpleButton;
public function y8_pre_026_67(){
addFrameScript(0, frame1);
}
function frame1(){
this.but.addEventListener(MouseEvent.CLICK, myButtonFunction);
}
public function myButtonFunction(_arg1:MouseEvent){
trace("linked");
var _local2:URLRequest = new URLRequest("http://www.y8.com");
navigateToURL(_local2);
this.but.removeEventListener(MouseEvent.CLICK, myButtonFunction);
}
}
}//package cherry_fla
Section 33
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 34
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var begin:Number;// = NAN
private var _finish:Number;// = NAN
public var change:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 35
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var position:Number;// = NAN
public var time:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 36
//BgMusic (BgMusic)
package {
import flash.media.*;
public dynamic class BgMusic extends Sound {
}
}//package
Section 37
//Main (Main)
package {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Main extends MovieClip {
public var porcentaje:Number;
public var replay_btn:SimpleButton;
public var b0:MovieClip;
public var btn_bg:SimpleButton;
public var anim:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b6:MovieClip;
public var b7:MovieClip;
public var b1:MovieClip;
public var b2:MovieClip;
public var b3:MovieClip;
public var my_menu:ContextMenu;
public var b8:MovieClip;
public var b9:MovieClip;
public var fh_mc:MovieClip;
public var _myChannel:SoundChannel;
public var volumeSize:uint;
public var peso:Number;
public var time_tmppush;
public var time_mc:MovieClip;
public var delayCount:int;
public var 新建符号_1:MovieClip;
public var hint_mc:MovieClip;
public var nowsetnum;
public var nowframe;
public var mynum;
public var off_mc:MovieClip;
public var d;
public var time_tmps;
public var barra_mc:MovieClip;
public var btnUrl;
public var drag_mc:MovieClip;
public var n1:MovieClip;
public var n2:MovieClip;
public var n3:MovieClip;
public var gameTitle;
public var levelstop:Boolean;
public var post_mc:MovieClip;
public var _bgMusic:BgMusic;
public var logo:MovieClip;
public var completenum:Number;
public var carga:Number;
public var completefd:Number;
public var flashCurrentDomainName:String;
public var delayper:Number;
public var qh_mc:MovieClip;
public var partner:String;
public var loadCount:int;
public var my_notice;
public var framerate:Number;
public var play_btn:SimpleButton;
public var localDomainLC:LocalConnection;
public var y8:MovieClip;
public var moreGames2_btn:SimpleButton;
public var level1_mc:MovieClip;
public var step_mc:MovieClip;
public var time_sec;
public var tshint_mc:MovieClip;
public var gamestop:Boolean;
public var on_mc:MovieClip;
public var musicSet:SoundTransform;
public function Main(){
addFrameScript(0, frame1, 355, frame356, 396, frame397, 398, frame399, 399, frame400, 400, frame401, 401, frame402, 402, frame403, 403, frame404, 404, frame405, 405, frame406, 406, frame407, 407, frame408, 408, frame409, 409, frame410, 410, frame411);
}
public function gameNext(_arg1:MouseEvent){
nextFrame();
}
function frame397(){
stop();
moreGames2_btn.addEventListener(MouseEvent.CLICK, go1);
play_btn.addEventListener(MouseEvent.CLICK, playgame);
}
function frame399(){
stop();
}
public function playgame(_arg1:MouseEvent){
MovieClip(root).play();
}
public function progreso(_arg1:Event):void{
peso = root.loaderInfo.bytesTotal;
carga = root.loaderInfo.bytesLoaded;
porcentaje = Math.floor(((carga * 100) / peso));
delayper = Math.floor(((loadCount * 100) / delayCount));
if (delayper < porcentaje){
porcentaje = delayper;
};
MovieClip(this).barra_mc.gotoAndStop(porcentaje);
if (porcentaje >= 100){
stage.frameRate = framerate;
stage.removeEventListener(Event.ENTER_FRAME, progreso);
barra_mc.alpha = 0;
play();
};
loadCount++;
}
public function initnumbtn(){
d = 0;
while (d <= 9) {
this[("b" + d)].n = d;
this[("b" + d)].buttonMode = true;
this[("b" + d)].addEventListener(MouseEvent.CLICK, changenum);
d++;
};
on_mc.buttonMode = true;
off_mc.buttonMode = true;
on_mc.addEventListener(MouseEvent.CLICK, checkon);
off_mc.addEventListener(MouseEvent.CLICK, checkoff);
}
public function moregamelink(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest(MovieClip(root).btnUrl);
navigateToURL(_local2);
}
public function go1(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest(MovieClip(root).btnUrl);
navigateToURL(_local2);
}
public function listtimenum(_arg1:Number){
var _local2:Number;
var _local3:* = 1;
while (_local3 <= 3) {
if (_arg1){
_local2 = (_arg1 % 10);
_arg1 = int((_arg1 / 10));
time_mc[("N" + _local3)].gotoAndStop((_local2 + 1));
} else {
time_mc[("N" + _local3)].gotoAndStop(1);
};
_local3++;
};
time_mc.N0.gotoAndStop(1);
}
public function qyt(_arg1:MouseEvent){
if (!drag_mc.visible){
if (_arg1.currentTarget.currentFrame < _arg1.currentTarget.totalFrames){
_arg1.currentTarget.nextFrame();
drag_mc.visible = true;
MovieClip(root).drag_mc.addEventListener(MouseEvent.MOUSE_UP, btcanvas_fun);
};
};
}
public function bg_down(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(btnUrl), "_blank");
}
public function openLink(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://www.microcooknggames.com"));
}
public function checkoff(_arg1:MouseEvent){
initnum();
}
public function gameMenu(_arg1:MouseEvent){
gotoAndStop("begin");
}
public function initnum(){
nowsetnum = 1;
mynum = 0;
d = 1;
while (d <= 3) {
this[("n" + d)].gotoAndStop(this[("n" + d)].totalFrames);
d++;
};
}
function frame356(){
anim.moreGames1_btn.addEventListener(MouseEvent.CLICK, go);
}
function frame1(){
localDomainLC = new LocalConnection();
flashCurrentDomainName = localDomainLC.domain;
gameTitle = "cherry-pie-trifle";
btnUrl = ((("http://www.microcookinggames.com/?utm_source=" + flashCurrentDomainName) + "&utm_medium=game&utm_campaign=") + gameTitle);
my_menu = new ContextMenu();
my_menu.hideBuiltInItems();
my_notice = new ContextMenuItem("Cooking Games");
my_notice.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink);
my_menu.customItems.push(my_notice);
contextMenu = my_menu;
stop();
framerate = stage.frameRate;
delayCount = 48;
loadCount = 0;
delayper = 0;
stage.addEventListener(Event.ENTER_FRAME, progreso);
btn_bg.addEventListener(MouseEvent.MOUSE_DOWN, bg_down);
}
public function time_ctrl(_arg1:Event){
if (!gamestop){
time_tmps++;
time_tmppush = ((10 - int(((time_tmps / stage.frameRate) * 10))) % 10);
_arg1.currentTarget.N0.gotoAndStop((time_tmppush + 1));
if (time_tmps >= 24){
time_tmps = 0;
if (time_sec <= 0){
gamestop = true;
MovieClip(root).post_mc.gotoAndStop(1);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, time_ctrl);
};
time_sec--;
listtimenum(time_sec);
};
};
}
public function gameresume(_arg1:MouseEvent){
gamestop = false;
post_mc.gotoAndStop(post_mc.totalFrames);
}
public function hintlist(_arg1:Number){
if (_arg1 != 0){
hint_mc.wp_mc.gotoAndStop(_arg1);
hint_mc.gotoAndPlay(1);
} else {
hint_mc.wp_mc.gotoAndStop(hint_mc.wp_mc.totalFrames);
hint_mc.gotoAndStop(1);
};
}
function frame400(){
volumeSize = 1;
_bgMusic = new BgMusic();
musicSet = new SoundTransform((volumeSize * 0.5), 0);
partner = "dressupgames";
}
function frame402(){
stop();
nowframe = this.currentFrame;
}
function frame403(){
time_sec = 35;
initgn();
}
function frame405(){
time_sec = 50;
initgn();
hintlist(0);
}
function frame401(){
time_sec = 4;
gamestop = false;
levelstop = false;
nowframe = this.currentFrame;
time_tmps = 0;
time_tmppush = 0;
}
function frame409(){
post_mc.gotoAndStop(post_mc.totalFrames);
MovieClip(root).time_mc.removeEventListener(Event.ENTER_FRAME, MovieClip(root).time_ctrl);
}
function frame404(){
time_sec = 30;
initgn();
}
public function stepgo(_arg1:Number){
new Tween(step_mc.main_mc, "scaleX", Strong.easeOut, step_mc.main_mc.scaleX, _arg1, 10, false);
}
function frame408(){
time_sec = 60;
initgn();
hintlist(0);
}
function frame406(){
time_sec = 30;
initgn();
completenum = 0;
completefd = (1 / 11);
drag_mc.visible = false;
qh_mc.gotoAndStop(1);
fh_mc.gotoAndStop(1);
qh_mc.addEventListener(MouseEvent.MOUSE_DOWN, qyt);
}
function frame407(){
time_sec = 30;
initgn();
nowsetnum = 1;
mynum = 0;
initnum();
tshint_mc.gotoAndStop(tshint_mc.totalFrames);
}
function frame411(){
MovieClip(root).gotoAndStop(nowframe);
}
public function gogames(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest(MovieClip(root).btnUrl);
navigateToURL(_local2);
}
public function gameRetry(_arg1:MouseEvent){
nowframe = MovieClip(root).currentFrame;
MovieClip(root).gotoAndStop("end");
}
public function changenum(_arg1:MouseEvent){
if (nowsetnum <= 3){
_arg1.currentTarget.parent[("n" + nowsetnum)].gotoAndStop((_arg1.currentTarget.n + 1));
mynum = ((mynum * 10) + _arg1.currentTarget.n);
nowsetnum++;
};
}
public function checkon(_arg1:MouseEvent){
if (mynum == 190){
d = 0;
while (d <= 9) {
this[("b" + d)].buttonMode = false;
this[("b" + d)].removeEventListener(MouseEvent.CLICK, changenum);
d++;
};
on_mc.removeEventListener(MouseEvent.CLICK, checkon);
off_mc.removeEventListener(MouseEvent.CLICK, checkoff);
on_mc.buttonMode = false;
off_mc.buttonMode = false;
MovieClip(root).levelstop = false;
} else {
initnum();
};
}
public function btcanvas_fun(_arg1:MouseEvent):void{
if (MovieClip(root).fh_mc.hitTestPoint(MovieClip(root).drag_mc.x, MovieClip(root).drag_mc.y, true)){
fh_mc.nextFrame();
drag_mc.visible = false;
MovieClip(root).completenum = (MovieClip(root).completenum + MovieClip(root).completefd);
MovieClip(root).stepgo(completenum);
if (fh_mc.currentFrame >= fh_mc.totalFrames){
MovieClip(root).gamestop = true;
MovieClip(root).post_mc.gotoAndStop(2);
};
} else {
qh_mc.prevFrame();
drag_mc.visible = false;
};
MovieClip(root).removeEventListener(MouseEvent.MOUSE_UP, btcanvas_fun);
}
function frame410(){
post_mc.gotoAndStop(post_mc.totalFrames);
replay_btn.addEventListener(MouseEvent.CLICK, gameMenu);
MovieClip(root).time_mc.removeEventListener(Event.ENTER_FRAME, MovieClip(root).time_ctrl);
}
public function go(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest(MovieClip(root).btnUrl);
navigateToURL(_local2);
}
public function initgn(){
gamestop = false;
post_mc.gotoAndStop(post_mc.totalFrames);
step_mc.main_mc.scaleX = 0;
time_tmps = 0;
time_tmppush = 0;
listtimenum(time_sec);
time_mc.addEventListener(Event.ENTER_FRAME, time_ctrl);
}
}
}//package
Section 38
//MusicBtn (MusicBtn)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
public dynamic class MusicBtn extends MovieClip {
public function MusicBtn(){
addFrameScript(0, frame1);
if (!MovieClip(root)._myChannel){
MovieClip(root)._myChannel = MovieClip(root)._bgMusic.play(0, 9999);
MovieClip(root)._myChannel.soundTransform = MovieClip(root).musicSet;
};
gotoAndStop((2 - MovieClip(root).volumeSize));
addEventListener(MouseEvent.MOUSE_DOWN, musicChange);
}
function frame1(){
stop();
}
private function musicChange(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.currentTarget as MovieClip);
MovieClip(root).volumeSize = (1 - MovieClip(root).volumeSize);
gotoAndStop((3 - currentFrame));
MovieClip(root).musicSet = new SoundTransform((MovieClip(root).volumeSize * 0.5), 0);
MovieClip(root)._myChannel.soundTransform = MovieClip(root).musicSet;
}
}
}//package