Combined Code
// unknown tag 88 length 84
frame 1 {
var total;
var loaded;
this.onEnterFrame = function () {
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
pct = (loaded / total) * 100;
ltt.text = Math.round(pct) + '%';
bFond._width = (bCadre._width / 100) * pct;
if (loaded >= total) {
delete onEnterFrame;
gotoAndPlay(3);
}
};
stop();
}
movieClip 3 {
}
movieClip 5 {
}
movieClip 10 arPaper {
}
movieClip 13 arRock {
}
movieClip 16 arScisor {
}
movieClip 19 p000000 {
}
movieClip 22 p000100 {
}
movieClip 25 p000110 {
}
movieClip 28 p010110 {
}
movieClip 31 p011110 {
}
movieClip 34 p111110 {
}
movieClip 37 p111111 {
}
movieClip 40 plPaper {
}
movieClip 43 plRock {
}
movieClip 46 plScisor {
}
movieClip 49 r000000 {
}
movieClip 52 r000100 {
}
movieClip 55 r000110 {
}
movieClip 58 r010110 {
}
movieClip 61 r011110 {
}
movieClip 64 r111110 {
}
movieClip 67 r111111 {
}
movieClip 70 s000000 {
}
movieClip 73 s000100 {
}
movieClip 76 s000110 {
}
movieClip 79 s010110 {
}
movieClip 82 s011110 {
}
movieClip 83 s111110 {
}
movieClip 86 s111111 {
}
movieClip 89 x000000 {
}
movieClip 92 x000100 {
}
movieClip 95 x000110 {
}
movieClip 98 x010110 {
}
movieClip 101 x011110 {
}
movieClip 104 x111110 {
}
movieClip 107 x111111 {
}
frame 3 {
function fBox(mcTarget, nx, ny, nWidth, nHeight, nColor) {
mcTarget.lineStyle(1, nColor, 100, true, 'none', 'round', 'round', 1);
mcTarget.moveTo(nx, ny);
mcTarget.lineTo(nx + nWidth, ny);
mcTarget.lineTo(nx + nWidth, ny + nHeight);
mcTarget.lineTo(nx, ny + nHeight);
mcTarget.lineTo(nx, ny);
}
function fBoxFill(mcTarget, nx, ny, nWidth, nHeight, nColor, nAlpha) {
mcTarget.lineStyle(1, nColor, nAlpha, true, 'none', 'round', 'round', 1);
mcTarget.beginFill(nColor, nAlpha);
mcTarget.moveTo(nx, ny);
mcTarget.lineTo(nx + nWidth, ny);
mcTarget.lineTo(nx + nWidth, ny + nHeight);
mcTarget.lineTo(nx, ny + nHeight);
mcTarget.lineTo(nx, ny);
mcTarget.endFill();
}
function fScUndress(nSa, nSp) {
if (nSa >= 5) {
if (nUndressStage > 0) {
--nUndressStage;
MC_UI.mcPlayed.resu.text = 'you Loose that match.\rArdente dresses up.';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
}
MC_UI.mcPlayed.resu.text += '\rThe scores are reset.';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
nScorePl = 0;
nScoreAr = 0;
} else {
if (nSp >= 5) {
if (nUndressStage < 6) {
++nUndressStage;
MC_UI.mcPlayed.resu.text = 'you Win that match.\rArdente strips...';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
}
MC_UI.mcPlayed.resu.text += '\rThe scores are reset.';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
nScorePl = 0;
nScoreAr = 0;
}
}
MC_UI.scAr.setTextFormat(TxFmt);
MC_UI.scP.setTextFormat(TxFmt);
switch (nUndressStage) {
case 0:
sUndress = '111111';
break;
case 1:
sUndress = '111110';
break;
case 2:
sUndress = '011110';
break;
case 3:
sUndress = '010110';
break;
case 4:
sUndress = '000110';
break;
case 5:
sUndress = '000100';
break;
case 6:
sUndress = '000000';
break;
default:
}
}
function fSolve(sP) {
MC_UI.mcPlayed._visible = true;
MC_UI.mcNewRound._visible = true;
nArPlay = Math.floor(Math.random() * 3);
switch (nArPlay) {
case 0:
MC_UI.mcPlayed.arIco.removeMovieClip();
MC_UI.mcPlayed.attachMovie('arRock', 'arIco', 1);
MC_UI.mcPlayed.arIco._x = 30;
MC_UI.mcPlayed.arIco._y = 50;
MC_BG.bg.removeMovieClip();
MC_BG.attachMovie('r' + sUndress, 'bg', 1);
if (sP == 0) {
MC_UI.mcPlayed.resu.text = 'its a Tie !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
} else {
if (sP == 1) {
MC_UI.mcPlayed.resu.text = 'you Win !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
if (nSpecial == sP) {
nScorePl += 2;
} else {
++nScorePl;
}
} else {
MC_UI.mcPlayed.resu.text = 'you Loose !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
if (nSpecial == 0) {
nScoreAr += 2;
} else {
++nScoreAr;
}
}
}
fScUndress(nScoreAr, nScorePl);
break;
case 1:
MC_UI.mcPlayed.arIco.removeMovieClip();
MC_UI.mcPlayed.attachMovie('arPaper', 'arIco', 1);
MC_UI.mcPlayed.arIco._x = 30;
MC_UI.mcPlayed.arIco._y = 50;
MC_BG.bg.removeMovieClip();
MC_BG.attachMovie('p' + sUndress, 'bg', 1);
if (sP == 0) {
MC_UI.mcPlayed.resu.text = 'you Loose !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
if (nSpecial == 1) {
nScoreAr += 2;
} else {
++nScoreAr;
}
} else {
if (sP == 1) {
MC_UI.mcPlayed.resu.text = 'its a Tie !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
} else {
MC_UI.mcPlayed.resu.text = 'you Win !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
if (nSpecial == sP) {
nScorePl += 2;
} else {
++nScorePl;
}
}
}
fScUndress(nScoreAr, nScorePl);
break;
case 2:
MC_UI.mcPlayed.arIco.removeMovieClip();
MC_UI.mcPlayed.attachMovie('arScisor', 'arIco', 1);
MC_UI.mcPlayed.arIco._x = 30;
MC_UI.mcPlayed.arIco._y = 50;
MC_BG.bg.removeMovieClip();
MC_BG.attachMovie('s' + sUndress, 'bg', 1);
if (sP == 0) {
MC_UI.mcPlayed.resu.text = 'you Win !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
if (nSpecial == sP) {
nScorePl += 2;
} else {
++nScorePl;
}
} else {
if (sP == 1) {
MC_UI.mcPlayed.resu.text = 'you Loose !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
if (nSpecial == 2) {
nScoreAr += 2;
} else {
++nScoreAr;
}
} else {
MC_UI.mcPlayed.resu.text = 'its a Tie !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
}
}
fScUndress(nScoreAr, nScorePl);
break;
default:
trace('smth went wrong!');
}
}
stop();
TxFmt = new TextFormat();
TxFmt.font = 'Jf';
TxFmt.color = 13369548;
TxFmt.size = 50;
nAlphaOut = 69;
sUndress = '111111';
nSpecial = -1;
aMove = new Array('Rock', 'Paper', 'Scissors');
nScoreAr = 0;
nScorePl = 0;
nUndressStage = 0;
createEmptyMovieClip('MC_BG', this.getNextHighestDepth());
MC_BG.useHandCursor = false;
MC_BG.attachMovie('x' + sUndress, 'bg', 1);
createEmptyMovieClip('MC_UI', this.getNextHighestDepth());
MC_UI.useHandCursor = false;
MC_UI.createEmptyMovieClip('mcSpecial', MC_UI.getNextHighestDepth());
MC_UI.mcSpecial._x = 630;
MC_UI.mcSpecial._y = 630;
MC_UI.mcSpecial.createTextField('specialTf', MC_UI.mcSpecial.getNextHighestDepth(), 0, 0, 350, 60);
MC_UI.mcSpecial.specialTf.embedFonts = true;
MC_UI.mcSpecial.specialTf.selectable = false;
MC_UI.mcSpecial.specialTf.text = 'xxx';
MC_UI.mcSpecial.specialTf.setTextFormat(TxFmt);
MC_UI.mcSpecial._visible = false;
MC_UI.createTextField('scArlb', MC_UI.getNextHighestDepth(), 20, 720, 300, 60);
MC_UI.scArlb.embedFonts = true;
MC_UI.scArlb.selectable = false;
MC_UI.scArlb.text = 'Ardente';
MC_UI.scArlb.setTextFormat(TxFmt);
MC_UI.createTextField('scAr', MC_UI.getNextHighestDepth(), 200, 720, 300, 60);
MC_UI.scAr.embedFonts = true;
MC_UI.scAr.selectable = false;
MC_UI.scAr.variable = '_root.nScoreAr';
MC_UI.scAr.setTextFormat(TxFmt);
MC_UI.createTextField('scPlb', MC_UI.getNextHighestDepth(), 20, 670, 300, 60);
MC_UI.scPlb.embedFonts = true;
MC_UI.scPlb.selectable = false;
MC_UI.scPlb.text = 'Your score';
MC_UI.scPlb.setTextFormat(TxFmt);
MC_UI.createTextField('scP', MC_UI.getNextHighestDepth(), 200, 670, 300, 60);
MC_UI.scP.embedFonts = true;
MC_UI.scP.selectable = false;
MC_UI.scP.variable = '_root.nScorePl';
MC_UI.scP.setTextFormat(TxFmt);
MC_UI.createEmptyMovieClip('mcPlayed', MC_UI.getNextHighestDepth());
MC_UI.mcPlayed._x = 580;
MC_UI.mcPlayed._y = 10;
MC_UI.mcPlayed.createTextField('tf', MC_UI.mcPlayed.getNextHighestDepth(), 0, 0, 300, 60);
MC_UI.mcPlayed.tf.embedFonts = true;
MC_UI.mcPlayed.tf.selectable = false;
MC_UI.mcPlayed.tf.text = 'Ardente played';
MC_UI.mcPlayed.tf.setTextFormat(TxFmt);
MC_UI.mcPlayed.attachMovie('arRock', 'arIco', MC_UI.mcPlayed.getNextHighestDepth());
MC_UI.mcPlayed.arIco._x = 30;
MC_UI.mcPlayed.arIco._y = 50;
MC_UI.mcPlayed.createTextField('resu', MC_UI.mcPlayed.getNextHighestDepth(), 30, 235, 300, 200);
MC_UI.mcPlayed.resu.embedFonts = true;
MC_UI.mcPlayed.resu.selectable = false;
MC_UI.mcPlayed.resu.multiline = true;
MC_UI.mcPlayed.resu.text = 'its a Tie !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
MC_UI.mcPlayed._visible = false;
MC_UI.createEmptyMovieClip('mcPlayerButtons', MC_UI.getNextHighestDepth());
MC_UI.mcPlayerButtons._x = 650;
MC_UI.mcPlayerButtons._y = 690;
fBoxFill(MC_UI.mcPlayerButtons, 0, 0, 300, 80, 0, 15);
MC_UI.mcPlayerButtons.createEmptyMovieClip('rockBt', MC_UI.mcPlayerButtons.getNextHighestDepth());
MC_UI.mcPlayerButtons.rockBt.attachMovie('plRock', 'roIco', 1);
MC_UI.mcPlayerButtons.rockBt._xscale = 50;
MC_UI.mcPlayerButtons.rockBt._yscale = 50;
MC_UI.mcPlayerButtons.rockBt._x = 10;
MC_UI.mcPlayerButtons.rockBt._alpha = nAlphaOut;
MC_UI.mcPlayerButtons.createEmptyMovieClip('paperBt', MC_UI.mcPlayerButtons.getNextHighestDepth());
MC_UI.mcPlayerButtons.paperBt.attachMovie('plPaper', 'paIco', 1);
MC_UI.mcPlayerButtons.paperBt._xscale = 50;
MC_UI.mcPlayerButtons.paperBt._yscale = 50;
MC_UI.mcPlayerButtons.paperBt._x = 120;
MC_UI.mcPlayerButtons.paperBt._alpha = nAlphaOut;
MC_UI.mcPlayerButtons.createEmptyMovieClip('scisorBt', MC_UI.mcPlayerButtons.getNextHighestDepth());
MC_UI.mcPlayerButtons.scisorBt.attachMovie('plScisor', 'scIco', 1);
MC_UI.mcPlayerButtons.scisorBt._xscale = 50;
MC_UI.mcPlayerButtons.scisorBt._yscale = 50;
MC_UI.mcPlayerButtons.scisorBt._x = 200;
MC_UI.mcPlayerButtons.scisorBt._alpha = nAlphaOut;
MC_UI.createEmptyMovieClip('mcNewRound', MC_UI.getNextHighestDepth());
MC_UI.mcNewRound._x = 670;
MC_UI.mcNewRound._y = 690;
fBoxFill(MC_UI.mcNewRound, 0, 0, 300, 80, 16777215, 0);
MC_UI.mcNewRound.createTextField('nwRdtf', 1, 70, 10, 250, 70);
MC_UI.mcNewRound.nwRdtf.embedFonts = true;
MC_UI.mcNewRound.nwRdtf.selectable = false;
MC_UI.mcNewRound.nwRdtf.text = 'Next Round';
MC_UI.mcNewRound.nwRdtf.setTextFormat(TxFmt);
MC_UI.mcNewRound._visible = false;
MC_UI.mcPlayerButtons.scisorBt.onRollOver = function () {
this._alpha = 100;
};
MC_UI.mcPlayerButtons.scisorBt.onRollOut = function () {
if (MC_UI.mcNewRound._visible == false) {
this._alpha = nAlphaOut;
}
};
MC_UI.mcPlayerButtons.paperBt.onRollOver = function () {
this._alpha = 100;
};
MC_UI.mcPlayerButtons.paperBt.onRollOut = function () {
if (MC_UI.mcNewRound._visible == false) {
this._alpha = nAlphaOut;
}
};
MC_UI.mcPlayerButtons.rockBt.onRollOver = function () {
this._alpha = 100;
};
MC_UI.mcPlayerButtons.rockBt.onRollOut = function () {
if (MC_UI.mcNewRound._visible == false) {
this._alpha = nAlphaOut;
}
};
MC_UI.mcPlayerButtons.rockBt.onRelease = function () {
sPlayed = 0;
MC_UI.mcPlayerButtons.rockBt._alpha = 100;
MC_UI.mcPlayerButtons.paperBt._alpha = 0;
MC_UI.mcPlayerButtons.scisorBt._alpha = 0;
fSolve(sPlayed);
};
MC_UI.mcPlayerButtons.paperBt.onRelease = function () {
sPlayed = 1;
MC_UI.mcPlayerButtons.rockBt._alpha = 0;
MC_UI.mcPlayerButtons.paperBt._alpha = 100;
MC_UI.mcPlayerButtons.scisorBt._alpha = 0;
fSolve(sPlayed);
};
MC_UI.mcPlayerButtons.scisorBt.onRelease = function () {
sPlayed = 2;
MC_UI.mcPlayerButtons.rockBt._alpha = 0;
MC_UI.mcPlayerButtons.paperBt._alpha = 0;
MC_UI.mcPlayerButtons.scisorBt._alpha = 100;
fSolve(sPlayed);
};
MC_UI.mcNewRound.onRelease = function () {
MC_UI.mcNewRound._visible = false;
MC_UI.mcPlayed._visible = false;
MC_UI.mcPlayerButtons.rockBt._alpha = nAlphaOut;
MC_UI.mcPlayerButtons.paperBt._alpha = nAlphaOut;
MC_UI.mcPlayerButtons.scisorBt._alpha = nAlphaOut;
MC_BG.bg.removeMovieClip();
MC_BG.attachMovie('x' + sUndress, 'bg', 1);
nIsSpecial = Math.floor(Math.random() * 100);
if (nIsSpecial < 69) {
nSpecial = Math.floor(Math.random() * 3);
MC_UI.mcSpecial.specialTf.text = aMove[nSpecial] + ' is worth 2 pts!';
MC_UI.mcSpecial.specialTf.setTextFormat(TxFmt);
MC_UI.mcSpecial._visible = true;
} else {
nSpecial = -1;
MC_UI.mcSpecial._visible = false;
}
};
}