Section 1
//curseurRougeDisparait_9 (SpotDaDif_fla.curseurRougeDisparait_9)
package SpotDaDif_fla {
import flash.display.*;
public dynamic class curseurRougeDisparait_9 extends MovieClip {
public function curseurRougeDisparait_9(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package SpotDaDif_fla
Section 2
//MainTimeline (SpotDaDif_fla.MainTimeline)
package SpotDaDif_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var points;
public var Xdif;
public var btLinkFSG:SimpleButton;
public var btStart:SimpleButton;
public var curs;
public var btNewLevel:SimpleButton;
public var typeImg;
public var imgGagne:MovieClip;
public var btRestart:SimpleButton;
public var curs2;
public var cursFo;
public var curs1;
public var myFoto1:MovieClip;
public var curs0;
public var myScore:MovieClip;
public var curs4;
public var level;
public var Ydif;
public var btLinkUpis:SimpleButton;
public var trouve;
public var curs3;
public var lab:TextField;
public var myFoto:MovieClip;
public var erreurs;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function btLinkFSG_Click(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.free-strip-games.com/");
navigateToURL(_local2, "_blank");
}
public function myFoto1_Click(_arg1:MouseEvent){
clickage(((mouseX - myFoto1.x) + myFoto.x), mouseY);
}
public function btNewLevel_Click(_arg1:MouseEvent){
NvLevel();
}
public function myFoto_Click(_arg1:MouseEvent){
clickage(mouseX, mouseY);
}
public function clickage(_arg1:int, _arg2:int){
var _local3:*;
var _local4:int;
var _local5:uint;
_local3 = -1;
_local4 = 0;
while (_local4 < 5) {
if ((((((_arg1 - Xdif[_local4]) - myFoto.x) < 10)) && ((((_arg2 - Ydif[_local4]) - myFoto.y) < 10)))){
if ((((((_arg1 - Xdif[_local4]) - myFoto.x) > -10)) && ((((_arg2 - Ydif[_local4]) - myFoto.y) > -10)))){
_local3 = _local4;
if (trouve[_local3] == false){
trouve[_local3] = true;
points++;
myScore.gotoAndStop((1 + points));
};
lab.text = ("Yes!" + points);
};
};
_local4++;
};
if (_local3 == -1){
erreurs++;
lab.text = ("NO! erreurs:" + erreurs);
cursFo.x = _arg1;
cursFo.y = _arg2;
cursFo.gotoAndStop((typeImg + 2));
cursFo.cR.gotoAndPlay(1);
cursFo.cR2.gotoAndPlay(1);
} else {
curs[_local3].gotoAndStop(typeImg);
curs[_local3].x = (Xdif[_local3] + myFoto.x);
curs[_local3].y = (Ydif[_local3] + myFoto.y);
addChild(curs[_local3]);
};
if (points > 4){
_local5 = 0;
while (_local5 < 5) {
curs[_local5].gotoAndStop(5);
_local5++;
};
level++;
if (level < 6){
btNewLevel.visible = true;
} else {
level = 1;
imgGagne.visible = true;
btRestart.visible = true;
};
myFoto.removeEventListener(MouseEvent.CLICK, myFoto_Click);
myFoto1.removeEventListener(MouseEvent.CLICK, myFoto1_Click);
};
}
public function NvLevel(){
btNewLevel.visible = false;
imgGagne.visible = false;
btRestart.visible = false;
trouve = new Array(false, false, false, false, false);
points = 0;
erreurs = 0;
myFoto.gotoAndStop((1 + ((level - 1) * 2)));
myFoto1.gotoAndStop((2 + ((level - 1) * 2)));
myScore.gotoAndStop(1);
if (level == 1){
Xdif = new Array(182, 140, 136, 135, 26);
Ydif = new Array(251, 412, 380, 185, 52);
};
if (level == 2){
Xdif = new Array(177, 181, 122, 123, 8);
Ydif = new Array(176, 266, 0x0100, 327, 136);
};
if (level == 3){
Xdif = new Array(47, 227, 152, 26, 260);
Ydif = new Array(243, 280, 416, 443, 117);
};
if (level == 4){
Xdif = new Array(188, 53, 193, 25, 192);
Ydif = new Array(317, 274, 237, 465, 142);
};
if (level == 5){
Xdif = new Array(151, 86, 124, 36, 241);
Ydif = new Array(254, 437, 224, 114, 241);
};
myFoto.addEventListener(MouseEvent.CLICK, myFoto_Click);
myFoto1.addEventListener(MouseEvent.CLICK, myFoto1_Click);
}
function frame2(){
btNewLevel.addEventListener(MouseEvent.CLICK, btNewLevel_Click);
btRestart.addEventListener(MouseEvent.CLICK, btNewLevel_Click);
Xdif = new Array(92, 120, 6, 186, 142);
Ydif = new Array(3, 234, 319, 223, 130);
level = 1;
curs0 = new curseur();
curs1 = new curseur();
curs2 = new curseur();
curs3 = new curseur();
curs4 = new curseur();
cursFo = new curseur();
cursFo.gotoAndStop(5);
addChild(cursFo);
curs = new Array(curs0, curs1, curs2, curs3, curs4);
points = 0;
erreurs = 0;
typeImg = 1;
NvLevel();
}
public function btLinkUpis_Click(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.uplay-istrip.com/");
navigateToURL(_local2, "_blank");
}
public function btStart_Click(_arg1:MouseEvent){
var _local2:int;
var _local3:int;
_local2 = this.root.loaderInfo.bytesLoaded;
_local3 = this.root.loaderInfo.bytesTotal;
if (_local2 >= _local3){
this.gotoAndStop(2);
};
}
function frame1(){
stop();
btStart.addEventListener(MouseEvent.CLICK, btStart_Click);
btLinkUpis.addEventListener(MouseEvent.CLICK, btLinkUpis_Click);
btLinkFSG.addEventListener(MouseEvent.CLICK, btLinkFSG_Click);
}
}
}//package SpotDaDif_fla
Section 3
//curseur (curseur)
package {
import flash.display.*;
public dynamic class curseur extends MovieClip {
public var cR:MovieClip;
public var cR2:MovieClip;
}
}//package
Section 4
//curseurFo (curseurFo)
package {
import flash.display.*;
public dynamic class curseurFo extends MovieClip {
}
}//package