Frame 1
function doSomething2() {
getURL ("http://www.facebook.com/apps/application.php?id=176596049065726", _blank);
}
function doSomething0() {
}
function doSomething() {
getURL ("https://www.facebook.com/maroc.folie", _blank);
}
function doSomething4() {
getURL ("http://mostplays.com/profiles/kifouamou/", _blank);
}
function doSomething2() {
getURL ("https://www.facebook.com/MorroCan.MorroCant", _blank);
}
function doSomething0() {
}
preLoad = function () {
mask_mc.mask_mc._x = -150 + ((getBytesLoaded() / getBytesTotal()) * 150);
var _loc2 = Math.ceil((getBytesLoaded() / getBytesTotal()) * 100);
var _loc1 = Math.ceil(getBytesLoaded() / 100);
if (getBytesLoaded() == getBytesTotal()) {
clearInterval(preloadINT);
gotoAndStop ("main");
}
};
preloadINT = setInterval(preLoad, 40);
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned0 = new ContextMenuItem(" \u00A9 MorroCan MorroCan'T Design 2012 ", doSomething0);
Functioned = new ContextMenuItem("Maroc Folie", doSomething);
Functioned2 = new ContextMenuItem("Programation: MorroCan MorroCan'T", doSomething2);
Functioned3 = new ContextMenuItem("Graphisme: MorroCan MorroCan'T", doSomething);
Functioned4 = new ContextMenuItem("The MorroCan Game", doSomething4);
MENU.customItems.push(Functioned0);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
MENU.customItems.push(Functioned4);
_root.menu = MENU;
getURL ("fscommand:" + "fullscreen", "true");
stop();
Frame 2
pop_snd = new Sound();
pop_snd.attachSound("pop");
boing_snd = new Sound();
boing_snd.attachSound("boing");
boing1_snd = new Sound();
boing1_snd.attachSound("boing1");
music_snd = new Sound();
music_snd.attachSound("music");
music_snd.start(0, 9000);
levelVar = new Array(500, 400, 300, 200, 350, 350);
spritesVar = new Array(1, 2, 3, 4, 5, 6);
levelSaves = new Array(3, 20, 40, 50, 70, 100);
BEGINGAME = function () {
saved = 0;
_root.allDead = false;
_root.howManyPencils = 1;
endSpeed = false;
difficulty = 150;
timer = 150;
ballsDead = 0;
clearDead = 0;
sprites = 1;
howManyBalls = 2;
level = 0;
ball_mc.duplicateMovieClip("ball1_mc", _root.getNextHighestDepth());
ball1_mc.dead = false;
ball1_mc.gravity = 0;
ball1_mc.speed = 3;
ball1_mc.level = level;
};
MOVEBALL = function () {
timer--;
if (timer <= 0) {
timer = difficulty;
DUPLICATEBALL();
}
i = saved - 3;
while (i < howManyBalls) {
var _loc2 = _root[("ball" + i) + "_mc"];
if (_root.allDead && (!_loc2.dead)) {
_loc2.removeMovieClip();
}
if (_loc2.dead) {
_loc2._y = _loc2._y - 5;
if (_loc2._y < 0) {
_loc2.removeMovieClip();
clearDead = clearDead + 1;
if (clearDead >= 4) {
REMOVEBALLS();
clearInterval(_root.moveballINT);
clearInterval(_root.keypressINT);
go_mc.gotoAndPlay("gameOver");
}
}
} else {
if (_loc2.gravity < 20) {
_loc2.gravity = _loc2.gravity + 1;
}
var _loc9 = (_loc2._x + _loc2.speed);
var _loc8 = (_loc2._y + _loc2.gravity);
var _loc5 = 0.0174532905220985;
_loc2._x = Math.cos(_loc5) + _loc9;
_loc2._y = Math.sin(_loc5) + _loc8;
}
if (((_loc2._y > 255) && (_loc2._x < 600)) && (!_loc2.dead)) {
ballsDead = ballsDead + 1;
if (ballsDead >= 4) {
_root.allDead = true;
} else {
_root[("dead" + ballsDead) + "_mc"].gotoAndStop(201);
}
pop_snd.start();
_loc2.gotoAndPlay("dead");
_loc2.dead = true;
gravity = -70;
sprites = sprites + -1;
}
if (((_loc2._y > 230) && (_loc2._y < 255)) && (!_loc2.dead)) {
var _loc7 = (platform_mc.widthx / 2);
var _loc11 = (platform_mc._x - _loc7);
var _loc10 = (platform_mc._x + _loc7);
var _loc6 = (_loc2._width / 2);
if ((((_loc2._x + _loc6) > _loc11) && ((_loc2._x - _loc6) < _loc10)) && (_loc2.gravity > 0)) {
if (!_loc2.extraLife) {
boing_snd.start();
} else {
boing1_snd.start();
}
_loc2.gravity = -20;
_loc2._y = 230;
_loc2.play();
}
if ((_loc2._x > levelVar[_loc2.level]) && (spritesVar[_loc2.level] > sprites)) {
_loc2.level = 0;
}
}
if ((_loc2._x > 700) && (_loc2._y > 230)) {
_root.pencils_mc["pencil" + _root.howManyPencils].gotoAndStop(2);
if (_root.howManyPencils != 30) {
_root.howManyPencils++;
} else {
_root.howManyPencils = 1;
pencilReset = 30;
RESETPENCILSINT = setInterval(RESETPENCILS, 40);
}
if (_loc2.extraLife) {
_root[("dead" + ballsDead) + "_mc"].gotoAndPlay(1);
clearDead = clearDead - 1;
ballsDead = ballsDead - 1;
}
if (_loc2.goldenBall) {
var _loc3 = (Math.ceil(Math.random() * 180) + 20);
var _loc4 = (_loc3 / 2);
_root.platform_mc.widthx = _loc3;
_root.platform_mc.clip_mc._width = _loc3;
_root.platform_mc.leftAngel_mc._x = -_loc4;
_root.platform_mc.rightAngel_mc._x = _loc4;
}
_loc2.removeMovieClip();
sprites = sprites + -1;
saved++;
}
i++;
}
};
DUPLICATEBALL = function () {
if (!((difficulty > 50) && (!endSpeed))) {
difficulty = Math.ceil(Math.random() * 15) + 45;
} else {
endSpeed = true;
difficulty = difficulty - 5;
}
var _loc3 = (("ball" + howManyBalls) + "_mc");
if (!((ballsDead >= 1) && ((Math.random() * 70) > 68))) {
if ((Math.random() * 20) <= 18) {
ball_mc.duplicateMovieClip(_loc3, _root.getNextHighestDepth());
_loc2 = _root[("ball" + howManyBalls) + "_mc"];
} else {
goldball_mc.duplicateMovieClip(_loc3, _root.getNextHighestDepth());
_loc2 = _root[("ball" + howManyBalls) + "_mc"];
_loc2.goldenBall = true;
}
} else {
extra_mc.duplicateMovieClip(_loc3, _root.getNextHighestDepth());
var _loc2 = _root[("ball" + howManyBalls) + "_mc"];
_loc2.extraLife = true;
}
_loc2 = _root[("ball" + howManyBalls) + "_mc"];
_loc2._x = 0;
_loc2._y = 0;
_loc2.gravity = 0;
_loc2.speed = (Math.random() * 3) + 3;
_loc2.level = level;
sprites++;
trace(sprites);
howManyBalls++;
if ((level < 5) && (saved >= levelSaves[level])) {
trace("YO");
level = level + 1;
}
};
REMOVEBALLS = function () {
i = 0;
while (i < howManyBalls) {
var _loc2 = _root[("ball" + i) + "_mc"];
_loc2.removeMovieClip();
i++;
}
};
RESETPENCILS = function () {
pencilReset--;
if (pencilReset <= _root.howManyPencils) {
clearInterval(RESETPENCILSINT);
} else {
_root.pencils_mc["pencil" + _root.pencilReset].gotoAndStop(1);
}
};
KEYPRESS = function () {
platform_mc._x = _root._xmouse;
};
sound_mc.onPress = function () {
if (!soundOff) {
music_snd.setVolume(0);
soundOff = true;
skipnext = true;
sound_mc.gotoAndStop("mute");
}
if (soundOff && (!skipnext)) {
music_snd.setVolume(100);
soundOff = false;
sound_mc.gotoAndPlay(1);
}
skipnext = false;
};
Mouse.show();
stop();
Frame 10
var i = -1;
while (getInstanceAtDepth(i)) {
i--;
}
createEmptyMovieClip("kv_mc", i);
kv_mc.kv_v = {td:"tambainternet.119.memecounter.com", c:119};
System.security.allowDomain(kv_mc.kv_v.td);
kv_mc.kv_v.c_so = SharedObject.getLocal(kv_mc.kv_v.c, "/");
kv_mc.kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_mc.kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_mc.kv_v.lurl = ((((((((((("http://" + kv_mc.kv_v.td) + "/tracker.php") + "?c=") + kv_mc.kv_v.c) + "&r=") + Math.floor(Math.random() * 10000000000)) + "&d=") + kv_mc.kv_v.d) + "&u=") + (kv_mc.kv_v.c_so.data.u ? "1" : "")) + "&p=") + kv_mc.kv_v.fpv;
kv_mc.kv_v.c_so.data.u = true;
kv_v.c_so.flush();
kv_mc.kv_v.t_mc = kv_mc.createEmptyMovieClip("kv_tracker", 0);
kv_mc.kv_v.l_mcl = new MovieClipLoader();
if (!kv_mc.kv_v.l_mcl.loadClip) {
loadMovie (kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
} else {
kv_mc.kv_v.l_mcl.loadClip(kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
}
_root.tvc_media = "608";
_root.createEmptyMovieClip("TVC_mc", 0);
System.security.allowDomain("http://www.viralchart.com");
_root.TVC_mc.loadMovie("http://www.viralchart.com/tvc_tracker.swf");
_root.submitted = false;
dead1_mc.gotoAndPlay(Math.ceil(Math.random() * 199));
dead2_mc.gotoAndPlay(Math.ceil(Math.random() * 199));
dead3_mc.gotoAndPlay(Math.ceil(Math.random() * 199));
Mouse.hide();
stop();
Frame 20
clearInterval(_root.moveballINT);
clearInterval(_root.keypressINT);
removeMovieClip(this.kv_mc);
removeMovieClip(this.TVC_mc);
Mouse.show();
REMOVEBALLS();
stop();
Symbol 69 MovieClip Frame 20
gotoAndPlay (1);
Symbol 85 Button
on (release) {
gotoAndStop ("game");
}
Symbol 102 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 126 MovieClip Frame 1
stop();
widthx = 100;
Symbol 142 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 4
gotoAndStop (1);
Symbol 141 MovieClip Frame 10
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 4
gotoAndStop (1);
Symbol 192 MovieClip Frame 10
stop();
Symbol 197 MovieClip Frame 200
gotoAndPlay (1);
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 4
gotoAndStop (1);
Symbol 202 MovieClip Frame 10
stop();
Symbol 208 MovieClip Frame 80
clearInterval(_root.moveballINT);
clearInterval(_root.keypressINT);
_root.moveballINT = setInterval(_root.MOVEBALL, 40);
_root.keypressINT = setInterval(_root.KEYPRESS, 40);
_root.BEGINGAME();
Symbol 208 MovieClip Frame 82
stop();
Symbol 208 MovieClip Frame 145
_root.gotoAndStop("gameover");
stop();
Symbol 222 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 227 Button
on (release) {
_root.menu_mc.play();
}
Symbol 232 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 233 Button
on (release) {
_root.menu_mc.play();
}
Symbol 234 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 235 Button
on (release) {
_root.menu_mc.play();
}
Symbol 236 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 237 Button
on (release) {
_root.menu_mc.play();
}
Symbol 238 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 239 Button
on (release) {
_root.menu_mc.play();
}
Symbol 240 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 241 Button
on (release) {
_root.menu_mc.play();
}
Symbol 242 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 243 Button
on (release) {
_root.menu_mc.play();
}
Symbol 244 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 245 Button
on (release) {
_root.menu_mc.play();
}
Symbol 246 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 247 Button
on (release) {
_root.menu_mc.play();
}
Symbol 248 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 249 Button
on (release) {
_root.menu_mc.play();
}
Symbol 250 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 251 Button
on (release) {
_root.menu_mc.play();
}
Symbol 252 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 253 Button
on (release) {
_root.menu_mc.play();
}
Symbol 254 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 255 Button
on (release) {
_root.menu_mc.play();
}
Symbol 256 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 257 Button
on (release) {
_root.menu_mc.play();
}
Symbol 258 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 259 Button
on (release) {
_root.menu_mc.play();
}
Symbol 260 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 261 Button
on (release) {
_root.menu_mc.play();
}
Symbol 262 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 263 Button
on (release) {
_root.menu_mc.play();
}
Symbol 264 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 265 Button
on (release) {
_root.menu_mc.play();
}
Symbol 266 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 267 Button
on (release) {
_root.menu_mc.play();
}
Symbol 268 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 269 Button
on (release) {
_root.menu_mc.play();
}
Symbol 270 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 271 Button
on (release) {
_root.menu_mc.play();
}
Symbol 272 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 273 Button
on (release) {
_root.menu_mc.play();
}
Symbol 274 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 275 Button
on (release) {
_root.menu_mc.play();
}
Symbol 276 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 277 Button
on (release) {
_root.menu_mc.play();
}
Symbol 278 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 279 Button
on (release) {
_root.menu_mc.play();
}
Symbol 280 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 281 Button
on (release) {
_root.menu_mc.play();
}
Symbol 282 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 283 Button
on (release) {
_root.menu_mc.play();
}
Symbol 284 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 285 Button
on (release) {
_root.menu_mc.play();
}
Symbol 286 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 287 Button
on (release) {
_root.menu_mc.play();
}
Symbol 288 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
_root.menu_mc.play();
}
Symbol 289 Button
on (release) {
_root.menu_mc.play();
}
Symbol 299 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 305 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 309 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 313 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 317 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 318 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 319 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 320 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 321 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 322 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 323 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 324 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 325 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 326 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 327 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 328 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 329 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 330 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 331 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 332 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 333 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 334 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 335 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 336 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 337 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 338 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 339 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 340 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 341 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 342 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 343 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 344 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 345 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 346 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 347 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 348 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 349 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 350 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 351 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 352 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 353 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 354 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 355 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 356 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 357 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 358 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 359 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 360 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 361 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 362 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 363 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 364 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 365 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 366 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 367 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 368 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 369 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 370 Button
on (release) {
getURL ("https://www.facebook.com/maroc.folie", _blank);
}
Symbol 371 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 372 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 373 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 374 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 375 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 376 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 377 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 378 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 379 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 380 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 381 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 382 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 383 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 384 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 385 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 386 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 387 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 388 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 389 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 390 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 391 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 392 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 393 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 394 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 395 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 396 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 397 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 398 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 399 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 400 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 401 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 402 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 403 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 404 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 405 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 406 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 407 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 408 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 409 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 410 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 411 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 412 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 413 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 414 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 415 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 416 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 417 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 418 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 419 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 420 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 421 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 422 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 423 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 424 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 425 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 426 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 427 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 428 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 429 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 430 Button
on (release) {
getURL ("http://digitalchallenge.rednoseday.com/?link=tamba", _blank);
}
Symbol 431 Button
on (release) {
_root.whatScreen = "sendtofriend";
_root.menu_mc.play();
}
Symbol 432 Button
on (release) {
_root.whatScreen = "submit";
_root.menu_mc.play();
}
Symbol 439 Button
on (press) {
_root.menu_mc.play();
}
Symbol 445 Button
on (release) {
submit_responder = new Object();
doNotSend = false;
strName = userName.text;
strEmail = userEmail.text;
indexOfAt = strEmail.indexOf("@");
lastIndexOfDot = strEmail.lastIndexOf(".");
if (((!strEmail) || (indexOfAt == -1)) || (lastIndexOfDot == -1)) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS";
}
if (!strName) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER YOUR NAME";
}
if (!doNotSend) {
trace("SENDING");
errorMsg.text = "SUBMITTING SCORE PLEASE WAIT";
submit_responder.onResult = function (arrScores) {
_root.submitted = true;
play();
};
gameService.setHighScores(submit_responder, userName.text, userEmail.text, _root.saved);
}
}
Symbol 468 Button
on (press) {
_root.menu_mc.play();
}
Symbol 434 MovieClip Frame 1
function NetServiceProxy(nc, serviceName, client) {
if (nc != null) {
this.nc = nc;
this.serviceName = serviceName;
this.client = client;
}
}
function addScore() {
_root.updating = "UPDATING SCORES PLEASE WAIT";
_root.bt1._visible = false;
_root.bt2._visible = false;
_root.bt3._visible = false;
gameService.updatePoints(updatePoints_responder, strUniqueID, _root.points);
}
userEmail.tabIndex = 2;
userName.tabIndex = 1;
Button64.tabIndex = 4;
Button63.tabIndex = 3;
trace("***** running NetServices");
load("RecordSet.as");
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder = _global.NetServiceProxyResponder;
NetServiceProxyResponder.prototype.onResult = function (result) {
var _loc2 = this.service.client;
result._setParentService(this.service);
var _loc3 = (this.methodName + "_Result");
if (typeof(_loc2[_loc3]) != "function") {
if (typeof(_loc2.onResult) != "function") {
NetServices.trace("NetServices", "info", 1, (_loc3 + " was received from server: ") + result);
} else {
_loc2.onResult(result);
}
} else {
_loc2[_loc3](result);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _loc5 = this.service.client;
var _loc6 = (this.methodName + "_Status");
if (typeof(_loc5[_loc6]) != "function") {
if (typeof(_loc5.onStatus) != "function") {
if (typeof(_root.onStatus) != "function") {
if (typeof(_global.System.onStatus) != "function") {
NetServices.trace("NetServices", "info", 2, (((_loc6 + " was received from server: ") + result.level) + " ") + result.description);
} else {
_global.System.onStatus(result);
}
} else {
_root.onStatus(result);
}
} else {
_loc5.onStatus(result);
}
} else {
_loc5[_loc6](result);
}
};
_global.NetServiceProxy = NetServiceProxy;
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _loc3 = function () {
if (this.client == null) {
if (typeof(arguments[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
} else {
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
arguments.unshift((this.serviceName + ".") + methodName);
return(this.nc.call.apply(this.nc, arguments));
};
return(_loc3);
};
NetConnection.prototype.getService = function (serviceName, client) {
var _loc2 = new NetServiceProxy(this, serviceName, client);
return(_loc2);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {password:password, userid:userid});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
this.addHeader(info.name, info.mustUnderstand, info.data);
};
NetConnection.prototype.RequestUrlRewrite = function (urlSuffix) {
this.__urlSuffix = urlSuffix;
if (this.__originalUrl == null) {
this.__originalUrl = this.uri;
}
var _loc2 = (this.__originalUrl + urlSuffix);
this.connect(_loc2);
};
NetConnection.prototype.clone = function () {
var _loc2 = new NetConnection();
_loc2.connect(((this.__originalUrl == null) ? (this.uri) : (this.__originalUrl)));
if (this.__urlSuffix != null) {
_loc2.RequestUrlRewrite(this.__urlSuffix);
}
return(_loc2);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices = _global.NetServices;
NetServices.gatewayUrl = gatewayUrl;
NetServices.urlSuffix = urlSuffix;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
if (url == undefined) {
if (!NetServices.isHttpUrl(_root._url)) {
url = NetServices.defaultGatewayUrl;
} else {
url = NetServices.gatewayUrl;
if (url == undefined) {
url = NetServices.defaultGatewayUrl;
if (url != undefined) {
if (NetServices.isHttpUrl(url)) {
var _loc6 = url.indexOf("/", 8);
if (_loc6 >= 0) {
url = url.substring(_loc6);
}
}
var _loc4 = NetServices.getHostUrl();
if (_loc4 != null) {
url = _loc4 + url;
}
}
}
}
}
if (url == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _loc5 = new NetConnection();
_loc5.connect(url);
if (NetServices.urlSuffix != null) {
this.RequestUrlRewrite(NetServices.urlSuffix);
}
return(_loc5);
};
NetServices.getHostUrl = function () {
if (!NetServices.isHttpUrl(_root._url)) {
return(null);
}
var _loc2 = _root._url.indexOf("/", 8);
if (_loc2 < 0) {
return(null);
}
return(_root._url.substring(0, _loc2));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _loc1 = ((((((who + " ") + severity) + " ") + number) + ": ") + message);
trace(_loc1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
strTicketID = s;
intSpinLocked = 0;
_global.strRootURL = "http://www.tamba.co.uk/rednoseday07";
NetServices.setDefaultGatewayUrl(_global.strRootURL + "/gateway.php");
conn = NetServices.createGatewayConnection();
checkTicket_responder = new Object();
checkTicket_responder.onResult = function (arrUserInfo) {
_level0.currentPoints = arrUserInfo.points * 1;
strUniqueID = arrUserInfo.uniqueid;
strName = arrUserInfo.fullname;
};
updatePoints_responder = new Object();
updatePoints_responder.onResult = function () {
_root.updating = "";
_root.bt1._visible = true;
_root.bt2._visible = true;
_root.bt3._visible = true;
_root.dbstatus.text = "DB Updated!";
};
gameService = conn.getService("services");
gameService.checkTicket(checkTicket_responder, strTicketID);
if (_root.submitted) {
gotoAndStop (5);
}
stop();
Symbol 434 MovieClip Frame 5
scrollFace_mc._y = upArrow_mc._y + upArrow_mc._height;
scoreList_mc.startPos = scoreList_mc._y;
scrollUp = function () {
if (scoreList_mc._y < scoreList_mc.startPos) {
scoreList_mc._y = scoreList_mc._y + 6;
moveScrollBar();
}
};
scrollDown = function () {
var _loc1 = (scoreList_mc._height - scrollMask_mc._height);
trace(_loc1);
if (scoreList_mc._y > (scoreList_mc.startPos - _loc1)) {
scoreList_mc._y = scoreList_mc._y + -6;
moveScrollBar();
}
};
moveScrollBar = function () {
var _loc4 = (upArrow_mc._y + upArrow_mc._height);
var _loc7 = (scrollTrack_mc._height - scrollFace_mc._height);
var _loc1 = scoreList_mc.startPos;
var _loc8 = scoreList_mc._y;
var _loc3 = (_loc1 - _loc8);
var _loc2 = (scoreList_mc._height - scrollMask_mc._height);
var _loc5 = ((_loc3 / _loc2) * 100);
var _loc6 = (_loc4 + ((_loc7 / 100) * _loc5));
scrollFace_mc._y = _loc6;
};
dragScrollBar = function () {
var _loc4 = (upArrow_mc._y + upArrow_mc._height);
var _loc6 = (scrollTrack_mc._height - scrollFace_mc._height);
var _loc1 = scrollFace_mc._y;
var _loc5 = (((_loc1 - _loc4) / _loc6) * 100);
var _loc2 = scoreList_mc.startPos;
var _loc3 = ((scoreList_mc._height - scrollMask_mc._height) - 4);
var _loc7 = (_loc2 - ((_loc3 / 100) * _loc5));
scoreList_mc._y = _loc7;
};
scrollFace_mc.onPress = function () {
var _loc1 = (upArrow_mc._y + upArrow_mc._height);
var _loc4 = (scrollTrack_mc._height - scrollFace_mc._height);
var _loc3 = (_loc1 + _loc4);
var _loc2 = scrollFace_mc._x;
startDrag (scrollFace_mc, true, _loc2, _loc1, _loc2, _loc3);
dragScrollBarInt = setInterval(dragScrollBar, 40);
};
scrollFace_mc.onRelease = function () {
scrollFace_mc.stopDrag();
clearInterval(dragScrollBarInt);
};
scrollFace_mc.onReleaseOutside = function () {
scrollFace_mc.stopDrag();
clearInterval(dragScrollBarInt);
};
upArrow_mc.onPress = function () {
scrollUpInt = setInterval(scrollUp, 40);
};
upArrow_mc.onRelease = function () {
clearInterval(scrollUpInt);
};
upArrow_mc.onReleaseOutside = function () {
clearInterval(scrollUpInt);
};
downArrow_mc.onPress = function () {
scrollDownInt = setInterval(scrollDown, 40);
};
downArrow_mc.onRelease = function () {
clearInterval(scrollDownInt);
};
downArrow_mc.onReleaseOutside = function () {
clearInterval(scrollDownInt);
};
score_responder = new Object();
score_responder.onResult = function (arrScores) {
i = 0;
while (i <= (arrScores.length - 1)) {
var _loc5 = (i + 10000);
var _loc4 = (("scoreLine" + (i + 1)) + "_mc");
duplicateMovieClip (scoreList_mc.scoreLine_mc, _loc4, _loc5);
var _loc2 = scoreList_mc[("scoreLine" + (i + 1)) + "_mc"];
_loc2._y = 26 * i;
_loc2.pos.text = i + 1;
_loc2.playerName.text = arrScores[i].name;
_loc2.score.text = arrScores[i].score;
nextScorePos = this.scoreList_mc.scoreLine_mc._height;
i++;
}
};
gameService.getHighScores(score_responder, 250);
this.scoreList_mc.scoreLine_mc._visible = false;
stop();
Symbol 473 Button
on (press) {
_root.menu_mc.play();
}
Symbol 474 Button
on (release) {
send_responder = new Object();
doNotSend = false;
strUserName = userName.text;
strUserEmail = userEmail.text;
userIndexOfAt = strUserEmail.indexOf("@");
userLastIndexOfDot = strUserEmail.lastIndexOf(".");
strFriendName = friendName.text;
strFriendEmail = friendEmail.text;
friendIndexOfAt = strFriendEmail.indexOf("@");
friendLastIndexOfDot = strFriendEmail.lastIndexOf(".");
if (((!strFriendEmail) || (friendIndexOfAt == -1)) || (friendLastIndexOfDot == -1)) {
doNotSend = true;
errorMsg.text = "YOUR FRIEND'S EMAIL ADDRESS IS NOT VALID";
}
if (!strFriendName) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER YOUR FRIEND'S NAME";
}
if (((!strUserEmail) || (userIndexOfAt == -1)) || (userLastIndexOfDot == -1)) {
doNotSend = true;
errorMsg.text = "YOUR EMAIL ADDRESS IS NOT VALID";
}
if (!strUserName) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER YOUR NAME";
}
if (!doNotSend) {
trace("SENDING");
errorMsg.text = "SENDING";
send_responder.onResult = function () {
friendName.text = "";
friendEmail.text = "";
errorMsg.text = "SENT - PLEASE SEND TO ANOTHER FRIEND ";
};
gameService.sendToFriend(send_responder, userName.text, userEmail.text, friendName.text, friendEmail.text, _root.saved);
}
}
Symbol 470 MovieClip Frame 1
function NetServiceProxy(nc, serviceName, client) {
if (nc != null) {
this.nc = nc;
this.serviceName = serviceName;
this.client = client;
}
}
function addScore() {
_root.updating = "UPDATING SCORES PLEASE WAIT";
_root.bt1._visible = false;
_root.bt2._visible = false;
_root.bt3._visible = false;
gameService.updatePoints(updatePoints_responder, strUniqueID, _root.points);
}
userName.tabIndex = 1;
userEmail.tabIndex = 1;
friendName.tabIndex = 1;
friendEmail.tabIndex = 1;
Button64.tabIndex = 4;
Button63.tabIndex = 3;
trace("***** running NetServices");
load("RecordSet.as");
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder = _global.NetServiceProxyResponder;
NetServiceProxyResponder.prototype.onResult = function (result) {
var _loc2 = this.service.client;
result._setParentService(this.service);
var _loc3 = (this.methodName + "_Result");
if (typeof(_loc2[_loc3]) != "function") {
if (typeof(_loc2.onResult) != "function") {
NetServices.trace("NetServices", "info", 1, (_loc3 + " was received from server: ") + result);
} else {
_loc2.onResult(result);
}
} else {
_loc2[_loc3](result);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _loc5 = this.service.client;
var _loc6 = (this.methodName + "_Status");
if (typeof(_loc5[_loc6]) != "function") {
if (typeof(_loc5.onStatus) != "function") {
if (typeof(_root.onStatus) != "function") {
if (typeof(_global.System.onStatus) != "function") {
NetServices.trace("NetServices", "info", 2, (((_loc6 + " was received from server: ") + result.level) + " ") + result.description);
} else {
_global.System.onStatus(result);
}
} else {
_root.onStatus(result);
}
} else {
_loc5.onStatus(result);
}
} else {
_loc5[_loc6](result);
}
};
_global.NetServiceProxy = NetServiceProxy;
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _loc3 = function () {
if (this.client == null) {
if (typeof(arguments[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
} else {
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
arguments.unshift((this.serviceName + ".") + methodName);
return(this.nc.call.apply(this.nc, arguments));
};
return(_loc3);
};
NetConnection.prototype.getService = function (serviceName, client) {
var _loc2 = new NetServiceProxy(this, serviceName, client);
return(_loc2);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {password:password, userid:userid});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
this.addHeader(info.name, info.mustUnderstand, info.data);
};
NetConnection.prototype.RequestUrlRewrite = function (urlSuffix) {
this.__urlSuffix = urlSuffix;
if (this.__originalUrl == null) {
this.__originalUrl = this.uri;
}
var _loc2 = (this.__originalUrl + urlSuffix);
this.connect(_loc2);
};
NetConnection.prototype.clone = function () {
var _loc2 = new NetConnection();
_loc2.connect(((this.__originalUrl == null) ? (this.uri) : (this.__originalUrl)));
if (this.__urlSuffix != null) {
_loc2.RequestUrlRewrite(this.__urlSuffix);
}
return(_loc2);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices = _global.NetServices;
NetServices.gatewayUrl = gatewayUrl;
NetServices.urlSuffix = urlSuffix;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
if (url == undefined) {
if (!NetServices.isHttpUrl(_root._url)) {
url = NetServices.defaultGatewayUrl;
} else {
url = NetServices.gatewayUrl;
if (url == undefined) {
url = NetServices.defaultGatewayUrl;
if (url != undefined) {
if (NetServices.isHttpUrl(url)) {
var _loc6 = url.indexOf("/", 8);
if (_loc6 >= 0) {
url = url.substring(_loc6);
}
}
var _loc4 = NetServices.getHostUrl();
if (_loc4 != null) {
url = _loc4 + url;
}
}
}
}
}
if (url == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _loc5 = new NetConnection();
_loc5.connect(url);
if (NetServices.urlSuffix != null) {
this.RequestUrlRewrite(NetServices.urlSuffix);
}
return(_loc5);
};
NetServices.getHostUrl = function () {
if (!NetServices.isHttpUrl(_root._url)) {
return(null);
}
var _loc2 = _root._url.indexOf("/", 8);
if (_loc2 < 0) {
return(null);
}
return(_root._url.substring(0, _loc2));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _loc1 = ((((((who + " ") + severity) + " ") + number) + ": ") + message);
trace(_loc1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
strTicketID = s;
intSpinLocked = 0;
_global.strRootURL = "http://www.tamba.co.uk/rednoseday07";
NetServices.setDefaultGatewayUrl(_global.strRootURL + "/gateway.php");
conn = NetServices.createGatewayConnection();
checkTicket_responder = new Object();
checkTicket_responder.onResult = function (arrUserInfo) {
_level0.currentPoints = arrUserInfo.points * 1;
strUniqueID = arrUserInfo.uniqueid;
strName = arrUserInfo.fullname;
};
updatePoints_responder = new Object();
updatePoints_responder.onResult = function () {
_root.updating = "";
_root.bt1._visible = true;
_root.bt2._visible = true;
_root.bt3._visible = true;
_root.dbstatus.text = "DB Updated!";
};
gameService = conn.getService("services");
gameService.checkTicket(checkTicket_responder, strTicketID);
stop();
Symbol 216 MovieClip Frame 15
stop();
Symbol 216 MovieClip Frame 45
stop();
Symbol 216 MovieClip Frame 60
this.gotoAndPlay(_root.whatScreen);
Symbol 216 MovieClip Frame 75
stop();
Symbol 216 MovieClip Frame 90
gotoAndPlay ("start");
Symbol 216 MovieClip Frame 105
stop();
Symbol 216 MovieClip Frame 120
gotoAndPlay ("start");
Symbol 490 Button
on (release) {
gotoAndStop ("main");
}