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
//btnBook_32 (Ispy_fla.btnBook_32)
package Ispy_fla {
import flash.display.*;
public dynamic class btnBook_32 extends MovieClip {
public function btnBook_32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Ispy_fla
Section 5
//btnTurn_31 (Ispy_fla.btnTurn_31)
package Ispy_fla {
import flash.display.*;
public dynamic class btnTurn_31 extends MovieClip {
public function btnTurn_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Ispy_fla
Section 6
//btnZoomBook_33 (Ispy_fla.btnZoomBook_33)
package Ispy_fla {
import flash.display.*;
public dynamic class btnZoomBook_33 extends MovieClip {
public function btnZoomBook_33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Ispy_fla
Section 7
//curtains_6 (Ispy_fla.curtains_6)
package Ispy_fla {
import flash.display.*;
public dynamic class curtains_6 extends MovieClip {
public function curtains_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Ispy_fla
Section 8
//darkness_7 (Ispy_fla.darkness_7)
package Ispy_fla {
import flash.display.*;
public dynamic class darkness_7 extends MovieClip {
public function darkness_7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Ispy_fla
Section 9
//lights_5 (Ispy_fla.lights_5)
package Ispy_fla {
import flash.display.*;
public dynamic class lights_5 extends MovieClip {
public function lights_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Ispy_fla
Section 10
//MainTimeline (Ispy_fla.MainTimeline)
package Ispy_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 btnTurn:MovieClip;
public var house:MovieClip;
public var btnLeft:MovieClip;
public var btnIntroStart:introStartButton;
public var highLightText:MovieClip;
public var minsText:TextField;
public var savesTxt:TextField;
public var btnZoomBook:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var keybook:MovieClip;
public var dots:MovieClip;
public var btnFixBook:MovieClip;
public var btnBook:MovieClip;
public var btnRight:MovieClip;
public var photoBig:MovieClip;
public var shield:MovieClip;
public var hrsText:TextField;
public var dbVersion;
public var bSaveOrLoadInProgress;
public var arrPhotosUnlocked:Array;
public var arrPhotosTimestamp:Array;
public var arrFreeText:Array;
public var saveState;
public var iDayMinuteProgress;
public var myInterval;
public var arrMonth:Array;
public var arrDoW:Array;
public var strDay;
public var hours;
public var minutes;
public var month;
public var strHeader;
public var bSaveNeeded;
public var strDesc;
public var myTween:Tween;
public var pageOffset;
public var maxPages;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
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.";
var _local2:* = this.loaderInfo.url;
var _local3:* = true;
if (_local2.search("file:") != -1){
_local3 = true;
};
if (_local2.search("deviantart.net") != -1){
_local3 = true;
};
if (_local3 == true){
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
};
}
public function startGame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function loadData():void{
var _local1:SharedObject = SharedObject.getLocal(dbVersion);
if (_local1.data.saveExists == null){
arrPhotosUnlocked = [];
arrPhotosTimestamp = [];
arrFreeText = [];
saveData();
gotoAndStop(3);
} else {
saveState = 1;
arrPhotosUnlocked = _local1.data.photosUnlocked;
arrPhotosTimestamp = _local1.data.photosTimestamp;
arrFreeText = _local1.data.freeText;
gotoAndStop(3);
};
}
public function saveData():void{
var _local1:SharedObject;
if (bSaveOrLoadInProgress == false){
bSaveOrLoadInProgress = true;
_local1 = SharedObject.getLocal(dbVersion);
_local1.data.saveExists = 1;
_local1.data.photosUnlocked = arrPhotosUnlocked;
_local1.data.photosTimestamp = arrPhotosTimestamp;
_local1.data.freeText = arrFreeText;
_local1.flush();
trace("## data saved! ##");
bSaveOrLoadInProgress = false;
};
}
public function myTimer():void{
getDateTime();
iDayMinuteProgress = ((hours * 60) + minutes);
updateLighting();
updateCurtainStance();
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:* = "";
if (_arg1.target.name != null){
_local2 = _arg1.target.name;
};
if ((((_local2 == "living")) && ((keybook.alpha == 0)))){
checkRoom(1);
} else {
if ((((_local2 == "kitchen")) && ((keybook.alpha == 0)))){
checkRoom(2);
} else {
if ((((_local2 == "x")) && ((keybook.alpha == 0)))){
checkRoom(3);
} else {
if ((((_local2 == "bath")) && ((keybook.alpha == 0)))){
checkRoom(4);
} else {
if ((((_local2 == "wc")) && ((keybook.alpha == 0)))){
checkRoom(5);
} else {
if ((((_local2 == "jen")) && ((keybook.alpha == 0)))){
checkRoom(6);
} else {
if ((((_local2 == "kelsey")) && ((keybook.alpha == 0)))){
checkRoom(7);
} else {
if ((((_local2 == "amanda")) && ((keybook.alpha == 0)))){
checkRoom(8);
} else {
if ((((((((((((((((((_local2 == "commentTxt")) || ((_local2 == "entry1")))) || ((_local2 == "entry2")))) || ((_local2 == "entry3")))) || ((_local2 == "entry4")))) || ((_local2 == "entry5")))) || ((_local2 == "entry6")))) || ((_local2 == "entry7")))) || ((_local2 == "entry8")))){
bSaveNeeded = true;
} else {
if ((((_local2 == "btnFixBook")) && ((btnFixBook.alpha == 1)))){
} else {
if (_local2 == "btnZoomBook"){
hideHighLightText();
if (photoBig.alpha == 1){
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
if (btnZoomBook.alpha == 1){
if (btnZoomBook.currentFrame < 5){
keybook.scaleX = 2;
keybook.scaleY = 2;
if (btnZoomBook.currentFrame == 1){
keybook.x = 20;
keybook.y = 11;
} else {
if (btnZoomBook.currentFrame == 2){
keybook.x = 20;
keybook.y = -340;
} else {
if (btnZoomBook.currentFrame == 3){
keybook.x = -440;
keybook.y = 11;
} else {
if (btnZoomBook.currentFrame == 4){
keybook.x = -440;
keybook.y = -340;
};
};
};
};
btnZoomBook.gotoAndStop((btnZoomBook.currentFrame + 1));
} else {
keybook.x = 20;
keybook.y = 11;
keybook.scaleX = 1;
keybook.scaleY = 1;
btnZoomBook.gotoAndStop(1);
};
};
} else {
if (_local2 == "photoBig"){
hideHighLightText();
fillPage();
} else {
if ((((_local2 == "keybook")) && ((photoBig.alpha == 1)))){
hideHighLightText();
fillPage();
} else {
if (_local2 == "photo1"){
fillPage();
if (keybook.photo1.currentFrame > 1){
keybook.photo1.alpha = 0;
photoBig.gotoAndStop(keybook.photo1.currentFrame);
photoBig.y = 45;
photoBig.alpha = 1;
} else {
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
} else {
if (_local2 == "photo2"){
fillPage();
if (keybook.photo2.currentFrame > 1){
keybook.photo2.alpha = 0;
photoBig.gotoAndStop(keybook.photo2.currentFrame);
photoBig.y = 45;
photoBig.alpha = 1;
} else {
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
} else {
if (_local2 == "photo3"){
fillPage();
if (keybook.photo3.currentFrame > 1){
keybook.photo3.alpha = 0;
photoBig.gotoAndStop(keybook.photo3.currentFrame);
photoBig.y = 45;
photoBig.alpha = 1;
} else {
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
} else {
if (_local2 == "photo4"){
fillPage();
if (keybook.photo4.currentFrame > 1){
keybook.photo4.alpha = 0;
photoBig.gotoAndStop(keybook.photo4.currentFrame);
photoBig.y = 45;
photoBig.alpha = 1;
} else {
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
} else {
if (_local2 == "photo5"){
fillPage();
if (keybook.photo5.currentFrame > 1){
keybook.photo5.alpha = 0;
photoBig.gotoAndStop(keybook.photo5.currentFrame);
photoBig.y = 45;
photoBig.alpha = 1;
} else {
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
} else {
if (_local2 == "photo6"){
fillPage();
if (keybook.photo6.currentFrame > 1){
keybook.photo6.alpha = 0;
photoBig.gotoAndStop(keybook.photo6.currentFrame);
photoBig.y = 45;
photoBig.alpha = 1;
} else {
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
} else {
if (_local2 == "photo7"){
fillPage();
if (keybook.photo7.currentFrame > 1){
keybook.photo7.alpha = 0;
photoBig.gotoAndStop(keybook.photo7.currentFrame);
photoBig.y = 45;
photoBig.alpha = 1;
} else {
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
} else {
if (_local2 == "photo8"){
fillPage();
if (keybook.photo8.currentFrame > 1){
keybook.photo8.alpha = 0;
photoBig.gotoAndStop(keybook.photo8.currentFrame);
photoBig.y = 45;
photoBig.alpha = 1;
} else {
photoBig.alpha = 0;
photoBig.y = -350;
fillPage();
};
} else {
if (_local2 == "btnBook"){
hideHighLightText();
if (btnBook.currentFrame == 1){
fillPage();
btnBook.gotoAndStop(2);
keybook.y = 11;
keybook.alpha = 1;
btnZoomBook.alpha = 1;
btnTurn.alpha = 0.3;
} else {
updateCommentsToArray();
keybook.x = 20;
keybook.y = 11;
keybook.scaleX = 1;
keybook.scaleY = 1;
btnZoomBook.gotoAndStop(1);
btnBook.gotoAndStop(1);
keybook.alpha = 0;
keybook.y = 420;
photoBig.alpha = 0;
photoBig.y = -350;
btnZoomBook.alpha = 0.3;
btnTurn.alpha = 1;
if (bSaveNeeded == true){
bSaveNeeded = false;
saveData();
};
};
} else {
if ((((_local2 == "btnTurn")) && ((btnTurn.alpha == 1)))){
hideHighLightText();
if (house.y == 26){
house.y = -362;
} else {
house.y = 26;
};
} else {
if (_local2 == "btnRight"){
hideHighLightText();
if (keybook.alpha == 1){
if (pageOffset < maxPages){
updateCommentsToArray();
photoBig.alpha = 0;
photoBig.y = -350;
keybook.x = 20;
keybook.y = 11;
keybook.scaleX = 1;
keybook.scaleY = 1;
btnZoomBook.gotoAndStop(1);
pageOffset++;
fillPage();
if (bSaveNeeded == true){
bSaveNeeded = false;
saveData();
};
};
} else {
if (house.x > -900){
house.x = (house.x - 100);
};
if (house.x < -900){
house.x = -900;
};
};
} else {
if (_local2 == "btnLeft"){
hideHighLightText();
if (keybook.alpha == 1){
if (pageOffset > 0){
updateCommentsToArray();
photoBig.alpha = 0;
photoBig.y = -350;
keybook.x = 20;
keybook.y = 11;
keybook.scaleX = 1;
keybook.scaleY = 1;
btnZoomBook.gotoAndStop(1);
pageOffset--;
fillPage();
if (bSaveNeeded == true){
bSaveNeeded = false;
saveData();
};
};
} else {
if (house.x < 45){
house.x = (house.x + 100);
};
if (house.x > 45){
house.x = 45;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function updateLighting():void{
if (iDayMinuteProgress < 390){
house.lights.alpha = 0;
house.darkness.alpha = 0.6;
} else {
if (iDayMinuteProgress < 450){
house.lights.alpha = ((iDayMinuteProgress - 390) / 100);
house.darkness.alpha = (0.6 - ((iDayMinuteProgress - 390) / 100));
} else {
if (iDayMinuteProgress < 1230){
house.lights.alpha = 0.6;
house.darkness.alpha = 0;
} else {
if (iDayMinuteProgress < 1290){
house.lights.alpha = (0.6 - ((iDayMinuteProgress - 1230) / 100));
house.darkness.alpha = ((iDayMinuteProgress - 1230) / 100);
} else {
house.lights.alpha = 0;
house.darkness.alpha = 0.6;
};
};
};
};
}
public function updateCurtainStance():void{
var _local1:* = true;
if (strDay == "Sat"){
if ((((iDayMinuteProgress < 540)) || ((iDayMinuteProgress > 1260)))){
_local1 = false;
};
} else {
if (strDay == "Sun"){
_local1 = false;
} else {
if ((((iDayMinuteProgress < 390)) || ((iDayMinuteProgress > 1260)))){
_local1 = false;
};
};
};
if (_local1 == true){
house.curtains.gotoAndStop(1);
house.darkness.gotoAndStop(1);
} else {
house.curtains.gotoAndStop(2);
house.darkness.gotoAndStop(2);
};
}
public function fillPage():void{
var _local1:uint;
_local1 = (pageOffset * 8);
keybook.pageLeftText.text = ("page " + ((pageOffset * 2) + 1));
keybook.pageRightText.text = ("page " + ((pageOffset * 2) + 2));
var _local2:* = 0;
while (_local2 < 8) {
if (arrPhotosUnlocked.length >= (((pageOffset * 8) + _local2) + 1)){
showPhoto((_local2 + 1), arrPhotosUnlocked[((pageOffset * 8) + _local2)], arrPhotosTimestamp[((pageOffset * 8) + _local2)], arrFreeText[((pageOffset * 8) + _local2)]);
} else {
showPhoto((_local2 + 1), 0, "", "");
};
_local2++;
};
}
public function showPhoto(_arg1, _arg2, _arg3, _arg4):void{
var _local5:* = keybook.photo1;
var _local6:* = keybook.entry1;
var _local7:* = keybook.clip1;
if (_arg1 == 2){
_local5 = keybook.photo2;
_local6 = keybook.entry2;
_local7 = keybook.clip2;
};
if (_arg1 == 3){
_local5 = keybook.photo3;
_local6 = keybook.entry3;
_local7 = keybook.clip3;
};
if (_arg1 == 4){
_local5 = keybook.photo4;
_local6 = keybook.entry4;
_local7 = keybook.clip4;
};
if (_arg1 == 5){
_local5 = keybook.photo5;
_local6 = keybook.entry5;
_local7 = keybook.clip5;
};
if (_arg1 == 6){
_local5 = keybook.photo6;
_local6 = keybook.entry6;
_local7 = keybook.clip6;
};
if (_arg1 == 7){
_local5 = keybook.photo7;
_local6 = keybook.entry7;
_local7 = keybook.clip7;
};
if (_arg1 == 8){
_local5 = keybook.photo8;
_local6 = keybook.entry8;
_local7 = keybook.clip8;
};
if (_arg2 == 0){
_local5.gotoAndStop(1);
_local7.alpha = 0;
_local6.headerTxt.text = "";
_local6.commentTxt.text = "";
} else {
_local5.gotoAndStop((_arg2 + 1));
_local7.alpha = 1;
_local6.headerTxt.text = _arg3;
_local6.commentTxt.text = _arg4;
};
_local5.alpha = 1;
}
public function updateCommentsToArray():void{
var _local1:uint;
_local1 = (pageOffset * 8);
var _local2:* = 0;
while (_local2 < 8) {
if (arrPhotosUnlocked.length >= ((pageOffset * 8) + 1)){
arrFreeText[(pageOffset * 8)] = keybook.entry1.commentTxt.text;
};
if (arrPhotosUnlocked.length >= ((pageOffset * 8) + 2)){
arrFreeText[((pageOffset * 8) + 1)] = keybook.entry2.commentTxt.text;
};
if (arrPhotosUnlocked.length >= ((pageOffset * 8) + 3)){
arrFreeText[((pageOffset * 8) + 2)] = keybook.entry3.commentTxt.text;
};
if (arrPhotosUnlocked.length >= ((pageOffset * 8) + 4)){
arrFreeText[((pageOffset * 8) + 3)] = keybook.entry4.commentTxt.text;
};
if (arrPhotosUnlocked.length >= ((pageOffset * 8) + 5)){
arrFreeText[((pageOffset * 8) + 4)] = keybook.entry5.commentTxt.text;
};
if (arrPhotosUnlocked.length >= ((pageOffset * 8) + 6)){
arrFreeText[((pageOffset * 8) + 5)] = keybook.entry6.commentTxt.text;
};
if (arrPhotosUnlocked.length >= ((pageOffset * 8) + 7)){
arrFreeText[((pageOffset * 8) + 6)] = keybook.entry7.commentTxt.text;
};
if (arrPhotosUnlocked.length >= ((pageOffset * 8) + 8)){
arrFreeText[((pageOffset * 8) + 7)] = keybook.entry8.commentTxt.text;
};
_local2++;
};
}
public function getDateTime():void{
var _local1:Date = new Date();
strDay = arrDoW[_local1.day];
var _local2:* = "";
var _local3:* = "";
hours = _local1.hours;
minutes = _local1.minutes;
strHeader = (((((strDay + " ") + _local1.date) + " ") + arrMonth[_local1.month]) + ", ");
if (hours < 10){
strHeader = (strHeader + "0");
_local2 = "0";
};
strHeader = ((strHeader + hours) + ":");
_local2 = (_local2 + hours);
if (minutes < 10){
strHeader = (strHeader + "0");
_local3 = "0";
};
strHeader = (strHeader + minutes);
_local3 = (_local3 + minutes);
hrsText.text = _local2;
minsText.text = _local3;
}
public function checkRoom(_arg1):void{
var _local2:*;
var _local3:* = 0;
var _local4:* = 0;
var _local5:* = 0;
var _local6:* = 0;
var _local7:* = 0;
var _local8:* = 0;
var _local9:* = 0;
var _local10:Array = [];
var _local11:Array = [];
var _local12:Array = [];
var _local13:Array = [];
var _local14:Array = [];
var _local15:Array = [];
if (strDay == "Sat"){
_local10 = [600, 605, 610, 630, 720, 900, 1020, 1080, 1110, 1260, 1290, 1370, 1375, 1380, 2000];
_local11 = [1, 4, 16, 35, 32, 33, 39, 43, 35, 34, 41, 43, 16, 4, 1, 1];
_local12 = [540, 545, 550, 610, 630, 720, 900, 1020, 1080, 1110, 1260, 1290, 1330, 1335, 1340, 2000];
_local13 = [3, 6, 18, 9, 0, 30, 0, 0, 26, 0, 0, 41, 9, 18, 6, 3, 3];
_local14 = [450, 455, 460, 610, 630, 720, 900, 1020, 1080, 1110, 1260, 1275, 1380, 1385, 1390, 2000];
_local15 = [2, 5, 17, 44, 0, 25, 0, 0, 8, 0, 0, 23, 8, 17, 5, 2, 2];
} else {
if (strDay == "Sun"){
_local10 = [600, 605, 610, 625, 780, 825, 1050, 1080, 1320, 1325, 2000];
_local11 = [1, 19, 36, 22, 40, 42, 10, 36, 38, 19, 1, 1];
_local12 = [570, 575, 605, 610, 625, 780, 825, 840, 1050, 1080, 1320, 1335, 1340, 2000];
_local13 = [3, 21, 12, 0, 12, 0, 0, 24, 12, 0, 0, 12, 21, 3, 3];
_local14 = [450, 455, 605, 610, 625, 780, 825, 1030, 1050, 1080, 1320, 1330, 1335, 2000];
_local15 = [2, 20, 11, 0, 11, 0, 0, 11, 23, 0, 0, 11, 20, 2, 2];
} else {
if ((((strDay == "Mon")) || ((strDay == "Fri")))){
_local10 = [390, 395, 400, 410, 1050, 1080, 1110, 1140, 1200, 1290, 1310, 1315, 1320, 2000];
_local11 = [1, 4, 16, 27, 0, 7, 35, 13, 43, 37, 43, 16, 4, 1, 1];
_local12 = [480, 485, 490, 500, 960, 1050, 1080, 1110, 1200, 1290, 1330, 1335, 1340, 2000];
_local13 = [3, 6, 18, 29, 0, 45, 26, 0, 9, 0, 9, 18, 6, 3, 3];
_local14 = [400, 405, 410, 500, 510, 1030, 1050, 1080, 1110, 1140, 1200, 1290, 1320, 1325, 1330, 2000];
_local15 = [2, 5, 17, 44, 28, 0, 23, 44, 0, 0, 8, 0, 8, 17, 5, 2, 2];
} else {
if ((((strDay == "Tue")) || ((strDay == "Thu")))){
_local10 = [390, 395, 400, 410, 1050, 1080, 1110, 1140, 1200, 1290, 1310, 1315, 1320, 2000];
_local11 = [1, 4, 16, 27, 0, 7, 35, 13, 43, 37, 43, 16, 4, 1, 1];
_local12 = [480, 485, 490, 500, 960, 1040, 1060, 1080, 1110, 1200, 1290, 1330, 1335, 1340, 2000];
_local13 = [3, 6, 18, 29, 0, 9, 0, 26, 0, 9, 0, 9, 18, 6, 3, 3];
_local14 = [400, 405, 410, 500, 510, 1030, 1040, 1060, 1080, 1110, 1140, 1200, 1290, 1320, 1325, 1330, 2000];
_local15 = [2, 5, 17, 44, 28, 0, 44, 31, 44, 0, 0, 8, 0, 8, 17, 5, 2, 2];
} else {
_local10 = [390, 395, 400, 410, 1050, 1080, 1110, 1140, 1200, 1290, 1310, 1315, 1320, 2000];
_local11 = [1, 4, 16, 27, 0, 7, 35, 41, 43, 39, 43, 16, 4, 1, 1];
_local12 = [480, 485, 490, 500, 960, 985, 1050, 1080, 1110, 1140, 1200, 1290, 1330, 1335, 1340, 2000];
_local13 = [3, 6, 18, 29, 0, 24, 45, 26, 0, 41, 9, 0, 9, 18, 6, 3, 3];
_local14 = [400, 405, 410, 500, 510, 1050, 1080, 1110, 1200, 1290, 1320, 1325, 1330, 2000];
_local15 = [2, 5, 17, 44, 28, 0, 44, 0, 0, 0, 8, 17, 5, 2, 2];
};
};
};
};
_local3 = 1;
_local4 = 2;
_local5 = 3;
_local2 = 0;
while (_local2 < _local10.length) {
if (iDayMinuteProgress > _local10[_local2]){
_local3 = _local11[(_local2 + 1)];
};
_local2++;
};
_local2 = 0;
while (_local2 < _local12.length) {
if (iDayMinuteProgress > _local12[_local2]){
_local5 = _local13[(_local2 + 1)];
};
_local2++;
};
_local2 = 0;
while (_local2 < _local14.length) {
if (iDayMinuteProgress > _local14[_local2]){
_local4 = _local15[(_local2 + 1)];
};
_local2++;
};
if (_local3 < 16){
_local6 = 6;
} else {
if ((((_local3 == 16)) || ((_local3 == 19)))){
_local6 = 5;
} else {
if (_local3 == 22){
_local6 = 4;
} else {
if (_local3 == 27){
_local6 = 2;
} else {
if (_local3 == 0){
_local6 = 100;
} else {
_local6 = 1;
};
};
};
};
};
if (_local4 < 16){
_local7 = 7;
} else {
if ((((_local4 == 17)) || ((_local4 == 20)))){
_local7 = 5;
} else {
if ((((_local4 == 23)) || ((_local4 == 25)))){
_local7 = 4;
} else {
if ((((_local4 == 28)) || ((_local4 == 31)))){
_local7 = 2;
} else {
if (_local4 == 0){
_local7 = 100;
} else {
_local7 = 1;
};
};
};
};
};
if (_local5 < 16){
_local8 = 8;
} else {
if ((((_local5 == 18)) || ((_local5 == 21)))){
_local8 = 5;
} else {
if (_local5 == 24){
_local8 = 4;
} else {
if ((((((((_local5 == 26)) || ((_local5 == 29)))) || ((_local5 == 30)))) || ((_local5 == 31)))){
_local8 = 2;
} else {
if (_local5 == 0){
_local8 = 100;
} else {
_local8 = 1;
};
};
};
};
};
if ((((((_arg1 == 3)) && ((strDay == "Mon")))) && ((iDayMinuteProgress == 1196)))){
_local9 = 1;
} else {
if ((((((_arg1 == 3)) && ((strDay == "Wed")))) && ((iDayMinuteProgress == 1298)))){
_local9 = 2;
} else {
if ((((((_arg1 == 3)) && ((strDay == "Fri")))) && ((iDayMinuteProgress == 1301)))){
_local9 = 3;
};
};
};
if ((((((_local3 == 0)) && ((_local4 == 0)))) && ((_local5 == 0)))){
showHighLightText("All three are at work. Check back later.");
highLightText.txt2.text = "";
} else {
if (_local6 == _arg1){
highLightText.txt2.text = "(You already had a picture of this)";
getHLText(_arg1, _local3);
addPhotoToBook(_local3);
} else {
if (_local7 == _arg1){
highLightText.txt2.text = "(You already had a picture of this)";
getHLText(_arg1, _local4);
addPhotoToBook(_local4);
} else {
if (_local8 == _arg1){
highLightText.txt2.text = "(You already had a picture of this)";
getHLText(_arg1, _local5);
addPhotoToBook(_local5);
} else {
if ((((_arg1 == 3)) && ((_local9 > 0)))){
if (_local9 == 1){
highLightText.txt2.text = "(You already had a picture of this)";
getHLText(_arg1, 46);
addPhotoToBook(46);
} else {
if (_local9 == 2){
highLightText.txt2.text = "(You already had a picture of this)";
getHLText(_arg1, 47);
addPhotoToBook(47);
} else {
if (_local9 == 3){
highLightText.txt2.text = "(You already had a picture of this)";
getHLText(_arg1, 48);
addPhotoToBook(48);
};
};
};
} else {
getHLText(_arg1, 0);
};
};
};
};
};
}
public function getHLText(_arg1, _arg2):void{
var _local3:* = "There's nobody in this room right now.";
if (_arg1 == 1){
_local3 = "Nobody is in the livingroom right now.";
};
if (_arg1 == 2){
_local3 = "Nobody is in the kitchen right now.";
};
if (_arg1 == 3){
_local3 = "The curtain is blocking your view into the hallway.";
};
if (_arg1 == 4){
_local3 = "Nobody is in the bathroom right now.";
};
if (_arg1 == 5){
_local3 = "Nobody is in the toilet right now.";
};
if (_arg1 == 6){
_local3 = "Nobody is in Jen's bedroom right now.";
};
if (_arg1 == 7){
_local3 = "Nobody is in Kelsey's bedroom right now.";
};
if (_arg1 == 8){
_local3 = "Nobody is in Amanda's bedroom right now.";
};
highLightText.txt2.text = "";
if (_arg2 == 1){
_local3 = "Jen is sleeping in her bed.";
strDesc = "Jen is sleeping... and showing off her lovely breasts!";
};
if (_arg2 == 2){
_local3 = "Kelsey is sleeping in her bed.";
strDesc = "Awww... look at how peacefully she's sleeping!";
};
if (_arg2 == 3){
_local3 = "Amanda is sleeping in her bed.";
strDesc = "What a wonderful shot! I can see her panties and her sexy feet!";
};
if (_arg2 == 4){
_local3 = "Jen is changing clothes.";
strDesc = "Jen changing clothes <3";
};
if (_arg2 == 5){
_local3 = "Kelsey is changing clothes.";
strDesc = "Kelsey changing clothes! heehee!";
};
if (_arg2 == 6){
_local3 = "Amanda is changing clothes.";
strDesc = "Look at that! Amanda is changing clothes, and giving us a nice view!";
};
if (_arg2 == 7){
_local3 = "Jen is reading a book on her bed.";
strDesc = "Jen reading... I wish I could join her!";
};
if (_arg2 == 8){
_local3 = "Kelsey is reading comics on her bed.";
strDesc = "Heehee, Kelsey is reading comics. Now if I could sneak up on her...";
};
if (_arg2 == 9){
_local3 = "Amanda is reading a book on her bed.";
strDesc = "Hmm! Amanda is showing off her sexy feet again! Would she mind me touching them?";
};
if (_arg2 == 10){
_local3 = "Jen is reading a book on her bed.";
strDesc = "This Sunday nudity is so awesome... I love staring at Jen like this!";
};
if (_arg2 == 11){
_local3 = "Kelsey is reading comics on her bed.";
strDesc = "Look at Kelsey in her naked butt, reading comics!";
};
if (_arg2 == 12){
_local3 = "Amanda is reading a book on her bed.";
strDesc = "Amanda is so awesome! I wish I could play with her feet a bit!";
};
if (_arg2 == 13){
_local3 = "Kelsey is tickling Jen in her bedroom.";
strDesc = "Look at that! Kelsey is tickling Jen, and I can see her panties!";
};
if (_arg2 == 16){
_local3 = "Jen is sitting on the toilet.";
strDesc = "Got you! Nice view from above!";
};
if (_arg2 == 17){
_local3 = "Kelsey is sitting on the toilet.";
strDesc = "Look at that! I got a picture of Kelsey on the toilet!";
};
if (_arg2 == 18){
_local3 = "Amanda is sitiing on the toilet.";
strDesc = "What an awesome view!";
};
if (_arg2 == 19){
_local3 = "Jen is sitting on the toilet.";
strDesc = "I would love watching Jen like this all day!";
};
if (_arg2 == 20){
_local3 = "Kelsey is sitiing on the toilet.";
strDesc = "What a great view on unexpecting Kelsey!";
};
if (_arg2 == 21){
_local3 = "Amanda is sitting on the toilet.";
strDesc = "What a lovely view! I'll keep this picture close forever!";
};
if (_arg2 == 22){
_local3 = "Jen is taking a bath.";
strDesc = "Ooh, I wish she would sit in there the whole day, for me to watch!";
};
if (_arg2 == 23){
_local3 = "Kelsey is taking a bath.";
strDesc = "Heehee... what an awesome shot of Kelsey playing in bath!";
};
if (_arg2 == 24){
_local3 = "Amanda is taking a bath.";
strDesc = "I wish I could wash her legs and feet!";
};
if (_arg2 == 25){
_local3 = "Kelsey is cleaning the bath tub";
strDesc = "Ooh... what a wonderful view on Kelsey cleaning the bathroom!";
};
if (_arg2 == 26){
_local3 = "Amanda is cooking a meal.";
strDesc = "Look at that! Amanda cooking!";
};
if (_arg2 == 27){
_local3 = "Jen is having a quick bite in the kitchen.";
strDesc = "How cute! Jen's eating a sandwich...";
};
if (_arg2 == 28){
_local3 = "Kelsey quickly eats something in the kitchen.";
strDesc = "Awww. A rare shot of Kelsey actually eating some real food!";
};
if (_arg2 == 29){
_local3 = "Amanda is having a quick bite in the kitchen.";
strDesc = "Looks like Amanda is stuffing herself with a sandwich!";
};
if (_arg2 == 30){
_local3 = "Amanda is cleaning the kitchen.";
strDesc = "Ooh! What a great upskirt shot of Amanda, cleaning the kitchen!";
};
if (_arg2 == 31){
_local3 = "Kelsey is ambushing Amanda in the kitchen.";
strDesc = "Ooh! Kelsey sneaking up on Amanda... gives the best pictures!";
};
if (_arg2 == 32){
_local3 = "Jen is cleaning the livingroom.";
strDesc = "I love this picture of Jen's panties!";
};
if (_arg2 == 33){
_local3 = "Emmi is visiting the girls.";
strDesc = "Emmi visiting... What a cool family picture!";
};
if (_arg2 == 34){
_local3 = "Claire is visiting the girls.";
strDesc = "Jen's sister Claire visiting...";
};
if (_arg2 == 35){
_local3 = "The girls are eating together.";
strDesc = "The girls are eating together!";
};
if (_arg2 == 36){
_local3 = "The girls are eating together.";
strDesc = "What a great view on Jen's and Kelsey's butts!";
};
if (_arg2 == 37){
_local3 = "The girls are watching television.";
strDesc = "Aww... they're watching television...";
};
if (_arg2 == 38){
_local3 = "The girls are watching television.";
strDesc = "It's so nice to see the girls watching television - nude! <3";
};
if (_arg2 == 39){
_local3 = "The girls are playing twister.";
strDesc = "Twister rocks! And lifts Jen's skirt up for some exclusive view!";
};
if (_arg2 == 40){
_local3 = "The girls are playing twister.";
strDesc = "Twister on Sunday! Awesome intertwined nudity!";
};
if (_arg2 == 41){
_local3 = "Jen is tickling Amanda in the livingroom.";
strDesc = "Tickling is always so much fun!";
};
if (_arg2 == 42){
_local3 = "All on Kelsey!";
strDesc = "All on Kelsey! Yay!";
};
if (_arg2 == 43){
_local3 = "Jen is reading on the couch.";
strDesc = "Jen reading a book on the couch... and showing off her sensitive soles! Wow!";
};
if (_arg2 == 44){
_local3 = "Kelsey is relaxing on the couch.";
strDesc = "Kelsey relaxing on the couch... if she only knew I took this picture...!";
};
if (_arg2 == 45){
_local3 = "Amanda is having fun on the couch.";
strDesc = "Look at that! Amanda is secretly playing with her own feet! mmmmh!";
};
if (_arg2 == 46){
_local3 = "Ooh! Kelsey is riding Jen's back! XD";
strDesc = "What an exclusive picture! Kelsey riding Jen!";
};
if (_arg2 == 47){
_local3 = "Ooh! Amanda is licking Kelsey's foot! XD";
strDesc = "What an exclusive picture! Amanda licking Kelsey's feet!";
};
if (_arg2 == 48){
_local3 = "Ooh! Jen is spanking Kelsey's butt! XD";
strDesc = "What an exclusive picture! Jen spanking Kelsey's butt!";
};
if (_arg2 > 0){
photoBig.gotoAndStop((_arg2 + 1));
photoBig.y = 45;
photoBig.alpha = 1;
};
showHighLightText(_local3);
}
public function showHighLightText(_arg1){
if (_arg1 == ""){
highLightText.alpha = 0;
highLightText.y = -50;
} else {
highLightText.txt.text = _arg1;
highLightText.y = 40;
myTween.stop();
myTween = new Tween(highLightText, "alpha", Regular.easeIn, 1, 0, 6, true);
};
}
public function addPhotoToBook(_arg1):void{
if ((((arrPhotosUnlocked.indexOf(_arg1) < 0)) && (!((_arg1 == 0))))){
highLightText.txt2.text = "You secretly took a picture of this!";
arrPhotosUnlocked.push(_arg1);
arrPhotosTimestamp.push(strHeader);
arrFreeText.push(strDesc);
saveData();
};
}
public function hideHighLightText():void{
highLightText.alpha = 0;
highLightText.y = -50;
photoBig.alpha = 0;
photoBig.y = -350;
}
public function checkDataValidity():void{
var _local1:*;
if (arrPhotosUnlocked.length > 0){
if (arrPhotosUnlocked.indexOf(0) != -1){
_local1 = arrPhotosUnlocked.indexOf(0);
arrPhotosUnlocked.splice(_local1, 1);
arrPhotosTimestamp.splice(_local1, 1);
arrFreeText.splice(_local1, 1);
if (bSaveNeeded == true){
bSaveNeeded = false;
saveData();
};
trace("## ILLEGAL PHOTO ID 0 REMOVED FROM BOOK! ##");
};
};
}
function frame1(){
stop();
dbVersion = "illionoreISpy18042014_001a";
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
bSaveOrLoadInProgress = false;
stop();
arrPhotosUnlocked = [];
arrPhotosTimestamp = [];
arrFreeText = [];
saveState = 0;
loadData();
}
function frame3(){
stop();
iDayMinuteProgress = 0;
myInterval = setInterval(myTimer, 30000);
arrMonth = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
arrDoW = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
strDay = "Mon";
hours = 0;
minutes = 0;
month = 1;
strHeader = "";
bSaveNeeded = false;
strDesc = "";
house.x = 45;
house.y = 26;
keybook.alpha = 0;
getDateTime();
iDayMinuteProgress = ((hours * 60) + minutes);
updateLighting();
updateCurtainStance();
myTween = new Tween(highLightText, "alpha", Regular.easeIn, 1, 0, 1, true);
pageOffset = 0;
maxPages = 5;
updateLighting();
updateCurtainStance();
if (saveState == 0){
savesTxt.text = "No data loaded!";
} else {
savesTxt.text = "Data loaded OK";
};
checkDataValidity();
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
}
}
}//package Ispy_fla
Section 11
//photo_19 (Ispy_fla.photo_19)
package Ispy_fla {
import flash.display.*;
public dynamic class photo_19 extends MovieClip {
public function photo_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Ispy_fla
Section 12
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 13
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package