Section 1
//face_6 (06_fla.face_6)
package 06_fla {
import flash.display.*;
public dynamic class face_6 extends MovieClip {
public function face_6(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package 06_fla
Section 2
//flowers_mc_49 (06_fla.flowers_mc_49)
package 06_fla {
import flash.display.*;
import flash.events.*;
import lib_Tools.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class flowers_mc_49 extends MovieClip {
public var arr_Trees:Array;
public var mc_boy_02:boy_02;
public var mc_flower:flower_4;
public var mc_boy_01:boy_01;
public var mc_boy_03:boy_03;
public var mc_boy_05:boy_05;
public var mc_boy_04:boy_04;
public var arr_Boys:Array;
public var mc_tree:TreeInst;
public var arr_Boys_MC:Array;
public var arr_Flowers:Array;
public function flowers_mc_49(){
addFrameScript(0, frame1, 1, frame2);
}
public function Init(){
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:Object;
addEventListener(Event.ENTER_FRAME, OEF);
arr_Boys = new Array();
arr_Trees = new Array();
arr_Flowers = new Array();
_local1 = new Array();
_local2 = -1;
_local3 = 0;
while (++_local2 < _local3) {
_local1.push({type:0, depth:(10 * Math.random())});
};
_local2 = -1;
_local3 = 75;
while (++_local2 < _local3) {
_local1.push({type:1, depth:(5 * Math.random())});
};
_local2 = -1;
_local3 = 5;
while (++_local2 < _local3) {
_local1.push({type:2, depth:(3 + (0 * Math.random()))});
};
_local1.sortOn("depth", Array.NUMERIC);
_local1.reverse();
_local2 = -1;
_local3 = _local1.length;
while (++_local2 < _local3) {
if (_local1[_local2].type == 0){
_local4 = new Object();
_local4.mc = MovieClipTools.DuplicateMovieClip(mc_tree, this);
_local4.pos = {};
_local4.pos.x = ((_local2 * 2000) + (1000 * (0.5 - Math.random())));
_local4.pos.y = mc_tree.y;
_local4.pos.z = _local1[_local2].depth;
arr_Trees.push(_local4);
} else {
if (_local1[_local2].type == 1){
_local4 = new Object();
_local4.mc = MovieClipTools.DuplicateMovieClip(mc_flower, this);
_local4.mc.rotation = (50 * (0.5 - Math.random()));
_local4.pos = {};
_local4.pos.x = ((100 * (_local2 + 1)) * (0.5 - Math.random()));
_local4.pos.y = (mc_flower.y + (10 * (6 - _local1[_local2].depth)));
_local4.pos.z = _local1[_local2].depth;
arr_Flowers.push(_local4);
} else {
if (_local1[_local2].type == 2){
_local4 = new Object();
_local4.mc = MovieClipTools.DuplicateMovieClip(arr_Boys_MC.pop(), this);
_local4.mc.visible = true;
_local4.pos = {};
_local4.pos.x = ((-1200 + (600 * (arr_Boys_MC.length + 2))) + (250 * Math.random()));
_local4.pos.y = _local4.mc.y;
_local4.pos.z = _local1[_local2].depth;
arr_Boys.push(_local4);
};
};
};
};
mc_tree.visible = false;
mc_flower.visible = false;
removeChild(mc_boy_01);
removeChild(mc_boy_02);
removeChild(mc_boy_03);
removeChild(mc_boy_04);
removeChild(mc_boy_05);
ComputeAllPositions(true, true);
}
public function OEF(_arg1=null){
if (parent["CAMERA"].CHANGED){
ComputeAllPositions(true, false);
};
}
function frame1(){
arr_Boys_MC = [mc_boy_01, mc_boy_02, mc_boy_03, mc_boy_04, mc_boy_05];
mc_boy_01.visible = false;
mc_boy_02.visible = false;
mc_boy_03.visible = false;
mc_boy_04.visible = false;
mc_boy_05.visible = false;
}
public function ComputeAllPositions(_arg1:Boolean, _arg2:Boolean):void{
var _local3:int;
var _local4:int;
_local3 = -1;
_local4 = arr_Trees.length;
while (++_local3 < _local4) {
var _local5 = parent;
_local5["ComputePosition"](arr_Trees[_local3].pos, arr_Trees[_local3].mc, _arg1, _arg2);
};
_local3 = -1;
_local4 = arr_Flowers.length;
while (++_local3 < _local4) {
_local5 = parent;
_local5["ComputePosition"](arr_Flowers[_local3].pos, arr_Flowers[_local3].mc, _arg1, _arg2);
};
_local3 = -1;
_local4 = arr_Boys.length;
while (++_local3 < _local4) {
_local5 = parent;
_local5["ComputePosition"](arr_Boys[_local3].pos, arr_Boys[_local3].mc, _arg1, true, false);
};
}
function frame2(){
stop();
Init();
}
public function Destroy(){
var _local1:int;
var _local2:int;
_local1 = -1;
_local2 = arr_Trees.length;
while (++_local1 < _local2) {
removeChild(arr_Trees[_local1].mc);
};
_local1 = -1;
_local2 = arr_Flowers.length;
while (++_local1 < _local2) {
removeChild(arr_Flowers[_local1].mc);
};
_local1 = -1;
_local2 = arr_Boys.length;
while (++_local1 < _local2) {
arr_Boys[_local1].mc.Destroy();
removeChild(arr_Boys[_local1].mc);
};
}
}
}//package 06_fla
Section 3
//ground_mc_48 (06_fla.ground_mc_48)
package 06_fla {
import flash.display.*;
import flash.events.*;
import lib_Tools.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class ground_mc_48 extends MovieClip {
public var mc_bushes:bushes;
public var mc_montains:mountains;
public var mc_bushes_sec:DisplayObject;
public var mc_sec:DisplayObject;
public var mc_main:loog;
public var mc_montains_sec:DisplayObject;
public function ground_mc_48(){
addFrameScript(0, frame1, 1, frame2);
}
public function Init():void{
mc_sec = MovieClipTools.DuplicateMovieClip(mc_main, this, false);
mc_bushes_sec = MovieClipTools.DuplicateMovieClip(mc_bushes, this, false);
mc_montains_sec = MovieClipTools.DuplicateMovieClip(mc_montains, this, false);
removeChild(mc_main);
removeChild(mc_bushes);
removeChild(mc_montains);
addChild(mc_montains);
addChild(mc_montains_sec);
addChild(mc_bushes);
addChild(mc_bushes_sec);
addChild(mc_main);
addChild(mc_sec);
addEventListener(Event.ENTER_FRAME, OEF);
ComputeAllPositions();
}
public function OEF(_arg1=null):void{
if (parent["CAMERA"].CHANGED){
ComputeAllPositions();
};
}
function frame1(){
}
public function ComputeAllPositions():void{
var _local1 = parent;
_local1["ComputePosition"]({x:-200, y:200, z:10}, mc_main, false);
mc_sec.visible = mc_main.visible;
mc_sec.x = (mc_main.x - parent["WIDTH"]);
mc_sec.y = mc_main.y;
_local1 = parent;
_local1["ComputePosition"]({x:-2000, y:200, z:90}, mc_montains, false);
mc_montains_sec.visible = mc_montains.visible;
mc_montains_sec.x = (mc_montains.x - parent["WIDTH"]);
mc_montains_sec.y = mc_montains.y;
_local1 = parent;
_local1["ComputePosition"]({x:0, y:200, z:30}, mc_bushes, false);
mc_bushes_sec.visible = mc_bushes.visible;
mc_bushes_sec.x = (mc_bushes.x - parent["WIDTH"]);
mc_bushes_sec.y = mc_bushes.y;
}
function frame2(){
stop();
Init();
}
}
}//package 06_fla
Section 4
//heart_cap_51 (06_fla.heart_cap_51)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class heart_cap_51 extends MovieClip {
public var f_Step:Number;
public function heart_cap_51(){
addFrameScript(0, frame1, 1, frame2, 15, frame16);
}
public function Init(_arg1:Number):void{
removeEventListener(Event.ENTER_FRAME, OEF);
addEventListener(Event.ENTER_FRAME, OEF);
f_Step = _arg1;
}
public function OEF(_arg1=null):void{
if (f_Step > 0){
visible = true;
if (alpha < 1){
alpha = (alpha + f_Step);
} else {
alpha = 1;
removeEventListener(Event.ENTER_FRAME, OEF);
};
} else {
if (f_Step < 0){
visible = true;
if (alpha > 0){
alpha = (alpha + f_Step);
} else {
alpha = 0;
visible = false;
removeEventListener(Event.ENTER_FRAME, OEF);
};
} else {
removeEventListener(Event.ENTER_FRAME, OEF);
};
};
}
function frame16(){
gotoAndPlay(2);
}
function frame1(){
f_Step = 0;
alpha = 0;
visible = false;
stop();
}
public function HIDE(){
Init(-0.05);
stop();
}
function frame2(){
if (((!(visible)) || ((alpha == 0)))){
stop();
};
}
public function SHOW(){
Init(0.1);
play();
}
}
}//package 06_fla
Section 5
//heart_for_disapear_7 (06_fla.heart_for_disapear_7)
package 06_fla {
import flash.display.*;
public dynamic class heart_for_disapear_7 extends MovieClip {
public function heart_for_disapear_7(){
addFrameScript(0, frame1, 37, frame38);
}
function frame1(){
scaleX = (0.75 + (0.75 * Math.random()));
scaleY = scaleX;
gotoAndPlay(int((2 + (11 * Math.random()))));
}
function frame38(){
stop();
}
}
}//package 06_fla
Section 6
//hearts_4 (06_fla.hearts_4)
package 06_fla {
import flash.display.*;
public dynamic class hearts_4 extends MovieClip {
public function hearts_4(){
addFrameScript(1, frame2, 8, frame9, 13, frame14, 19, frame20);
}
function frame14(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
}
}//package 06_fla
Section 7
//hearts_counter_52 (06_fla.hearts_counter_52)
package 06_fla {
import flash.display.*;
public dynamic class hearts_counter_52 extends MovieClip {
public function hearts_counter_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 06_fla
Section 8
//lose_mc_59 (06_fla.lose_mc_59)
package 06_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class lose_mc_59 extends MovieClip {
public var btn_play:SimpleButton;
public var btn_more:SimpleButton;
public function lose_mc_59(){
addFrameScript(100, frame101);
}
public function OnClick_Play(_arg1=null){
var _local2 = root;
_local2["gotoAndPlay"]("splash");
}
public function OnClick_More(_arg1=null){
navigateToURL(new URLRequest("http://games2girls.com"), "_blank");
}
function frame101(){
stop();
btn_play.addEventListener(MouseEvent.CLICK, OnClick_Play);
btn_more.addEventListener(MouseEvent.CLICK, OnClick_More);
}
}
}//package 06_fla
Section 9
//MainTimeline (06_fla.MainTimeline)
package 06_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
public dynamic class MainTimeline extends MovieClip {
public var item:ContextMenuItem;
public var mc_kisses:MovieClip;
public var snd_Stream:SoundChannel;
public var mc_heart:MovieClip;
public var txt_percents:TextField;
public var mc_sound_stat:MovieClip;
public var mc_time:MovieClip;
public var my_cm:ContextMenu;
public function MainTimeline(){
addFrameScript(0, frame1, 8, frame9, 18, frame19, 33, frame34, 39, frame40, 48, frame49, 54, frame55, 63, frame64, 69, frame70, 78, frame79);
}
function frame70(){
snd_Stream.stop();
}
function frame64(){
stop();
}
public function OnProgress_Root(_arg1:ProgressEvent){
var _local2:int;
_local2 = ((100 * _arg1.bytesLoaded) / _arg1.bytesTotal);
txt_percents.text = (("Loaded " + _local2) + "%");
}
function frame79(){
stop();
}
function frame1(){
item = new ContextMenuItem("Created by GentleFLASH.net © 2008");
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onClickMenu);
my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.customItems.push(item);
contextMenu = my_cm;
stop();
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, OnProgress_Root);
root.loaderInfo.addEventListener(Event.COMPLETE, OnComplete_Root);
}
function frame19(){
stop();
}
function frame9(){
gotoAndPlay("splash");
}
public function OnComplete_Root(_arg1:Event){
gotoAndPlay("splash");
}
function frame34(){
stop();
}
function frame40(){
snd_Stream = new soundtrack().play(0, 9999);
snd_Stream.soundTransform = new SoundTransform(0.45);
}
function frame49(){
stop();
}
function frame55(){
snd_Stream.stop();
}
public function onClickMenu(_arg1=null){
navigateToURL(new URLRequest("http://gentleflash.net"), "_blank");
}
}
}//package 06_fla
Section 10
//panorama_container_34 (06_fla.panorama_container_34)
package 06_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class panorama_container_34 extends MovieClip {
public var CAMERA:Camera3;
public var mc_flowers_box:MovieClip;
public var tm_id_01;
public var b_Destroyed:Boolean;
public var Score:int;
public var WIDTH3:Number;
public var WIDTH:Number;
public var WIDTH2:Number;
public var Kisses:int;
public var loc_sec;
public var Time:int;
public function panorama_container_34(){
addFrameScript(0, frame1);
}
public function GAME_OVER(){
trace("GAME_OVER");
Destroy();
var _local1 = root;
_local1["gotoAndPlay"]("over");
}
public function ADD_TIME(_arg1:Number){
if (_arg1 > 0){
addTime(Math.round((_arg1 / 1000)));
} else {
Time = (Time + _arg1);
RenderTime();
};
if (Time < 0){
setTimeout(GAME_OVER, 100);
};
}
public function addTime(_arg1:int){
clearInterval(tm_id_01);
loc_sec = _arg1;
tm_id_01 = setInterval(onAddTime, 50);
}
public function onAddTime(){
if (--loc_sec <= 1){
clearInterval(tm_id_01);
};
Time = (Time + 1000);
RenderTime();
}
public function ADD_SCORE(_arg1:int){
Score = (Score + _arg1);
if (Score < 0){
Score = 0;
};
if (_arg1 > 0){
ADD_TIME((_arg1 * 100));
};
}
public function ADD_KISS(_arg1:int){
Kisses++;
ADD_SCORE(((22 * _arg1) + ((20 * _arg1) * Math.random())));
if (Kisses >= 15){
setTimeout(GAME_WON, 3000);
};
root["mc_kisses"].gotoAndStop((1 + Kisses));
}
public function OEF(_arg1=null){
if (Time > 0){
ADD_TIME((-1000 / stage.frameRate));
};
}
function frame1(){
WIDTH = 2755;
WIDTH2 = 1000;
WIDTH3 = 1500;
CAMERA = new Camera3();
CAMERA.x = 0;
CAMERA.y = 0;
CAMERA.z = -15;
CAMERA.LimitZ_NEGATIVE = -10;
CAMERA.LimitZ_POSITIVE = -5;
CAMERA.ForceZ = -0.05;
Kisses = 0;
Score = 0;
Time = 60000;
loc_sec = 0;
b_Destroyed = false;
addEventListener(Event.ENTER_FRAME, OEF);
stage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp);
}
public function ComputePosition(_arg1:Object, _arg2:DisplayObject=null, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:Boolean=true){
var _local6:Number;
var _local7:Object;
var _local8:int;
if (!b_Destroyed){
_local7 = {};
_local7.x = 0;
_local7.y = 0;
_local7.z = 0;
_local6 = (_arg1.z - CAMERA.z);
_local7.x = (_arg2.x + ((CAMERA.x - CAMERA.LastX) / (_local6 / 10)));
_local7.y = ((CAMERA.y + _arg1.y) / (_local6 / 10));
if (_arg3){
if (_arg5){
if ((CAMERA.x + _arg1.x) > WIDTH2){
_arg1.x = (_arg1.x - (2 * WIDTH2));
};
if ((CAMERA.x + _arg1.x) < -(WIDTH2)){
_arg1.x = (_arg1.x + (2 * WIDTH2));
};
} else {
if ((CAMERA.x + _arg1.x) > WIDTH3){
_arg1.x = (_arg1.x - (2 * WIDTH3));
};
if ((CAMERA.x + _arg1.x) < -(WIDTH3)){
_arg1.x = (_arg1.x + (2 * WIDTH3));
};
};
_local7.x = ((CAMERA.x + _arg1.x) / (_local6 / 10));
_local7.y = ((CAMERA.y + _arg1.y) / (_local6 / 10));
_local7.scaleX = (10 / _local6);
_local7.scaleY = _local7.scaleX;
};
if (!_arg2){
_arg3 = true;
};
if (!_arg3){
_local8 = int((_local7.x / WIDTH));
if (_local7.x < 0){
_local8 = (-(_local8) + 1);
} else {
_local8 = (_local8 * -1);
};
_local7.x = (_local7.x + (WIDTH * _local8));
};
if (_arg2){
if (_local6 < 0){
_arg2.visible = false;
} else {
_arg2.visible = true;
};
if (_arg2.visible){
_arg2.x = _local7.x;
_arg2.y = _local7.y;
if (_arg4){
_arg2.scaleX = _local7.scaleX;
_arg2.scaleY = _local7.scaleY;
};
};
};
return (_local7);
};
}
public function OnKeyDown(_arg1:KeyboardEvent):void{
CAMERA.StartMove(GetCamType(_arg1));
}
public function GAME_WON(){
trace("GAME_WON");
Destroy();
var _local1 = root;
_local1["gotoAndPlay"]("won");
}
public function GetCamType(_arg1:KeyboardEvent):int{
var _local2:int;
_local2 = -1;
switch (String.fromCharCode(_arg1.charCode)){
case "a":
_local2 = Camera3.LEFT;
break;
case "d":
_local2 = Camera3.RIGHT;
break;
case "w":
_local2 = Camera3.FORE;
break;
case "s":
_local2 = Camera3.BACK;
break;
default:
break;
};
switch (_arg1.keyCode){
case Keyboard.LEFT:
_local2 = Camera3.LEFT;
break;
case Keyboard.RIGHT:
_local2 = Camera3.RIGHT;
break;
case Keyboard.UP:
_local2 = Camera3.FORE;
break;
case Keyboard.DOWN:
_local2 = Camera3.BACK;
break;
default:
break;
};
return (_local2);
}
public function RenderTime(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = int((Time / 10));
_local2 = int((_local1 / 100));
_local3 = int((_local2 / 60));
_local2 = (_local2 - (_local3 * 60));
_local1 = (_local1 - ((_local3 * 6000) + (_local2 * 100)));
parent["mc_time"].SET_TIME(_local3, _local2, _local1);
}
public function OnKeyUp(_arg1:KeyboardEvent):void{
CAMERA.StopMove(GetCamType(_arg1));
}
public function Destroy(){
b_Destroyed = true;
mc_flowers_box.Destroy();
removeEventListener(Event.ENTER_FRAME, OEF);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, OnKeyUp);
}
}
}//package 06_fla
Section 11
//soundss_54 (06_fla.soundss_54)
package 06_fla {
import flash.display.*;
public dynamic class soundss_54 extends MovieClip {
public function soundss_54(){
addFrameScript(0, frame1);
}
public function PLAY(_arg1){
trace(("Play: " + _arg1));
gotoAndStop(2);
gotoAndStop(_arg1);
}
function frame1(){
stop();
}
}
}//package 06_fla
Section 12
//splash_mc_31 (06_fla.splash_mc_31)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class splash_mc_31 extends MovieClip {
public var btn_start:SimpleButton;
public function splash_mc_31(){
addFrameScript(0, frame1);
}
function frame1(){
btn_start.addEventListener(MouseEvent.CLICK, OnClick);
}
public function OnClick(_arg1=null){
var _local2 = root;
_local2["gotoAndPlay"]("game");
}
}
}//package 06_fla
Section 13
//Symbol1_36 (06_fla.Symbol1_36)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol1_36 extends MovieClip {
public var Limit_POSITIVE:Number;
public var Speed:Number;
public var Limit_NEGATIVE:Number;
public function Symbol1_36(){
addFrameScript(0, frame1);
}
public function OEF(_arg1=null):void{
x = (x + Speed);
if (x < Limit_NEGATIVE){
x = Limit_POSITIVE;
};
if (x > Limit_POSITIVE){
x = Limit_NEGATIVE;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, OEF);
Limit_NEGATIVE = -900;
Limit_POSITIVE = 400;
Speed = ((1E-5 * width) * height);
}
}
}//package 06_fla
Section 14
//Symbol10_45 (06_fla.Symbol10_45)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol10_45 extends MovieClip {
public var Limit_POSITIVE:Number;
public var Speed:Number;
public var Limit_NEGATIVE:Number;
public function Symbol10_45(){
addFrameScript(0, frame1);
}
public function OEF(_arg1=null):void{
x = (x + Speed);
if (x < Limit_NEGATIVE){
x = Limit_POSITIVE;
};
if (x > Limit_POSITIVE){
x = Limit_NEGATIVE;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, OEF);
Limit_NEGATIVE = -900;
Limit_POSITIVE = 400;
Speed = ((1E-5 * width) * height);
}
}
}//package 06_fla
Section 15
//Symbol12_47 (06_fla.Symbol12_47)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12_47 extends MovieClip {
public var Limit_POSITIVE:Number;
public var Speed:Number;
public var Limit_NEGATIVE:Number;
public function Symbol12_47(){
addFrameScript(0, frame1);
}
public function OEF(_arg1=null):void{
x = (x + Speed);
if (x < Limit_NEGATIVE){
x = Limit_POSITIVE;
};
if (x > Limit_POSITIVE){
x = Limit_NEGATIVE;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, OEF);
Limit_NEGATIVE = -900;
Limit_POSITIVE = 400;
Speed = ((1E-5 * width) * height);
}
}
}//package 06_fla
Section 16
//Symbol12_5 (06_fla.Symbol12_5)
package 06_fla {
import flash.display.*;
public dynamic class Symbol12_5 extends MovieClip {
public function Symbol12_5(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
gotoAndPlay(2);
}
}
}//package 06_fla
Section 17
//Symbol12copy_50 (06_fla.Symbol12copy_50)
package 06_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class Symbol12copy_50 extends MovieClip {
public var txt_sec:TextField;
public var txt_min:TextField;
public function Symbol12copy_50(){
addFrameScript(0, frame1);
}
function frame1(){
}
public function SET_TIME(_arg1, _arg2, _arg3):void{
if (_arg1 < 10){
_arg1 = ("0" + _arg1);
};
if (_arg2 < 10){
_arg2 = ("0" + _arg2);
};
if (_arg3 < 10){
_arg3 = ("0" + _arg3);
};
_arg1 = (_arg1 + "");
_arg2 = (_arg2 + "");
_arg3 = (_arg3 + "");
if (txt_sec.text != _arg2){
root["mc_sound_stat"].PLAY("second");
};
txt_min.text = _arg1;
txt_sec.text = _arg2;
}
}
}//package 06_fla
Section 18
//Symbol2_21 (06_fla.Symbol2_21)
package 06_fla {
import flash.display.*;
public dynamic class Symbol2_21 extends MovieClip {
public var mult:Number;
public var scale:Number;
public function Symbol2_21(){
addFrameScript(0, frame1);
}
function frame1(){
scale = (0.7 + (0.7 * Math.random()));
mult = (0.5 - Math.random());
mult = (mult / Math.abs(mult));
scaleX = (scale * mult);
scaleY = scale;
}
}
}//package 06_fla
Section 19
//Symbol2_37 (06_fla.Symbol2_37)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol2_37 extends MovieClip {
public var Limit_POSITIVE:Number;
public var Speed:Number;
public var Limit_NEGATIVE:Number;
public function Symbol2_37(){
addFrameScript(0, frame1);
}
public function OEF(_arg1=null):void{
x = (x + Speed);
if (x < Limit_NEGATIVE){
x = Limit_POSITIVE;
};
if (x > Limit_POSITIVE){
x = Limit_NEGATIVE;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, OEF);
Limit_NEGATIVE = -900;
Limit_POSITIVE = 400;
Speed = ((1E-5 * width) * height);
}
}
}//package 06_fla
Section 20
//Symbol3_16 (06_fla.Symbol3_16)
package 06_fla {
import flash.display.*;
public dynamic class Symbol3_16 extends MovieClip {
public var mult:Number;
public var scale:Number;
public function Symbol3_16(){
addFrameScript(0, frame1);
}
function frame1(){
scale = (1 + (0.7 * Math.random()));
mult = (0.5 - Math.random());
mult = (mult / Math.abs(mult));
scaleX = (scale * mult);
scaleY = scale;
}
}
}//package 06_fla
Section 21
//Symbol3_38 (06_fla.Symbol3_38)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol3_38 extends MovieClip {
public var Limit_POSITIVE:Number;
public var Speed:Number;
public var Limit_NEGATIVE:Number;
public function Symbol3_38(){
addFrameScript(0, frame1);
}
public function OEF(_arg1=null):void{
x = (x + Speed);
if (x < Limit_NEGATIVE){
x = Limit_POSITIVE;
};
if (x > Limit_POSITIVE){
x = Limit_NEGATIVE;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, OEF);
Limit_NEGATIVE = -900;
Limit_POSITIVE = 400;
Speed = ((1E-5 * width) * height);
}
}
}//package 06_fla
Section 22
//Symbol32_1 (06_fla.Symbol32_1)
package 06_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Symbol32_1 extends MovieClip {
public var btn_logo:SimpleButton;
public function Symbol32_1(){
addFrameScript(0, frame1);
}
function frame1(){
btn_logo.addEventListener(MouseEvent.CLICK, OnClick);
}
public function OnClick(_arg1=null){
navigateToURL(new URLRequest("http://games2girls.com"), "_blank");
}
}
}//package 06_fla
Section 23
//Symbol4_15 (06_fla.Symbol4_15)
package 06_fla {
import flash.display.*;
public dynamic class Symbol4_15 extends MovieClip {
public var mult:Number;
public var scale:Number;
public function Symbol4_15(){
addFrameScript(0, frame1);
}
function frame1(){
scale = (1 + (0.7 * Math.random()));
mult = (0.5 - Math.random());
mult = (mult / Math.abs(mult));
scaleX = (scale * mult);
scaleY = scale;
}
}
}//package 06_fla
Section 24
//Symbol4_39 (06_fla.Symbol4_39)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol4_39 extends MovieClip {
public var Limit_POSITIVE:Number;
public var Speed:Number;
public var Limit_NEGATIVE:Number;
public function Symbol4_39(){
addFrameScript(0, frame1);
}
public function OEF(_arg1=null):void{
x = (x + Speed);
if (x < Limit_NEGATIVE){
x = Limit_POSITIVE;
};
if (x > Limit_POSITIVE){
x = Limit_NEGATIVE;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, OEF);
Limit_NEGATIVE = -900;
Limit_POSITIVE = 400;
Speed = ((1E-5 * width) * height);
}
}
}//package 06_fla
Section 25
//Symbol5_14 (06_fla.Symbol5_14)
package 06_fla {
import flash.display.*;
public dynamic class Symbol5_14 extends MovieClip {
public var mult:Number;
public var scale:Number;
public function Symbol5_14(){
addFrameScript(0, frame1);
}
function frame1(){
scale = (1 + (0.7 * Math.random()));
mult = (0.5 - Math.random());
mult = (mult / Math.abs(mult));
scaleX = (scale * mult);
scaleY = scale;
}
}
}//package 06_fla
Section 26
//Symbol6_13 (06_fla.Symbol6_13)
package 06_fla {
import flash.display.*;
public dynamic class Symbol6_13 extends MovieClip {
public var mult:Number;
public var scale:Number;
public function Symbol6_13(){
addFrameScript(0, frame1);
}
function frame1(){
scale = (1 + (0.7 * Math.random()));
mult = (0.5 - Math.random());
mult = (mult / Math.abs(mult));
scaleX = (scale * mult);
scaleY = scale;
}
}
}//package 06_fla
Section 27
//Symbol6_41 (06_fla.Symbol6_41)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol6_41 extends MovieClip {
public var Limit_POSITIVE:Number;
public var Speed:Number;
public var Limit_NEGATIVE:Number;
public function Symbol6_41(){
addFrameScript(0, frame1);
}
public function OEF(_arg1=null):void{
x = (x + Speed);
if (x < Limit_NEGATIVE){
x = Limit_POSITIVE;
};
if (x > Limit_POSITIVE){
x = Limit_NEGATIVE;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, OEF);
Limit_NEGATIVE = -900;
Limit_POSITIVE = 400;
Speed = ((1E-5 * width) * height);
}
}
}//package 06_fla
Section 28
//Symbol7_42 (06_fla.Symbol7_42)
package 06_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol7_42 extends MovieClip {
public var Limit_POSITIVE:Number;
public var Speed:Number;
public var Limit_NEGATIVE:Number;
public function Symbol7_42(){
addFrameScript(0, frame1);
}
public function OEF(_arg1=null):void{
x = (x + Speed);
if (x < Limit_NEGATIVE){
x = Limit_POSITIVE;
};
if (x > Limit_POSITIVE){
x = Limit_NEGATIVE;
};
}
function frame1(){
addEventListener(Event.ENTER_FRAME, OEF);
Limit_NEGATIVE = -900;
Limit_POSITIVE = 400;
Speed = ((1E-5 * width) * height);
}
}
}//package 06_fla
Section 29
//wins_mc_55 (06_fla.wins_mc_55)
package 06_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class wins_mc_55 extends MovieClip {
public var btn_play:SimpleButton;
public var btn_more:SimpleButton;
public function wins_mc_55(){
addFrameScript(207, frame208);
}
public function OnClick_Play(_arg1=null){
var _local2 = root;
_local2["gotoAndPlay"]("splash");
}
public function OnClick_More(_arg1=null){
navigateToURL(new URLRequest("http://games2girls.com"), "_blank");
}
function frame208(){
stop();
btn_play.addEventListener(MouseEvent.CLICK, OnClick_Play);
btn_more.addEventListener(MouseEvent.CLICK, OnClick_More);
}
}
}//package 06_fla
Section 30
//MovieClipTools (lib_Tools.MovieClipTools)
package lib_Tools {
import flash.display.*;
public class MovieClipTools {
public static function RemoveMovieClip(_arg1:DisplayObject, _arg2:Object):void{
_arg2.removeChild(_arg1);
}
public static function DuplicateMovieClip(_arg1:DisplayObject, _arg2:Object, _arg3:Boolean=true):DisplayObject{
var _local4:Object;
var _local5:DisplayObject;
_local4 = _arg2[_arg1.name].constructor;
_local5 = new (_local4);
_local5.x = _arg1.x;
_local5.y = _arg1.y;
_local5.scaleX = _arg1.scaleX;
_local5.scaleY = _arg1.scaleY;
_local5.rotation = _arg1.rotation;
if (_arg3){
_arg2.addChild(_local5);
};
return (_local5);
}
}
}//package lib_Tools
Section 31
//SliderEase (lib_Tools.SliderEase)
package lib_Tools {
public class SliderEase {
public var POS:Object;
public var TICKS:int;
public var ITERATOR:Number;// = 2
public static var METHOD = {LINEAR:0, EASE_IN:1, EASE_OUT:2, EASE_IN_OUT:3};
public function SliderEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=3){
ITERATOR = 2;
super();
TICKS = int(_arg3);
POS = new Object();
POS.a = _arg1;
POS.b = _arg2;
POS.c = POS.s;
POS.d = (POS.b - POS.a);
POS.p = 0;
POS.m = (100 / TICKS);
POS.n = 1;
POS.t = _arg4;
}
public function GetNextValue():Number{
POS.p = (POS.p + (0.01 * POS.m));
POS.p = ((POS.p)>1) ? 1 : POS.p;
if (POS.t == METHOD.LINEAR){
POS.n = POS.p;
} else {
if (POS.t == METHOD.EASE_IN){
POS.n = Math.pow(POS.p, ITERATOR);
} else {
if (POS.t == METHOD.EASE_OUT){
POS.n = (1 - Math.pow((1 - POS.p), ITERATOR));
} else {
if (POS.t == METHOD.EASE_IN_OUT){
if (POS.p < 0.5){
POS.n = (0.5 * Math.pow((2 * POS.p), ITERATOR));
} else {
POS.n = (0.5 + (0.5 * (1 - Math.pow((2 * (1 - POS.p)), ITERATOR))));
};
};
};
};
};
POS.c = (POS.a + (POS.d * POS.n));
POS.c = (Math.round((POS.c * Math.pow(10, 12))) / Math.pow(10, 12));
return (Number(POS.c));
}
}
}//package lib_Tools
Section 32
//boy_01 (boy_01)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class boy_01 extends MovieClip {
public var b_Kissed:Boolean;
public var COUNTER:int;
public var b_Fire:Boolean;
public var b_Captured:Boolean;
public var COUNTER_MAX:int;
public var KISSES:int;
public var b_Locked:Boolean;
public var mc_hearts:MovieClip;
public var b_Failed:Boolean;
public var tm_Main:uint;
public var b_Destroy:Boolean;
public function boy_01(){
addFrameScript(0, frame1, 8, frame9, 9, frame10, 54, frame55, 63, frame64, 86, frame87, 96, frame97, 106, frame107, 166, frame167);
}
public function ProcessCapture(){
var _local1:Point;
if (!b_Destroy){
if (!b_Locked){
_local1 = this.localToGlobal(new Point());
if ((((((_local1.x > 200)) && ((_local1.x < 500)))) && ((parent.parent["CAMERA"].z > -9)))){
if (!b_Captured){
b_Captured = true;
root["mc_heart"].SHOW();
COUNTER = 0;
COUNTER_MAX = ((-5 - parent.parent["CAMERA"].z) * 15);
COUNTER_MAX = (COUNTER_MAX + ((COUNTER_MAX * 0.3) * (0.5 - Math.random())));
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
};
}
function frame64(){
b_Kissed = false;
b_Locked = false;
gotoAndPlay("start");
}
public function ProcessFire(){
if (!b_Destroy){
if (((((b_Captured) && (!(b_Locked)))) && ((parent.parent["CAMERA"].z >= -5)))){
gotoAndPlay("kiss");
};
};
}
function frame87(){
b_Failed = true;
b_Locked = true;
}
public function Init(){
if (!b_Destroy){
addEventListener(Event.ENTER_FRAME, OEF);
stage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp);
};
}
public function SET_FADEOUT(_arg1:Number){
if (!b_Destroy){
clearTimeout(tm_Main);
_arg1 = (_arg1 + ((2 * _arg1) * Math.random()));
if (KISSES == 3){
tm_Main = setTimeout(gotoAndPlay, 1000, "hide");
} else {
tm_Main = setTimeout(play, (_arg1 * 1000));
};
};
}
public function OEF(_arg1=null):void{
if (!b_Destroy){
if (!visible){
Destroy();
} else {
ProcessCapture();
ProcessCounter();
};
};
}
function frame10(){
b_Kissed = true;
b_Locked = true;
KISSES++;
}
function frame97(){
stop();
SET_FADEOUT(10);
}
function frame1(){
stop();
KISSES = 0;
COUNTER = 0;
COUNTER_MAX = 0;
b_Kissed = false;
b_Failed = false;
b_Locked = false;
b_Captured = false;
b_Fire = false;
b_Destroy = false;
if (visible){
Init();
};
}
function frame107(){
b_Failed = false;
b_Locked = false;
gotoAndPlay("start");
}
function frame167(){
stop();
Destroy();
}
function frame9(){
stop();
}
public function OnKeyDown(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (!b_Fire){
trace("SPACE");
b_Fire = true;
ProcessFire();
};
};
};
}
public function ProcessCounter(){
if (!b_Destroy){
if (((b_Captured) && (!(b_Locked)))){
if (++COUNTER > COUNTER_MAX){
gotoAndPlay("fail");
};
};
};
}
public function OnKeyUp(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (b_Fire){
b_Fire = false;
};
};
};
}
function frame55(){
stop();
if (KISSES == 1){
mc_hearts.gotoAndPlay("one");
};
if (KISSES == 2){
mc_hearts.gotoAndPlay("two");
};
if (KISSES == 3){
mc_hearts.gotoAndPlay("three");
};
var _local1 = parent.parent;
_local1["ADD_KISS"](KISSES);
SET_FADEOUT(10);
}
public function Destroy(){
b_Destroy = true;
clearTimeout(tm_Main);
removeEventListener(Event.ENTER_FRAME, OEF);
}
}
}//package
Section 33
//boy_02 (boy_02)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class boy_02 extends MovieClip {
public var b_Kissed:Boolean;
public var COUNTER:int;
public var b_Fire:Boolean;
public var b_Captured:Boolean;
public var COUNTER_MAX:int;
public var KISSES:int;
public var b_Locked:Boolean;
public var mc_hearts:MovieClip;
public var b_Failed:Boolean;
public var tm_Main:uint;
public var b_Destroy:Boolean;
public function boy_02(){
addFrameScript(0, frame1, 8, frame9, 9, frame10, 54, frame55, 63, frame64, 86, frame87, 96, frame97, 106, frame107, 166, frame167);
}
public function ProcessCapture(){
var _local1:Point;
if (!b_Destroy){
if (!b_Locked){
_local1 = this.localToGlobal(new Point());
if ((((((_local1.x > 200)) && ((_local1.x < 500)))) && ((parent.parent["CAMERA"].z > -9)))){
if (!b_Captured){
b_Captured = true;
root["mc_heart"].SHOW();
COUNTER = 0;
COUNTER_MAX = ((-5 - parent.parent["CAMERA"].z) * 15);
COUNTER_MAX = (COUNTER_MAX + ((COUNTER_MAX * 0.3) * (0.5 - Math.random())));
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
};
}
function frame64(){
b_Kissed = false;
b_Locked = false;
gotoAndPlay("start");
}
public function ProcessFire(){
if (!b_Destroy){
if (((((b_Captured) && (!(b_Locked)))) && ((parent.parent["CAMERA"].z >= -5)))){
gotoAndPlay("kiss");
};
};
}
function frame87(){
b_Failed = true;
b_Locked = true;
}
public function Init(){
if (!b_Destroy){
addEventListener(Event.ENTER_FRAME, OEF);
stage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp);
};
}
public function SET_FADEOUT(_arg1:Number){
if (!b_Destroy){
clearTimeout(tm_Main);
_arg1 = (_arg1 + ((2 * _arg1) * Math.random()));
if (KISSES == 3){
tm_Main = setTimeout(gotoAndPlay, 1000, "hide");
} else {
tm_Main = setTimeout(play, (_arg1 * 1000));
};
};
}
public function OEF(_arg1=null):void{
if (!b_Destroy){
if (!visible){
Destroy();
} else {
ProcessCapture();
ProcessCounter();
};
};
}
function frame10(){
b_Kissed = true;
b_Locked = true;
KISSES++;
}
function frame97(){
stop();
SET_FADEOUT(10);
}
function frame1(){
stop();
KISSES = 0;
COUNTER = 0;
COUNTER_MAX = 0;
b_Kissed = false;
b_Failed = false;
b_Locked = false;
b_Captured = false;
b_Fire = false;
b_Destroy = false;
if (visible){
Init();
};
}
function frame107(){
b_Failed = false;
b_Locked = false;
gotoAndPlay("start");
}
function frame167(){
stop();
Destroy();
}
function frame9(){
stop();
}
public function OnKeyDown(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (!b_Fire){
trace("SPACE");
b_Fire = true;
ProcessFire();
};
};
};
}
public function ProcessCounter(){
if (!b_Destroy){
if (((b_Captured) && (!(b_Locked)))){
if (++COUNTER > COUNTER_MAX){
gotoAndPlay("fail");
};
};
};
}
public function OnKeyUp(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (b_Fire){
b_Fire = false;
};
};
};
}
function frame55(){
stop();
if (KISSES == 1){
mc_hearts.gotoAndPlay("one");
};
if (KISSES == 2){
mc_hearts.gotoAndPlay("two");
};
if (KISSES == 3){
mc_hearts.gotoAndPlay("three");
};
var _local1 = parent.parent;
_local1["ADD_KISS"](KISSES);
SET_FADEOUT(10);
}
public function Destroy(){
b_Destroy = true;
clearTimeout(tm_Main);
removeEventListener(Event.ENTER_FRAME, OEF);
}
}
}//package
Section 34
//boy_03 (boy_03)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class boy_03 extends MovieClip {
public var b_Kissed:Boolean;
public var COUNTER:int;
public var b_Fire:Boolean;
public var b_Captured:Boolean;
public var COUNTER_MAX:int;
public var KISSES:int;
public var b_Locked:Boolean;
public var mc_hearts:MovieClip;
public var b_Failed:Boolean;
public var tm_Main:uint;
public var b_Destroy:Boolean;
public function boy_03(){
addFrameScript(0, frame1, 8, frame9, 9, frame10, 54, frame55, 63, frame64, 86, frame87, 96, frame97, 106, frame107, 166, frame167);
}
public function ProcessCapture(){
var _local1:Point;
if (!b_Destroy){
if (!b_Locked){
_local1 = this.localToGlobal(new Point());
if ((((((_local1.x > 200)) && ((_local1.x < 500)))) && ((parent.parent["CAMERA"].z > -9)))){
if (!b_Captured){
b_Captured = true;
root["mc_heart"].SHOW();
COUNTER = 0;
COUNTER_MAX = ((-5 - parent.parent["CAMERA"].z) * 15);
COUNTER_MAX = (COUNTER_MAX + ((COUNTER_MAX * 0.3) * (0.5 - Math.random())));
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
};
}
function frame64(){
b_Kissed = false;
b_Locked = false;
gotoAndPlay("start");
}
public function ProcessFire(){
if (!b_Destroy){
if (((((b_Captured) && (!(b_Locked)))) && ((parent.parent["CAMERA"].z >= -5)))){
gotoAndPlay("kiss");
};
};
}
function frame87(){
b_Failed = true;
b_Locked = true;
}
public function Init(){
if (!b_Destroy){
addEventListener(Event.ENTER_FRAME, OEF);
stage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp);
};
}
public function SET_FADEOUT(_arg1:Number){
if (!b_Destroy){
clearTimeout(tm_Main);
_arg1 = (_arg1 + ((2 * _arg1) * Math.random()));
if (KISSES == 3){
tm_Main = setTimeout(gotoAndPlay, 1000, "hide");
} else {
tm_Main = setTimeout(play, (_arg1 * 1000));
};
};
}
public function OEF(_arg1=null):void{
if (!b_Destroy){
if (!visible){
Destroy();
} else {
ProcessCapture();
ProcessCounter();
};
};
}
function frame10(){
b_Kissed = true;
b_Locked = true;
KISSES++;
}
function frame97(){
stop();
SET_FADEOUT(10);
}
function frame1(){
stop();
KISSES = 0;
COUNTER = 0;
COUNTER_MAX = 0;
b_Kissed = false;
b_Failed = false;
b_Locked = false;
b_Captured = false;
b_Fire = false;
b_Destroy = false;
if (visible){
Init();
};
}
function frame107(){
b_Failed = false;
b_Locked = false;
gotoAndPlay("start");
}
function frame167(){
stop();
Destroy();
}
function frame9(){
stop();
}
public function OnKeyDown(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (!b_Fire){
trace("SPACE");
b_Fire = true;
ProcessFire();
};
};
};
}
public function ProcessCounter(){
if (!b_Destroy){
if (((b_Captured) && (!(b_Locked)))){
if (++COUNTER > COUNTER_MAX){
gotoAndPlay("fail");
};
};
};
}
public function OnKeyUp(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (b_Fire){
b_Fire = false;
};
};
};
}
function frame55(){
stop();
if (KISSES == 1){
mc_hearts.gotoAndPlay("one");
};
if (KISSES == 2){
mc_hearts.gotoAndPlay("two");
};
if (KISSES == 3){
mc_hearts.gotoAndPlay("three");
};
var _local1 = parent.parent;
_local1["ADD_KISS"](KISSES);
SET_FADEOUT(10);
}
public function Destroy(){
b_Destroy = true;
clearTimeout(tm_Main);
removeEventListener(Event.ENTER_FRAME, OEF);
}
}
}//package
Section 35
//boy_04 (boy_04)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class boy_04 extends MovieClip {
public var b_Kissed:Boolean;
public var COUNTER:int;
public var b_Fire:Boolean;
public var b_Captured:Boolean;
public var COUNTER_MAX:int;
public var KISSES:int;
public var b_Locked:Boolean;
public var mc_hearts:MovieClip;
public var b_Failed:Boolean;
public var tm_Main:uint;
public var b_Destroy:Boolean;
public function boy_04(){
addFrameScript(0, frame1, 8, frame9, 9, frame10, 54, frame55, 63, frame64, 86, frame87, 96, frame97, 106, frame107, 166, frame167);
}
public function ProcessCapture(){
var _local1:Point;
if (!b_Destroy){
if (!b_Locked){
_local1 = this.localToGlobal(new Point());
if ((((((_local1.x > 200)) && ((_local1.x < 500)))) && ((parent.parent["CAMERA"].z > -9)))){
if (!b_Captured){
b_Captured = true;
root["mc_heart"].SHOW();
COUNTER = 0;
COUNTER_MAX = ((-5 - parent.parent["CAMERA"].z) * 15);
COUNTER_MAX = (COUNTER_MAX + ((COUNTER_MAX * 0.3) * (0.5 - Math.random())));
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
};
}
function frame64(){
b_Kissed = false;
b_Locked = false;
gotoAndPlay("start");
}
public function ProcessFire(){
if (!b_Destroy){
if (((((b_Captured) && (!(b_Locked)))) && ((parent.parent["CAMERA"].z >= -5)))){
gotoAndPlay("kiss");
};
};
}
function frame87(){
b_Failed = true;
b_Locked = true;
}
public function Init(){
if (!b_Destroy){
addEventListener(Event.ENTER_FRAME, OEF);
stage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp);
};
}
public function SET_FADEOUT(_arg1:Number){
if (!b_Destroy){
clearTimeout(tm_Main);
_arg1 = (_arg1 + ((2 * _arg1) * Math.random()));
if (KISSES == 3){
tm_Main = setTimeout(gotoAndPlay, 1000, "hide");
} else {
tm_Main = setTimeout(play, (_arg1 * 1000));
};
};
}
public function OEF(_arg1=null):void{
if (!b_Destroy){
if (!visible){
Destroy();
} else {
ProcessCapture();
ProcessCounter();
};
};
}
function frame10(){
b_Kissed = true;
b_Locked = true;
KISSES++;
}
function frame97(){
stop();
SET_FADEOUT(10);
}
function frame1(){
stop();
KISSES = 0;
COUNTER = 0;
COUNTER_MAX = 0;
b_Kissed = false;
b_Failed = false;
b_Locked = false;
b_Captured = false;
b_Fire = false;
b_Destroy = false;
if (visible){
Init();
};
}
function frame107(){
b_Failed = false;
b_Locked = false;
gotoAndPlay("start");
}
function frame167(){
stop();
Destroy();
}
function frame9(){
stop();
}
public function OnKeyDown(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (!b_Fire){
trace("SPACE");
b_Fire = true;
ProcessFire();
};
};
};
}
public function ProcessCounter(){
if (!b_Destroy){
if (((b_Captured) && (!(b_Locked)))){
if (++COUNTER > COUNTER_MAX){
gotoAndPlay("fail");
};
};
};
}
public function OnKeyUp(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (b_Fire){
b_Fire = false;
};
};
};
}
function frame55(){
stop();
if (KISSES == 1){
mc_hearts.gotoAndPlay("one");
};
if (KISSES == 2){
mc_hearts.gotoAndPlay("two");
};
if (KISSES == 3){
mc_hearts.gotoAndPlay("three");
};
var _local1 = parent.parent;
_local1["ADD_KISS"](KISSES);
SET_FADEOUT(10);
}
public function Destroy(){
b_Destroy = true;
clearTimeout(tm_Main);
removeEventListener(Event.ENTER_FRAME, OEF);
}
}
}//package
Section 36
//boy_05 (boy_05)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
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.system.*;
import flash.xml.*;
public dynamic class boy_05 extends MovieClip {
public var b_Kissed:Boolean;
public var COUNTER:int;
public var b_Fire:Boolean;
public var b_Captured:Boolean;
public var COUNTER_MAX:int;
public var KISSES:int;
public var b_Locked:Boolean;
public var mc_hearts:MovieClip;
public var b_Failed:Boolean;
public var tm_Main:uint;
public var b_Destroy:Boolean;
public function boy_05(){
addFrameScript(0, frame1, 8, frame9, 9, frame10, 54, frame55, 63, frame64, 86, frame87, 96, frame97, 106, frame107, 166, frame167);
}
public function ProcessCapture(){
var _local1:Point;
if (!b_Destroy){
if (!b_Locked){
_local1 = this.localToGlobal(new Point());
if ((((((_local1.x > 200)) && ((_local1.x < 500)))) && ((parent.parent["CAMERA"].z > -9)))){
if (!b_Captured){
b_Captured = true;
root["mc_heart"].SHOW();
COUNTER = 0;
COUNTER_MAX = ((-5 - parent.parent["CAMERA"].z) * 15);
COUNTER_MAX = (COUNTER_MAX + ((COUNTER_MAX * 0.3) * (0.5 - Math.random())));
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
} else {
if (b_Captured){
b_Captured = false;
root["mc_heart"].HIDE();
};
};
};
}
function frame64(){
b_Kissed = false;
b_Locked = false;
gotoAndPlay("start");
}
public function ProcessFire(){
if (!b_Destroy){
if (((((b_Captured) && (!(b_Locked)))) && ((parent.parent["CAMERA"].z >= -5)))){
gotoAndPlay("kiss");
};
};
}
function frame87(){
b_Failed = true;
b_Locked = true;
}
public function Init(){
if (!b_Destroy){
addEventListener(Event.ENTER_FRAME, OEF);
stage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp);
};
}
public function SET_FADEOUT(_arg1:Number){
if (!b_Destroy){
clearTimeout(tm_Main);
_arg1 = (_arg1 + ((2 * _arg1) * Math.random()));
if (KISSES == 3){
tm_Main = setTimeout(gotoAndPlay, 1000, "hide");
} else {
tm_Main = setTimeout(play, (_arg1 * 1000));
};
};
}
public function OEF(_arg1=null):void{
if (!b_Destroy){
if (!visible){
Destroy();
} else {
ProcessCapture();
ProcessCounter();
};
};
}
function frame10(){
b_Kissed = true;
b_Locked = true;
KISSES++;
}
function frame97(){
stop();
SET_FADEOUT(10);
}
function frame1(){
stop();
KISSES = 0;
COUNTER = 0;
COUNTER_MAX = 0;
b_Kissed = false;
b_Failed = false;
b_Locked = false;
b_Captured = false;
b_Fire = false;
b_Destroy = false;
if (visible){
Init();
};
}
function frame107(){
b_Failed = false;
b_Locked = false;
gotoAndPlay("start");
}
function frame167(){
stop();
Destroy();
}
function frame9(){
stop();
}
public function OnKeyDown(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (!b_Fire){
trace("SPACE");
b_Fire = true;
ProcessFire();
};
};
};
}
public function ProcessCounter(){
if (!b_Destroy){
if (((b_Captured) && (!(b_Locked)))){
if (++COUNTER > COUNTER_MAX){
gotoAndPlay("fail");
};
};
};
}
public function OnKeyUp(_arg1:KeyboardEvent):void{
if (!b_Destroy){
if (_arg1.keyCode == Keyboard.SPACE){
if (b_Fire){
b_Fire = false;
};
};
};
}
function frame55(){
stop();
if (KISSES == 1){
mc_hearts.gotoAndPlay("one");
};
if (KISSES == 2){
mc_hearts.gotoAndPlay("two");
};
if (KISSES == 3){
mc_hearts.gotoAndPlay("three");
};
var _local1 = parent.parent;
_local1["ADD_KISS"](KISSES);
SET_FADEOUT(10);
}
public function Destroy(){
b_Destroy = true;
clearTimeout(tm_Main);
removeEventListener(Event.ENTER_FRAME, OEF);
}
}
}//package
Section 37
//bushes (bushes)
package {
import flash.display.*;
public dynamic class bushes extends MovieClip {
}
}//package
Section 38
//Camera3 (Camera3)
package {
import flash.display.*;
import flash.events.*;
import lib_Tools.*;
import flash.utils.*;
public class Camera3 {
private var sprite:Sprite;
public var CHANGED:Boolean;
public var LimitZ_NEGATIVE:Number;
public var LimitZ_POSITIVE:Number;
public var LastX:Number;
public var LastY:Number;
public var LastZ:Number;
private var Moves:Array;
public var ForceZ:Number;
public var x:Number;
public var y:Number;
public var z:Number;
public static var RIGHT:uint = 3;
public static var BACK:uint = 1;
public static var LEFT:uint = 2;
public static var FORE:uint = 0;
public static var JUMP:uint = 4;
public function Camera3(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0){
x = _arg1;
y = _arg2;
z = _arg3;
LastX = x;
LastY = y;
LastZ = z;
ForceZ = 0;
CHANGED = false;
Moves = new Array();
Moves[FORE] = {Allowed:false, Value:0, Max:0.2, Easer:null};
Moves[BACK] = {Allowed:false, Value:0, Max:0.2, Easer:null};
Moves[LEFT] = {Allowed:false, Value:0, Max:15, Easer:null};
Moves[RIGHT] = {Allowed:false, Value:0, Max:15, Easer:null};
sprite = new Sprite();
sprite.addEventListener(Event.ENTER_FRAME, OEF);
}
public function StopMove(_arg1:int){
if (_arg1 > -1){
if (Moves[_arg1]){
if (Moves[_arg1].Allowed){
Moves[_arg1].Allowed = false;
Moves[_arg1].Easer = new SliderEase(Moves[_arg1].Value, 0, 30);
};
};
};
}
public function StartMove(_arg1:int){
if (_arg1 > -1){
if (Moves[_arg1]){
if (!Moves[_arg1].Allowed){
Moves[_arg1].Allowed = true;
Moves[_arg1].Easer = new SliderEase(Moves[_arg1].Value, Moves[_arg1].Max, 60, SliderEase.METHOD.EASE_OUT);
};
};
};
}
private function OEF(_arg1=null){
var _local2:int;
var _local3:int;
LastX = x;
LastY = y;
LastZ = z;
_local2 = -1;
_local3 = Moves.length;
while (++_local2 < _local3) {
if (((Moves[_local2]) && (Moves[_local2].Easer))){
Moves[_local2].Value = Moves[_local2].Easer.GetNextValue();
};
if (_local2 == FORE){
z = (z + Moves[_local2].Value);
} else {
if (_local2 == BACK){
z = (z - Moves[_local2].Value);
} else {
if (_local2 == LEFT){
x = (x + Moves[_local2].Value);
} else {
if (_local2 == RIGHT){
x = (x - Moves[_local2].Value);
};
};
};
};
};
z = (z + ForceZ);
if (((LimitZ_NEGATIVE) && ((z < LimitZ_NEGATIVE)))){
z = LimitZ_NEGATIVE;
};
if (((LimitZ_POSITIVE) && ((z > LimitZ_POSITIVE)))){
z = LimitZ_POSITIVE;
};
CHANGED = false;
if (((((!((LastX == x))) || (!((LastY == y))))) || (!((LastZ == z))))){
CHANGED = true;
};
}
}
}//package
Section 39
//flower_1 (flower_1)
package {
import flash.display.*;
public dynamic class flower_1 extends MovieClip {
}
}//package
Section 40
//flower_2 (flower_2)
package {
import flash.display.*;
public dynamic class flower_2 extends MovieClip {
}
}//package
Section 41
//flower_3 (flower_3)
package {
import flash.display.*;
public dynamic class flower_3 extends MovieClip {
}
}//package
Section 42
//flower_4 (flower_4)
package {
import flash.display.*;
public dynamic class flower_4 extends MovieClip {
public function flower_4(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((6 + Math.floor((5 * Math.random()))));
}
}
}//package
Section 43
//grass (grass)
package {
import flash.display.*;
public dynamic class grass extends MovieClip {
}
}//package
Section 44
//loog (loog)
package {
import flash.display.*;
public dynamic class loog extends MovieClip {
}
}//package
Section 45
//mountains (mountains)
package {
import flash.display.*;
public dynamic class mountains extends MovieClip {
}
}//package
Section 46
//soundtrack (soundtrack)
package {
import flash.media.*;
public dynamic class soundtrack extends Sound {
}
}//package
Section 47
//TreeInst (TreeInst)
package {
import flash.display.*;
public dynamic class TreeInst extends MovieClip {
public function TreeInst(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((6 + Math.floor((5 * Math.random()))));
}
}
}//package