Combined Code
// unknown tag 88 length 84
movieClip 29 x111111 {
}
movieClip 31 s111111 {
}
movieClip 33 r111111 {
}
movieClip 35 plScisor {
}
movieClip 37 plRock {
}
movieClip 39 plPaper {
}
movieClip 41 p111111 {
}
movieClip 43 arScisor {
}
movieClip 45 arRock {
}
movieClip 47 arPaper {
}
movieClip 49 p000011 {
}
movieClip 51 p000111 {
}
movieClip 53 p010111 {
}
movieClip 55 p011111 {
}
movieClip 57 r011111 {
}
movieClip 59 r010111 {
}
movieClip 61 r000111 {
}
movieClip 63 r000011 {
}
movieClip 65 s011111 {
}
movieClip 67 s010111 {
}
movieClip 69 s000111 {
}
movieClip 71 s000011 {
}
movieClip 73 x011111 {
}
movieClip 75 x010111 {
}
movieClip 77 x000111 {
}
movieClip 79 x000011 {
}
frame 1 {
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(nS) {
switch (nS) {
case 3:
sUndress = '011111';
break;
case 6:
sUndress = '010111';
break;
case 9:
sUndress = '000111';
break;
case 12:
sUndress = '000011';
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);
++nScorePl;
fScUndress(nScorePl);
MC_UI.scP.setTextFormat(TxFmt);
} else {
MC_UI.mcPlayed.resu.text = 'you Loose !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
++nScoreAr;
MC_UI.scAr.setTextFormat(TxFmt);
}
}
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);
++nScoreAr;
MC_UI.scAr.setTextFormat(TxFmt);
} 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);
++nScorePl;
fScUndress(nScorePl);
MC_UI.scP.setTextFormat(TxFmt);
}
}
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);
++nScorePl;
fScUndress(nScorePl);
MC_UI.scP.setTextFormat(TxFmt);
} else {
if (sP == 1) {
MC_UI.mcPlayed.resu.text = 'you Loose !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
++nScoreAr;
MC_UI.scAr.setTextFormat(TxFmt);
} else {
MC_UI.mcPlayed.resu.text = 'its a Tie !';
MC_UI.mcPlayed.resu.setTextFormat(TxFmt);
}
}
break;
default:
trace('smth went wrong!');
}
}
stop();
TxFmt = new TextFormat();
TxFmt.font = 'Jf';
TxFmt.color = 16764159;
TxFmt.size = 60;
nAlphaOut = 69;
sUndress = '111111';
nScoreAr = 0;
nScorePl = 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.createTextField('scArlb', MC_UI.getNextHighestDepth(), 20, 100, 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, 100, 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, 20, 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, 20, 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 = 650;
MC_UI.mcPlayed._y = 20;
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, 150, 60);
MC_UI.mcPlayed.resu.embedFonts = true;
MC_UI.mcPlayed.resu.selectable = false;
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 = 710;
fBoxFill(MC_UI.mcPlayerButtons, 0, 0, 300, 80, 0, 25);
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 = 650;
MC_UI.mcNewRound._y = 710;
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);
};
}