Section 1
//amSide_18 (amandaDreams_fla.amSide_18)
package amandaDreams_fla {
import flash.display.*;
public dynamic class amSide_18 extends MovieClip {
public function amSide_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amandaDreams_fla
Section 2
//amSide2_16 (amandaDreams_fla.amSide2_16)
package amandaDreams_fla {
import flash.display.*;
public dynamic class amSide2_16 extends MovieClip {
public var tongue:MovieClip;
public var amanda:MovieClip;
public var expression:MovieClip;
public var hand:MovieClip;
public function amSide2_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amandaDreams_fla
Section 3
//amSucks_15 (amandaDreams_fla.amSucks_15)
package amandaDreams_fla {
import flash.display.*;
public dynamic class amSucks_15 extends MovieClip {
public var amSide:MovieClip;
public function amSucks_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amandaDreams_fla
Section 4
//archway_26 (amandaDreams_fla.archway_26)
package amandaDreams_fla {
import flash.display.*;
public dynamic class archway_26 extends MovieClip {
public var amSide:MovieClip;
public function archway_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amandaDreams_fla
Section 5
//examplePic_28 (amandaDreams_fla.examplePic_28)
package amandaDreams_fla {
import flash.display.*;
public dynamic class examplePic_28 extends MovieClip {
public function examplePic_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amandaDreams_fla
Section 6
//expression_19 (amandaDreams_fla.expression_19)
package amandaDreams_fla {
import flash.display.*;
public dynamic class expression_19 extends MovieClip {
public function expression_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amandaDreams_fla
Section 7
//guidancebox_10 (amandaDreams_fla.guidancebox_10)
package amandaDreams_fla {
import flash.display.*;
public dynamic class guidancebox_10 extends MovieClip {
public function guidancebox_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amandaDreams_fla
Section 8
//MainTimeline (amandaDreams_fla.MainTimeline)
package amandaDreams_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
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 amLicks:MovieClip;
public var sizeMinMin:MovieClip;
public var btnLick:MovieClip;
public var load_mc:MovieClip;
public var btnFlip:MovieClip;
public var examplePic:MovieClip;
public var sizePlus:MovieClip;
public var rotationMin:MovieClip;
public var btnIntroStart:introStartButton;
public var sizeMin:MovieClip;
public var btnKiss:MovieClip;
public var amSucks:MovieClip;
public var scaleMod:MovieClip;
public var btnNext:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var sizeRotationText:MovieClip;
public var arrowScale:MovieClip;
public var btnTouch:MovieClip;
public var sizePlusPlus:MovieClip;
public var btnReset:MovieClip;
public var imageArea:MovieClip;
public var rotationPlusPlus:MovieClip;
public var infoBox:MovieClip;
public var btnTryAgain:MovieClip;
public var loadWindow:MovieClip;
public var btnSuck:MovieClip;
public var btnRetract:MovieClip;
public var rotationMinMin:MovieClip;
public var overlay:MovieClip;
public var btnRestart:MovieClip;
public var btnAuto:MovieClip;
public var rotationPlus:MovieClip;
public var bRealClick;
public var bAuto;
public var bInit;
public var imageLoader:Loader;
public var iPhase;
public var iFlipze;
public var iFlipze2;
public var clickedItem;
public var tmpY;
public var tweenX:Tween;
public var animationType;
public var tongueLoc;
public var kissCounter;
public var timeOut;
public var tweenY:Tween;
public var myInterval:uint;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
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 loadImage(_arg1:String):void{
imageLoader = new Loader();
imageLoader.load(new URLRequest(_arg1));
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
imageLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
public function ioErrorHandler(_arg1:IOErrorEvent):void{
imageLoader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
imageLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, imageLoaded);
trace("ih");
loadWindow.y = 300;
loadWindow.alpha = 1;
loadWindow.errorBox.alpha = 1;
iPhase = -1;
}
public function imageLoaded(_arg1:Event):void{
imageArea.addChild(imageLoader);
iPhase = 1;
overlay.y = 0;
load_mc.alpha = 0;
load_mc.y = -400;
infoBox.gotoAndStop(2);
}
public function imageLoading(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
load_mc.bar.scaleX = _local4;
load_mc.load_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function mouseClicked(_arg1:MouseEvent):void{
tmpY = mouseY;
bRealClick = true;
clickedItem = _arg1.target.name;
}
public function myTimer():void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local9:String;
var _local10:*;
var _local1:* = 0;
var _local2:* = 0;
var _local7:* = amLicks.rotation;
var _local8:* = amSucks.rotation;
if (timeOut > 0){
timeOut--;
if (timeOut == 0){
btnNext.y = 552;
btnNext.alpha = 1;
};
};
if (clickedItem == "btnTryAgain"){
gotoAndStop(2);
};
if (iPhase == 0){
if (clickedItem == "btnJTC"){
loadWindow.picLOC.text = "http://fc06.deviantart.net/fs71/f/2012/277/1/1/jen___true_colours_by_illionore-d5grscd.jpg";
loadWindow.btnLoad.alpha = 1;
} else {
if ((((clickedItem == "btnLoad")) && ((loadWindow.btnLoad.alpha == 1)))){
loadImage(loadWindow.picLOC.text);
loadWindow.alpha = 0;
loadWindow.y = -1000;
};
};
_local9 = loadWindow.picLOC.text.toLowerCase();
if (_local9.length > 4){
if ((((((((_local9.search(".jpg") > 0)) || ((_local9.search(".jpeg") > 0)))) || ((_local9.search(".png") > 0)))) || ((_local9.search(".gif") > 0)))){
loadWindow.btnLoad.alpha = 1;
} else {
loadWindow.btnLoad.alpha = 0.1;
};
} else {
loadWindow.btnLoad.alpha = 0.1;
};
};
if (iPhase == 1){
if (clickedItem == "scaleMod"){
_local3 = imageArea.width;
_local6 = imageArea.height;
arrowScale.y = tmpY;
if (tmpY == 390){
imageArea.scaleX = 1;
imageArea.scaleY = 1;
} else {
if ((((tmpY < 390)) && ((tmpY > 9)))){
_local2 = (((380 - (tmpY - 10)) / 100) + 1);
imageArea.scaleX = _local2;
imageArea.scaleY = _local2;
} else {
if ((((tmpY > 390)) && ((tmpY < 591)))){
_local2 = ((100 - ((tmpY - 390) / 2)) / 100);
imageArea.scaleX = _local2;
imageArea.scaleY = _local2;
};
};
};
_local4 = imageArea.width;
_local5 = imageArea.height;
if (_local4 != _local3){
imageArea.x = (imageArea.x - ((_local4 - _local3) / 2));
};
if (_local5 != _local6){
imageArea.y = (imageArea.y - ((_local5 - _local6) / 2));
};
} else {
if (clickedItem == "overlay"){
_local1 = mouseX;
_local2 = mouseY;
_local1 = (-(imageArea.x) + _local1);
_local2 = (-(imageArea.y) + _local2);
imageArea.x = (400 - _local1);
imageArea.y = (300 - _local2);
} else {
if (clickedItem == "btnReset"){
imageArea.x = 0;
imageArea.y = 0;
imageArea.scaleX = 1;
imageArea.scaleY = 1;
arrowScale.y = 390;
} else {
if (clickedItem == "btnNext"){
btnNext.alpha = 0;
btnNext.y = -400;
timeOut = 4;
iPhase = 2;
scaleMod.alpha = 0;
arrowScale.alpha = 0;
infoBox.gotoAndStop(3);
examplePic.y = 0x0200;
examplePic.alpha = 1;
sizeRotationText.x = 713;
sizeRotationText.alpha = 1;
sizeMinMin.x = 717;
sizeMinMin.alpha = 1;
sizeMin.x = 732;
sizeMin.alpha = 1;
sizePlus.x = 760;
sizePlus.alpha = 1;
sizePlusPlus.x = 775;
sizePlusPlus.alpha = 1;
rotationMinMin.x = 717;
rotationMinMin.alpha = 1;
rotationMin.x = 732;
rotationMin.alpha = 1;
rotationPlus.x = 760;
rotationPlus.alpha = 1;
rotationPlusPlus.x = 775;
rotationPlusPlus.alpha = 1;
btnReset.alpha = 0;
btnReset.y = -400;
btnFlip.x = 742;
btnFlip.alpha = 1;
amLicks.x = 400;
amLicks.y = 300;
amLicks.alpha = 1;
};
};
};
};
} else {
if (iPhase == 2){
if ((((clickedItem == "amLicks")) || ((clickedItem == "overlay")))){
amLicks.x = mouseX;
amLicks.y = mouseY;
} else {
if (clickedItem == "sizeMin"){
if (amLicks.scaleX > 0.1){
amLicks.scaleX = (amLicks.scaleX - 0.05);
amLicks.scaleY = (amLicks.scaleY - (0.05 * iFlipze));
btnNext.y = 552;
btnNext.alpha = 1;
};
} else {
if (clickedItem == "sizeMinMin"){
if (amLicks.scaleX > 1){
amLicks.scaleX = (amLicks.scaleX - 1);
amLicks.scaleY = (amLicks.scaleY - (1 * iFlipze));
btnNext.y = 552;
btnNext.alpha = 1;
};
} else {
if (clickedItem == "sizePlusPlus"){
amLicks.scaleX = (amLicks.scaleX + 1);
amLicks.scaleY = (amLicks.scaleY + (1 * iFlipze));
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "sizePlus"){
amLicks.scaleX = (amLicks.scaleX + 0.05);
amLicks.scaleY = (amLicks.scaleY + (0.05 * iFlipze));
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "rotationMin"){
amLicks.rotation = (amLicks.rotation - 1);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "rotationMinMin"){
amLicks.rotation = (amLicks.rotation - 20);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "rotationPlusPlus"){
amLicks.rotation = (amLicks.rotation + 20);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "rotationPlus"){
amLicks.rotation = (amLicks.rotation + 1);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "examplePic"){
examplePic.alpha = 0;
examplePic.y = -400;
} else {
if (clickedItem == "btnFlip"){
amLicks.rotation = 0;
amLicks.scaleY = -(amLicks.scaleY);
amLicks.rotation = _local7;
iFlipze = (iFlipze * -1);
} else {
if (clickedItem == "btnNext"){
btnNext.alpha = 0;
btnNext.y = -400;
timeOut = 4;
iPhase = 3;
amLicks.alpha = 0;
amLicks.y = (amLicks.y - 1000);
amSucks.y = 300;
amSucks.scaleX = amLicks.scaleX;
amSucks.scaleY = amLicks.scaleY;
amSucks.alpha = 1;
sizeMinMin.alpha = 0.1;
sizeMin.alpha = 0.1;
sizePlus.alpha = 0.1;
sizePlusPlus.alpha = 0.1;
infoBox.gotoAndStop(4);
examplePic.y = 0x0200;
examplePic.gotoAndStop(2);
examplePic.alpha = 1;
};
};
};
};
};
};
};
};
};
};
};
};
} else {
if (iPhase == 3){
if ((((clickedItem == "amSucks")) || ((clickedItem == "overlay")))){
amSucks.x = mouseX;
amSucks.y = mouseY;
} else {
if (clickedItem == "sizeMin"){
if ((((amSucks.scaleX > 0.1)) || ((amSucks.scaleX < -0.1)))){
amSucks.scaleX = (amSucks.scaleX - (0.05 * iFlipze2));
amSucks.scaleY = (amSucks.scaleY - 0.05);
btnNext.y = 552;
btnNext.alpha = 1;
};
} else {
if (clickedItem == "sizeMinMin"){
if ((((amSucks.scaleX > 1)) || ((amSucks.scaleX < -1)))){
amSucks.scaleX = (amSucks.scaleX - (1 * iFlipze2));
amSucks.scaleY = (amSucks.scaleY - 1);
btnNext.y = 552;
btnNext.alpha = 1;
};
} else {
if (clickedItem == "sizePlusPlus"){
amSucks.scaleX = (amSucks.scaleX + (1 * iFlipze2));
amSucks.scaleY = (amSucks.scaleY + 1);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "sizePlus"){
amSucks.scaleX = (amSucks.scaleX + (0.05 * iFlipze2));
amSucks.scaleY = (amSucks.scaleY + 0.05);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "rotationMin"){
amSucks.rotation = (amSucks.rotation - 1);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "rotationMinMin"){
amSucks.rotation = (amSucks.rotation - 20);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "rotationPlusPlus"){
amSucks.rotation = (amSucks.rotation + 20);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "examplePic"){
examplePic.alpha = 0;
examplePic.y = -400;
} else {
if (clickedItem == "rotationPlus"){
amSucks.rotation = (amSucks.rotation + 1);
btnNext.y = 552;
btnNext.alpha = 1;
} else {
if (clickedItem == "btnFlip"){
amSucks.rotation = 0;
amSucks.scaleX = -(amSucks.scaleX);
amSucks.rotation = _local8;
iFlipze2 = (iFlipze2 * -1);
} else {
if (clickedItem == "btnNext"){
btnNext.alpha = 0;
btnNext.y = -400;
iPhase = 4;
timeOut = 0;
examplePic.alpha = 0;
examplePic.y = -400;
infoBox.alpha = 0;
infoBox.y = -400;
overlay.alpha = 0;
overlay.y = -1000;
amSucks.gotoAndStop(2);
amSucks.alpha = 1;
amLicks.y = (amLicks.y + 1000);
amLicks.gotoAndStop(2);
sizeRotationText.alpha = 0;
sizeMinMin.alpha = 0;
sizeMin.alpha = 0;
sizePlus.alpha = 0;
sizePlusPlus.alpha = 0;
rotationMinMin.alpha = 0;
rotationMin.alpha = 0;
rotationPlus.alpha = 0;
rotationPlusPlus.alpha = 0;
btnFlip.alpha = 0;
btnReset.alpha = 0;
btnReset.y = -400;
btnRetract.x = 747;
btnLick.x = 747;
btnSuck.x = 747;
btnKiss.x = 747;
btnTouch.x = 747;
btnAuto.x = 747;
btnRetract.alpha = 1;
btnLick.alpha = 1;
btnSuck.alpha = 1;
btnKiss.alpha = 1;
btnTouch.alpha = 1;
btnAuto.alpha = 1;
btnRestart.x = 747;
btnRestart.alpha = 1;
amSucks.alpha = 1;
};
};
};
};
};
};
};
};
};
};
};
};
} else {
if (iPhase == 4){
if (bInit == false){
bInit = true;
amSucks.amSide.tongue.alpha = 0;
amSucks.amSide.hand.alpha = 0;
amLicks.amSide.hand.alpha = 0;
amLicks.amSide.tongue.alpha = 0;
tweenX = new Tween(amLicks.amSide, "x", Regular.easeOut, amLicks.amSide.x, (amLicks.amSide.x + 1), 1, true);
tweenX = new Tween(amSucks.amSide, "x", Regular.easeOut, -500, -220, 2, true);
tweenX.FPS = 40;
};
if ((((bAuto == true)) && ((clickedItem == "")))){
_local10 = Math.floor((Math.random() * 30));
if (_local10 < 5){
clickedItem = "btnRetract";
} else {
if (_local10 == 6){
clickedItem = "btnSuck";
} else {
if (_local10 == 7){
clickedItem = "btnLick";
} else {
if (_local10 == 8){
clickedItem = "btnKiss";
} else {
if (_local10 == 9){
clickedItem = "btnTouch";
};
};
};
};
};
};
if (clickedItem == "btnRetract"){
if (bRealClick == true){
bAuto = false;
};
animationType = 0;
kissCounter = 0;
hideHand();
tweenX.stop();
if ((((amSucks.amSide.tongue.currentFrame > 2)) && ((amSucks.amSide.tongue.currentFrame < 16)))){
amSucks.amSide.tongue.gotoAndPlay(16);
};
if ((((amLicks.amSide.tongue.currentFrame > 2)) && ((amLicks.amSide.tongue.currentFrame < 16)))){
amLicks.amSide.tongue.gotoAndPlay(16);
};
tweenX = new Tween(amSucks.amSide, "x", Regular.easeOut, amSucks.amSide.x, -220, 2, true);
tweenX.FPS = 40;
tweenX.addEventListener(TweenEvent.MOTION_FINISH, closeMouth);
} else {
if (clickedItem == "btnSuck"){
if (bRealClick == true){
bAuto = false;
};
animationType = 1;
kissCounter = 0;
hideHand();
tweenX.stop();
amSucks.alpha = 1;
amLicks.alpha = 0;
if ((((amSucks.amSide.tongue.currentFrame > 2)) && ((amSucks.amSide.tongue.currentFrame < 16)))){
amSucks.amSide.tongue.gotoAndPlay(16);
};
amSucks.amSide.amanda.gotoAndStop(2);
tweenX = new Tween(amSucks.amSide, "x", Strong.easeOut, -180, -140, 3, true);
tweenX.FPS = 40;
tweenX.addEventListener(TweenEvent.MOTION_FINISH, repeatSucking);
} else {
if (clickedItem == "btnLick"){
if (bRealClick == true){
bAuto = false;
};
animationType = 2;
kissCounter = 0;
hideHand();
tweenX.stop();
amSucks.alpha = 0;
amLicks.alpha = 1;
amLicks.amSide.amanda.gotoAndStop(2);
tweenX = new Tween(amLicks.amSide, "x", Strong.easeOut, amLicks.amSide.x, -222, 3, true);
tweenX.FPS = 40;
tweenX.addEventListener(TweenEvent.MOTION_FINISH, repeatLicking);
amLicks.amSide.tongue.gotoAndPlay(1);
amLicks.amSide.tongue.alpha = 1;
} else {
if (clickedItem == "btnKiss"){
if (bRealClick == true){
bAuto = false;
};
animationType = 3;
tweenX.stop();
hideHand();
if ((((amSucks.amSide.tongue.currentFrame > 2)) && ((amSucks.amSide.tongue.currentFrame < 16)))){
amSucks.amSide.tongue.gotoAndPlay(16);
};
if ((((amLicks.amSide.tongue.currentFrame > 2)) && ((amLicks.amSide.tongue.currentFrame < 16)))){
amLicks.amSide.tongue.gotoAndPlay(16);
};
tweenX = new Tween(amSucks.amSide, "x", Regular.easeOut, amSucks.amSide.x, -212, 1, true);
tweenX.FPS = 40;
tweenX.addEventListener(TweenEvent.MOTION_FINISH, closeMouth);
kissCounter = 1;
} else {
if (clickedItem == "btnTouch"){
if (bRealClick == true){
bAuto = false;
};
animationType = 4;
kissCounter = 0;
tweenX.stop();
if ((((amSucks.amSide.tongue.currentFrame > 2)) && ((amSucks.amSide.tongue.currentFrame < 16)))){
amSucks.amSide.tongue.gotoAndPlay(16);
};
if ((((amLicks.amSide.tongue.currentFrame > 2)) && ((amLicks.amSide.tongue.currentFrame < 16)))){
amLicks.amSide.tongue.gotoAndPlay(16);
};
tweenX = new Tween(amSucks.amSide, "x", Regular.easeOut, amSucks.amSide.x, -180, 1, true);
tweenX.FPS = 40;
tweenX.addEventListener(TweenEvent.MOTION_FINISH, closeMouthAndTouch);
} else {
if (clickedItem == "btnRestart"){
iPhase = -1;
imageArea.removeChild(imageLoader);
clearInterval(myInterval);
tweenX.stop();
stage.removeEventListener(MouseEvent.CLICK, mouseClicked);
gotoAndPlay(4);
} else {
if (clickedItem == "btnAuto"){
bAuto = true;
};
};
};
};
};
};
};
};
};
};
};
clickedItem = "";
bRealClick = false;
tmpY = 390;
if (kissCounter > 0){
kissCounter++;
if (kissCounter == 2){
amSucks.amSide.amanda.gotoAndStop(4);
amLicks.amSide.amanda.gotoAndStop(4);
};
if (kissCounter == 3){
amSucks.amSide.amanda.gotoAndStop(5);
amLicks.amSide.amanda.gotoAndStop(5);
};
if (kissCounter == 4){
amSucks.amSide.amanda.gotoAndStop(4);
amLicks.amSide.amanda.gotoAndStop(4);
};
if (kissCounter == 5){
amSucks.amSide.amanda.gotoAndStop(1);
amLicks.amSide.amanda.gotoAndStop(1);
};
if (kissCounter == 6){
kissCounter = 1;
amSucks.amSide.expression.gotoAndStop(Math.ceil((Math.random() * 3)));
amLicks.amSide.expression.gotoAndStop(Math.ceil((Math.random() * 3)));
};
};
}
public function hideHand():void{
if (amSucks.amSide.hand.alpha == 1){
amSucks.amSide.amanda.gotoAndStop(1);
amSucks.amSide.hand.alpha = 0;
amLicks.amSide.amanda.gotoAndStop(1);
amLicks.amSide.hand.alpha = 0;
};
}
public function closeMouth(_arg1:TweenEvent):void{
amSucks.amSide.tongue.gotoAndStop(1);
amSucks.amSide.amanda.gotoAndStop(1);
}
public function closeMouthAndTouch(_arg1:TweenEvent):void{
amSucks.amSide.tongue.gotoAndStop(1);
amSucks.amSide.amanda.gotoAndStop(1);
amSucks.amSide.amanda.gotoAndStop(6);
amLicks.amSide.amanda.gotoAndStop(6);
amSucks.amSide.hand.alpha = 1;
amLicks.amSide.hand.alpha = 1;
tweenY = new Tween(amLicks.amSide.hand, "rotation", Regular.easeOut, amLicks.amSide.hand.rotation, (Math.floor((Math.random() * 45)) - 22), 1, true);
tweenY.FPS = 40;
tweenX = new Tween(amSucks.amSide.hand, "rotation", Regular.easeOut, amSucks.amSide.hand.rotation, (Math.floor((Math.random() * 45)) - 22), 1, true);
tweenX.FPS = 40;
tweenX.addEventListener(TweenEvent.MOTION_FINISH, closeMouthAndTouch);
}
public function repeatLicking(_arg1:TweenEvent):void{
if (animationType == 2){
amLicks.amSide.expression.gotoAndStop(Math.ceil((Math.random() * 3)));
tweenX = new Tween(amLicks.amSide, "x", Elastic.easeInOut, amLicks.amSide.x, (Math.floor((Math.random() * 299)) - 222), 3, true);
tweenX.FPS = 40;
tweenX.addEventListener(TweenEvent.MOTION_FINISH, repeatLicking);
};
}
public function repeatSucking(_arg1:TweenEvent):void{
if (animationType == 1){
amSucks.amSide.expression.gotoAndStop(Math.ceil((Math.random() * 3)));
if (amSucks.amSide.x < -160){
tweenX = new Tween(amSucks.amSide, "x", Elastic.easeInOut, -180, -140, 2, true);
} else {
tweenX = new Tween(amSucks.amSide, "x", Elastic.easeInOut, -140, -180, 2, true);
};
tweenX.FPS = 40;
tweenX.addEventListener(TweenEvent.MOTION_FINISH, repeatSucking);
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
bRealClick = false;
bAuto = false;
bInit = false;
iPhase = 0;
iFlipze = 1;
iFlipze2 = 1;
clickedItem = "";
tmpY = 0;
animationType = 0;
tongueLoc = 0;
kissCounter = 0;
timeOut = 0;
examplePic.gotoAndStop(1);
myInterval = setInterval(myTimer, 500);
load_mc.bar.scaleX = 0;
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
}
function frame3(){
btnTryAgain;
}
function frame4(){
iPhase = 0;
gotoAndStop(2);
}
}
}//package amandaDreams_fla
Section 9
//tongue2_17 (amandaDreams_fla.tongue2_17)
package amandaDreams_fla {
import flash.display.*;
public dynamic class tongue2_17 extends MovieClip {
public function tongue2_17(){
addFrameScript(0, frame1, 7, frame8, 14, frame15, 15, frame16);
}
function frame1(){
stop();
}
function frame8(){
}
function frame15(){
gotoAndPlay(7);
}
function frame16(){
}
}
}//package amandaDreams_fla
Section 10
//Elastic (fl.transitions.easing.Elastic)
package fl.transitions.easing {
public class Elastic {
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 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _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 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) + _arg3) + _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 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) * 0.5) + _arg3) + _arg2));
}
}
}//package fl.transitions.easing
Section 11
//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 12
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 13
//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 14
//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 15
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 16
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package