Section 1
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
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 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 fl.transitions.easing
Section 2
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 3
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 4
//btnAmanda_8 (XmassDU_fla.btnAmanda_8)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnAmanda_8 extends MovieClip {
public function btnAmanda_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 5
//btnBra_12 (XmassDU_fla.btnBra_12)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnBra_12 extends MovieClip {
public function btnBra_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 6
//btnCoat_10 (XmassDU_fla.btnCoat_10)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnCoat_10 extends MovieClip {
public function btnCoat_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 7
//btnHat_9 (XmassDU_fla.btnHat_9)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnHat_9 extends MovieClip {
public function btnHat_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 8
//btnJen_6 (XmassDU_fla.btnJen_6)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnJen_6 extends MovieClip {
public function btnJen_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 9
//btnKelsey_7 (XmassDU_fla.btnKelsey_7)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnKelsey_7 extends MovieClip {
public function btnKelsey_7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 10
//btnPanties_13 (XmassDU_fla.btnPanties_13)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnPanties_13 extends MovieClip {
public function btnPanties_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 11
//btnSkirt_11 (XmassDU_fla.btnSkirt_11)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnSkirt_11 extends MovieClip {
public function btnSkirt_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 12
//btnSocks_14 (XmassDU_fla.btnSocks_14)
package XmassDU_fla {
import flash.display.*;
public dynamic class btnSocks_14 extends MovieClip {
public function btnSocks_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 13
//cell_3 (XmassDU_fla.cell_3)
package XmassDU_fla {
import flash.display.*;
public dynamic class cell_3 extends MovieClip {
public function cell_3(){
addFrameScript(0, frame1, 30, frame31);
}
function frame1(){
stop();
}
function frame31(){
stop();
}
}
}//package XmassDU_fla
Section 14
//cir_4 (XmassDU_fla.cir_4)
package XmassDU_fla {
import flash.display.*;
public dynamic class cir_4 extends MovieClip {
public function cir_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 15
//hearts_18 (XmassDU_fla.hearts_18)
package XmassDU_fla {
import flash.display.*;
public dynamic class hearts_18 extends MovieClip {
public function hearts_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package XmassDU_fla
Section 16
//MainTimeline (XmassDU_fla.MainTimeline)
package XmassDU_fla {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var jenSkirt:MovieClip;
public var jen:MovieClip;
public var cir3:MovieClip;
public var cell38:MovieClip;
public var cell29:MovieClip;
public var cell9:MovieClip;
public var kelseySkirt:MovieClip;
public var jenPanties:MovieClip;
public var word1:TextField;
public var cir4:MovieClip;
public var cell39:MovieClip;
public var amandaSocks:MovieClip;
public var kelseyCoat:MovieClip;
public var amandaHat:MovieClip;
public var kelseyBra:MovieClip;
public var stripe1:MovieClip;
public var word2:TextField;
public var cir5:MovieClip;
public var cell40:MovieClip;
public var stripe2:MovieClip;
public var word3:TextField;
public var cir6:MovieClip;
public var cell50:MovieClip;
public var cell41:MovieClip;
public var amandaCoat:MovieClip;
public var amandaSkirt:MovieClip;
public var stripe3:MovieClip;
public var word4:TextField;
public var wndCleared:MovieClip;
public var cell60:MovieClip;
public var cell51:MovieClip;
public var cell42:MovieClip;
public var btnIntroStart:introStartButton;
public var kelseyHat:MovieClip;
public var stripe4:MovieClip;
public var word5:TextField;
public var cell61:MovieClip;
public var cell52:MovieClip;
public var cell43:MovieClip;
public var jenBra:MovieClip;
public var stripe5:MovieClip;
public var word6:TextField;
public var cell62:MovieClip;
public var cell53:MovieClip;
public var cell44:MovieClip;
public var stripe6:MovieClip;
public var cell63:MovieClip;
public var cell54:MovieClip;
public var cell45:MovieClip;
public var cell10:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var jenSocks:MovieClip;
public var amandaPanties:MovieClip;
public var cell64:MovieClip;
public var cell55:MovieClip;
public var cell46:MovieClip;
public var cell20:MovieClip;
public var cell11:MovieClip;
public var labelLvl:TextField;
public var cell56:MovieClip;
public var cell47:MovieClip;
public var cell30:MovieClip;
public var cell21:MovieClip;
public var cell12:MovieClip;
public var cell1:MovieClip;
public var amanda:MovieClip;
public var cell57:MovieClip;
public var cell48:MovieClip;
public var cell31:MovieClip;
public var cell22:MovieClip;
public var cell13:MovieClip;
public var cell2:MovieClip;
public var kelseySocks:MovieClip;
public var kelseyPanties:MovieClip;
public var amandaBra:MovieClip;
public var hearts:MovieClip;
public var cell58:MovieClip;
public var cell49:MovieClip;
public var cell32:MovieClip;
public var cell23:MovieClip;
public var cell14:MovieClip;
public var cell3:MovieClip;
public var cell59:MovieClip;
public var cell33:MovieClip;
public var cell24:MovieClip;
public var cell15:MovieClip;
public var cell4:MovieClip;
public var cell34:MovieClip;
public var cell25:MovieClip;
public var cell16:MovieClip;
public var cell5:MovieClip;
public var kelsey:MovieClip;
public var cell35:MovieClip;
public var cell26:MovieClip;
public var cell17:MovieClip;
public var cell6:MovieClip;
public var jenCoat:MovieClip;
public var cir1:MovieClip;
public var cell36:MovieClip;
public var cell27:MovieClip;
public var cell18:MovieClip;
public var cell7:MovieClip;
public var jenHat:MovieClip;
public var btnRestart:MovieClip;
public var cir2:MovieClip;
public var cell37:MovieClip;
public var cell28:MovieClip;
public var cell19:MovieClip;
public var cell8:MovieClip;
public var boardArr:Array;
public var letterArr:Array;
public var checkArr:Array;
public var wordArr;
public var tlrArr:Array;
public var tldArr:Array;
public var iLevel;
public var bCharSelected;
public var bItemSelected;
public var tmpCirCount;
public var myTween:Tween;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
}
public function startGame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function startLevel():void{
resetField();
tmpCirCount = 0;
iLevel++;
labelLvl.text = ("Level " + iLevel);
findWord();
findWord();
if (iLevel < 3){
findWord();
};
if (iLevel < 5){
findWord();
};
if (iLevel < 7){
findWord();
};
if (iLevel < 9){
findWord();
};
plugHearts();
fillEmpty();
}
public function restartFunc(_arg1:MouseEvent):void{
btnRestart.removeEventListener(MouseEvent.CLICK, restartFunc);
btnRestart.alpha = 0;
resetClothes();
iLevel = 0;
hearts.gotoAndStop(1);
startLevel();
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (_arg1.target.name == "btnJen"){
wndCleared.btnJen.gotoAndStop(2);
wndCleared.btnKelsey.gotoAndStop(1);
wndCleared.btnAmanda.gotoAndStop(1);
bCharSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if (_arg1.target.name == "btnKelsey"){
wndCleared.btnJen.gotoAndStop(1);
wndCleared.btnKelsey.gotoAndStop(2);
wndCleared.btnAmanda.gotoAndStop(1);
bCharSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if (_arg1.target.name == "btnAmanda"){
wndCleared.btnJen.gotoAndStop(1);
wndCleared.btnKelsey.gotoAndStop(1);
wndCleared.btnAmanda.gotoAndStop(2);
bCharSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if (_arg1.target.name == "btnHat"){
wndCleared.btnHat.gotoAndStop(2);
wndCleared.btnCoat.gotoAndStop(1);
wndCleared.btnSkirt.gotoAndStop(1);
wndCleared.btnBra.gotoAndStop(1);
wndCleared.btnPanties.gotoAndStop(1);
wndCleared.btnSocks.gotoAndStop(1);
bItemSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if (_arg1.target.name == "btnCoat"){
wndCleared.btnHat.gotoAndStop(1);
wndCleared.btnCoat.gotoAndStop(2);
wndCleared.btnSkirt.gotoAndStop(1);
wndCleared.btnBra.gotoAndStop(1);
wndCleared.btnPanties.gotoAndStop(1);
wndCleared.btnSocks.gotoAndStop(1);
bItemSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if (_arg1.target.name == "btnSkirt"){
wndCleared.btnHat.gotoAndStop(1);
wndCleared.btnCoat.gotoAndStop(1);
wndCleared.btnSkirt.gotoAndStop(2);
wndCleared.btnBra.gotoAndStop(1);
wndCleared.btnPanties.gotoAndStop(1);
wndCleared.btnSocks.gotoAndStop(1);
bItemSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if (_arg1.target.name == "btnBra"){
wndCleared.btnHat.gotoAndStop(1);
wndCleared.btnCoat.gotoAndStop(1);
wndCleared.btnSkirt.gotoAndStop(1);
wndCleared.btnBra.gotoAndStop(2);
wndCleared.btnPanties.gotoAndStop(1);
wndCleared.btnSocks.gotoAndStop(1);
bItemSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if (_arg1.target.name == "btnPanties"){
wndCleared.btnHat.gotoAndStop(1);
wndCleared.btnCoat.gotoAndStop(1);
wndCleared.btnSkirt.gotoAndStop(1);
wndCleared.btnBra.gotoAndStop(1);
wndCleared.btnPanties.gotoAndStop(2);
wndCleared.btnSocks.gotoAndStop(1);
bItemSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if (_arg1.target.name == "btnSocks"){
wndCleared.btnHat.gotoAndStop(1);
wndCleared.btnCoat.gotoAndStop(1);
wndCleared.btnSkirt.gotoAndStop(1);
wndCleared.btnBra.gotoAndStop(1);
wndCleared.btnPanties.gotoAndStop(1);
wndCleared.btnSocks.gotoAndStop(2);
bItemSelected = true;
if ((((bCharSelected == true)) && ((bItemSelected == true)))){
wndCleared.btnProceed.alpha = 1;
};
} else {
if ((((_arg1.target.name == "btnProceed")) && ((wndCleared.btnProceed.alpha == 1)))){
wndCleared.btnProceed.alpha = 0.2;
wndCleared.alpha = 0;
wndCleared.y = -300;
undressChar();
startLevel();
};
};
};
};
};
};
};
};
};
};
var _local2:* = boardArr.indexOf(_arg1.target);
if (_local2 < 0){
} else {
_local3 = 0;
_local4 = _local2;
if (_local4 > 7){
_local4 = (_local4 - 8);
_local3 = (_local3 + 1);
};
if (_local4 > 7){
_local4 = (_local4 - 8);
_local3 = (_local3 + 1);
};
if (_local4 > 7){
_local4 = (_local4 - 8);
_local3 = (_local3 + 1);
};
if (_local4 > 7){
_local4 = (_local4 - 8);
_local3 = (_local3 + 1);
};
if (_local4 > 7){
_local4 = (_local4 - 8);
_local3 = (_local3 + 1);
};
if (_local4 > 7){
_local4 = (_local4 - 8);
_local3 = (_local3 + 1);
};
if (_local4 > 7){
_local4 = (_local4 - 8);
_local3 = (_local3 + 1);
};
if (boardArr[_local2].currentFrame == 27){
boardArr[_local2].gotoAndStop(checkArr[_local4][_local3]);
letterArr[_local4][_local3] = 0;
if (checkArr[_local4][_local3] == 99){
hearts.gotoAndStop((hearts.currentFrame + 1));
if (hearts.currentFrame > 4){
stage.removeEventListener(MouseEvent.CLICK, mouseClicked);
btnRestart.alpha = 1;
btnRestart.addEventListener(MouseEvent.CLICK, restartFunc);
revealOthers();
};
} else {
checkCir(1);
checkCir(2);
checkCir(3);
checkCir(4);
checkCir(5);
checkCir(6);
_local5 = true;
_local6 = 0;
while (_local6 < 8) {
_local7 = 0;
while (_local7 < 8) {
if (letterArr[_local6][_local7] != 0){
_local5 = false;
};
_local7++;
};
_local6++;
};
if (_local5 == true){
hearts.gotoAndStop(1);
bCharSelected = false;
bItemSelected = false;
wndCleared.y = 232;
wndCleared.btnProceed.alpha = 0.2;
wndCleared.btnJen.gotoAndStop(1);
wndCleared.btnKelsey.gotoAndStop(1);
wndCleared.btnAmanda.gotoAndStop(1);
wndCleared.btnHat.gotoAndStop(1);
wndCleared.btnCoat.gotoAndStop(1);
wndCleared.btnSkirt.gotoAndStop(1);
wndCleared.btnBra.gotoAndStop(1);
wndCleared.btnPanties.gotoAndStop(1);
wndCleared.btnSocks.gotoAndStop(1);
myTween = new Tween(wndCleared, "alpha", Regular.easeIn, 0, 1, 2, true);
};
};
};
};
}
public function resetField():void{
word1.text = "";
word2.text = "";
word3.text = "";
word4.text = "";
word5.text = "";
word6.text = "";
letterArr = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
checkArr = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
tlrArr = [-1, -1, -1, -1, -1, -1];
tldArr = [-1, -1, -1, -1, -1, -1];
showCir(1, false);
showCir(2, false);
showCir(3, false);
showCir(4, false);
showCir(5, false);
showCir(6, false);
var _local1:* = 0;
while (_local1 < 64) {
boardArr[_local1].gotoAndStop(27);
_local1++;
};
}
public function showCir(_arg1, _arg2):void{
var _local3:*;
if (_arg1 == 1){
_local3 = cir1;
} else {
if (_arg1 == 2){
_local3 = cir2;
} else {
if (_arg1 == 3){
_local3 = cir3;
} else {
if (_arg1 == 4){
_local3 = cir4;
} else {
if (_arg1 == 5){
_local3 = cir5;
} else {
_local3 = cir6;
};
};
};
};
};
if (_arg2 == false){
_local3.alpha = 0;
_local3.rotation = 0;
_local3.y = -800;
showStripe(_arg1, 0);
} else {
if (tlrArr[(_arg1 - 1)] > -1){
_local3.x = (boardArr[tlrArr[(_arg1 - 1)]].x + 12.5);
_local3.y = (boardArr[tlrArr[(_arg1 - 1)]].y + 12.5);
_local3.alpha = 1;
showStripe(_arg1, 1);
};
};
}
public function checkCir(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
if (_arg1 == 1){
_local2 = cir1;
_local3 = word1.text;
} else {
if (_arg1 == 2){
_local2 = cir2;
_local3 = word2.text;
} else {
if (_arg1 == 3){
_local2 = cir3;
_local3 = word3.text;
} else {
if (_arg1 == 4){
_local2 = cir4;
_local3 = word4.text;
} else {
if (_arg1 == 5){
_local2 = cir5;
_local3 = word5.text;
} else {
_local2 = cir6;
_local3 = word6.text;
};
};
};
};
};
if ((((_local3.length > 0)) && ((tlrArr[(_arg1 - 1)] > -1)))){
tlrArr[(_arg1 - 1)];
_local4 = 0;
_local5 = tlrArr[(_arg1 - 1)];
if (_local5 > 7){
_local5 = (_local5 - 8);
_local4 = (_local4 + 1);
};
if (_local5 > 7){
_local5 = (_local5 - 8);
_local4 = (_local4 + 1);
};
if (_local5 > 7){
_local5 = (_local5 - 8);
_local4 = (_local4 + 1);
};
if (_local5 > 7){
_local5 = (_local5 - 8);
_local4 = (_local4 + 1);
};
if (_local5 > 7){
_local5 = (_local5 - 8);
_local4 = (_local4 + 1);
};
if (_local5 > 7){
_local5 = (_local5 - 8);
_local4 = (_local4 + 1);
};
if (_local5 > 7){
_local5 = (_local5 - 8);
_local4 = (_local4 + 1);
};
_local6 = 0;
_local7 = 0;
if (tldArr[(_arg1 - 1)] == 1){
_local6 = 1;
} else {
_local7 = 1;
};
_local8 = true;
_local9 = 0;
while (_local9 < _local3.length) {
if (letterArr[(_local5 + (_local6 * _local9))][(_local4 + (_local7 * _local9))] > 0){
_local8 = false;
};
_local9++;
};
if (_local8 == true){
showCir(_arg1, true);
};
};
}
public function findWord():void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local1:* = 0;
var _local2:* = 0;
var _local6:* = 0;
tmpCirCount++;
while (_local2 == 0) {
_local1 = Math.floor((Math.random() * wordArr.length));
_local7 = 0;
_local7 = wordArr[_local1].length;
_local8 = true;
_local9 = Math.floor((Math.random() * 2));
_local10 = wordArr[_local1];
if (_local9 == 0){
_local11 = 0;
_local4 = Math.floor((Math.random() * 8));
_local3 = Math.floor((Math.random() * (8 - _local7)));
_local11 = 0;
while (_local11 < _local10.length) {
if (letterArr[(_local3 + _local11)][_local4] != 0){
_local8 = false;
};
_local11++;
};
if (_local8 == true){
if (Math.floor((Math.random() * 2)) == 0){
_local11 = 0;
while (_local11 < _local10.length) {
letterArr[(_local3 + _local11)][_local4] = (_local10.charCodeAt(_local11) - 64);
checkArr[(_local3 + _local11)][_local4] = (_local10.charCodeAt(_local11) - 64);
_local11++;
};
} else {
_local11 = 0;
while (_local11 < _local10.length) {
letterArr[(_local3 + _local11)][_local4] = (_local10.charCodeAt(((_local10.length - 1) - _local11)) - 64);
checkArr[(_local3 + _local11)][_local4] = (_local10.charCodeAt(((_local10.length - 1) - _local11)) - 64);
_local11++;
};
};
tldArr[(tmpCirCount - 1)] = 1;
_local3 = (_local3 + 1);
_local4 = (_local4 + 1);
tlrArr[(tmpCirCount - 1)] = ((_local3 + (8 * _local4)) - 9);
createCir(tmpCirCount, _local10.length, 1);
placeWord(_local10);
_local2 = 1;
} else {
_local6++;
};
} else {
_local3 = Math.floor((Math.random() * 8));
_local4 = Math.floor((Math.random() * (8 - _local7)));
_local11 = 0;
while (_local11 < _local10.length) {
if (letterArr[_local3][(_local4 + _local11)] != 0){
_local8 = false;
};
_local11++;
};
if (_local8 == true){
if (Math.floor((Math.random() * 2)) == 0){
_local11 = 0;
while (_local11 < _local10.length) {
letterArr[_local3][(_local4 + _local11)] = (_local10.charCodeAt(_local11) - 64);
checkArr[_local3][(_local4 + _local11)] = (_local10.charCodeAt(_local11) - 64);
_local11++;
};
} else {
_local11 = 0;
while (_local11 < _local10.length) {
letterArr[_local3][(_local4 + _local11)] = (_local10.charCodeAt(((_local10.length - 1) - _local11)) - 64);
checkArr[_local3][(_local4 + _local11)] = (_local10.charCodeAt(((_local10.length - 1) - _local11)) - 64);
_local11++;
};
};
tldArr[(tmpCirCount - 1)] = 0;
_local3 = (_local3 + 1);
_local4 = (_local4 + 1);
tlrArr[(tmpCirCount - 1)] = ((_local3 + (8 * _local4)) - 9);
createCir(tmpCirCount, _local10.length, 0);
placeWord(_local10);
_local2 = 1;
} else {
_local6++;
};
};
if (_local6 > 20){
_local2 = 1;
};
};
}
public function createCir(_arg1, _arg2, _arg3):void{
var _local4:*;
if (_arg1 == 1){
_local4 = cir1;
} else {
if (_arg1 == 2){
_local4 = cir2;
} else {
if (_arg1 == 3){
_local4 = cir3;
} else {
if (_arg1 == 4){
_local4 = cir4;
} else {
if (_arg1 == 5){
_local4 = cir5;
} else {
_local4 = cir6;
};
};
};
};
};
if (_arg3 == 1){
_local4.rotation = 0;
} else {
_local4.rotation = 90;
};
_local4.gotoAndStop(_arg2);
}
public function placeWord(_arg1:String):void{
if (word1.text == ""){
word1.text = _arg1;
} else {
if (word2.text == ""){
word2.text = _arg1;
} else {
if (word3.text == ""){
word3.text = _arg1;
} else {
if (word4.text == ""){
word4.text = _arg1;
} else {
if (word5.text == ""){
word5.text = _arg1;
} else {
word6.text = _arg1;
};
};
};
};
};
}
public function plugHearts():void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local1:* = 0;
var _local2:* = 0;
while (_local2 < ((iLevel * 2) + 3)) {
_local3 = 0;
while (_local3 == 0) {
_local4 = Math.floor((Math.random() * 8));
_local5 = Math.floor((Math.random() * 8));
if (checkArr[_local4][_local5] == 0){
checkArr[_local4][_local5] = 99;
_local3 = 1;
};
_local1++;
if (_local1 > 30){
_local3 = 1;
};
};
_local2++;
};
}
public function fillEmpty():void{
var _local2:*;
var _local1:* = 0;
while (_local1 < 8) {
_local2 = 0;
while (_local2 < 8) {
if (checkArr[_local1][_local2] == 0){
checkArr[_local1][_local2] = Math.ceil((Math.random() * 26));
};
_local2++;
};
_local1++;
};
}
public function undressChar():void{
if (wndCleared.btnJen.currentFrame == 2){
if (wndCleared.btnHat.currentFrame == 2){
jenHat.alpha = 0;
} else {
if (wndCleared.btnCoat.currentFrame == 2){
jenCoat.alpha = 0;
} else {
if (wndCleared.btnSkirt.currentFrame == 2){
jenSkirt.alpha = 0;
} else {
if (wndCleared.btnBra.currentFrame == 2){
jenBra.alpha = 0;
} else {
if (wndCleared.btnPanties.currentFrame == 2){
jenPanties.alpha = 0;
} else {
if (wndCleared.btnSocks.currentFrame == 2){
jenSocks.alpha = 0;
};
};
};
};
};
};
} else {
if (wndCleared.btnKelsey.currentFrame == 2){
if (wndCleared.btnHat.currentFrame == 2){
kelseyHat.alpha = 0;
} else {
if (wndCleared.btnCoat.currentFrame == 2){
kelseyCoat.alpha = 0;
} else {
if (wndCleared.btnSkirt.currentFrame == 2){
kelseySkirt.alpha = 0;
} else {
if (wndCleared.btnBra.currentFrame == 2){
kelseyBra.alpha = 0;
} else {
if (wndCleared.btnPanties.currentFrame == 2){
kelseyPanties.alpha = 0;
} else {
if (wndCleared.btnSocks.currentFrame == 2){
kelseySocks.alpha = 0;
};
};
};
};
};
};
} else {
if (wndCleared.btnHat.currentFrame == 2){
amandaHat.alpha = 0;
} else {
if (wndCleared.btnCoat.currentFrame == 2){
amandaCoat.alpha = 0;
} else {
if (wndCleared.btnSkirt.currentFrame == 2){
amandaSkirt.alpha = 0;
} else {
if (wndCleared.btnBra.currentFrame == 2){
amandaBra.alpha = 0;
} else {
if (wndCleared.btnPanties.currentFrame == 2){
amandaPanties.alpha = 0;
} else {
if (wndCleared.btnSocks.currentFrame == 2){
amandaSocks.alpha = 0;
};
};
};
};
};
};
};
};
}
public function showStripe(_arg1, _arg2):void{
if (_arg1 == 1){
stripe1.alpha = _arg2;
};
if (_arg1 == 2){
stripe2.alpha = _arg2;
};
if (_arg1 == 3){
stripe3.alpha = _arg2;
};
if (_arg1 == 4){
stripe4.alpha = _arg2;
};
if (_arg1 == 5){
stripe5.alpha = _arg2;
};
if (_arg1 == 6){
stripe6.alpha = _arg2;
};
}
public function resetClothes():void{
jenHat.alpha = 1;
jenCoat.alpha = 1;
jenSkirt.alpha = 1;
jenBra.alpha = 1;
jenPanties.alpha = 1;
jenSocks.alpha = 1;
kelseyHat.alpha = 1;
kelseyCoat.alpha = 1;
kelseySkirt.alpha = 1;
kelseyBra.alpha = 1;
kelseyPanties.alpha = 1;
kelseySocks.alpha = 1;
amandaHat.alpha = 1;
amandaCoat.alpha = 1;
amandaSkirt.alpha = 1;
amandaBra.alpha = 1;
amandaPanties.alpha = 1;
amandaSocks.alpha = 1;
}
public function revealOthers():void{
var _local1:* = 0;
var _local2:* = 0;
var _local3:* = 0;
while (_local3 < boardArr.length) {
if (boardArr[_local3].currentFrame == 27){
boardArr[_local3].gotoAndStop((30 + checkArr[_local1][_local2]));
if (checkArr[_local1][_local2] == 99){
boardArr[_local3].gotoAndStop(58);
};
};
_local1++;
if (_local1 > 7){
_local1 = 0;
_local2++;
};
_local3++;
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
boardArr = [cell1, cell2, cell3, cell4, cell5, cell6, cell7, cell8, cell9, cell10, cell11, cell12, cell13, cell14, cell15, cell16, cell17, cell18, cell19, cell20, cell21, cell22, cell23, cell24, cell25, cell26, cell27, cell28, cell29, cell30, cell31, cell32, cell33, cell34, cell35, cell36, cell37, cell38, cell39, cell40, cell41, cell42, cell43, cell44, cell45, cell46, cell47, cell48, cell49, cell50, cell51, cell52, cell53, cell54, cell55, cell56, cell57, cell58, cell59, cell60, cell61, cell62, cell63, cell64];
letterArr = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
checkArr = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
wordArr = ["XMASTREE", "PRESENT", "ORNAMENT", "SNOWBALL", "CAROLING", "GOODWILL", "GREETING", "REINDEER", "RUDOLPH", "REJOICE", "PACKAGE", "HOLIDAY", "SNOWMAN", "COOKIES", "FESTIVE", "NAUGHTY", "SCROOGE", "SEASON", "WINTRY", "TURKEY", "CAROLS", "LIGHTS", "SLEIGH", "JOYFUL", "CANDLE", "FAMILY", "EGGNOG", "FROSTY", "GINGER", "MERRY", "ELVES", "PARTY", "SANTA", "FEAST", "GIFTS", "MYRRH", "HOLLY", "STARS", "ANGEL", "BELLS", "CANDY", "LOVE", "NICE"];
tlrArr = [-1, -1, -1, -1, -1, -1];
tldArr = [-1, -1, -1, -1, -1, -1];
iLevel = 0;
bCharSelected = false;
bItemSelected = false;
tmpCirCount = 0;
wndCleared.y = -300;
wndCleared.alpha = 0;
startLevel();
resetClothes();
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
}
}
}//package XmassDU_fla
Section 17
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 18
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package