Section 1
//compteur_5 (GeoStrip_fla.compteur_5)
package GeoStrip_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class compteur_5 extends MovieClip {
public var tourn:MovieClip;
public var lbl:TextField;
public function compteur_5(){
addFrameScript(0, frame1);
}
public function updateframe(_arg1:Event):void{
var _local2:*;
_local2 = (60 - Math.floor((currentFrame / 12)));
lbl.text = _local2;
}
function frame1(){
addEventListener(Event.ENTER_FRAME, updateframe);
}
}
}//package GeoStrip_fla
Section 2
//Diaporama_8 (GeoStrip_fla.Diaporama_8)
package GeoStrip_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Diaporama_8 extends MovieClip {
public var btSuiv:SimpleButton;
public var btPrec:SimpleButton;
public function Diaporama_8(){
addFrameScript(0, frame1, 1, frame2, 15, frame16, 16, frame17);
}
public function btSuiv_Click(_arg1:MouseEvent){
gotoAndStop((this.currentFrame + 1));
}
function frame16(){
btPrec.visible = true;
btSuiv.visible = true;
}
function frame1(){
stop();
btPrec.visible = false;
btSuiv.visible = true;
btSuiv.addEventListener(MouseEvent.CLICK, btSuiv_Click);
btPrec.addEventListener(MouseEvent.CLICK, btPrec_Click);
}
function frame17(){
btPrec.visible = true;
btSuiv.visible = false;
}
public function btPrec_Click(_arg1:MouseEvent){
gotoAndStop((this.currentFrame - 1));
}
function frame2(){
btPrec.visible = true;
btSuiv.visible = true;
}
}
}//package GeoStrip_fla
Section 3
//HorlogeKiTourne_6 (GeoStrip_fla.HorlogeKiTourne_6)
package GeoStrip_fla {
import flash.display.*;
public dynamic class HorlogeKiTourne_6 extends MovieClip {
public function HorlogeKiTourne_6(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndPlay(1);
}
}
}//package GeoStrip_fla
Section 4
//MainTimeline (GeoStrip_fla.MainTimeline)
package GeoStrip_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var btStartAgain:SimpleButton;
public var myScore:MovieClip;
public var myCpt:MovieClip;
public var TC;
public var txt:TextField;
public var score:int;
public var btRep0:btRep;
public var btRep1:btRep;
public var btRep2:btRep;
public var btRep3:btRep;
public var myVid:MovieClip;
public var fautes;
public var pays;
public var Y0;
public var nbCapital;
public var tcStop;
public var nbQ;
public var arrayQ;
public var txtFautes:TextField;
public var rayY;
public var bullesQ:MovieClip;
public var capital;
public var btOK:SimpleButton;
public var tcGo;
public var lblQuestion:TextField;
public var win:Boolean;
public var txtTxt;
public var ecartY;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function btOKDiaporama_Click(_arg1:MouseEvent){
myVid.removeEventListener(Event.ENTER_FRAME, videoEvent);
btOK.removeEventListener(MouseEvent.CLICK, btOKDiaporama_Click);
myVid.stop();
this.gotoAndStop(6);
}
function frame2(){
stop();
}
function frame3(){
TC = new Array(87, 138, 186, 246, 282, 325);
tcGo = 1;
tcStop = (TC[0] - 1);
txtTxt = "Ready to Play?";
txt.text = "Get 16 answers right in 60 secondes and you'll get to see the bonus video";
win = false;
capital = new Array(" Kabul", " Tirane", " Algiers", " Luanda", " Saint John's", " Buenos Aires", " Yerevan", " Canberra", " Vienna", " Baku", " Nassau", " Manama", " Dhaka", " Bridgetown", " Minsk", " Brussels", " Belmopan", " Thimphu", " Sarajevo", " Gaborone", " Brasilia", " Bandar Seri Begawan", " Sofia", " Ouagadougou", " Bujumbura", " Phnom Penh", " Yaounde", " Zagreb", " Havana", " Nicosia", " Prague", " Copenhagen", " Djibouti", " Roseau", " Santo Domingo", " Quito", " Cairo", " San Salvador", " Malabo", " Asmara", " Tallinn", " Addis Ababa", " Suva", " Helsinki", " Paris", " Libreville", " Banjul", " Tbilisi", " Berlin", " Accra", " Athens", " Saint George's", " Guatemala City", " Conakry", " Georgetown", " Tegucigalpa", " Budapest", " Reykjavik", " New Delhi", " Jakarta", " Tehran", " Baghdad", " Dublin", " Rome", " Kingston", " Tokyo", " Amman", " Astana", " Nairobi", " Tarawa Atoll", " Pyongyang", " Seoul", " Pristina", " Kuwait City", " Bishkek", " Vientiane", " Riga", " Beirut", " Maseru", " Monrovia", " Tripoli", " Vaduz", " Vilnius", " Luxembourg", " Skopje", " Antananarivo", " Lilongwe", " Kuala Lumpur", " Male", " Bamako", " Valletta", " Majuro", " Nouakchott", " Port Louis", " Mexico City", " Chisinau", " Monaco", " Ulaanbaatar", " Podgorica", " Rabat", " Maputo", " Windhoek", " Kathmandu", " Wellington", " Managua", " Niamey", " Abuja", " Oslo", " Muscat", " Islamabad", " Melekeok", " Panama City", " Port Moresby", " Asuncion", " Lima", " Manila", " Warsaw", " Lisbon", " Doha", " Bucharest", " Moscow", " Kigali", " Basseterre", " Castries", " Kingstown", " Apia", " San Marino", " Riyadh", " Dakar", " Belgrade", " Victoria", " Freetown", " Singapore", " Bratislava", " Ljubljana", " Honiara", " Mogadishu", " Madrid", " Khartoum", " Paramaribo", " Mbabane", " Stockholm", " Bern", " Damascus", " Taipei", " Dushanbe", " Bangkok", " Lome", " Nuku'alofa", " Tunis", " Ankara", " Ashgabat", " Kampala", " Kyiv", " Abu Dhabi", " London", " Washington D.C.", " Montevideo", " Tashkent", " Caracas", " Hanoi", " Sanaa", " Lusaka", " Harare");
pays = new Array("Afghanistan", "Albania", "Algeria", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "The Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Bhutan", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "The Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guyana", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kosovo", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Moldova", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Namibia", "Nepal", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "Spain", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Thailand", "Togo", "Tonga", "Tunisia", "Turkey", "Turkmenistan", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States of America", "Uruguay", "Uzbekistan", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe");
}
function frame4(){
stop();
myVid.gotoAndPlay(tcGo);
myVid.addEventListener(Event.ENTER_FRAME, videoEvent);
if (win){
btOK.addEventListener(MouseEvent.CLICK, btOKDiaporama_Click);
} else {
btOK.addEventListener(MouseEvent.CLICK, btOK_Click);
};
}
function frame5(){
stop();
btRep0 = new btRep();
addChild(btRep0);
btRep1 = new btRep();
addChild(btRep1);
btRep2 = new btRep();
addChild(btRep2);
btRep3 = new btRep();
addChild(btRep3);
ecartY = 54;
Y0 = 130;
fautes = 0;
rayY = new Array(Y0, (Y0 + ecartY), (Y0 + (2 * ecartY)), (Y0 + (3 * ecartY)));
btRep0.x = (btRep1.x = (btRep2.x = (btRep3.x = 473)));
btOK.addEventListener(MouseEvent.CLICK, btOK2_Click);
arrayQ = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
nbQ = 0;
nbCapital = (capital.length - 1);
newGame();
btRep0.addEventListener(MouseEvent.CLICK, btRepBonne_click);
btRep1.addEventListener(MouseEvent.CLICK, btRepFausse_click);
btRep2.addEventListener(MouseEvent.CLICK, btRepFausse_click);
btRep3.addEventListener(MouseEvent.CLICK, btRepFausse_click);
btRep0.buttonMode = true;
btRep0.useHandCursor = true;
btRep0.mouseChildren = false;
btRep1.buttonMode = true;
btRep1.useHandCursor = true;
btRep1.mouseChildren = false;
btRep2.buttonMode = true;
btRep2.useHandCursor = true;
btRep2.mouseChildren = false;
btRep3.buttonMode = true;
btRep3.useHandCursor = true;
btRep3.mouseChildren = false;
}
function frame6(){
stop();
btStartAgain.addEventListener(MouseEvent.CLICK, btStartAgain_Click);
lblQuestion.text = "Click on Start to start again.";
}
function frame1(){
txtFautes.text = "0";
addEventListener(Event.ENTER_FRAME, loadProgress);
btOK.addEventListener(MouseEvent.CLICK, btDebut_Click);
btOK.visible = false;
}
public function perdu(){
var _local1:*;
win = false;
myCpt.stop();
myCpt.tourn.stop();
myCpt.removeEventListener(Event.ENTER_FRAME, myCptEvent);
btRep0.visible = (btRep1.visible = (btRep2.visible = (btRep3.visible = false)));
btOK.removeEventListener(MouseEvent.CLICK, btOK2_Click);
_local1 = Math.floor((score / 4));
if (_local1 > 4){
_local1 = 4;
};
tcGo = TC[_local1];
txt.text = "You lose";
btOK.visible = false;
tcStop = (TC[(_local1 + 1)] - 2);
txtTxt = "Play Again?";
gotoAndStop(4);
}
public function btStartAgain_Click(_arg1:MouseEvent){
btStartAgain.removeEventListener(MouseEvent.CLICK, btStartAgain_Click);
this.gotoAndStop(5);
}
public function newQ(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:int;
var _local7:int;
_local1 = arrayQ[nbQ];
_local2 = 0;
do {
_local2 = Math.floor((Math.random() * nbCapital));
} while (_local2 == 0);
_local3 = _local2;
do {
_local2 = Math.floor((Math.random() * nbCapital));
} while ((((_local2 == _local1)) || ((_local2 == _local3))));
_local4 = _local2;
do {
_local2 = Math.floor((Math.random() * nbCapital));
} while ((((((_local2 == _local1)) || ((_local2 == _local3)))) || ((_local2 == _local4))));
_local5 = _local2;
_local2 = Math.floor((Math.random() * 4));
btRep0.y = rayY[_local2];
do {
_local2 = Math.floor((Math.random() * 4));
} while (rayY[_local2] == btRep0.y);
btRep1.y = rayY[_local2];
_local6 = 0;
while (_local6 < 4) {
if (((!((rayY[_local6] == btRep0.y))) && (!((rayY[_local6] == btRep1.y))))){
btRep2.y = rayY[_local6];
break;
};
_local6++;
};
_local7 = 0;
while (_local7 < 4) {
if (((((!((rayY[_local7] == btRep0.y))) && (!((rayY[_local7] == btRep1.y))))) && (!((rayY[_local7] == btRep2.y))))){
btRep3.y = rayY[_local7];
break;
};
_local7++;
};
btRep0.lbl.text = capital[_local1];
btRep1.lbl.text = capital[_local3];
btRep2.lbl.text = capital[_local4];
btRep3.lbl.text = capital[_local5];
lblQuestion.text = (("What is the capital of " + pays[_local1]) + "?");
nbQ++;
}
public function videoEvent(_arg1:Event){
if (myVid.currentFrame >= tcStop){
myVid.stop();
myVid.removeEventListener(Event.ENTER_FRAME, videoEvent);
txt.text = txtTxt;
btOK.visible = true;
};
}
public function myCptEvent(_arg1:Event){
if (myCpt.currentFrame >= 720){
perdu();
};
}
public function btDebut_Click(_arg1:MouseEvent){
btOK.removeEventListener(MouseEvent.CLICK, btDebut_Click);
gotoAndPlay(3);
}
public function loadProgress(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
_local2 = this.root.loaderInfo.bytesLoaded;
_local3 = this.root.loaderInfo.bytesTotal;
_local4 = ((100 * _local2) / _local3);
txt.text = (("Please Wait: " + _local4) + "%");
if (_local2 >= _local3){
txt.text = "Click on the Start Button to play";
removeEventListener(Event.ENTER_FRAME, loadProgress);
btOK.visible = true;
};
}
public function btRepFausse_click(_arg1:MouseEvent){
fautes++;
txtFautes.text = fautes;
if (fautes > 9){
perdu();
} else {
newQ();
};
}
public function btOK_Click(_arg1:MouseEvent){
myVid.removeEventListener(Event.ENTER_FRAME, videoEvent);
btOK.removeEventListener(MouseEvent.CLICK, btOK_Click);
myVid.stop();
this.gotoAndStop(5);
}
public function btOK2_Click(_arg1:MouseEvent){
btOK.removeEventListener(MouseEvent.CLICK, btOK2_Click);
tcGo = 325;
txt.text = "Bravo, you're good at geography!";
btOK.visible = false;
win = true;
tcStop = 702;
txtTxt = "See the photos again?";
gotoAndStop(4);
}
public function newGame(){
bullesQ.visible = true;
btOK.visible = false;
score = 1;
fautes = 0;
txtFautes.text = fautes;
myScore.gotoAndStop(0);
nbQ = 0;
do {
arrayQ[nbQ] = isPresArray();
nbQ++;
} while (nbQ < arrayQ.length);
nbQ = 0;
newQ();
myCpt.gotoAndPlay(0);
myCpt.addEventListener(Event.ENTER_FRAME, myCptEvent);
}
public function btRepBonne_click(_arg1:MouseEvent){
score++;
btRep0.visible = (btRep1.visible = (btRep2.visible = (btRep3.visible = true)));
myScore.gotoAndStop(score);
if (score == 17){
bullesQ.visible = false;
btRep0.visible = (btRep1.visible = (btRep2.visible = (btRep3.visible = false)));
btOK.visible = true;
lblQuestion.text = "You win!";
myCpt.stop();
myCpt.tourn.stop();
myCpt.removeEventListener(Event.ENTER_FRAME, myCptEvent);
} else {
newQ();
};
}
public function isPresArray():int{
var _local1:int;
var _local2:Boolean;
var _local3:int;
_local1 = Math.floor((Math.random() * nbCapital));
_local2 = false;
_local3 = 0;
while (_local3 < arrayQ.length) {
if (_local1 == arrayQ[_local3]){
_local2 = true;
break;
};
_local3++;
};
if (_local2){
return (isPresArray());
};
return (_local1);
}
}
}//package GeoStrip_fla
Section 5
//btRep (btRep)
package {
import flash.display.*;
import flash.text.*;
public dynamic class btRep extends MovieClip {
public var lbl:TextField;
}
}//package