Section 1
//MainTimeline (drawing_fla.MainTimeline)
package drawing_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class MainTimeline extends MovieClip {
public var Skirt:MovieClip;
public var btnMouthForward:MovieClip;
public var btnNG:MovieClip;
public var btnAtriBack:MovieClip;
public var btnSkirtForward:MovieClip;
public var btnGo:MovieClip;
public var btnShirtBack:MovieClip;
public var outfitLocked2:MovieClip;
public var btnSkirtBack:MovieClip;
public var Atri:MovieClip;
public var btnShirtForward:MovieClip;
public var Mouth:MovieClip;
public var btnAtriForward:MovieClip;
public var outfitLocked1:MovieClip;
public var btnBlog:MovieClip;
public var btnMouthBack:MovieClip;
public var Shirt:MovieClip;
public var shirtCounter:int;
public var skirtCounter:int;
public var mouthCounter:int;
public var atriCounter:int;
public var mDown:Boolean;
public var oneUnlocked:Boolean;
public var twoUnlocked:Boolean;
public var somethingActive:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3);
}
public function goOn(_arg1:MouseEvent):void{
btnGo.removeEventListener(MouseEvent.CLICK, goOn);
gotoAndStop(3);
}
public function update(_arg1:Event):void{
if ((((((shirtCounter == 14)) && (!(oneUnlocked)))) || ((((shirtCounter == 15)) && (!(twoUnlocked)))))){
outfitLocked1.visible = true;
} else {
outfitLocked1.visible = false;
};
if ((((((skirtCounter == 11)) && (!(oneUnlocked)))) || ((((skirtCounter == 12)) && (!(twoUnlocked)))))){
outfitLocked2.visible = true;
} else {
outfitLocked2.visible = false;
};
}
public function btnNGClick(_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://23c5c7a0.amy.gs");
navigateToURL(_local2, "_blank");
oneUnlocked = true;
}
public function btnBlogClick(_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://4dc62a91.linkbabes.com");
navigateToURL(_local2, "_blank");
twoUnlocked = true;
}
public function mouseIsDown(_arg1:MouseEvent):void{
if (Atri.hitTestPoint(mouseX, mouseY, true)){
createAttributes2();
};
mDown = true;
}
public function mouseIsUp(_arg1:MouseEvent):void{
mDown = false;
}
public function createAttributes2():void{
var _local1:Attributes2 = new Attributes2();
_local1.x = mouseX;
_local1.y = mouseY;
_local1.gotoAndStop(atriCounter);
addChild(_local1);
}
public function mouseClick(_arg1:MouseEvent):void{
if (btnShirtForward.hitTestPoint(mouseX, mouseY, true)){
if (shirtCounter != Shirt.totalFrames){
shirtCounter++;
} else {
shirtCounter = 1;
};
Shirt.gotoAndStop(shirtCounter);
} else {
if (btnShirtBack.hitTestPoint(mouseX, mouseY, true)){
if (shirtCounter != 1){
shirtCounter--;
} else {
shirtCounter = Shirt.totalFrames;
};
Shirt.gotoAndStop(shirtCounter);
};
};
if (btnSkirtForward.hitTestPoint(mouseX, mouseY, true)){
if (skirtCounter != Skirt.totalFrames){
skirtCounter++;
} else {
skirtCounter = 1;
};
Skirt.gotoAndStop(skirtCounter);
} else {
if (btnSkirtBack.hitTestPoint(mouseX, mouseY, true)){
if (skirtCounter != 1){
skirtCounter--;
} else {
skirtCounter = Skirt.totalFrames;
};
Skirt.gotoAndStop(skirtCounter);
};
};
if (btnMouthForward.hitTestPoint(mouseX, mouseY, true)){
if (mouthCounter != Mouth.totalFrames){
mouthCounter++;
} else {
mouthCounter = 1;
};
Mouth.gotoAndStop(mouthCounter);
} else {
if (btnMouthBack.hitTestPoint(mouseX, mouseY, true)){
if (mouthCounter != 1){
mouthCounter--;
} else {
mouthCounter = Mouth.totalFrames;
};
Mouth.gotoAndStop(mouthCounter);
};
};
if (btnAtriForward.hitTestPoint(mouseX, mouseY, true)){
if (atriCounter != Atri.totalFrames){
atriCounter++;
} else {
atriCounter = 1;
};
Atri.gotoAndStop(atriCounter);
} else {
if (btnAtriBack.hitTestPoint(mouseX, mouseY, true)){
if (atriCounter != 1){
atriCounter--;
} else {
atriCounter = Atri.totalFrames;
};
Atri.gotoAndStop(atriCounter);
};
};
}
function frame1(){
gotoAndStop(1);
btnGo.addEventListener(MouseEvent.CLICK, goOn);
btnGo.buttonMode = true;
}
function frame3(){
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseIsDown);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseIsUp);
stage.addEventListener(MouseEvent.CLICK, mouseClick);
addEventListener(Event.ENTER_FRAME, update);
btnNG.addEventListener(MouseEvent.CLICK, btnNGClick);
btnBlog.addEventListener(MouseEvent.CLICK, btnBlogClick);
btnNG.buttonMode = true;
btnBlog.buttonMode = true;
btnAtriForward.buttonMode = true;
btnAtriBack.buttonMode = true;
btnMouthForward.buttonMode = true;
btnMouthBack.buttonMode = true;
btnShirtForward.buttonMode = true;
btnShirtBack.buttonMode = true;
btnSkirtForward.buttonMode = true;
btnSkirtBack.buttonMode = true;
shirtCounter = 1;
skirtCounter = 1;
mouthCounter = 1;
atriCounter = 1;
mDown = false;
oneUnlocked = false;
twoUnlocked = false;
somethingActive = false;
Shirt.gotoAndStop(shirtCounter);
Skirt.gotoAndStop(skirtCounter);
Mouth.gotoAndStop(mouthCounter);
Atri.gotoAndStop(atriCounter);
outfitLocked1.visible = false;
outfitLocked2.visible = false;
gotoAndStop(3);
}
}
}//package drawing_fla
Section 2
//Attributes2 (Attributes2)
package {
import flash.events.*;
import flash.display.*;
public class Attributes2 extends MovieClip {
var placed:Boolean;// = false
public function Attributes2(){
addEventListener(Event.ADDED_TO_STAGE, onAdded);
}
public function onAdded(_arg1:Event):void{
addEventListener(Event.ENTER_FRAME, update);
}
public function update(_arg1:Event):void{
if (MovieClip(root).mDown == false){
MovieClip(root).somethingActive = false;
};
if (!placed){
MovieClip(root).somethingActive = true;
this.x = MovieClip(root).mouseX;
this.y = MovieClip(root).mouseY;
if (MovieClip(root).mDown == false){
placed = true;
};
};
if (((((((placed) && (this.hitTestPoint(MovieClip(root).mouseX, MovieClip(root).mouseY, true)))) && (MovieClip(root).mDown))) && (!(MovieClip(root).somethingActive)))){
killMe();
};
}
public function killMe():void{
removeEventListener(Event.ADDED_TO_STAGE, onAdded);
removeEventListener(Event.ENTER_FRAME, update);
parent.removeChild(this);
}
}
}//package