Section 1
//clear_mc_31 (christmas_fla.clear_mc_31)
package christmas_fla {
import flash.display.*;
import flash.text.*;
public dynamic class clear_mc_31 extends MovieClip {
public var gift1:TextField;
public var gift4:TextField;
public var gift3:TextField;
public var gift2:TextField;
public var total:TextField;
public var levelTxt:TextField;
public var continue_btn:SimpleButton;
}
}//package christmas_fla
Section 2
//gameOver_mc_40 (christmas_fla.gameOver_mc_40)
package christmas_fla {
import flash.display.*;
import flash.text.*;
public dynamic class gameOver_mc_40 extends MovieClip {
public var gift1:TextField;
public var gift4:TextField;
public var moreGames_btn:SimpleButton;
public var gift2:TextField;
public var gift3:TextField;
public var playAgain_btn:SimpleButton;
public var total:TextField;
public var submit_btn:SimpleButton;
public var name_txt:TextField;
}
}//package christmas_fla
Section 3
//geniepart_07_7 (christmas_fla.geniepart_07_7)
package christmas_fla {
import flash.display.*;
public dynamic class geniepart_07_7 extends MovieClip {
public function geniepart_07_7(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package christmas_fla
Section 4
//geniepart_13_4 (christmas_fla.geniepart_13_4)
package christmas_fla {
import flash.display.*;
public dynamic class geniepart_13_4 extends MovieClip {
public function geniepart_13_4(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package christmas_fla
Section 5
//geniepart_14_15 (christmas_fla.geniepart_14_15)
package christmas_fla {
import flash.display.*;
public dynamic class geniepart_14_15 extends MovieClip {
public function geniepart_14_15(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package christmas_fla
Section 6
//geniepart_16_8 (christmas_fla.geniepart_16_8)
package christmas_fla {
import flash.display.*;
public dynamic class geniepart_16_8 extends MovieClip {
public function geniepart_16_8(){
addFrameScript(54, frame55);
}
function frame55(){
stop();
}
}
}//package christmas_fla
Section 7
//geniepart_23_11 (christmas_fla.geniepart_23_11)
package christmas_fla {
import flash.display.*;
public dynamic class geniepart_23_11 extends MovieClip {
public function geniepart_23_11(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package christmas_fla
Section 8
//instruction_mc_41 (christmas_fla.instruction_mc_41)
package christmas_fla {
import flash.display.*;
public dynamic class instruction_mc_41 extends MovieClip {
public var moreGames_btn:SimpleButton;
public var play_btn:SimpleButton;
}
}//package christmas_fla
Section 9
//logo_3 (christmas_fla.logo_3)
package christmas_fla {
import flash.display.*;
public dynamic class logo_3 extends MovieClip {
public function logo_3(){
addFrameScript(116, frame117, 136, frame137);
}
function frame117(){
stop();
}
function frame137(){
stop();
}
}
}//package christmas_fla
Section 10
//santa_mc_50 (christmas_fla.santa_mc_50)
package christmas_fla {
import flash.display.*;
public dynamic class santa_mc_50 extends MovieClip {
public function santa_mc_50(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay("walk");
}
}
}//package christmas_fla
Section 11
//scorebox_29 (christmas_fla.scorebox_29)
package christmas_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scorebox_29 extends MovieClip {
public var lbl:TextField;
}
}//package christmas_fla
Section 12
//sprite95_65 (christmas_fla.sprite95_65)
package christmas_fla {
import flash.display.*;
public dynamic class sprite95_65 extends MovieClip {
public var basket:MovieClip;
}
}//package christmas_fla
Section 13
//sprite96_51 (christmas_fla.sprite96_51)
package christmas_fla {
import flash.display.*;
public dynamic class sprite96_51 extends MovieClip {
public var mickeywalk:MovieClip;
public function sprite96_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package christmas_fla
Section 14
//MEvents (com.mpt.events.MEvents)
package com.mpt.events {
import flash.events.*;
public class MEvents extends Event {
public function MEvents(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package com.mpt.events
Section 15
//Elastic (gs.easing.Elastic)
package gs.easing {
public class Elastic {
private static const _2PI:Number = 6.28318530717959;
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) * 0.5) + _arg3) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) + _arg3) + _arg2));
}
}
}//package gs.easing
Section 16
//Quad (gs.easing.Quad)
package gs.easing {
public class Quad {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _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) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package gs.easing
Section 17
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 18
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 19
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 20
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 21
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.geom.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 22
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 23
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 24
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
}
}//package gs.plugins
Section 25
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 26
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 27
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import gs.utils.tween.*;
import gs.plugins.*;
import flash.utils.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.092;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && (this.target.hasOwnProperty("timeScale")))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 28
//bg_music (bg_music)
package {
import flash.media.*;
public dynamic class bg_music extends Sound {
}
}//package
Section 29
//Bomb (Bomb)
package {
import flash.display.*;
public dynamic class Bomb extends MovieClip {
public function Bomb(){
addFrameScript(0, frame1, 6, frame7);
}
public function onDropComplete2(_arg1){
trace(">>>>>>>>>");
play();
}
function frame7(){
stop();
}
function frame1(){
stop();
addEventListener("onDropComplete", onDropComplete2);
}
}
}//package
Section 30
//BombDrop (BombDrop)
package {
import flash.media.*;
public dynamic class BombDrop extends Sound {
}
}//package
Section 31
//Catch (Catch)
package {
import flash.media.*;
public dynamic class Catch extends Sound {
}
}//package
Section 32
//Crash (Crash)
package {
import flash.media.*;
public dynamic class Crash extends Sound {
}
}//package
Section 33
//dropped (dropped)
package {
import flash.media.*;
public dynamic class dropped extends Sound {
}
}//package
Section 34
//Gift1 (Gift1)
package {
import flash.display.*;
public dynamic class Gift1 extends MovieClip {
public function Gift1(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 35
//Gift2 (Gift2)
package {
import flash.display.*;
public dynamic class Gift2 extends MovieClip {
public function Gift2(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 36
//Gift3 (Gift3)
package {
import flash.display.*;
public dynamic class Gift3 extends MovieClip {
public function Gift3(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 37
//Gift4 (Gift4)
package {
import flash.display.*;
public dynamic class Gift4 extends MovieClip {
public function Gift4(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 38
//Gifts (Gifts)
package {
import gs.*;
import flash.events.*;
import flash.display.*;
import gs.easing.*;
import com.mpt.events.*;
public class Gifts extends MovieClip {
var lvl:uint;// = 1
public var isDropped:Boolean;// = false
var aGifts:Array;
public var giftObj:Object;
public function Gifts(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
aGifts = new Array(Bomb, Gift1, Gift2, Gift3, Gift4);
giftObj = {pos:-1, item:-1, giftItemN:-1, speed:-1};
isDropped = false;
lvl = 1;
super();
_local2 = randomNumber(0, (aGifts.length - 1));
_local3 = randomNumber(60, 690);
_local4 = randomNumber(1, 3);
lvl = _arg1;
_local5 = new (aGifts[_local2]);
addChild(_local5);
_local5.x = _local3;
_local5.y = 10;
giftObj = {pos:_local3, item:_local5, giftItemN:_local2, speed:_local4};
}
function randomNumber(_arg1:Number=NaN, _arg2:Number=NaN):Number{
if (isNaN(_arg1)){
throw (new Error("low must be defined"));
};
if (isNaN(_arg2)){
throw (new Error("high must be defined"));
};
return ((Math.round((Math.random() * (_arg2 - _arg1))) + _arg1));
}
public function remove():void{
removeEventListener(Event.ENTER_FRAME, g_onEnterFrame);
dispatchEvent(new MEvents("onDropComplete"));
}
function g_onEnterFrame(_arg1):void{
var $target:*;
var evt = _arg1;
$target = evt.currentTarget;
if (((($target.y > 430)) && (!(isDropped)))){
isDropped = true;
if (giftObj.giftItemN != 0){
dispatchEvent(new MEvents("onDrop"));
} else {
dispatchEvent(new MEvents("onDropBomb"));
};
removeEventListener(Event.ENTER_FRAME, g_onEnterFrame);
TweenLite.to(getChildAt(0), 0.2, {frame:7, onComplete:function (){
dispatchEvent(new MEvents("onDropComplete"));
}});
} else {
$target.y = ($target.y + (giftObj.speed + lvl));
};
}
public function drop():void{
addEventListener(Event.ENTER_FRAME, g_onEnterFrame);
}
}
}//package
Section 39
//Main (Main)
package {
import gs.*;
import flash.events.*;
import flash.display.*;
import gs.easing.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public dynamic class Main extends MovieClip {
const LEFT_LIMIT = 30;
const RIGHT_LIMIT = 750;
const GIFT_LIMIT = 20;
const BOY_SPEED = 6;
public var logo2_btn:SimpleButton;
var gift4LastCtr:Number;// = 0
public var moreGames_btn:SimpleButton;
var initScale;// = 1
var gift3Ctr:Number;// = 0
var path:String;// = "http://gamesgeni.com/Scores/christmas/submit.php"
public var level_mc:MovieClip;
var scoreCtr:Number;// = 0
public var loader_txt:TextField;
var gift2LastCtr:Number;// = 0
var isMuted;// = false
public var scores_mc:MovieClip;
var o:Object;
var MindJoltAPI:Object;
public var logo1_btn:SimpleButton;
var gift4Ctr:Number;// = 0
var boardID:String;
public var gameOver_mc:MovieClip;
public var logo_mc:MovieClip;
public var instructions_btn:SimpleButton;
public var clear_mc:MovieClip;
public var play_btn:SimpleButton;
public var santa_mc:MovieClip;
public var instruction_mc:MovieClip;
public var boy_mc:MovieClip;
var isToLeft:Boolean;// = false
public var logo2_mc:MovieClip;
var bg_m:bg_music;
var isToJump:Boolean;// = false
public var sound_btn:mute;
var gift3LastCtr:Number;// = 0
var startId:Timer;
var isGameOver:Boolean;// = false
public var logo3_mc:MovieClip;
var giftThrownCtr;// = 0
var gift1LastCtr:Number;// = 0
var gift1Ctr:Number;// = 0
var bgSc:SoundChannel;
var aGiftsChildren:Array;
public var logo3_btn:SimpleButton;
var lifeCtr:Number;// = 3
public var life_mc:MovieClip;
var isToRight:Boolean;// = false
public var isInited1;
public var isInited2;
public var isInited3;
public var isInited4;
var gift2Ctr:Number;// = 0
public var loader_bar:MovieClip;
var levelCtr:Number;// = 1
public function Main():void{
isToRight = false;
isToLeft = false;
isToJump = false;
isGameOver = false;
aGiftsChildren = new Array();
scoreCtr = 0;
levelCtr = 1;
lifeCtr = 3;
gift1Ctr = 0;
gift2Ctr = 0;
gift3Ctr = 0;
gift4Ctr = 0;
gift1LastCtr = 0;
gift2LastCtr = 0;
gift3LastCtr = 0;
gift4LastCtr = 0;
initScale = 1;
giftThrownCtr = 0;
o = {n:[7, 1, 6, 5, 10, 4, 11, 15, 5, 10, 15, 10, 7, 8, 0, 6], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
path = "http://gamesgeni.com/Scores/christmas/submit.php";
isMuted = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 8, frame9);
Security.allowDomain("*");
}
function s_onKeyDown(_arg1):void{
var evt = _arg1;
if (evt.keyCode == 39){
isToRight = true;
isToLeft = false;
boy_mc.gotoAndStop(2);
boy_mc.scaleX = 0.71;
} else {
if (evt.keyCode == 37){
isToRight = false;
isToLeft = true;
boy_mc.gotoAndStop(2);
boy_mc.scaleX = -0.71;
} else {
if ((((evt.keyCode == 32)) && (!(isToJump)))){
isToJump = true;
TweenLite.to(boy_mc, 0.6, {y:220, ease:Quad.easeOut, onComplete:function (){
TweenLite.to(boy_mc, 0.6, {y:445, ease:Quad.easeIn, onComplete:function (){
isToJump = false;
}});
}});
};
};
};
}
public function playSound(_arg1):void{
var _local2:*;
var _local3:SoundChannel;
if (!isMuted){
_local2 = new (_arg1);
_local3 = _local2.play();
_local2 = null;
_local3 = null;
};
}
public function onRollOver3(_arg1){
logo3_mc.scaleX = (logo3_mc.scaleY = 0.35);
}
public function onGamesGeni(_arg1):void{
navigateToURL(new URLRequest("http://gamesgeni.com"), "_blank");
}
function frame3(){
stop();
init();
gameOver_mc.visible = (clear_mc.visible = (instruction_mc.visible = false));
scores_mc.visible = (level_mc.visible = (life_mc.visible = false));
if (!isInited2){
logo2_btn.addEventListener(MouseEvent.CLICK, onGamesGeni);
logo2_btn.addEventListener(MouseEvent.ROLL_OVER, onRollOver2);
logo2_btn.addEventListener(MouseEvent.ROLL_OUT, onRollOut2);
};
isInited2 = true;
sound_btn.buttonMode = true;
sound_btn.addEventListener(MouseEvent.CLICK, onChangeSound);
}
function frame4(){
stop();
instruction_mc.visible = false;
scores_mc.visible = (level_mc.visible = (life_mc.visible = true));
if (!isInited3){
logo3_btn.addEventListener(MouseEvent.CLICK, onGamesGeni);
logo3_btn.addEventListener(MouseEvent.ROLL_OVER, onRollOver3);
logo3_btn.addEventListener(MouseEvent.ROLL_OUT, onRollOut3);
};
isInited3 = true;
}
function tween(_arg1):void{
var _local2:*;
_local2 = _arg1.y;
_arg1.y = -(_arg1.height);
_arg1.visible = true;
TweenLite.to(_arg1, 1.5, {y:_local2, ease:Elastic.easeInOut});
}
public function onRollOver2(_arg1){
logo2_mc.scaleX = (logo2_mc.scaleY = 0.6);
}
function frame1(){
stop();
isInited1 = false;
isInited2 = false;
isInited3 = false;
isInited4 = false;
this.addEventListener("enterFrame", onEnterFrame);
}
function startId_onComplete(_arg1):void{
if (startId){
startId.removeEventListener(TimerEvent.TIMER_COMPLETE, startId_onComplete);
startId = null;
};
}
function frame9(){
gotoAndStop("main");
}
function frame2(){
initLogo();
if (!isInited1){
logo1_btn.addEventListener(MouseEvent.CLICK, onGamesGeni);
};
isInited1 = true;
}
public function onEnterFrame(_arg1:Event):void{
var _local2:int;
_local2 = Math.ceil(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
UpdatePreloader(_local2);
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
this.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
nextFrame();
};
}
function clearMc(_arg1):void{
if (_arg1){
tween(clear_mc);
};
clear_mc.visible = _arg1;
}
function onDropComplete(_arg1):void{
var $target:*;
var i:int;
var missed:*;
var evt = _arg1;
$target = evt.currentTarget;
i = 0;
while (i < aGiftsChildren.length) {
if ($target == aGiftsChildren[i]){
if (((aGiftsChildren[i].isDropped) && (!((aGiftsChildren[i].giftObj.giftItemN == 0))))){
lifeCtr--;
if (lifeCtr < 0){
gameOver();
} else {
life_mc.lbl.text = ("Life: " + lifeCtr);
};
missed = new Missed();
addChild(missed);
missed.x = 100;
missed.y = 200;
missed.point.text = "Missed";
TweenLite.to(missed, 6, {y:(missed.y - 20), onComplete:function (){
removeChild(missed);
}});
};
aGiftsChildren.splice(i, 1);
removeChild($target);
break;
};
i = (i + 1);
};
if (isGameOver){
return;
};
if ((((aGiftsChildren.length == 0)) && ((giftThrownCtr == GIFT_LIMIT)))){
levelUp();
};
}
function initLogo():void{
var initId:Timer;
var initId_onComplete:Function;
initId_onComplete = function (_arg1):void{
bg_m = new bg_music();
bgSc = bg_m.play(0, 9999);
bgSc.soundTransform.volume = 0.5;
gotoAndStop("start");
initId.removeEventListener(TimerEvent.TIMER_COMPLETE, initId_onComplete);
initId = null;
};
initId = new Timer(1, 1);
initId.start();
initId.addEventListener(TimerEvent.TIMER_COMPLETE, initId_onComplete);
}
function onSubmit(_arg1):void{
var _local2:String;
var _local3:String;
var _local4:URLVariables;
var _local5:URLRequest;
_local2 = gameOver_mc.name_txt.text;
_local3 = gameOver_mc.total.text;
gameOver_mc.name_txt.text = "";
_local4 = new URLVariables();
_local4.name = _local2;
_local4.score = _local3;
_local5 = new URLRequest(path);
_local5.method = URLRequestMethod.POST;
_local5.data = _local4;
navigateToURL(_local5, "_blank");
gotoAndStop("start");
}
function s_onKeyUp(_arg1):void{
if (_arg1.keyCode == 39){
isToRight = false;
boy_mc.gotoAndStop(1);
} else {
if (_arg1.keyCode == 37){
isToLeft = false;
boy_mc.gotoAndStop(1);
};
};
}
function s_onEnterFrame(_arg1):void{
var i:int;
var points:*;
var evt = _arg1;
if (!isGameOver){
if (isToRight){
boy_mc.x = (boy_mc.x + BOY_SPEED);
if (boy_mc.x > RIGHT_LIMIT){
boy_mc.x = LEFT_LIMIT;
};
} else {
if (isToLeft){
boy_mc.x = (boy_mc.x - BOY_SPEED);
if (boy_mc.x < LEFT_LIMIT){
boy_mc.x = RIGHT_LIMIT;
};
};
};
i = 0;
while (i < aGiftsChildren.length) {
if (boy_mc.hitTestObject(aGiftsChildren[i])){
switch (aGiftsChildren[i].giftObj.giftItemN){
case 0:
playSound(Crash);
gameOver(aGiftsChildren[i]);
break;
case 1:
playSound(Catch);
gift1Ctr++;
gift1LastCtr++;
break;
case 2:
playSound(Catch);
gift2Ctr++;
gift2LastCtr++;
break;
case 3:
playSound(Catch);
gift3Ctr++;
gift3LastCtr++;
break;
case 4:
playSound(Catch);
gift4Ctr++;
gift4LastCtr++;
break;
default:
break;
};
if (((!(isGameOver)) && (!(aGiftsChildren[i].isDropped)))){
trace("called ");
clear_mc.gift1.text = (("" + gift1Ctr) + " x 50");
clear_mc.gift2.text = (("" + gift2Ctr) + " x 100");
clear_mc.gift3.text = (("" + gift3Ctr) + " x 150");
clear_mc.gift4.text = (("" + gift4Ctr) + " x 250");
gameOver_mc.gift1.text = (("" + gift1LastCtr) + " x 50");
gameOver_mc.gift2.text = (("" + gift2LastCtr) + " x 100");
gameOver_mc.gift3.text = (("" + gift3LastCtr) + " x 150");
gameOver_mc.gift4.text = (("" + gift4LastCtr) + " x 250");
scoreCtr = Number(((((gift1Ctr * 50) + (gift2Ctr * 100)) + (gift3Ctr * 150)) + (gift4Ctr * 250)));
scores_mc.lbl.text = ("Score: " + scoreCtr);
points = new Points();
addChild(points);
points.x = boy_mc.x;
points.y = (boy_mc.y - 20);
points.point.text = ("+" + (Number(aGiftsChildren[i].giftObj.giftItemN) * 50));
TweenLite.to(points, 0.6, {y:(points.y - 20), onComplete:function (){
removeChild(points);
}});
clear_mc.total.text = ("" + Number(((((gift1Ctr * 50) + (gift2Ctr * 100)) + (gift3Ctr * 150)) + (gift4Ctr * 250))));
gameOver_mc.total.text = ("" + Number(((((gift1LastCtr * 50) + (gift2LastCtr * 100)) + (gift3LastCtr * 150)) + (gift4LastCtr * 250))));
};
if (isGameOver){
TweenLite.to(aGiftsChildren[i].getChildAt(0), 0.2, {frame:7, onComplete:function (){
aGiftsChildren[i].remove();
}});
} else {
aGiftsChildren[i].remove();
};
break;
};
i = (i + 1);
};
};
}
function init():void{
play_btn.addEventListener(MouseEvent.CLICK, onPlay);
moreGames_btn.addEventListener(MouseEvent.CLICK, onGamesGeni);
instructions_btn.addEventListener(MouseEvent.CLICK, onInstruction);
instruction_mc.play_btn.addEventListener(MouseEvent.CLICK, onPlay);
instruction_mc.moreGames_btn.addEventListener(MouseEvent.CLICK, onGamesGeni);
clearMc(false);
}
function onInstruction(_arg1):void{
tween(instruction_mc);
}
function onDropBomb(_arg1):void{
playSound(BombDrop);
}
function levelUp():void{
boy_mc.gotoAndStop(1);
levelCtr++;
level_mc.lbl.text = ("Level: " + levelCtr);
clearMc(true);
clear_mc.levelTxt.text = ("Next Level: " + levelCtr);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, s_onKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, s_onKeyUp);
stage.removeEventListener(Event.ENTER_FRAME, s_onEnterFrame);
}
function onDrop(_arg1):void{
playSound(dropped);
}
function startGame():void{
gameOver_mc.visible = false;
isGameOver = false;
isToLeft = false;
isToRight = false;
giftThrownCtr = 0;
aGiftsChildren = new Array();
clearMc(false);
gift1Ctr = 0;
gift2Ctr = 0;
gift3Ctr = 0;
gift4Ctr = 0;
startId = new Timer(1500, GIFT_LIMIT);
startId.start();
startId.addEventListener(TimerEvent.TIMER_COMPLETE, startId_onComplete);
startId.addEventListener(TimerEvent.TIMER, startId_onTick);
stage.addEventListener(KeyboardEvent.KEY_DOWN, s_onKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, s_onKeyUp);
stage.addEventListener(Event.ENTER_FRAME, s_onEnterFrame);
clear_mc.continue_btn.addEventListener(MouseEvent.CLICK, onContinue);
gameOver_mc.submit_btn.addEventListener(MouseEvent.CLICK, onSubmit);
gameOver_mc.playAgain_btn.addEventListener(MouseEvent.CLICK, onPlay);
gameOver_mc.moreGames_btn.addEventListener(MouseEvent.CLICK, onGamesGeni);
}
public function UpdatePreloader(_arg1:int):void{
trace((_arg1 + "% Loaded"));
loader_txt.text = (_arg1.toString() + "%");
loader_bar.gotoAndStop(_arg1);
}
function onContinue(_arg1):void{
startGame();
}
function onPlay(_arg1):void{
clear_mc.total.text = 0;
gameOver_mc.total.text = 0;
gotoAndStop("main");
startGame();
scoreCtr = 0;
levelCtr = 1;
lifeCtr = 3;
scores_mc.lbl.text = ("Score: " + scoreCtr);
level_mc.lbl.text = ("Level: " + levelCtr);
life_mc.lbl.text = ("Life: " + lifeCtr);
gift1LastCtr = 0;
gift2LastCtr = 0;
gift3LastCtr = 0;
gift4LastCtr = 0;
}
function startId_onTick(_arg1):void{
var gift:Gifts;
var evt = _arg1;
gift = new Gifts(levelCtr);
gift.addEventListener("onDropComplete", onDropComplete);
gift.addEventListener("onDrop", onDrop);
gift.addEventListener("onDropBomb", onDropBomb);
TweenLite.to(santa_mc, (1 - ((levelCtr <= 4)) ? ((levelCtr - 1) * 0.1) : 0.6), {x:gift.giftObj.pos, onComplete:function (){
giftThrownCtr++;
gift.drop();
addChild(gift);
aGiftsChildren.push(gift);
}});
}
public function onRollOut2(_arg1){
logo2_mc.scaleX = (logo2_mc.scaleY = 0.5);
}
public function onRollOut3(_arg1){
logo3_mc.scaleX = (logo3_mc.scaleY = 0.23);
}
function onChangeSound(_arg1):void{
var _local2:*;
_local2 = _arg1.currentTarget;
isMuted = !(isMuted);
if (isMuted){
_local2.gotoAndStop(2);
bgSc.stop();
} else {
_local2.gotoAndStop(1);
bgSc = bg_m.play(0, 9999);
};
}
function gameOver(_arg1=null):void{
boy_mc.gotoAndStop(1);
if (!isGameOver){
isGameOver = true;
if (startId){
startId.stop();
startId = null;
};
tween(gameOver_mc);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, s_onKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, s_onKeyUp);
stage.removeEventListener(Event.ENTER_FRAME, s_onEnterFrame);
};
}
function randomNumber(_arg1:Number=NaN, _arg2:Number=NaN):Number{
if (isNaN(_arg1)){
throw (new Error("low must be defined"));
};
if (isNaN(_arg2)){
throw (new Error("high must be defined"));
};
return ((Math.round((Math.random() * (_arg2 - _arg1))) + _arg1));
}
}
}//package
Section 40
//Missed (Missed)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Missed extends MovieClip {
public var point:TextField;
}
}//package
Section 41
//mute (mute)
package {
import flash.display.*;
public dynamic class mute extends MovieClip {
public function mute(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 42
//Points (Points)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Points extends MovieClip {
public var point:TextField;
}
}//package