Combined Code
frame 1 {
total = Math.round(_root.getBytesTotal() / 1024);
loaded = Math.round(_root.getBytesLoaded() / 1024);
Ratio = Math.round((loaded / total) * 100);
StartingPoint = -40.8;
PosGauge = StartingPoint + Math.floor(40.8 * (Ratio / 100) * 100) / 100;
if (loaded >= total) {
gotoAndPlay(4);
}
}
// unknown tag 88 length 83
// unknown tag 88 length 81
movieClip 5 {
}
movieClip 6 {
}
button 10 {
on (release) {
getURL('http://www.shade.ca/games/beattomgreen/default.asp?lg=en', _blank);
}
}
button 11 {
on (release) {
getURL('http://www.shade.ca/games/rackie/thegame.asp', _blank);
}
}
button 12 {
on (release) {
getURL('http://corp.shade.ca/bw', _blank);
}
}
movieClip 24 {
}
button 25 {
on (release) {
getURL('http://corp.shade.ca', _blank);
}
}
movieClip 28 {
}
button 29 {
on (release) {
getURL('http://www.lavablast.com', _blank);
}
}
button 30 {
on (release) {
getURL('http://steve.shade.ca', _blank);
}
}
movieClip 38 {
}
movieClip 39 {
}
movieClip 43 {
}
movieClip 45 {
}
movieClip 47 {
instance Gauge_Bar of movieClip 45 {
onClipEvent (enterFrame) {
this._x = _root.PosGauge;
_root.pos.text = this._x;
}
}
}
movieClip 50 {
}
frame 2 {
gotoAndPlay(1);
}
movieClip 77 {
frame 1 {
this.stop();
}
}
movieClip 78 {
}
movieClip 79 noMatch {
frame 1 {
}
instance of movieClip 78 {
onClipEvent (load) {
counter = 0;
}
onClipEvent (enterFrame) {
counter += 1;
if (Math.round(counter / _root.FPS) > _root.Delai) {
_root[_root.buffer1].gotoAndPlay(30);
_root[_root.buffer2].gotoAndPlay(30);
_root.Status = '';
removeMovieClip(_parent);
}
}
}
}
movieClip 80 matchup {
frame 1 {
}
instance of movieClip 78 {
onClipEvent (load) {
counter = 0;
}
onClipEvent (enterFrame) {
counter += 1;
if (Math.round(counter / _root.FPS) > _root.Delai) {
_root.Status = '';
_root.NbrMatchup += 1;
_root.StarTrigger = 1;
_root.Points += Math.round(_root.PointValue * _root.NbrMatchup);
if (_root.NbrMatchup >= _root.NbrCartes / 2) {
_root.lvl_UP();
}
_root.RemoveCards(_root.Takeout1, _root.Takeout2);
removeMovieClip(_parent);
}
}
}
}
button 81 {
on (release) {
_root.Reset();
gotoAndPlay(2);
}
}
movieClip 85 {
}
movieClip 87 {
}
movieClip 90 {
}
movieClip 93 {
}
movieClip 96 {
}
movieClip 98 {
}
movieClip 101 {
}
button 103 {
on (release) {
gotoAndPlay(5);
}
}
movieClip 106 {
}
movieClip 109 {
}
movieClip 112 {
}
movieClip 115 {
}
movieClip 118 {
frame 29 {
stop();
}
}
movieClip 119 lvlUp {
frame 1 {
stop();
}
frame 2 {
removeMovieClip(this);
}
}
movieClip 122 {
}
movieClip 139 {
}
movieClip 141 {
}
movieClip 142 Flip {
frame 11 {
_parent.pic._visible = true;
removeMovieClip(this);
stop();
}
}
movieClip 144 {
frame 41 {
this.stop();
}
}
movieClip 146 {
frame 41 {
this.stop();
}
}
movieClip 148 {
frame 41 {
this.stop();
}
}
movieClip 150 {
frame 41 {
this.stop();
}
}
movieClip 152 {
frame 41 {
this.stop();
}
}
movieClip 154 {
frame 41 {
this.stop();
}
}
movieClip 156 {
frame 41 {
this.stop();
}
}
movieClip 158 {
frame 41 {
this.stop();
}
}
movieClip 160 {
frame 41 {
this.stop();
}
}
movieClip 162 {
frame 41 {
this.stop();
}
}
movieClip 164 {
frame 41 {
this.stop();
}
}
movieClip 166 {
frame 41 {
this.stop();
}
}
movieClip 168 {
frame 41 {
this.stop();
}
}
movieClip 170 {
frame 41 {
this.stop();
}
}
movieClip 172 {
frame 41 {
this.stop();
}
}
movieClip 174 {
frame 41 {
this.stop();
}
}
movieClip 176 {
frame 41 {
this.stop();
}
}
movieClip 178 {
frame 41 {
this.stop();
}
}
movieClip 180 {
frame 41 {
this.stop();
}
}
movieClip 182 {
frame 41 {
this.stop();
}
}
movieClip 184 {
frame 41 {
this.stop();
}
}
movieClip 186 {
frame 20 {
this.stop();
}
}
movieClip 188 {
frame 41 {
this.stop();
}
}
movieClip 190 {
frame 41 {
this.stop();
}
}
movieClip 191 {
frame 1 {
removeMovieClip(this);
}
frame 11 {
stop();
_parent.gotoAndPlay(1);
}
}
movieClip 192 Carte {
frame 1 {
LaCarte._visible = true;
stop();
}
instance LaCarte of movieClip 141 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
if (myValue == undefined) {
myValue = _root.GetValue();
}
}
onClipEvent (release) {
if (_root.Status == '') {
if (flipped == undefined) {
_root.NbrCoups += 1;
TheFrame = myValue + 1;
myName = (eval(_parent))._name;
info = new Array();
info[0] = myName;
info[1] = myValue;
_root.History.push(info);
_root.SFlip.start('', 1);
_root.CheckCards(TheFrame);
}
}
}
}
frame 2 {
LaCarte._visible = false;
stop();
}
frame 2 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 144 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 3 {
LaCarte._visible = false;
stop();
}
frame 3 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 146 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 4 {
LaCarte._visible = false;
stop();
}
frame 4 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 148 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 5 {
LaCarte._visible = false;
stop();
}
frame 5 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 150 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 6 {
LaCarte._visible = false;
stop();
}
frame 6 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 152 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 7 {
LaCarte._visible = false;
stop();
}
frame 7 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 154 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 8 {
LaCarte._visible = false;
stop();
}
frame 8 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 156 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 9 {
LaCarte._visible = false;
stop();
}
frame 9 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 158 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 10 {
LaCarte._visible = false;
stop();
}
frame 10 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 160 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 11 {
LaCarte._visible = false;
stop();
}
frame 11 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 162 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 12 {
LaCarte._visible = false;
stop();
}
frame 12 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 164 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 13 {
LaCarte._visible = false;
stop();
}
frame 13 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 166 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 14 {
LaCarte._visible = false;
stop();
}
frame 14 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 168 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 15 {
LaCarte._visible = false;
stop();
}
frame 15 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 170 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 16 {
LaCarte._visible = false;
stop();
}
frame 16 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 172 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 17 {
LaCarte._visible = false;
stop();
}
frame 17 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 174 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 18 {
LaCarte._visible = false;
stop();
}
frame 18 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 176 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 19 {
LaCarte._visible = false;
stop();
}
frame 19 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 178 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 20 {
LaCarte._visible = false;
stop();
}
frame 20 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 180 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 21 {
LaCarte._visible = false;
stop();
}
frame 21 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 182 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 22 {
LaCarte._visible = false;
stop();
}
frame 22 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 184 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 23 {
LaCarte._visible = false;
stop();
}
frame 23 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 186 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 24 {
LaCarte._visible = false;
stop();
}
frame 24 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 188 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 25 {
LaCarte._visible = false;
stop();
}
frame 25 {
pic._visible = false;
attachMovie('Flip', 'Flip', 400);
this.Flip._width = _root.Dimension;
this.Flip._height = _root.Dimension;
this.Flip._x = 0;
this.Flip._y = 0;
}
instance pic of movieClip 190 {
onClipEvent (load) {
this._width = _root.Dimension;
this._height = this._width;
}
}
frame 30 {
LaCarte._visible = false;
stop();
}
frame 30 {
UnFlipping._width = _root.Dimension;
UnFlipping._height = _root.Dimension;
}
}
frame 4 {
stop();
}
movieClip 197 {
}
movieClip 198 {
}
button 200 {
on (release) {
gotoAndPlay(5);
}
}
frame 5 {
_root.BgMusic = new Sound(_root.VolumeContainer.createEmptyMovieClip('SoundBg', _root.VolumeContainer.getNextHighestDepth()));
_root.BgMusic.attachSound('BgMusic.mp3');
_root.BgMusic.setVolume(65);
_root.BgMusic.onSoundComplete = function () {
BgMusic.start(0, 9999);
};
_root.BgMusic.start(0, 9999);
}
frame 5 {
SAll = new Sound();
SAll.setVolume(150);
SFlip = new Sound(_root.VolumeContainer.createEmptyMovieClip('SoundFlip', _root.VolumeContainer.getNextHighestDepth()));
SFlip.attachSound('cardflip.mp3');
SFlip.setVolume(800);
SBook = new Sound();
SBook.attachSound('Sound06');
SBowling = new Sound();
SBowling.attachSound('Sound07');
SDuck = new Sound();
SDuck.attachSound('Sound02');
SFlower = new Sound();
SFlower.attachSound('Sound08');
SIcecream = new Sound();
SIcecream.attachSound('Sound05');
SScissors = new Sound();
SScissors.attachSound('Sound03');
SShoes = new Sound();
SShoes.attachSound('Sound04');
SXylophone = new Sound();
SXylophone.attachSound('Sound01');
SBook2 = new Sound();
SBook2.attachSound('Sound14');
SBowling2 = new Sound();
SBowling2.attachSound('Sound15');
SDuck2 = new Sound();
SDuck2.attachSound('Sound10');
SFlower2 = new Sound();
SFlower2.attachSound('Sound16');
SIcecream2 = new Sound();
SIcecream2.attachSound('Sound13');
SScissors2 = new Sound();
SScissors2.attachSound('Sound11');
SShoes2 = new Sound();
SShoes2.attachSound('Sound12');
SXylophone2 = new Sound();
SXylophone2.attachSound('Sound09');
SBook3 = new Sound();
SBook3.attachSound('Sound22');
SBowling3 = new Sound();
SBowling3.attachSound('Sound23');
SDuck3 = new Sound();
SDuck3.attachSound('Sound18');
SFlower3 = new Sound();
SFlower3.attachSound('Sound24');
SIcecream3 = new Sound();
SIcecream3.attachSound('Sound21');
SScissors3 = new Sound();
SScissors3.attachSound('Sound19');
SShoes3 = new Sound();
SShoes3.attachSound('Sound20');
SXylophone3 = new Sound();
SXylophone3.attachSound('Sound17');
}
frame 5 {
function Set_NbrCartes() {
NbrCartes = NbrCartes_base + CarteStep * Niveau;
if (NbrCartes > MaxImg * 2) {
NbrCartes = MaxImg * 2;
}
}
function Spawn() {
myColumn = 1;
myRow = 1;
iLevel = Niveau;
iCases = iLevel * 4 + 8;
if (iCases > MaxImg * 2) {
iCases = MaxImg * 2;
}
iSideLength = Math.ceil(Math.sqrt(iCases));
dMiddle = (iSideLength - 1) / 2;
iMissing = iSideLength * iSideLength - iCases - iSideLength % 2;
i = 0;
while (i < iSideLength) {
j = 0;
while (j < iSideLength) {
dDist = Math.sqrt(Math.pow(dMiddle - i, 2) + Math.pow(dMiddle - j, 2));
if (dDist != 0) {
if (iMissing >= 4 && dDist >= Math.sqrt(2 * dMiddle * dMiddle) || iMissing >= 8 && dDist >= Math.sqrt(2 * (dMiddle - 1) * dMiddle) && (iMissing == 8 && (i == 0 || i == iSideLength - 1) || iMissing > 8)) {
myColumn += 1;
} else {
_root.attachMovie('Carte', 'Carte' + Carte_counter, Carte_counter + CarteRange);
this['Carte' + Carte_counter]._x = (Dimension + Space) * (myColumn - 1) + PosX;
this['Carte' + Carte_counter]._y = (Dimension + Space) * (myRow - 1) + PosY;
myColumn += 1;
++Carte_counter;
}
} else {
myColumn += 1;
}
++j;
}
myColumn = 1;
myRow += 1;
++i;
}
}
function Shuffling_Cards() {
Array_temp = new Array();
CarteVal = 1;
k = 0;
while (k < NbrCartes) {
Array_temp[k] = CarteVal;
Array_temp[k + 1] = CarteVal;
CarteVal += 1;
k += 2;
}
g = 0;
while (g < NbrCartes) {
Num = random(Array_temp.length);
_root.DeckOfCards[g] = Array_temp[Num];
Array_temp.splice(Num, 1);
++g;
}
_root.myArray.text = DeckOfCards;
}
function GetValue() {
valeur = DeckOfCards.pop();
return valeur;
}
function Reset() {
_root.Interface.Background.gotoAndStop(1);
_root.Interface.Reviews.gotoAndStop(1);
Carte_counter = 0;
CarteRange = 100;
DeckOfCards = new Array();
DeckCounter = 0;
NbrCoups = 0;
NbrEchec = 0;
NbrMatchup = 0;
Status = '';
Set_NbrCartes();
Shuffling_Cards();
SetDisplay();
Spawn();
_root.Start_Clock = getTimer();
_root.Timebuffer = 0;
_root.Pause = 0;
_root.myNiveau.text = _root.Niveau + 1;
_root.myNbrCartes.text = _root.NbrCartes;
}
function CheckCards(LeFrame) {
if (_root.History.length > 1) {
_root.Status = 'checking';
if (_root.History[0][1] == _root.History[1][1]) {
maCarte2 = _root.History[1][0];
this[maCarte2].gotoAndStop(LeFrame);
(eval(_root.MatchUp_Sound[LeFrame])).start('', 1);
_root.Takeout1 = _root.History[0][0];
_root.Takeout2 = _root.History[1][0];
_root.Match();
} else {
maCarte1 = _root.History[0][0];
maCarte2 = _root.History[1][0];
this[maCarte2].gotoAndStop(LeFrame);
if (NbrEchec * 10 < _root.PointValue / 2) {
_root.NbrEchec += 1;
}
_root.buffer1 = maCarte1;
_root.buffer2 = maCarte2;
_root.Points -= Math.round(200 * NbrEchec / (Niveau + 1));
_root.No_Match();
}
_root.History.shift();
_root.History.shift();
} else {
maCarte1 = _root.History[0][0];
this[maCarte1].gotoAndStop(LeFrame);
}
}
function SetDisplay() {
while (Row * Column < NbrCartes) {
if (Max_width <= Max_height) {
if (Row <= Column) {
Row += 1;
} else {
Column += 1;
}
Env = Max_width;
Dimension = Math.floor(Env / Column) - (Column - 1) * Space;
while (Dimension * Row + (Row - 1) * Space > Max_height) {
Dimension -= 1;
}
while (Dimension * Row + (Row - 1) * Space < Max_height) {
if (Dimension * Column + (Column - 1) * Space < Max_width) {
Dimension += 1;
} else {
break;
}
}
} else {
if (Column <= Row) {
Column += 1;
} else {
Row += 1;
}
Env = Max_height;
Dimension = Math.floor(Env / Row) - (Row - 1) * Space;
while (Dimension * Column + (Column - 1) * Space > Max_width) {
Dimension -= 1;
}
while (Dimension * Column + (Column - 1) * Space < Max_width) {
if (Dimension * Row + (Row - 1) * Space < Max_height) {
Dimension += 1;
} else {
break;
}
}
}
}
}
function ClockDisplay(leTemps) {
if (leTemps < 3600) {
minute = Math.floor(leTemps / 60);
seconde = leTemps % 60;
} else {
minute = 59;
seconde = 59;
}
space = ' ';
if (seconde < 10) {
sec_space = '0';
} else {
sec_space = '';
}
if (minute < 10) {
min_space = '0';
newTime = min_space + minute + space + sec_space + seconde;
return newTime;
}
min_space = '';
newTime = min_space + minute + space + sec_space + seconde;
return newTime;
}
function RemoveCards(Item1, Item2) {
_root.myNbrCartes.text -= 2;
_root[Item1].removeMovieClip();
_root[Item2].removeMovieClip();
}
function No_Match() {
_root.attachMovie('noMatch', 'noMatch', 300);
_root.noMatch._x = 50;
_root.noMatch._y = 25;
}
function Match() {
_root.attachMovie('matchup', 'matchup', 300);
_root.matchup._x = 50;
_root.matchup._y = 25;
}
function lvl_UP() {
_root.Niveau += 1;
_root.Pause = 1;
_root.attachMovie('lvlUp', 'lvlUp', 300);
_root.lvlUp._x = 180;
_root.lvlUp._y = 185;
}
Niveau = 0;
PointValue = 2000;
NbrCoups = 0;
NbrEchec = 0;
NbrMatchup = 0;
Points = 0;
Max_width = 268;
Max_height = 268;
NbrCartes_base = 8;
NbrCartes = 0;
MaxImg = 24;
CarteStep = 4;
Carte_counter = 0;
CarteRange = 100;
Dimension = 83.5;
DeckOfCards = new Array();
DeckCounter = 0;
History = new Array();
buffer1 = 0;
buffer2 = 0;
Status = '';
Takeout1 = '';
Takeout2 = '';
Point_space = new Array();
myTrigger = 0;
Timebuffer = 0;
Row = 1;
Column = 3;
Space = 5;
PosX = 52 - Space;
PosY = 73 - Space;
Delai = 1.6;
FPS = 30;
Clock = 0;
Start_Clock = 0;
Temps = 0;
Pause = 0;
MatchUp_Sound = new Array();
MatchUp_Sound[2] = 'SXylophone';
MatchUp_Sound[3] = 'SDuck';
MatchUp_Sound[4] = 'SScissors';
MatchUp_Sound[5] = 'SShoes';
MatchUp_Sound[6] = 'SIcecream';
MatchUp_Sound[7] = 'SBook';
MatchUp_Sound[8] = 'SBowling';
MatchUp_Sound[9] = 'SFlower';
MatchUp_Sound[10] = 'SXylophone2';
MatchUp_Sound[11] = 'SDuck2';
MatchUp_Sound[12] = 'SScissors2';
MatchUp_Sound[13] = 'SShoes2';
MatchUp_Sound[14] = 'SIcecream2';
MatchUp_Sound[15] = 'SBook2';
MatchUp_Sound[16] = 'SBowling2';
MatchUp_Sound[17] = 'SFlower2';
MatchUp_Sound[18] = 'SXylophone3';
MatchUp_Sound[19] = 'SDuck3';
MatchUp_Sound[20] = 'SScissors3';
MatchUp_Sound[21] = 'SShoes3';
MatchUp_Sound[22] = 'SIcecream3';
MatchUp_Sound[23] = 'SBook3';
MatchUp_Sound[24] = 'SBowling3';
MatchUp_Sound[25] = 'SFlower3';
Set_NbrCartes();
Shuffling_Cards();
SetDisplay();
Spawn();
}
movieClip 201 {
}
movieClip 203 {
}
movieClip 204 {
}
instance of movieClip 204 {
onClipEvent (load) {
_root.Start_Clock = getTimer();
myTrigger = 0;
}
onClipEvent (enterFrame) {
if (_root.Pause == 0) {
_root.Clock = getTimer();
_root.Temps = Math.floor(_root.Clock / 1000) - Math.floor(_root.Start_Clock / 1000);
_root.Aiguille._rotation = (_root.Clock - _root.Start_Clock) * 360 / 1000 / 60;
if (_root.Timebuffer < _root.Temps) {
_root.myTrigger = 1;
}
if (_root.myTrigger == 1) {
_root.Points -= 100;
_root.myTrigger = 0;
_root.Timebuffer += 1;
}
_root.myTime.text = _root.ClockDisplay(_root.Temps);
if (_root.Points < 0) {
_root.Points = 0;
}
_root.myPointage.text = _root.Points;
}
}
}
button 210 {
on (release) {
_root.pauseMusicTime = BgMusic.position;
_root.BgMusic.stop();
this.gotoAndStop(2);
}
}
button 211 {
on (release) {
_root.pauseMusicTime = BgMusic.position;
BgMusic.stop();
this.gotoAndStop(2);
}
}
movieClip 213 {
}
button 214 {
on (release) {
_root.BgMusic.start(_root.pauseMusicTime / 1000, 9999);
this.gotoAndStop(1);
}
}
movieClip 216 {
}
movieClip 217 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 216 {
onClipEvent (release) {
BgMusic.start(_root.pauseMusicTime / 1000);
this.gotoAndStop(1);
}
}
}
movieClip 224 {
}
button 226 {
on (release) {
this.createEmptyMovieClip('ClickSound1', this.getNextHighestDepth());
this.ClickSound1 = new Sound();
this.ClickSound1.attachSound(this.CurrentSound1);
this.ClickSound1.start();
this.createEmptyMovieClip('ClickSound2', this.getNextHighestDepth());
this.ClickSound2 = new Sound();
this.ClickSound2.attachSound(this.CurrentSound2);
this.ClickSound2.start();
getURL('http://www.shade.ca/getarticle.asp?i=' + this.CurrentReview, _blank);
}
}
movieClip 456 {
frame 1 {
this.gotoAndStop(random(57) + 2);
}
frame 1 {
}
frame 2 {
this.stop();
}
frame 2 {
this.CurrentSound1 = 'Sound01';
this.CurrentSound2 = '';
}
frame 2 {
this.CurrentReview = 36;
}
frame 3 {
this.stop();
}
frame 3 {
this.CurrentSound1 = 'Sound01';
this.CurrentSound2 = '';
}
frame 3 {
this.CurrentReview = 73;
}
frame 4 {
this.stop();
}
frame 4 {
this.CurrentSound1 = 'Sound01';
this.CurrentSound2 = '';
}
frame 4 {
this.CurrentReview = 75;
}
frame 5 {
this.stop();
}
frame 5 {
this.CurrentSound1 = 'Sound01';
this.CurrentSound2 = '';
}
frame 5 {
this.CurrentReview = 77;
}
frame 6 {
this.stop();
}
frame 6 {
this.CurrentSound1 = 'Sound01';
this.CurrentSound2 = '';
}
frame 6 {
this.CurrentReview = 141;
}
frame 7 {
this.stop();
}
frame 7 {
this.CurrentSound1 = 'Sound01';
this.CurrentSound2 = '';
}
frame 7 {
this.CurrentReview = 171;
}
frame 8 {
this.stop();
}
frame 8 {
this.CurrentSound1 = 'Sound02';
this.CurrentSound2 = '';
}
frame 8 {
this.CurrentReview = 113;
}
frame 9 {
this.stop();
}
frame 9 {
this.CurrentSound1 = 'Sound02';
this.CurrentSound2 = '';
}
frame 9 {
this.CurrentReview = 230;
}
frame 10 {
this.stop();
}
frame 10 {
this.CurrentSound1 = 'Sound02';
this.CurrentSound2 = '';
}
frame 10 {
this.CurrentReview = 228;
}
frame 11 {
this.stop();
}
frame 11 {
this.CurrentSound1 = 'Sound02';
this.CurrentSound2 = '';
}
frame 11 {
this.CurrentReview = 252;
}
frame 12 {
this.stop();
}
frame 12 {
this.CurrentSound1 = 'Sound02';
this.CurrentSound2 = '';
}
frame 12 {
this.CurrentReview = 264;
}
frame 13 {
this.stop();
}
frame 13 {
this.CurrentSound1 = 'Sound02';
this.CurrentSound2 = '';
}
frame 13 {
this.CurrentReview = 175;
}
frame 14 {
this.stop();
}
frame 14 {
this.CurrentSound1 = 'Sound02';
this.CurrentSound2 = '';
}
frame 14 {
this.CurrentReview = 222;
}
frame 15 {
this.stop();
}
frame 15 {
this.CurrentSound1 = 'Sound02';
this.CurrentSound2 = '';
}
frame 15 {
this.CurrentReview = 270;
}
frame 16 {
this.stop();
}
frame 16 {
this.CurrentSound1 = 'Sound01';
this.CurrentSound2 = 'Sound02';
}
frame 16 {
this.CurrentReview = 567;
}
frame 17 {
this.stop();
}
frame 17 {
this.CurrentSound1 = 'Sound03';
this.CurrentSound2 = '';
}
frame 17 {
this.CurrentReview = 67;
}
frame 18 {
this.stop();
}
frame 18 {
this.CurrentSound1 = 'Sound03';
this.CurrentSound2 = '';
}
frame 18 {
this.CurrentReview = 141;
}
frame 19 {
this.stop();
}
frame 19 {
this.CurrentSound1 = 'Sound03';
this.CurrentSound2 = '';
}
frame 19 {
this.CurrentReview = 286;
}
frame 20 {
this.stop();
}
frame 20 {
this.CurrentSound1 = 'Sound03';
this.CurrentSound2 = '';
}
frame 20 {
this.CurrentReview = 23;
}
frame 21 {
this.stop();
}
frame 21 {
this.CurrentSound1 = 'Sound03';
this.CurrentSound2 = '';
}
frame 21 {
this.CurrentReview = 705;
}
frame 22 {
this.stop();
}
frame 22 {
this.CurrentSound1 = 'Sound04';
this.CurrentSound2 = '';
}
frame 22 {
this.CurrentReview = 306;
}
frame 23 {
this.stop();
}
frame 23 {
this.CurrentSound1 = 'Sound04';
this.CurrentSound2 = '';
}
frame 23 {
this.CurrentReview = 214;
}
frame 24 {
this.stop();
}
frame 24 {
this.CurrentSound1 = 'Sound04';
this.CurrentSound2 = '';
}
frame 24 {
this.CurrentReview = 346;
}
frame 25 {
this.stop();
}
frame 25 {
this.CurrentSound1 = 'Sound04';
this.CurrentSound2 = '';
}
frame 25 {
this.CurrentReview = 465;
}
frame 26 {
this.stop();
}
frame 26 {
this.CurrentSound1 = 'Sound05';
this.CurrentSound2 = '';
}
frame 26 {
this.CurrentReview = 615;
}
frame 27 {
this.stop();
}
frame 27 {
this.CurrentSound1 = 'Sound06';
this.CurrentSound2 = '';
}
frame 27 {
this.CurrentReview = 185;
}
frame 28 {
this.stop();
}
frame 28 {
this.CurrentSound1 = 'Sound06';
this.CurrentSound2 = '';
}
frame 28 {
this.CurrentReview = 593;
}
frame 29 {
this.stop();
}
frame 29 {
this.CurrentSound1 = 'Sound06';
this.CurrentSound2 = '';
}
frame 29 {
this.CurrentReview = 81;
}
frame 30 {
this.stop();
}
frame 30 {
this.CurrentSound1 = 'Sound06';
this.CurrentSound2 = '';
}
frame 30 {
this.CurrentReview = 559;
}
frame 31 {
this.stop();
}
frame 31 {
this.CurrentSound1 = 'Sound07';
this.CurrentSound2 = '';
}
frame 31 {
this.CurrentReview = 54;
}
frame 32 {
this.stop();
}
frame 32 {
this.CurrentSound1 = 'Sound07';
this.CurrentSound2 = '';
}
frame 32 {
this.CurrentReview = 193;
}
frame 33 {
this.stop();
}
frame 33 {
this.CurrentSound1 = 'Sound09';
this.CurrentSound2 = '';
}
frame 33 {
this.CurrentReview = 85;
}
frame 34 {
this.stop();
}
frame 34 {
this.CurrentSound1 = 'Sound09';
this.CurrentSound2 = '';
}
frame 34 {
this.CurrentReview = 95;
}
frame 35 {
this.stop();
}
frame 35 {
this.CurrentSound1 = 'Sound10';
this.CurrentSound2 = '';
}
frame 35 {
this.CurrentReview = 412;
}
frame 36 {
this.stop();
}
frame 36 {
this.CurrentSound1 = 'Sound11';
this.CurrentSound2 = '';
}
frame 36 {
this.CurrentReview = 63;
}
frame 37 {
this.stop();
}
frame 37 {
this.CurrentSound1 = 'Sound11';
this.CurrentSound2 = '';
}
frame 37 {
this.CurrentReview = 101;
}
frame 38 {
this.stop();
}
frame 38 {
this.CurrentSound1 = 'Sound11';
this.CurrentSound2 = '';
}
frame 38 {
this.CurrentReview = 129;
}
frame 39 {
this.stop();
}
frame 39 {
this.CurrentSound1 = 'Sound11';
this.CurrentSound2 = '';
}
frame 39 {
this.CurrentReview = 360;
}
frame 40 {
this.stop();
}
frame 40 {
this.CurrentSound1 = 'Sound11';
this.CurrentSound2 = '';
}
frame 40 {
this.CurrentReview = 362;
}
frame 41 {
this.stop();
}
frame 41 {
this.CurrentSound1 = 'Sound11';
this.CurrentSound2 = '';
}
frame 41 {
this.CurrentReview = 205;
}
frame 42 {
this.stop();
}
frame 42 {
this.CurrentSound1 = 'Sound11';
this.CurrentSound2 = '';
}
frame 42 {
this.CurrentReview = 523;
}
frame 43 {
this.stop();
}
frame 43 {
this.CurrentSound1 = 'Sound12';
this.CurrentSound2 = '';
}
frame 43 {
this.CurrentReview = 569;
}
frame 44 {
this.stop();
}
frame 44 {
this.CurrentSound1 = 'Sound13';
this.CurrentSound2 = '';
}
frame 44 {
this.CurrentReview = 79;
}
frame 45 {
this.stop();
}
frame 45 {
this.CurrentSound1 = 'Sound13';
this.CurrentSound2 = '';
}
frame 45 {
this.CurrentReview = 525;
}
frame 46 {
this.stop();
}
frame 46 {
this.CurrentSound1 = 'Sound16';
this.CurrentSound2 = '';
}
frame 46 {
this.CurrentReview = 40;
}
frame 47 {
this.stop();
}
frame 47 {
this.CurrentSound1 = 'Sound17';
this.CurrentSound2 = '';
}
frame 47 {
this.CurrentReview = 338;
}
frame 48 {
this.stop();
}
frame 48 {
this.CurrentSound1 = 'Sound18';
this.CurrentSound2 = '';
}
frame 48 {
this.CurrentReview = 139;
}
frame 49 {
this.stop();
}
frame 49 {
this.CurrentSound1 = 'Sound18';
this.CurrentSound2 = '';
}
frame 49 {
this.CurrentReview = 451;
}
frame 50 {
this.stop();
}
frame 50 {
this.CurrentSound1 = 'Sound19';
this.CurrentSound2 = '';
}
frame 50 {
this.CurrentReview = 167;
}
frame 51 {
this.stop();
}
frame 51 {
this.CurrentSound1 = 'Sound19';
this.CurrentSound2 = '';
}
frame 51 {
this.CurrentReview = 153;
}
frame 52 {
this.stop();
}
frame 52 {
this.CurrentSound1 = 'Sound20';
this.CurrentSound2 = '';
}
frame 52 {
this.CurrentReview = 266;
}
frame 53 {
this.stop();
}
frame 53 {
this.CurrentSound1 = 'Sound20';
this.CurrentSound2 = '';
}
frame 53 {
this.CurrentReview = 471;
}
frame 54 {
this.stop();
}
frame 54 {
this.CurrentSound1 = 'Sound21';
this.CurrentSound2 = '';
}
frame 54 {
this.CurrentReview = 244;
}
frame 55 {
this.stop();
}
frame 55 {
this.CurrentSound1 = 'Sound21';
this.CurrentSound2 = '';
}
frame 55 {
this.CurrentReview = 545;
}
frame 56 {
this.stop();
}
frame 56 {
this.CurrentSound1 = 'Sound22';
this.CurrentSound2 = '';
}
frame 56 {
this.CurrentReview = 479;
}
frame 57 {
this.stop();
}
frame 57 {
this.CurrentSound1 = 'Sound23';
this.CurrentSound2 = '';
}
frame 57 {
this.CurrentReview = 218;
}
frame 58 {
this.stop();
}
frame 58 {
this.CurrentSound1 = 'Sound24';
this.CurrentSound2 = 'Sound10';
}
frame 58 {
this.CurrentReview = 671;
}
}
movieClip 505 {
frame 1 {
this.gotoAndStop(random(24) + 2);
}
frame 2 {
this.stop();
}
frame 3 {
this.stop();
}
frame 4 {
this.stop();
}
frame 5 {
this.stop();
}
frame 6 {
this.stop();
}
frame 7 {
this.stop();
}
frame 8 {
this.stop();
}
frame 9 {
this.stop();
}
frame 10 {
this.stop();
}
frame 11 {
this.stop();
}
frame 12 {
this.stop();
}
frame 13 {
this.stop();
}
frame 14 {
this.stop();
}
frame 15 {
this.stop();
}
frame 16 {
this.stop();
}
frame 17 {
this.stop();
}
frame 18 {
this.stop();
}
frame 19 {
this.stop();
}
frame 20 {
this.stop();
}
frame 21 {
this.stop();
}
frame 22 {
this.stop();
}
frame 23 {
this.stop();
}
frame 24 {
this.stop();
}
frame 25 {
this.stop();
}
}
movieClip 506 {
}
frame 6 {
myNiveau.text = _root.Niveau + 1;
myNbrCartes.text = _root.NbrCartes;
if (_root.NbrMatchup >= _root.NbrCartes / 2) {
_root.Reset();
}
stop();
}