Frame 1
wimp = false;
tbytes = _root.getBytesTotal();
lbytes = _root.getBytesLoaded();
perc = int((lbytes / tbytes) * 100);
_root.Percentage.gotoAndStop(perc);
if (lbytes == tbytes) {
gotoAndStop (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
function Init() {
PredRock = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
PredPaper = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
PredScissors = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
score = 0;
compmove = Math.ceil(Math.random() * 3) - 1;
trace(compmove);
totalmoves = 0;
}
Init();
Frame 5
function ShowCompMove() {
if (compmove == 0) {
RPSChoice.Rock();
} else if (compmove == 1) {
RPSChoice.Paper();
} else {
RPSChoice.Scissors();
}
totalmoves++;
}
function NewScore() {
if ((((compmove == 0) && (move == 1)) || ((compmove == 1) && (move == 2))) || ((compmove == 2) && (move == 0))) {
score++;
}
if ((((compmove == 0) && (move == 2)) || ((compmove == 1) && (move == 0))) || ((compmove == 2) && (move == 1))) {
score--;
}
if ((compmove == move) && (wimp)) {
score++;
}
ScoreBar.SetScore(score);
Girl.SetScore(score);
if (score == 16) {
gotoAndPlay (7);
}
if (score == -16) {
gotoAndPlay (3);
}
}
function RockChosen() {
move = 0;
ShowCompMove();
NewScore();
PredRock[lastmoves]++;
}
function PaperChosen() {
move = 1;
ShowCompMove();
NewScore();
PredPaper[lastmoves]++;
}
function ScissorsChosen() {
move = 2;
ShowCompMove();
NewScore();
PredScissors[lastmoves]++;
}
function SelectionShown() {
lastmoves = ((lastmoves * 3) % 9) + move;
OddsRock = PredRock[lastmoves];
OddsPaper = PredPaper[lastmoves];
OddsScissors = PredScissors[lastmoves];
Prediction = Math.random() * ((OddsRock + OddsPaper) + OddsScissors);
if (Prediction < OddsRock) {
compmove = 1;
} else if (Prediction < (OddsRock + OddsPaper)) {
compmove = 2;
} else {
compmove = 0;
}
RPSSelector.Fade();
RPSChoice.Fade();
}
stop();
Frame 6
wimp = !wimp;
gotoAndPlay (3);
Frame 25
TopButton._alpha = 50;
SkirtButton._alpha = 50;
BraButton._alpha = 50;
PantiesButton._alpha = 50;
StockingsButton._alpha = 50;
Frame 26
stop();
Symbol 5 MovieClip Frame 1
function SetPercentage(perc) {
gotoAndStop(perc);
}
stop();
Symbol 10 Button
on (release) {
getURL ("http://sketched.furserve.com/", "_blank");
}
Symbol 15 Button
on (release) {
gotoAndPlay (4);
}
Symbol 32 MovieClip Frame 1
function SetScore(sc) {
Skirt._visible = sc < 4;
Top._visible = sc < 7;
Stockings._visible = sc < 10;
Bra._visible = sc < 13;
Panties._visible = sc < 16;
}
function ToggleTop() {
Top._visible = !Top._visible;
}
function ToggleSkirt() {
Skirt._visible = !Skirt._visible;
}
function ToggleBra() {
Bra._visible = !Bra._visible;
}
function TogglePanties() {
Panties._visible = !Panties._visible;
}
function ToggleStockings() {
Stockings._visible = !Stockings._visible;
}
Symbol 36 Button
on (release) {
gotoAndPlay (10);
}
Symbol 38 Button
on (release) {
gotoAndPlay (30);
}
Symbol 40 Button
on (release) {
gotoAndPlay (50);
}
Symbol 41 Button
on (release) {
gotoAndPlay (10);
}
Symbol 42 MovieClip Frame 1
function Fade() {
gotoAndPlay(_currentframe + 1);
}
Symbol 42 MovieClip Frame 5
stop();
Symbol 42 MovieClip Frame 10
_root.RockChosen();
Symbol 42 MovieClip Frame 20
stop();
_root.SelectionShown();
Symbol 42 MovieClip Frame 29
gotoAndPlay (1);
Symbol 42 MovieClip Frame 30
_root.PaperChosen();
Symbol 42 MovieClip Frame 40
stop();
_root.SelectionShown();
Symbol 42 MovieClip Frame 49
gotoAndPlay (1);
Symbol 42 MovieClip Frame 50
_root.ScissorsChosen();
Symbol 42 MovieClip Frame 60
stop();
_root.SelectionShown();
Symbol 42 MovieClip Frame 70
gotoAndPlay (1);
Symbol 42 MovieClip Frame 71
stop();
Symbol 44 MovieClip Frame 1
function Rock() {
gotoAndPlay (10);
}
function Paper() {
gotoAndPlay (30);
}
function Scissors() {
gotoAndPlay (50);
}
function Fade() {
gotoAndPlay(_currentframe + 1);
}
stop();
Symbol 44 MovieClip Frame 20
stop();
Symbol 44 MovieClip Frame 29
gotoAndPlay (1);
Symbol 44 MovieClip Frame 40
stop();
Symbol 44 MovieClip Frame 49
gotoAndPlay (1);
Symbol 44 MovieClip Frame 60
stop();
Symbol 44 MovieClip Frame 69
gotoAndPlay (1);
Symbol 56 MovieClip Frame 1
function SetScore(sc) {
targetY = 20 * sc;
}
targetY = 0;
Symbol 56 MovieClip Frame 2
y = ProgressBar._y;
if (y != targetY) {
ProgressBar._x = 10;
ProgressBar._y = y + ((targetY - y) / 3);
}
Symbol 56 MovieClip Frame 3
gotoAndPlay (2);
Symbol 58 Button
on (release) {
_root.TopButton._alpha = 100 - (_root.TopButton._alpha - 50);
Girl.ToggleTop();
}
Symbol 59 Button
on (release) {
_root.SkirtButton._alpha = 100 - (_root.SkirtButton._alpha - 50);
Girl.ToggleSkirt();
}
Symbol 60 Button
on (release) {
_root.BraButton._alpha = 100 - (_root.BraButton._alpha - 50);
Girl.ToggleBra();
}
Symbol 61 Button
on (release) {
_root.PantiesButton._alpha = 100 - (_root.PantiesButton._alpha - 50);
Girl.TogglePanties();
}
Symbol 62 Button
on (release) {
_root.StockingsButton._alpha = 100 - (_root.StockingsButton._alpha - 50);
Girl.ToggleStockings();
}
Symbol 68 Button
on (release) {
gotoAndPlay (3);
}