Section 1
//EL_1077_5771_480 (_fla.EL_1077_5771_480)
package _fla {
import flash.display.*;
public dynamic class EL_1077_5771_480 extends MovieClip {
public function EL_1077_5771_480(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package _fla
Section 2
//EL_1271_4032_481 (_fla.EL_1271_4032_481)
package _fla {
import flash.display.*;
public dynamic class EL_1271_4032_481 extends MovieClip {
public function EL_1271_4032_481(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package _fla
Section 3
//EL_1589_8516_482 (_fla.EL_1589_8516_482)
package _fla {
import flash.display.*;
public dynamic class EL_1589_8516_482 extends MovieClip {
public function EL_1589_8516_482(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package _fla
Section 4
//EL_437_4572_477 (_fla.EL_437_4572_477)
package _fla {
import flash.display.*;
public dynamic class EL_437_4572_477 extends MovieClip {
public function EL_437_4572_477(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package _fla
Section 5
//EL_756_3270_478 (_fla.EL_756_3270_478)
package _fla {
import flash.display.*;
public dynamic class EL_756_3270_478 extends MovieClip {
public function EL_756_3270_478(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package _fla
Section 6
//flag_icon_863 (_fla.flag_icon_863)
package _fla {
import flash.display.*;
public dynamic class flag_icon_863 extends MovieClip {
public function flag_icon_863(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 7
//MainTimeline (_fla.MainTimeline)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class MainTimeline extends MovieClip {
public var 新符号_26:MovieClip;
public var moreGameURI:String;
public var 新符号_23:MovieClip;
public var 新符号_24:MovieClip;
public var replay_btn:SimpleButton;
public var personArray:Array;
public var asasas;
public var show_btn:SimpleButton;
public var 新符号_22:MovieClip;
public var numCount:int;
public var volumeSize:Number;
public var Alpha:Number;
public var strength:Number;
public var btn_spil:SpilGamesLink;
public var bgFlag:int;
public var sf:Boolean;
public var inner:Boolean;
public var person:MovieClip;
public var btn_moregamesat:BrandingLogo;
public var snd:btnSound;
public var color:Number;
public var reset_btn:SimpleButton;
public var m:int;
public var i:int;
public var more_btn:SimpleButton;
public var filter:GlowFilter;
public var fontList:Array;
public var scaleX1;
public var personArray1:Array;
public var myChannel:SoundChannel;
public var wp_mc:MovieClip;
public var person_mc:MovieClip;
public var filterArray:Array;
public var scaleY1;
public var mymp3:bg_sound;
public var play_btn:SimpleButton;
public var filterclear:Array;
public var blurY:Number;
public var blurX:Number;
public var lang:String;
public var music_mc:MovieClip;
public var knockout:Boolean;
public var 新符号_21:MovieClip;
public var quality:Number;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function controlWp(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).wp_mc.gotoAndStop(_e.currentTarget.n);
} catch(err:Error) {
};
}
public function wpContrl():void{
var j:int;
try {
j = 1;
while (j <= 14) {
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].n = j;
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].addEventListener(MouseEvent.MOUSE_OVER, mouseOverFun);
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].addEventListener(MouseEvent.MOUSE_OUT, mouseOutFun);
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].addEventListener(MouseEvent.MOUSE_DOWN, controlWp);
j = (j + 1);
};
} catch(err:Error) {
};
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
public function controlPrev(_arg1:MouseEvent):void{
var _e = _arg1;
try {
if (MovieClip(root).wp_mc.p.currentFrame > 1){
MovieClip(root).wp_mc.p.prevFrame();
} else {
MovieClip(root).wp_mc.p.gotoAndStop(MovieClip(root).wp_mc.p.totalFrames);
};
} catch(err:Error) {
};
}
public function mouseDownWpFun(_arg1:MouseEvent):void{
var _e = _arg1;
try {
if (_e.currentTarget.m == 1){
MovieClip(root).personArray[1] = _e.currentTarget.k;
MovieClip(root).personArray[15] = _e.currentTarget.n;
snd.play();
MovieClip(root).person_mc.cartoon_mc1.gotoAndPlay(2);
MovieClip(root).person_mc.displayPerson1(MovieClip(root).personArray, MovieClip(root).person_mc);
} else {
MovieClip(root).personArray[_e.currentTarget.m] = _e.currentTarget.n;
snd.play();
MovieClip(root).person_mc[("cartoon_mc" + _e.currentTarget.m)].gotoAndPlay(2);
if (_e.currentTarget.m == 2){
MovieClip(root).person_mc.displayPerson2(MovieClip(root).personArray, MovieClip(root).person_mc);
} else {
MovieClip(root).person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).person_mc);
};
};
trace(MovieClip(root).personArray);
} catch(err:Error) {
};
}
public function playGame(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).gotoAndStop(3);
} catch(err:Error) {
};
}
public function bgChange(_arg1:MouseEvent):void{
if (MovieClip(root).bg_mc.currentFrame == 1){
MovieClip(root).bg_mc.gotoAndStop(2);
MovieClip(root).bgFlag = 2;
} else {
MovieClip(root).bg_mc.gotoAndStop(1);
MovieClip(root).bgFlag = 1;
};
}
public function mouseOutFun(_arg1:MouseEvent):void{
var _e = _arg1;
try {
_e.currentTarget.filters = MovieClip(root).filterclear;
_e.currentTarget.scaleX = MovieClip(root).scaleX1;
_e.currentTarget.scaleY = MovieClip(root).scaleY1;
} catch(err:Error) {
};
}
function frame1(){
moreGameURI = "http://www";
lang = "en";
fontList = Font.enumerateFonts();
i = 0;
while (i < fontList.length) {
trace(fontList[i].fontName);
i++;
};
contextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
Languages.initialize();
Languages.getLanguage("jp").textLanguage = "en_us";
Languages.getLanguage("cn").textLanguage = "en_us";
SpilGame.initialize("time-for-school-makeup", PortalGroup.GIRL, "time-for-school-makeup.html", this, true);
}
function frame2(){
stop();
btn_spil.addEventListener(MouseEvent.CLICK, handle_btnSpil);
more_btn.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
btn_moregamesat.buttonMode = true;
btn_moregamesat.mouseEnabled = true;
btn_moregamesat.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
stop();
MovieClip(root).play_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).playGame);
stop();
if (asasas){
} else {
sf = true;
mymp3 = new bg_sound();
myChannel = mymp3.play(0, 9999);
asasas = 1;
};
volumeSize = 1;
music_mc.addEventListener(MouseEvent.CLICK, mouseClick);
music_mc.gotoAndStop((2 - Number(sf)));
music_mc.mouseChildren = false;
music_mc.buttonMode = true;
}
function frame3(){
more_btn.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
stop();
color = 0xFFFFFF;
Alpha = 100;
blurX = 15;
blurY = 15;
strength = 2;
quality = 3;
inner = false;
knockout = false;
filter = new GlowFilter(color, Alpha, blurX, blurY, strength, quality, inner, knockout);
filterArray = new Array();
filterArray.push(filter);
filterclear = new Array();
personArray = new Array(14, 1, 1, 7, 7, 7, 7, 7, 9, 0, 0, 0, 0, 0, 0, 1);
MovieClip.prototype.displayPerson = function (_arg1:Array, _arg2:MovieClip){
var k:int;
var showListArray = _arg1;
var _m = _arg2;
try {
k = 3;
while (k <= showListArray[0]) {
if (showListArray[k]){
_m[("p" + k)].gotoAndStop(showListArray[k]);
} else {
_m[("p" + k)].gotoAndStop(_m[("p" + k)].totalFrames);
};
k = (k + 1);
};
} catch(err:Error) {
};
};
MovieClip.prototype.displayPerson1 = function (_arg1:Array, _arg2:MovieClip){
var showListArray = _arg1;
var _m = _arg2;
try {
trace("aaa");
if (showListArray[1]){
_m.p1.gotoAndStop(showListArray[1]);
_m.p1n.gotoAndStop(showListArray[1]);
_m.p1.p.gotoAndStop(showListArray[15]);
_m.p1n.p.gotoAndStop(showListArray[15]);
} else {
_m.p1.gotoAndStop(_m.p1.totalFrames);
_m.p1n.gotoAndStop(_m.p1.totalFrames);
};
} catch(err:Error) {
};
};
MovieClip.prototype.displayPerson2 = function (_arg1:Array, _arg2:MovieClip){
var showListArray = _arg1;
var _m = _arg2;
try {
if (showListArray[2]){
_m.p2.gotoAndStop(showListArray[2]);
_m.p2n.gotoAndStop(showListArray[2]);
} else {
_m.p2.gotoAndStop(_m.p2.totalFrames);
_m.p2n.gotoAndStop(_m.p2.totalFrames);
};
} catch(err:Error) {
};
};
numCount = 0;
snd = new btnSound();
MovieClip(root).person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).person_mc);
MovieClip(root).person_mc.displayPerson1(MovieClip(root).personArray, MovieClip(root).person_mc);
MovieClip(root).person_mc.displayPerson2(MovieClip(root).personArray, MovieClip(root).person_mc);
MovieClip(root).reset_btn.addEventListener(MouseEvent.MOUSE_DOWN, resetGame);
MovieClip(root).show_btn.addEventListener(MouseEvent.MOUSE_DOWN, showGame);
m = 3;
while (m <= 14) {
MovieClip(root).person_mc[("p" + m)].n = m;
MovieClip(root).person_mc[("p" + m)].addEventListener(MouseEvent.MOUSE_DOWN, moveWp);
m++;
};
bgFlag = 1;
MovieClip(root).wpContrl();
}
function frame4(){
more_btn.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
personArray1 = new Array(14, 1, 1, 7, 7, 7, 7, 7, 9, 0, 0, 0, 0, 0, 0, 1);
MovieClip(root).replay_btn.addEventListener(MouseEvent.MOUSE_DOWN, replayGame);
MovieClip(root).person.person.person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).person.person.person_mc);
MovieClip(root).person_mc.person_mc.displayPerson(MovieClip(root).personArray1, MovieClip(root).person_mc.person_mc);
MovieClip(root).person.person.person_mc.displayPerson1(MovieClip(root).personArray, MovieClip(root).person.person.person_mc);
MovieClip(root).person_mc.person_mc.displayPerson1(MovieClip(root).personArray1, MovieClip(root).person_mc.person_mc);
MovieClip(root).person.person.person_mc.displayPerson2(MovieClip(root).personArray, MovieClip(root).person.person.person_mc);
MovieClip(root).person_mc.person_mc.displayPerson2(MovieClip(root).personArray1, MovieClip(root).person_mc.person_mc);
}
public function More(_arg1:MouseEvent=null):void{
navigateToURL(new URLRequest(moreGameURI), "_blank");
}
public function replayGame(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).gotoAndStop(2);
} catch(err:Error) {
};
}
public function moveWp(_arg1:MouseEvent){
var e = _arg1;
try {
if (e.currentTarget.n != 1){
MovieClip(root).personArray[e.currentTarget.n] = 0;
MovieClip(root).person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).person_mc);
};
} catch(err:Error) {
};
}
public function showGame(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).gotoAndStop(4);
} catch(err:Error) {
};
}
public function handle_btnSpil(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()));
}
public function mouseOverFun(_arg1:MouseEvent):void{
var _e = _arg1;
try {
_e.currentTarget.filters = MovieClip(root).filterArray;
MovieClip(root).scaleX1 = _e.currentTarget.scaleX;
MovieClip(root).scaleY1 = _e.currentTarget.scaleX;
_e.currentTarget.scaleX = (MovieClip(root).scaleX1 * 1.2);
_e.currentTarget.scaleY = (MovieClip(root).scaleY1 * 1.2);
} catch(err:Error) {
};
}
public function mouseClick(_arg1:MouseEvent):void{
if (sf){
volumeSize = 0;
sf = false;
} else {
volumeSize = 1;
sf = true;
};
var _local2:SoundTransform = new SoundTransform(volumeSize, 0);
myChannel.soundTransform = _local2;
music_mc.nextFrame();
}
public function resetGame(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).personArray = new Array(14, 1, 1, 7, 7, 7, 7, 7, 9, 0, 0, 0, 0, 0, 0, 1);
MovieClip(root).person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).person_mc);
MovieClip(root).person_mc.displayPerson1(MovieClip(root).personArray, MovieClip(root).person_mc);
MovieClip(root).person_mc.displayPerson2(MovieClip(root).personArray, MovieClip(root).person_mc);
} catch(err:Error) {
};
}
public function controlNext(_arg1:MouseEvent):void{
var _e = _arg1;
try {
if (MovieClip(root).wp_mc.p.currentFrame < MovieClip(root).wp_mc.p.totalFrames){
MovieClip(root).wp_mc.p.nextFrame();
} else {
MovieClip(root).wp_mc.p.gotoAndStop(1);
};
} catch(err:Error) {
};
}
}
}//package _fla
Section 8
//sprite11_488 (_fla.sprite11_488)
package _fla {
import flash.display.*;
public dynamic class sprite11_488 extends MovieClip {
public function sprite11_488(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package _fla
Section 9
//sprite11_490 (_fla.sprite11_490)
package _fla {
import flash.display.*;
public dynamic class sprite11_490 extends MovieClip {
public function sprite11_490(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package _fla
Section 10
//sprite2_489 (_fla.sprite2_489)
package _fla {
import flash.display.*;
public dynamic class sprite2_489 extends MovieClip {
public function sprite2_489(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package _fla
Section 11
//Timeline_112 (_fla.Timeline_112)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_112 extends MovieClip {
public var cartoon_mc1:MovieClip;
public var cartoon_mc2:MovieClip;
public var cartoon_mc3:MovieClip;
public var cartoon_mc4:MovieClip;
public var cartoon_mc5:MovieClip;
public var cartoon_mc6:MovieClip;
public var cartoon_mc7:MovieClip;
public var cartoon_mc9:MovieClip;
public var p11:MovieClip;
public var p12:MovieClip;
public var p13:MovieClip;
public var p10:MovieClip;
public var cartoon_mc8:MovieClip;
public var p14:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p4:MovieClip;
public var p5:MovieClip;
public var p6:MovieClip;
public var p7:MovieClip;
public var p8:MovieClip;
public var p9:MovieClip;
public var p1n:MovieClip;
public var cartoon_mc10:MovieClip;
public var cartoon_mc11:MovieClip;
public var cartoon_mc12:MovieClip;
public var cartoon_mc13:MovieClip;
public var cartoon_mc14:MovieClip;
public var p2n:MovieClip;
public var i;
public function Timeline_112(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 14) {
this[("cartoon_mc" + i)].gotoAndStop(this[("cartoon_mc" + i)].totalFrames);
i++;
};
}
}
}//package _fla
Section 12
//Timeline_113 (_fla.Timeline_113)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_113 extends MovieClip {
public var p:MovieClip;
public function Timeline_113(){
addFrameScript(0, frame1, 1, frame2, 4, frame5, 5, frame6);
}
function frame1(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
function frame2(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
function frame5(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
function frame6(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
}
}//package _fla
Section 13
//Timeline_32 (_fla.Timeline_32)
package _fla {
import flash.display.*;
public dynamic class Timeline_32 extends MovieClip {
public function Timeline_32(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package _fla
Section 14
//Timeline_37 (_fla.Timeline_37)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_37 extends MovieClip {
public var yy11:MovieClip;
public var yy12:MovieClip;
public var yy1:MovieClip;
public var yy2:MovieClip;
public var yy3:MovieClip;
public var yy4:MovieClip;
public var yy5:MovieClip;
public var yy6:MovieClip;
public var yy7:MovieClip;
public var yy8:MovieClip;
public var yy9:MovieClip;
public var i;
public var j;
public var yy10:MovieClip;
public function Timeline_37(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function sa(_arg1):void{
if (Math.random() > 0.7){
_arg1.target.gotoAndStop((Math.floor((Math.random() * 9)) + 1));
};
}
function frame2(){
j = 1;
while (j <= 12) {
this[("yy" + j)].removeEventListener(Event.ENTER_FRAME, sa);
this[("yy" + j)].gotoAndStop(1);
j++;
};
}
function frame1(){
this.mouseChildren = false;
this.buttonMode = true;
i = 1;
while (i <= 12) {
this[("yy" + i)].addEventListener(Event.ENTER_FRAME, sa);
i++;
};
}
function frame3(){
gotoAndStop(1);
}
}
}//package _fla
Section 15
//Timeline_463 (_fla.Timeline_463)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_463 extends MovieClip {
public var p:MovieClip;
public function Timeline_463(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
function frame2(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
function frame3(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
function frame4(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
function frame5(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
function frame6(){
this.p.gotoAndStop(MovieClip(root).personArray[15]);
}
}
}//package _fla
Section 16
//Timeline_483 (_fla.Timeline_483)
package _fla {
import flash.display.*;
public dynamic class Timeline_483 extends MovieClip {
public function Timeline_483(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package _fla
Section 17
//Timeline_487 (_fla.Timeline_487)
package _fla {
import flash.display.*;
public dynamic class Timeline_487 extends MovieClip {
public function Timeline_487(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package _fla
Section 18
//Timeline_491 (_fla.Timeline_491)
package _fla {
import flash.display.*;
public dynamic class Timeline_491 extends MovieClip {
public var p:MovieClip;
public var wp:MovieClip;
public function Timeline_491(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 19
//Timeline_493 (_fla.Timeline_493)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_493 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public function Timeline_493(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33);
}
function frame12(){
stop();
this.p3.n = 3;
this.p3.m = 1;
this.p3.k = 2;
this.p3.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p3.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p3.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame13(){
stop();
this.p3.n = 3;
this.p3.m = 1;
this.p3.k = 3;
this.p3.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p3.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p3.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame14(){
stop();
this.p3.n = 3;
this.p3.m = 1;
this.p3.k = 4;
this.p3.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p3.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p3.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame15(){
stop();
this.p3.n = 3;
this.p3.m = 1;
this.p3.k = 5;
this.p3.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p3.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p3.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame16(){
stop();
this.p3.n = 3;
this.p3.m = 1;
this.p3.k = 6;
this.p3.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p3.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p3.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame10(){
stop();
this.p2.n = 2;
this.p2.m = 1;
this.p2.k = 6;
this.p2.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p2.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p2.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame11(){
stop();
this.p3.n = 3;
this.p3.m = 1;
this.p3.k = 1;
this.p3.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p3.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p3.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame19(){
stop();
this.p4.n = 4;
this.p4.m = 1;
this.p4.k = 3;
this.p4.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p4.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p4.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame30(){
stop();
this.p6.n = 6;
this.p6.m = 1;
this.p6.k = 3;
this.p6.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p6.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p6.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame17(){
stop();
this.p4.n = 4;
this.p4.m = 1;
this.p4.k = 1;
this.p4.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p4.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p4.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame18(){
stop();
this.p4.n = 4;
this.p4.m = 1;
this.p4.k = 2;
this.p4.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p4.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p4.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame33(){
stop();
this.p6.n = 6;
this.p6.m = 1;
this.p6.k = 6;
this.p6.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p6.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p6.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame32(){
stop();
this.p6.n = 6;
this.p6.m = 1;
this.p6.k = 5;
this.p6.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p6.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p6.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame31(){
stop();
this.p6.n = 6;
this.p6.m = 1;
this.p6.k = 4;
this.p6.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p6.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p6.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame1(){
stop();
this.p1.n = 1;
this.p1.m = 1;
this.p1.k = 1;
this.p1.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p1.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p1.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame2(){
stop();
this.p1.n = 1;
this.p1.m = 1;
this.p1.k = 3;
this.p1.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p1.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p1.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame3(){
stop();
this.p1.n = 1;
this.p1.m = 1;
this.p1.k = 4;
this.p1.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p1.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p1.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame4(){
stop();
this.p1.n = 1;
this.p1.m = 1;
this.p1.k = 5;
this.p1.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p1.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p1.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame5(){
stop();
this.p2.n = 2;
this.p2.m = 1;
this.p2.k = 1;
this.p2.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p2.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p2.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame6(){
stop();
this.p2.n = 2;
this.p2.m = 1;
this.p2.k = 2;
this.p2.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p2.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p2.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame7(){
stop();
this.p2.n = 2;
this.p2.m = 1;
this.p2.k = 3;
this.p2.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p2.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p2.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame8(){
stop();
this.p2.n = 2;
this.p2.m = 1;
this.p2.k = 4;
this.p2.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p2.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p2.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame9(){
stop();
this.p2.n = 2;
this.p2.m = 1;
this.p2.k = 5;
this.p2.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p2.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p2.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame22(){
stop();
this.p4.n = 4;
this.p4.m = 1;
this.p4.k = 6;
this.p4.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p4.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p4.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame23(){
stop();
this.p5.n = 5;
this.p5.m = 1;
this.p5.k = 1;
this.p5.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p5.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p5.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame24(){
stop();
this.p5.n = 5;
this.p5.m = 1;
this.p5.k = 2;
this.p5.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p5.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p5.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame25(){
stop();
this.p5.n = 5;
this.p5.m = 1;
this.p5.k = 3;
this.p5.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p5.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p5.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame26(){
stop();
this.p5.n = 5;
this.p5.m = 1;
this.p5.k = 4;
this.p5.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p5.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p5.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame20(){
stop();
this.p4.n = 4;
this.p4.m = 1;
this.p4.k = 4;
this.p4.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p4.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p4.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame21(){
stop();
this.p4.n = 4;
this.p4.m = 1;
this.p4.k = 5;
this.p4.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p4.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p4.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame29(){
stop();
this.p6.n = 6;
this.p6.m = 1;
this.p6.k = 2;
this.p6.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p6.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p6.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame27(){
stop();
this.p5.n = 5;
this.p5.m = 1;
this.p5.k = 5;
this.p5.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p5.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p5.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame28(){
stop();
this.p5.n = 5;
this.p5.m = 1;
this.p5.k = 6;
this.p5.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.p5.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.p5.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
}
}//package _fla
Section 20
//Timeline_537 (_fla.Timeline_537)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_537 extends MovieClip {
public var prev_btn:SimpleButton;
public var next_btn:SimpleButton;
public function Timeline_537(){
addFrameScript(0, frame1);
}
function frame1(){
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).controlNext);
this.prev_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).controlPrev);
}
}
}//package _fla
Section 21
//Timeline_683 (_fla.Timeline_683)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_683 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i:int;
public function Timeline_683(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 2;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 22
//Timeline_696 (_fla.Timeline_696)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_696 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public function Timeline_696(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame4(){
stop();
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].n = 4;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].m = 3;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame5(){
stop();
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].n = 5;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].m = 3;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame6(){
stop();
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].n = 6;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].m = 3;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame1(){
stop();
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].n = 1;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].m = 3;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame2(){
stop();
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].n = 2;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].m = 3;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
function frame3(){
stop();
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].n = 3;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].m = 3;
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + MovieClip(root).wp_mc.p.currentFrame)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
}
}
}//package _fla
Section 23
//Timeline_703 (_fla.Timeline_703)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_703 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i:int;
public function Timeline_703(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 4;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 24
//Timeline_710 (_fla.Timeline_710)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_710 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i:int;
public function Timeline_710(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 5;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 25
//Timeline_717 (_fla.Timeline_717)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_717 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i:int;
public function Timeline_717(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 6;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 26
//Timeline_724 (_fla.Timeline_724)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_724 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i:int;
public function Timeline_724(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 7;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 27
//Timeline_731 (_fla.Timeline_731)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_731 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p7:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var p8:MovieClip;
public var i:int;
public function Timeline_731(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 8) {
this[("p" + i)].n = i;
this[("p" + i)].m = 8;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 28
//Timeline_754 (_fla.Timeline_754)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_754 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p7:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var p8:MovieClip;
public var i:int;
public function Timeline_754(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 8) {
this[("p" + i)].n = i;
this[("p" + i)].m = 9;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 29
//Timeline_763 (_fla.Timeline_763)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_763 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var i:int;
public var p4:MovieClip;
public var p2:MovieClip;
public function Timeline_763(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 4) {
this[("p" + i)].n = i;
this[("p" + i)].m = 10;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 30
//Timeline_768 (_fla.Timeline_768)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_768 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p7:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var p10:MovieClip;
public var i:int;
public var p8:MovieClip;
public var p9:MovieClip;
public function Timeline_768(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 10) {
this[("p" + i)].n = i;
this[("p" + i)].m = 11;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 31
//Timeline_789 (_fla.Timeline_789)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_789 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p7:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var p10:MovieClip;
public var p11:MovieClip;
public var p12:MovieClip;
public var p14:MovieClip;
public var p8:MovieClip;
public var p9:MovieClip;
public var p13:MovieClip;
public var i:int;
public function Timeline_789(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 14) {
this[("p" + i)].n = i;
this[("p" + i)].m = 12;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 32
//Timeline_818 (_fla.Timeline_818)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_818 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i:int;
public function Timeline_818(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 13;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 33
//Timeline_831 (_fla.Timeline_831)
package _fla {
import flash.display.*;
import flash.utils.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Timeline_831 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p7:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var p10:MovieClip;
public var i:int;
public var p8:MovieClip;
public var p9:MovieClip;
public function Timeline_831(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 10) {
this[("p" + i)].n = i;
this[("p" + i)].m = 14;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package _fla
Section 34
//Timeline_854 (_fla.Timeline_854)
package _fla {
import flash.display.*;
public dynamic class Timeline_854 extends MovieClip {
public var person:MovieClip;
public function Timeline_854(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package _fla
Section 35
//BitString (com.adobe.images.BitString)
package com.adobe.images {
public class BitString {
public var val:int;// = 0
public var len:int;// = 0
}
}//package com.adobe.images
Section 36
//JPGEncoder (com.adobe.images.JPGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class JPGEncoder {
private var fdtbl_UV:Array;
private var std_ac_chrominance_values:Array;
private var std_dc_chrominance_values:Array;
private var ZigZag:Array;
private var YDC_HT:Array;
private var YAC_HT:Array;
private var bytenew:int;// = 0
private var fdtbl_Y:Array;
private var std_ac_chrominance_nrcodes:Array;
private var DU:Array;
private var std_ac_luminance_values:Array;
private var std_dc_chrominance_nrcodes:Array;
private var UVTable:Array;
private var YDU:Array;
private var UDU:Array;
private var byteout:ByteArray;
private var UVAC_HT:Array;
private var UVDC_HT:Array;
private var bytepos:int;// = 7
private var VDU:Array;
private var std_ac_luminance_nrcodes:Array;
private var std_dc_luminance_values:Array;
private var YTable:Array;
private var std_dc_luminance_nrcodes:Array;
private var bitcode:Array;
private var category:Array;
public function JPGEncoder(_arg1:Number=50){
this.ZigZag = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63];
this.YTable = new Array(64);
this.UVTable = new Array(64);
this.fdtbl_Y = new Array(64);
this.fdtbl_UV = new Array(64);
this.std_dc_luminance_nrcodes = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
this.std_dc_luminance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
this.std_ac_luminance_nrcodes = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125];
this.std_ac_luminance_values = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250];
this.std_dc_chrominance_nrcodes = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0];
this.std_dc_chrominance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
this.std_ac_chrominance_nrcodes = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119];
this.std_ac_chrominance_values = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
this.bitcode = new Array(0xFFFF);
this.category = new Array(0xFFFF);
this.DU = new Array(64);
this.YDU = new Array(64);
this.UDU = new Array(64);
this.VDU = new Array(64);
super();
if (_arg1 <= 0){
_arg1 = 1;
};
if (_arg1 > 100){
_arg1 = 100;
};
var _local2:int;
if (_arg1 < 50){
_local2 = int((5000 / _arg1));
} else {
_local2 = int((200 - (_arg1 * 2)));
};
this.initHuffmanTbl();
this.initCategoryNumber();
this.initQuantTables(_local2);
}
private function initHuffmanTbl():void{
this.YDC_HT = this.computeHuffmanTbl(this.std_dc_luminance_nrcodes, this.std_dc_luminance_values);
this.UVDC_HT = this.computeHuffmanTbl(this.std_dc_chrominance_nrcodes, this.std_dc_chrominance_values);
this.YAC_HT = this.computeHuffmanTbl(this.std_ac_luminance_nrcodes, this.std_ac_luminance_values);
this.UVAC_HT = this.computeHuffmanTbl(this.std_ac_chrominance_nrcodes, this.std_ac_chrominance_values);
}
private function RGB2YUV(_arg1:BitmapData, _arg2:int, _arg3:int):void{
var _local6:int;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local4:int;
var _local5:int;
while (_local5 < 8) {
_local6 = 0;
while (_local6 < 8) {
_local7 = _arg1.getPixel32((_arg2 + _local6), (_arg3 + _local5));
_local8 = Number(((_local7 >> 16) & 0xFF));
_local9 = Number(((_local7 >> 8) & 0xFF));
_local10 = Number((_local7 & 0xFF));
this.YDU[_local4] = ((((0.299 * _local8) + (0.587 * _local9)) + (0.114 * _local10)) - 128);
this.UDU[_local4] = (((-0.16874 * _local8) + (-0.33126 * _local9)) + (0.5 * _local10));
this.VDU[_local4] = (((0.5 * _local8) + (-0.41869 * _local9)) + (-0.08131 * _local10));
_local4++;
_local6++;
};
_local5++;
};
}
private function writeBits(_arg1:BitString):void{
var _local2:int = _arg1.val;
var _local3:int = (_arg1.len - 1);
while (_local3 >= 0) {
if ((_local2 & uint((1 << _local3)))){
this.bytenew = (this.bytenew | uint((1 << this.bytepos)));
};
_local3--;
this.bytepos--;
if (this.bytepos < 0){
if (this.bytenew == 0xFF){
this.writeByte(0xFF);
this.writeByte(0);
} else {
this.writeByte(this.bytenew);
};
this.bytepos = 7;
this.bytenew = 0;
};
};
}
private function writeWord(_arg1:int):void{
this.writeByte(((_arg1 >> 8) & 0xFF));
this.writeByte((_arg1 & 0xFF));
}
private function writeByte(_arg1:int):void{
this.byteout.writeByte(_arg1);
}
private function writeDHT():void{
var _local1:int;
this.writeWord(65476);
this.writeWord(418);
this.writeByte(0);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_dc_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
this.writeByte(this.std_dc_luminance_values[_local1]);
_local1++;
};
this.writeByte(16);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_ac_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
this.writeByte(this.std_ac_luminance_values[_local1]);
_local1++;
};
this.writeByte(1);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_dc_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
this.writeByte(this.std_dc_chrominance_values[_local1]);
_local1++;
};
this.writeByte(17);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_ac_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
this.writeByte(this.std_ac_chrominance_values[_local1]);
_local1++;
};
}
public function encode(_arg1:BitmapData):ByteArray{
var _local6:int;
var _local7:BitString;
this.byteout = new ByteArray();
this.bytenew = 0;
this.bytepos = 7;
this.writeWord(65496);
this.writeAPP0();
this.writeDQT();
this.writeSOF0(_arg1.width, _arg1.height);
this.writeDHT();
this.writeSOS();
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
this.bytenew = 0;
this.bytepos = 7;
var _local5:int;
while (_local5 < _arg1.height) {
_local6 = 0;
while (_local6 < _arg1.width) {
this.RGB2YUV(_arg1, _local6, _local5);
_local2 = this.processDU(this.YDU, this.fdtbl_Y, _local2, this.YDC_HT, this.YAC_HT);
_local3 = this.processDU(this.UDU, this.fdtbl_UV, _local3, this.UVDC_HT, this.UVAC_HT);
_local4 = this.processDU(this.VDU, this.fdtbl_UV, _local4, this.UVDC_HT, this.UVAC_HT);
_local6 = (_local6 + 8);
};
_local5 = (_local5 + 8);
};
if (this.bytepos >= 0){
_local7 = new BitString();
_local7.len = (this.bytepos + 1);
_local7.val = ((1 << (this.bytepos + 1)) - 1);
this.writeBits(_local7);
};
this.writeWord(65497);
return (this.byteout);
}
private function initCategoryNumber():void{
var _local3:int;
var _local1 = 1;
var _local2 = 2;
var _local4 = 1;
while (_local4 <= 15) {
_local3 = _local1;
while (_local3 < _local2) {
this.category[(32767 + _local3)] = _local4;
this.bitcode[(32767 + _local3)] = new BitString();
this.bitcode[(32767 + _local3)].len = _local4;
this.bitcode[(32767 + _local3)].val = _local3;
_local3++;
};
_local3 = -((_local2 - 1));
while (_local3 <= -(_local1)) {
this.category[(32767 + _local3)] = _local4;
this.bitcode[(32767 + _local3)] = new BitString();
this.bitcode[(32767 + _local3)].len = _local4;
this.bitcode[(32767 + _local3)].val = ((_local2 - 1) + _local3);
_local3++;
};
_local1 = (_local1 << 1);
_local2 = (_local2 << 1);
_local4++;
};
}
private function writeDQT():void{
var _local1:int;
this.writeWord(65499);
this.writeWord(132);
this.writeByte(0);
_local1 = 0;
while (_local1 < 64) {
this.writeByte(this.YTable[_local1]);
_local1++;
};
this.writeByte(1);
_local1 = 0;
while (_local1 < 64) {
this.writeByte(this.UVTable[_local1]);
_local1++;
};
}
private function writeAPP0():void{
this.writeWord(65504);
this.writeWord(16);
this.writeByte(74);
this.writeByte(70);
this.writeByte(73);
this.writeByte(70);
this.writeByte(0);
this.writeByte(1);
this.writeByte(1);
this.writeByte(0);
this.writeWord(1);
this.writeWord(1);
this.writeByte(0);
this.writeByte(0);
}
private function writeSOS():void{
this.writeWord(65498);
this.writeWord(12);
this.writeByte(3);
this.writeByte(1);
this.writeByte(0);
this.writeByte(2);
this.writeByte(17);
this.writeByte(3);
this.writeByte(17);
this.writeByte(0);
this.writeByte(63);
this.writeByte(0);
}
private function processDU(_arg1:Array, _arg2:Array, _arg3:Number, _arg4:Array, _arg5:Array):Number{
var _local8:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local6:BitString = _arg5[0];
var _local7:BitString = _arg5[240];
var _local9:Array = this.fDCTQuant(_arg1, _arg2);
_local8 = 0;
while (_local8 < 64) {
this.DU[this.ZigZag[_local8]] = _local9[_local8];
_local8++;
};
var _local10:int = (this.DU[0] - _arg3);
_arg3 = this.DU[0];
if (_local10 == 0){
this.writeBits(_arg4[0]);
} else {
this.writeBits(_arg4[this.category[(32767 + _local10)]]);
this.writeBits(this.bitcode[(32767 + _local10)]);
};
var _local11 = 63;
while ((((_local11 > 0)) && ((this.DU[_local11] == 0)))) {
_local11--;
};
if (_local11 == 0){
this.writeBits(_local6);
return (_arg3);
};
_local8 = 1;
while (_local8 <= _local11) {
_local12 = _local8;
while ((((this.DU[_local8] == 0)) && ((_local8 <= _local11)))) {
_local8++;
};
_local13 = (_local8 - _local12);
if (_local13 >= 16){
_local14 = 1;
while (_local14 <= (_local13 / 16)) {
this.writeBits(_local7);
_local14++;
};
_local13 = int((_local13 & 15));
};
this.writeBits(_arg5[((_local13 * 16) + this.category[(32767 + this.DU[_local8])])]);
this.writeBits(this.bitcode[(32767 + this.DU[_local8])]);
_local8++;
};
if (_local11 != 63){
this.writeBits(_local6);
};
return (_arg3);
}
private function initQuantTables(_arg1:int):void{
var _local2:int;
var _local3:Number;
var _local8:int;
var _local4:Array = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local4[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
this.YTable[this.ZigZag[_local2]] = _local3;
_local2++;
};
var _local5:Array = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local5[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
this.UVTable[this.ZigZag[_local2]] = _local3;
_local2++;
};
var _local6:Array = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379];
_local2 = 0;
var _local7:int;
while (_local7 < 8) {
_local8 = 0;
while (_local8 < 8) {
this.fdtbl_Y[_local2] = (1 / (((this.YTable[this.ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
this.fdtbl_UV[_local2] = (1 / (((this.UVTable[this.ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
_local2++;
_local8++;
};
_local7++;
};
}
private function writeSOF0(_arg1:int, _arg2:int):void{
this.writeWord(65472);
this.writeWord(17);
this.writeByte(8);
this.writeWord(_arg2);
this.writeWord(_arg1);
this.writeByte(3);
this.writeByte(1);
this.writeByte(17);
this.writeByte(0);
this.writeByte(2);
this.writeByte(17);
this.writeByte(1);
this.writeByte(3);
this.writeByte(17);
this.writeByte(1);
}
private function computeHuffmanTbl(_arg1:Array, _arg2:Array):Array{
var _local7:int;
var _local3:int;
var _local4:int;
var _local5:Array = new Array();
var _local6 = 1;
while (_local6 <= 16) {
_local7 = 1;
while (_local7 <= _arg1[_local6]) {
_local5[_arg2[_local4]] = new BitString();
_local5[_arg2[_local4]].val = _local3;
_local5[_arg2[_local4]].len = _local6;
_local4++;
_local3++;
_local7++;
};
_local3 = (_local3 * 2);
_local6++;
};
return (_local5);
}
private function fDCTQuant(_arg1:Array, _arg2:Array):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:int;
var _local23:int;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 7)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 7)]);
_local4 = (_arg1[(_local23 + 1)] + _arg1[(_local23 + 6)]);
_local9 = (_arg1[(_local23 + 1)] - _arg1[(_local23 + 6)]);
_local5 = (_arg1[(_local23 + 2)] + _arg1[(_local23 + 5)]);
_local8 = (_arg1[(_local23 + 2)] - _arg1[(_local23 + 5)]);
_local6 = (_arg1[(_local23 + 3)] + _arg1[(_local23 + 4)]);
_local7 = (_arg1[(_local23 + 3)] - _arg1[(_local23 + 4)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 4)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 2)] = (_local14 + _local15);
_arg1[(_local23 + 6)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 5)] = (_local21 + _local16);
_arg1[(_local23 + 3)] = (_local21 - _local16);
_arg1[(_local23 + 1)] = (_local20 + _local18);
_arg1[(_local23 + 7)] = (_local20 - _local18);
_local23 = (_local23 + 8);
_local22++;
};
_local23 = 0;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 56)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 56)]);
_local4 = (_arg1[(_local23 + 8)] + _arg1[(_local23 + 48)]);
_local9 = (_arg1[(_local23 + 8)] - _arg1[(_local23 + 48)]);
_local5 = (_arg1[(_local23 + 16)] + _arg1[(_local23 + 40)]);
_local8 = (_arg1[(_local23 + 16)] - _arg1[(_local23 + 40)]);
_local6 = (_arg1[(_local23 + 24)] + _arg1[(_local23 + 32)]);
_local7 = (_arg1[(_local23 + 24)] - _arg1[(_local23 + 32)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 32)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 16)] = (_local14 + _local15);
_arg1[(_local23 + 48)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 40)] = (_local21 + _local16);
_arg1[(_local23 + 24)] = (_local21 - _local16);
_arg1[(_local23 + 8)] = (_local20 + _local18);
_arg1[(_local23 + 56)] = (_local20 - _local18);
_local23++;
_local22++;
};
_local22 = 0;
while (_local22 < 64) {
_arg1[_local22] = Math.round((_arg1[_local22] * _arg2[_local22]));
_local22++;
};
return (_arg1);
}
}
}//package com.adobe.images
Section 37
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var emailPage:String;
public var name:String;
public var site_id:uint;
public var isExternal:Boolean;// = false
public var id:Number;
public var hostingDomain:String;// = ""
public var preferedLanguage:String;// = ""
public var moreLink:String;// = ""
public var hasSendToFriendLink:Boolean;// = true
public var emailLink:String;// = "game"
public var portalGroup:uint;
public var useGoogleAnalitics:Boolean;// = true
private static const topLevelDoubles:String = ((((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,com.ar,") + "com.id,com.in");
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public function exportXML():XML{
var _local3:XML;
var _local1:XML = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
var _local2:XML = <domain/>
;
_local2.appendChild(new XMLNode(3, domain));
_local1.appendChild(_local2);
if (moreLink){
_local3 = <more_games_path/>
;
_local3.appendChild(new XMLNode(3, moreLink));
_local1.appendChild(_local3);
};
_local2 = <game_path/>
;
_local2.appendChild(new XMLNode(3, emailLink));
_local1.appendChild(_local2);
if (!useGoogleAnalitics){
_local1.attributes.noGoogleAnalitics = true;
};
if (!hasSendToFriendLink){
_local1.attributes.noSendToFriendLink = true;
};
return (_local1);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String = ("http://" + domain);
_local6 = (_local6 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local6 = (_local6 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local6 = (_local6 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
trace(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local6 = (_local6 + ("&utm_source=" + _arg4));
if (((!((_arg5 == ""))) && (!((_arg5 == null))))){
_local6 = (_local6 + ("&utm_content=" + _arg5));
};
};
return (_local6);
}
private function get utm_source():String{
return (("utm_source=brandedgames_" + (isExternal) ? "external" : "internal"));
}
public function getMoreGamesLink(_arg1:String, _arg2:Boolean, _arg3:String="", _arg4:String=""):String{
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ("/" + moreLink));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg2) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg3 = stripSubDomain(_arg3);
if (_arg3 == "localhost"){
_arg3 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg3));
if (((!((_arg4 == ""))) && (!((_arg4 == null))))){
_local5 = (_local5 + ("&utm_content=" + _arg4));
};
};
return (_local5);
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
private function get utm_term():String{
return ("utm_term=");
}
public function importXML(_arg1:XMLNode):void{
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg4));
_local5 = (_local5 + "&utm_content=send_to_friend");
};
return (_local5);
}
public static function stripSubDomain(_arg1:String):String{
if (!_arg1){
return ("");
};
var _local2:Array = _arg1.split(".");
if (_local2.length <= 2){
return (_arg1);
};
_local2 = _local2.reverse();
if (topLevelDoubles.indexOf((((_local2[1] + ".") + _local2[0]) + ",")) > 0){
return (((((_local2[2] + ".") + _local2[1]) + ".") + _local2[0]));
};
return (((_local2[1] + ".") + _local2[0]));
}
}
}//package spill.localisation
Section 38
//BrandingLogo (spill.localisation.BrandingLogo)
package spill.localisation {
import flash.display.*;
import flash.events.*;
public class BrandingLogo extends MovieClip {
public function BrandingLogo(){
addFrameScript(0, frame1);
super();
stop();
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
if (stage){
added();
};
brandingChanged();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("brandingChanged", brandingChanged, false, 0, true);
brandingChanged();
}
private function brandingChanged(_arg1:Event=null):void{
if (SpilGame.currentBranding){
gotoAndStop(SpilGame.currentBranding.domain);
};
}
function frame1(){
stop();
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("brandingChanged", brandingChanged);
}
}
}//package spill.localisation
Section 39
//Brandings (spill.localisation.Brandings)
package spill.localisation {
public class Brandings {
private static var brands_by_id:Object = new Object();
private static var brands_by_domain:Object = new Object();
public static function getBrandByID(_arg1:Number):Brand{
return (brands_by_id[_arg1]);
}
public static function getBrandsArray():Array{
var _local2:Brand;
var _local1:Array = new Array();
for each (_local2 in brands_by_domain) {
_local1.push(_local2);
};
return (_local1);
}
private static function addBrand(_arg1:Brand):Brand{
if (brands_by_domain[_arg1.domain]){
trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain));
} else {
brands_by_domain[_arg1.domain] = _arg1;
};
if (brands_by_id[_arg1.site_id]){
trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id));
} else {
brands_by_id[_arg1.site_id] = _arg1;
};
return (_arg1);
}
public static function initialize():void{
var _local1:Brand;
_local1 = new Brand();
_local1.site_id = 79;
_local1.domain = "www.agame.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 88;
_local1.domain = "www.gamesgames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 90;
_local1.domain = "www.girlsgogames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 45;
_local1.domain = "www.a10.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.YOUNG_ADULTS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 92;
_local1.domain = "www.games.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 107;
_local1.domain = "www.agame.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 102;
_local1.domain = "www.girlsgogames.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 2;
_local1.domain = "www.game.com.cn";
_local1.moreLink = "moregames/";
_local1.preferedLanguage = "cn";
_local1.portalGroup = PortalGroup.NONE;
_local1.useGoogleAnalitics = false;
_local1.hasSendToFriendLink = false;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 25;
_local1.domain = "www.spel.nl";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 1;
_local1.domain = "www.spelletjes.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 93;
_local1.domain = "www.girlsgogames.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 12;
_local1.domain = "www.jeu.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 95;
_local1.domain = "www.girlsgogames.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 11;
_local1.domain = "www.jeux.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 26;
_local1.domain = "www.spielen.com";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 94;
_local1.domain = "www.girlsgogames.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 5;
_local1.domain = "www.jetztspielen.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 109;
_local1.domain = "www.minigry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 16;
_local1.domain = "www.gry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 98;
_local1.domain = "www.girlsgogames.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 108;
_local1.domain = "www.spel.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 100;
_local1.domain = "www.girlsgogames.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 44;
_local1.domain = "www.spela.se";
_local1.emailLink = "spel_";
_local1.preferedLanguage = "se";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 106;
_local1.domain = "www.giocaregratis.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 15;
_local1.domain = "www.gioco.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 99;
_local1.domain = "www.girlsgogames.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 97;
_local1.domain = "www.zapjuegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 86;
_local1.domain = "www.juegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 96;
_local1.domain = "www.juegosdechicas.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 122;
_local1.domain = "www.girlsgogames.es";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 125;
_local1.domain = "www.juegos.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 126;
_local1.domain = "www.juegosdechicas.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 127;
_local1.domain = "www.juegos.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 128;
_local1.domain = "www.juegosdechicas.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 91;
_local1.domain = "www.clickjogos.com";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 101;
_local1.domain = "www.girlsgogames.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 50;
_local1.domain = "www.ojogos.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 55;
_local1.domain = "www.games.co.id";
_local1.emailLink = "permainanme";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 104;
_local1.domain = "www.girlsgogames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 103;
_local1.domain = "www.ourgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 24;
_local1.domain = "www.game.co.in";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "in";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 87;
_local1.domain = "www.ojogos.pt";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 120;
_local1.domain = "www.egames.jp";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "jp";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 121;
_local1.domain = "www.dailygame.com";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 123;
_local1.domain = "www.zapapa.com";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.ZAPAPA;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 124;
_local1.domain = "www.zapapa.nl";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.HYVES;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 0;
_local1.domain = "gamedev.dev.spilgames.com";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
}
public static function exportXML():XML{
var _local2:Brand;
var _local1:XML = <portals/>
;
for each (_local2 in brands_by_domain) {
_local1.appendChild(_local2.exportXML());
};
return (_local1);
}
public static function getBrandByDomain(_arg1:String):Brand{
return (brands_by_domain[_arg1]);
}
public static function hasDomain(_arg1:String):Boolean{
return (!((brands_by_domain[_arg1] == null)));
}
}
}//package spill.localisation
Section 40
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var portal_groups:Array;
public var references:Array;
public var name:String;
public var embedInputFonts:Boolean;// = true
public var id:uint;
public var forceFont:String;// = null
public var textLanguage:String;
public var bwcId:int;
public var embedFonts:Boolean;// = true
public var displayName:String;// = ""
public var dname:String;
public function Language(_arg1:String, _arg2:String=null){
references = [];
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function exportXML():XMLNode{
var _local1:XMLNode = new XMLNode(1, "language");
_local1.attributes.name = name;
if (textLanguage != null){
_local1.attributes.textLanguage = textLanguage;
};
if (references.length){
_local1.attributes.references = references.toString();
};
_local1.attributes.id = bwcId;
var _local2:XMLNode = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
var _local3:Array = [];
var _local4:Array = PortalGroup.channelNames;
var _local5:int;
while (_local5 < _local4.length) {
_local3.push(Brandings.getBrandByDomain(portal_groups[_local5]).site_id);
_local5++;
};
_local1.attributes.channels = _local3.join(",");
return (_local1);
}
public function get p_teen():String{
return (portal_groups[PortalGroup.YOUNG_ADULTS]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.YOUNG_ADULTS] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TEENS]);
}
public function get p_family():String{
return (portal_groups[PortalGroup.FAMILY]);
}
public function get p_girl():String{
trace("Language", portal_groups[PortalGroup.GIRL]);
return (portal_groups[PortalGroup.GIRL]);
}
public function get p_hyves():String{
return (portal_groups[PortalGroup.HYVES]);
}
public function set p_girl(_arg1:String):void{
portal_groups[PortalGroup.GIRL] = _arg1;
}
public function set p_zapapa(_arg1:String):void{
portal_groups[PortalGroup.ZAPAPA] = _arg1;
}
public function get displayAcronim():String{
return ((dname) ? dname : name);
}
public function set p_family(_arg1:String):void{
portal_groups[PortalGroup.FAMILY] = _arg1;
}
public function set p_tween(_arg1:String):void{
portal_groups[PortalGroup.TEENS] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
}
}//package spill.localisation
Section 41
//Languages (spill.localisation.Languages)
package spill.localisation {
import flash.xml.*;
public class Languages {
public static var languages:Object = new Object();
private static var _init:Boolean = false;
public static function initialize():void{
var _local1:Language;
if (_init){
return;
};
_init = true;
_local1 = new Language("nl");
_local1.displayName = "Nederlands";
_local1.p_family = "www.spelletjes.nl";
_local1.p_tween = "www.spel.nl";
_local1.p_girl = "www.girlsgogames.nl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.bwcId = 3;
addLanguage(_local1);
_local1 = new Language("es");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.girlsgogames.es";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 9;
addLanguage(_local1);
_local1 = new Language("pl");
_local1.displayName = "Polski";
_local1.p_family = "www.gry.pl";
_local1.p_tween = "www.gry.pl";
_local1.p_girl = "www.girlsgogames.pl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 6;
addLanguage(_local1);
_local1 = new Language("fr");
_local1.displayName = "Français";
_local1.p_family = "www.jeux.fr";
_local1.p_tween = "www.jeu.fr";
_local1.p_girl = "www.girlsgogames.fr";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 4;
addLanguage(_local1);
_local1 = new Language("en_us", "us");
_local1.displayName = "English";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 1;
addLanguage(_local1);
addReference(_local1, "en");
_local1 = new Language("id");
_local1.displayName = "Bahasa Ind.";
_local1.p_family = "www.games.co.id";
_local1.p_tween = "www.games.co.id";
_local1.p_girl = "www.games.co.id";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 11;
addLanguage(_local1);
_local1 = new Language("ru");
_local1.displayName = "Русский";
_local1.p_family = "www.ourgames.ru";
_local1.p_tween = "www.flashgames.ru";
_local1.p_girl = "www.girlsgogames.ru";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 12;
addLanguage(_local1);
_local1 = new Language("se");
_local1.displayName = "Svenska";
_local1.p_family = "www.spela.se";
_local1.p_tween = "www.spel.se";
_local1.p_girl = "www.girlsgogames.se";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 7;
addLanguage(_local1);
addReference(_local1, "sv");
_local1 = new Language("it");
_local1.displayName = "Italiano";
_local1.p_family = "www.gioco.it";
_local1.p_tween = "www.gioco.it";
_local1.p_girl = "www.girlsgogames.it";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 8;
addLanguage(_local1);
_local1 = new Language("en_uk", "uk");
_local1.displayName = "English";
_local1.p_family = "www.games.co.uk";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.co.uk";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 13;
addLanguage(_local1);
_local1 = new Language("cn");
_local1.displayName = "中文";
_local1.p_family = "www.game.com.cn";
_local1.p_tween = "www.game.com.cn";
_local1.p_girl = "www.game.com.cn";
_local1.p_teen = "www.game.com.cn";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 2;
_local1.embedInputFonts = false;
addLanguage(_local1);
addReference(_local1, "zh-CN");
addReference(_local1, "zh-TW");
_local1 = new Language("pt");
_local1.displayName = "Português";
_local1.p_family = "www.ojogos.pt";
_local1.p_tween = "www.ojogos.pt";
_local1.p_girl = "www.ojogos.pt";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 17;
addLanguage(_local1);
_local1 = new Language("in");
_local1.displayName = "English";
_local1.p_family = "www.game.co.in";
_local1.p_tween = "www.game.co.in";
_local1.p_girl = "www.game.co.in";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "en_uk";
_local1.bwcId = 14;
addLanguage(_local1);
_local1 = new Language("de");
_local1.displayName = "Deutsch";
_local1.p_family = "www.jetztspielen.de";
_local1.p_tween = "www.spielen.com";
_local1.p_girl = "www.girlsgogames.de";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 5;
addLanguage(_local1);
_local1 = new Language("br");
_local1.displayName = "Português (BR)";
_local1.p_family = "www.ojogos.com.br";
_local1.p_tween = "www.clickjogos.com";
_local1.p_girl = "www.girlsgogames.com.br";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 10;
addLanguage(_local1);
_local1 = new Language("jp");
_local1.displayName = "日本語";
_local1.p_family = "www.egames.jp";
_local1.p_tween = "www.egames.jp";
_local1.p_girl = "www.egames.jp";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.embedInputFonts = false;
_local1.bwcId = 19;
addLanguage(_local1);
addReference(_local1, "ja");
_local1 = new Language("ar");
_local1.displayName = "English";
_local1.p_family = "www.dailygame.com";
_local1.p_tween = "www.dailygame.com";
_local1.p_girl = "www.dailygame.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 20;
addLanguage(_local1);
addReference(_local1, "ar");
_local1 = new Language("es_mx", "mx");
_local1.displayName = "Español (mx)";
_local1.p_family = "www.juegos.mx";
_local1.p_tween = "www.juegos.mx";
_local1.p_girl = "www.juegosdechicas.mx";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
addLanguage(_local1);
addReference(_local1, "mx");
_local1 = new Language("es_ar", "arg");
_local1.displayName = "Español (ar)";
_local1.p_family = "www.juegos.com.ar";
_local1.p_tween = "www.juegos.com.ar";
_local1.p_girl = "www.juegosdechicas.com.ar";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
addLanguage(_local1);
addReference(_local1, "arg");
}
public static function exportXML():XMLNode{
var _local3:Language;
var _local1:Array = getLanguagesArray();
var _local2:XMLNode = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
public static function getLanguagesArray():Array{
var _local3:Language;
var _local1:Array = new Array();
var _local2:Object = new Object();
for each (_local3 in languages) {
if (!_local2[_local3.name]){
_local1.push(_local3);
_local2[_local3.name] = true;
};
};
return (_local1);
}
public static function getLanguage(_arg1:String):Language{
return (languages[_arg1]);
}
private static function addLanguage(_arg1:Language):void{
languages[_arg1.name] = _arg1;
}
private static function addReference(_arg1:Language, _arg2:String):void{
languages[_arg2] = _arg1;
_arg1.references.push(_arg2);
}
public static function getLanguageByOldID(_arg1:int):Language{
var _local2:Language;
for each (_local2 in languages) {
if (_local2.bwcId == _arg1){
return (_local2);
};
};
return (null);
}
}
}//package spill.localisation
Section 42
//LanguageSelectBox (spill.localisation.LanguageSelectBox)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
public class LanguageSelectBox extends MovieClip {
private var flag:MovieClip;
private var languageName_text:TextField;
private var popup:MovieClip;
private var mc:MovieClip;
public function LanguageSelectBox(){
trace("new langselecbox");
super();
if (numChildren > 0){
removeChildAt(0);
};
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true);
Languages.initialize();
popup = new LanguageSelectPopup_mc();
x = Math.round(x);
y = Math.round(y);
popup.y = (-(Math.floor(popup.height)) + 1);
popup.visible = false;
addChild(popup);
mc = new LanguageSelectBox_mc();
addChild(mc);
flag = mc.flag;
languageName_text = mc.languageName_text;
if (stage){
added();
};
init();
languageChanged();
}
private function added(_arg1:Event=null):void{
trace("addedselebnox");
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
public function set popupLocation(_arg1:String):void{
trace(("popupLocation = " + _arg1));
if (_arg1 == "bottom"){
popup.y = Math.floor(mc.height);
} else {
popup.y = (-(Math.floor(mc.height)) + 1);
};
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
public function init():void{
var _local3:MovieClip;
var _local4:Language;
trace("initselectbox");
var _local1:Array = new Array(popup.l_br, popup.l_de, popup.l_en_us, popup.l_fr, popup.l_in, popup.l_jp, popup.l_pt, popup.l_ru, popup.l_ar, popup.l_cn, popup.l_en_uk, popup.l_es, popup.l_id, popup.l_it, popup.l_nl, popup.l_pl, popup.l_se, popup.l_es_mx, popup.l_es_ar);
var _local2:int;
while (_local2 < _local1.length) {
_local3 = MovieClip(_local1[_local2]);
if (_local3){
_local3.addEventListener(MouseEvent.CLICK, itemClicked, true, 0, true);
_local3.flag.gotoAndStop(_local3.name.substr(2));
_local3.flag.mouseEnabled = false;
_local3.text.mouseEnabled = false;
_local4 = Languages.getLanguage(_local3.name.substr(2));
if (_local4){
_local3.text.text = _local4.displayAcronim;
} else {
trace((("Error, '" + _local3.name.substr(2)) + "' language not found"));
};
} else {
trace((((("Error, btn number '" + _local2) + "' is not a MovieClip or there is no button '") + _local1[_local2]) + "'"));
};
_local2++;
};
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
private function mouseOver(_arg1:MouseEvent):void{
popup.visible = true;
}
private function languageChanged(_arg1:Event=null):void{
if (SpilGame.currentLanguage){
if ((((SpilGame.portalGroup == PortalGroup.HYVES)) && ((SpilGame.currentLanguage.name == "nl")))){
this.visible = false;
return;
};
this.visible = true;
flag.gotoAndStop(SpilGame.currentLanguage.name);
languageName_text.text = SpilGame.currentLanguage.displayName;
languageName_text.embedFonts = SpilGame.currentLanguage.embedInputFonts;
};
}
}
}//package spill.localisation
Section 43
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var languageName_text:TextField;
public var flag:MovieClip;
}
}//package spill.localisation
Section 44
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_cn:MovieClip;
public var l_br:MovieClip;
public var l_se:MovieClip;
public var l_id:MovieClip;
public var l_es_ar:MovieClip;
public var l_es_mx:MovieClip;
public var l_in:MovieClip;
public var l_en_uk:MovieClip;
public var l_en_us:MovieClip;
public var l_es:MovieClip;
public var l_ar:MovieClip;
public var l_it:MovieClip;
public var l_pl:MovieClip;
public var l_nl:MovieClip;
public var l_de:MovieClip;
public var l_ru:MovieClip;
public var l_pt:MovieClip;
public var l_jp:MovieClip;
public var l_fr:MovieClip;
}
}//package spill.localisation
Section 45
//LocalizedTextField (spill.localisation.LocalizedTextField)
package spill.localisation {
import flash.events.*;
public class LocalizedTextField extends TextFieldFit {
private var regex:RegExp;
private var originalText:String;
public function LocalizedTextField(){
regex = /{([^{}]*)}/g;
super();
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
added();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
text = originalText;
}
private function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
override public function set text(_arg1:String):void{
originalText = _arg1;
if ((_arg1 is String)){
super.text = _arg1.replace(regex, replaceFn);
} else {
super.text = "";
};
trace(super.text);
}
private function languageChanged(_arg1:Event):void{
text = originalText;
updateProperties();
}
}
}//package spill.localisation
Section 46
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
public static const YOUNG_ADULTS:uint = 3;
public static const FAMILY:uint = 0;
public static const channelNames:Array = ["family", "tween", "girl", "teen", "zapapa", "hyves"];
public static const ZAPAPA:uint = 4;
public static const HYVES:uint = 5;
public static const TEENS:uint = 1;
public static const GIRL:uint = 2;
public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF];
public static const NONE:uint = 6;
public static function getName(_arg1:int):String{
return (channelNames[_arg1]);
}
public static function exportXML():XMLNode{
var _local3:XMLNode;
var _local1:XMLNode = new XMLNode(1, "channels");
var _local2:int;
while (_local2 < 5) {
_local3 = new XMLNode(1, "channel");
_local3.attributes.name = channelNames[_local2];
_local3.attributes.id = _local2;
_local1.appendChild(_local3);
_local2++;
};
return (_local1);
}
}
}//package spill.localisation
Section 47
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 48
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
public class SpilGame {
private static const cookieName:String = "spilgames_language_v100";
private static const cookiePath:String = "/";
private static const cookieLanguageVar:String = "savedLang";
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static const BRANDING_CHANGED:String = "brandingChanged";
private static var strings:Object = new Object();
public static var currentBranding:Brand;
private static var contexMenuItem:ContextMenuItem;
spil_internal static var gameName:String;
spil_internal static var debugHostDomain:String = "";
private static var localDomains:Object = new Object();
spil_internal static var emailPage:String;
private static var channelLock:Boolean = false;
spil_internal static var debugEmbedDomain:String = "";
private static var eventDispatcher:EventDispatcher;
private static var _init:Boolean = false;
public static var currentLanguage:Language;
spil_internal static var portalGroup:uint;
private static var stage:Sprite;
public static function getSpilCompanyLink():String{
var _local1 = "http://www.gameportal.net/";
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (isExternal) ? "external" : "internal"));
_local1 = (_local1 + ("&utm_campaign=" + gameName));
_local1 = (_local1 + ("&utm_source=" + Brand.stripSubDomain((embedDomain) ? embedDomain : hostingDomain)));
_local1 = (_local1 + "&utm_content=Branding_Link");
return (_local1);
}
public static function getPromotionLink(_arg1:String="feature_promotion"):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getPromotionLink(gameName, emailPage, isExternal, _local2, _arg1));
}
public static function traceAllBrands():void{
trace(outputAllBrands());
}
public static function getString(_arg1:String):String{
var _local2:Object = strings[_arg1];
if (_local2){
if (currentLanguage.textLanguage){
return (_local2[currentLanguage.textLanguage]);
};
if (_local2[currentLanguage.name]){
return (_local2[currentLanguage.name]);
};
return (_local2["en_us"]);
//unresolved jump
};
return ("");
}
public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false):void{
stage = _arg4;
if (_init){
trace("ERROR: LocalisationManager already initialised");
return;
};
_init = true;
localDomains["localhost"] = true;
localDomains["www8.agame.com"] = true;
localDomains["gamedev.dev.spilgames.com"] = true;
localDomains["stg.spel.nl"] = true;
localDomains["stg.girlsgogames.nl"] = true;
localDomains["stg.pl.spel.nl"] = true;
localDomains["stg.pl.girlsgogames.nl"] = true;
trace(localDomains["stg.girlsgogames.nl"]);
Brandings.initialize();
Languages.initialize();
initContexMenu(_arg4);
channelLock = _arg5;
gameName = _arg1.replace(" ", "_");
portalGroup = _arg2;
emailPage = _arg3;
chooseLanguage();
chooseBranding();
if (portalGroup == PortalGroup.HYVES){
changeLanguage("nl");
};
}
public static function get isExternal():Boolean{
return (((((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))) && (!(isStagingDomain))));
}
private static function initContexMenu(_arg1:Sprite):void{
contexMenuItem = new ContextMenuItem("");
_arg1.contextMenu = new ContextMenu();
_arg1.contextMenu.customItems.push(contexMenuItem);
contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked);
}
private static function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
spil_internal static function get hostingDomain():String{
var _local1:LocalConnection;
if (debugHostDomain != ""){
return (debugHostDomain);
};
_local1 = new LocalConnection();
return (_local1.domain);
}
spil_internal static function chooseLanguage():void{
if (cookieLanguage != null){
currentLanguage = cookieLanguage;
} else {
if (isExternal){
currentLanguage = systemLanguage;
} else {
currentLanguage = portalLanguage;
if (!currentLanguage){
currentLanguage = systemLanguage;
};
};
};
if (!currentLanguage){
trace("Unable to determine language, using 'English US'");
currentLanguage = Languages.getLanguage("en_us");
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
private static function contexMenuClicked(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest(getMoreGamesLink("Contex_Menu")));
}
public static function initTextField(_arg1:TextField):void{
var _local2:TextFormat;
trace(_arg1.text);
_arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn);
trace(_arg1.text);
_arg1.embedFonts = currentLanguage.embedFonts;
if (currentLanguage.forceFont != ""){
_local2 = new TextFormat();
_local2.font = currentLanguage.forceFont;
_arg1.setTextFormat(_local2);
};
}
public static function importXMLv2(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.attribute("identifier")] = new Object());
for each (_local4 in _local2.children()) {
if (_local4.children().length() > 0){
_local3[_local4.name()] = _local4.children()[0].toString();
} else {
_local3[_local4.name()] = "";
};
};
};
}
spil_internal static function changeLanguage(_arg1:String):void{
var _local2:Language = Languages.getLanguage(_arg1);
if (!_local2){
trace("ERROR: Supplied language string does not have a matching language");
} else {
cookieLanguage = _local2;
currentLanguage = _local2;
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
chooseBranding();
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
public static function getSendToFriendLink():String{
return (currentBranding.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain));
}
spil_internal static function chooseBranding():void{
currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]);
if (!(currentBranding is Brand)){
currentBranding = Brandings.getBrandByDomain("www.agame.com");
};
contexMenuItem.caption = ("More Games: " + currentBranding.domain);
dispatchEvent(new Event(BRANDING_CHANGED));
}
spil_internal static function get systemLanguage():Language{
return (Languages.getLanguage(Capabilities.language));
}
spil_internal static function set cookieLanguage(_arg1:Language):void{
var _local2:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
if (_arg1 == null){
_local2.data[cookieLanguageVar] = null;
} else {
_local2.data[cookieLanguageVar] = _arg1.name;
};
_local2.flush();
}
public static function importXML(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.identifier] = new Object());
for each (_local4 in _local2.children()) {
_local3[_local4.name()] = _local4.children()[0].toString();
};
};
}
spil_internal static function dispatchEvent(_arg1:Event):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.dispatchEvent(_arg1);
}
private static function getDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
if (_arg1.indexOf("file") == 0){
return ("offline_play");
};
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
if (_local2 == "localhost"){
_local2 = "offline_play";
};
return (_local2);
}
public static function exportXML():XML{
var _local1:XML = <spil_games/>
;
_local1.appendChild(Brandings.exportXML());
_local1.appendChild(Languages.exportXML());
_local1.appendChild(PortalGroup.exportXML());
return (_local1);
}
public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public static function outputAllBrands():String{
var _local3:Brand;
var _local1:Array = Brandings.getBrandsArray();
var _local2 = "";
for each (_local3 in _local1) {
_local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n"));
};
return (_local2);
}
public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function getMoreGamesLink(_arg1:String=""):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function get isStagingDomain():Boolean{
var _local1:String = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
var _local2:String = String(_local1.data[cookieLanguageVar]);
return (Languages.getLanguage(_local2));
}
private static function get portalLanguage():Language{
var _local1:Brand;
var _local2:String;
var _local3:Language;
if (isExternal){
return (null);
};
if (!embedDomain){
return (null);
};
_local1 = Brandings.getBrandByDomain(embedDomain);
if (!_local1){
return (null);
};
_local2 = _local1.preferedLanguage;
if (!_local2){
return (null);
};
_local3 = Languages.getLanguage(_local2);
if (!_local3){
return (null);
};
return (_local3);
}
spil_internal static function get embedDomain():String{
var loc:String;
if (debugEmbedDomain != ""){
return (debugEmbedDomain);
};
if (ExternalInterface.available){
try {
loc = ExternalInterface.call("window.location.href.toString");
if (((!((loc == ""))) && (!((loc == null))))){
trace(("embed domain = " + getDomain(loc)));
return (getDomain(loc));
};
} catch(e:SecurityError) {
trace(("Security Error connecting to external interface, error = " + e));
} catch(e:Error) {
trace(("Error connecting to external interface, error = " + e));
};
};
return (null);
}
}
}//package spill.localisation
Section 49
//SpilGamesLink (spill.localisation.SpilGamesLink)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class SpilGamesLink extends SimpleButton {
public function SpilGamesLink(){
addEventListener(MouseEvent.CLICK, buttonClicked);
}
private function buttonClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()), "_blank");
}
}
}//package spill.localisation
Section 50
//TextFieldFit (spill.localisation.TextFieldFit)
package spill.localisation {
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
public class TextFieldFit extends MovieClip {
protected var _glowQuality:Number;// = 1
protected var _gridFitType:String;// = "pixel"
protected var _text:String;// = "default"
private var debugBounding:Sprite;
protected var _disableWordwrap:Boolean;// = false
protected var _textSize:Number;// = 12
protected var _multiline:Boolean;// = false
protected var _font:String;// = ""
protected var _embedFonts:Boolean;// = true
protected var _underline:Boolean;// = false
protected var _vAlign:String;// = "top"
protected var _italic:Boolean;// = false
protected var _useGlowFilter:Boolean;// = false
protected var _glowColor:uint;// = 0
protected var _bold:Boolean;// = false
private var h:Number;
protected var _antiAliasType:String;// = "advanced"
private var sizeChanged:Boolean;// = true
private var w:Number;
private var embeddedFonts:Array;
protected var _hAlign:String;// = "left"
protected var _textColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowBlur:Number;// = 3
protected var _selectable:Boolean;// = false
private var format:TextFormat;
private var field:TextField;
private var valid:Boolean;// = true
private static const gutter:Number = 2;
spil_internal static var embedFonts:Boolean = true;
spil_internal static var forceAAType:String = null;
spil_internal static var forceFont:String = null;
public static var alwaysCheckWidth:Boolean = false;
public function TextFieldFit(){
var _local1:Boolean = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
var _local2:Number = width;
var _local3:Number = height;
if (numChildren > 0){
removeChildAt(0);
};
if (!field){
field = new TextField();
addChild(field);
};
field.border = false;
field.background = false;
field.type = TextFieldType.DYNAMIC;
mouseEnabled = false;
mouseChildren = false;
format = new TextFormat();
embeddedFonts = Font.enumerateFonts(false);
setSize(_local2, _local3);
validate();
if (stage){
addEventListener(Event.RENDER, init);
stage.invalidate();
};
init();
}
private function resizeText(_arg1:Boolean=false):void{
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
if (format.size <= 3){
trace("WARNING: Text resised to 3px, either an error occured or the text just wont fit");
return;
};
field.setTextFormat(format);
resizeText(true);
} else {
if (_arg1 == false){
while (doesTextFit()) {
if (format.size <= textSize){
format.size = Object((Number(format.size) + 1));
field.setTextFormat(format);
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
field.setTextFormat(format);
break;
};
} else {
break;
};
};
};
};
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
public function get vAlign():String{
return (_vAlign);
}
public function get italic():Boolean{
return (_italic);
}
public function get textColor():uint{
return (_textColor);
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
public function get text():String{
return (_text);
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function get selectable():Boolean{
return (_selectable);
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
private function layoutText():void{
resizeText();
field.height = (field.textHeight + (gutter * 2));
if (vAlign == "top"){
field.y = 0;
} else {
if (vAlign == "middle"){
field.y = ((h - field.height) / 2);
} else {
if (vAlign == "bottom"){
field.y = (h - field.height);
};
};
};
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
public function get hAlign():String{
return (_hAlign);
}
public function setSize(_arg1:Number, _arg2:Number):void{
w = _arg1;
h = _arg2;
scaleX = (scaleY = 1);
field.width = w;
field.height = h;
invalidate();
}
public function get bold():Boolean{
return (_bold);
}
public function set gridFitType(_arg1:String):void{
_gridFitType = _arg1;
invalidate();
}
public function set underline(_arg1:Boolean):void{
_underline = _arg1;
invalidate();
}
public function get glowBlur():Number{
return (_glowBlur);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
invalidate();
}
public function set textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function set font(_arg1:String):void{
_font = _arg1;
invalidate();
}
public function set selectable(_arg1:Boolean):void{
_selectable = _arg1;
invalidate();
}
public function get multiline():Boolean{
return (_multiline);
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
public function get gridFitType():String{
return (_gridFitType);
}
public function get underline():Boolean{
return (_underline);
}
public function get textSize():Number{
return (_textSize);
}
public function get textField():TextField{
return (field);
}
public function get glowColor():uint{
return (_glowColor);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _arg1;
invalidate();
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
protected function updateProperties():void{
var _local1:Boolean;
var _local2:Font;
field.text = _text;
field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline;
field.wordWrap = ((field.multiline) && (!(_disableWordwrap)));
field.selectable = _selectable;
field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType;
field.gridFitType = _gridFitType;
embeddedFonts = Font.enumerateFonts(false);
if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){
_local1 = false;
for each (_local2 in embeddedFonts) {
if (_font == _local2.fontName){
_local1 = true;
break;
};
};
field.embedFonts = _local1;
if (!_local1){
trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text));
} else {
trace((("Found Embedded font '" + _font) + "' using font"));
};
} else {
field.embedFonts = false;
};
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
format.font = _font;
};
if (sizeChanged){
format.size = _textSize;
};
format.color = _textColor;
format.align = _hAlign;
format.bold = _bold;
format.italic = _italic;
format.underline = _underline;
format.leftMargin = 0;
format.rightMargin = 0;
field.setTextFormat(format);
if (_useGlowFilter){
filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)];
} else {
filters = [];
};
}
private function doesTextFit():Boolean{
if (((((field.textHeight + (gutter * 2)) > h)) || (((((field.textWidth + (gutter * 2)) > w)) && (((!(field.multiline)) || (alwaysCheckWidth))))))){
return (false);
};
return (true);
}
public function get glowStrength():Number{
return (_glowStrength);
}
}
}//package spill.localisation
Section 51
//bg_sound (bg_sound)
package {
import flash.media.*;
public dynamic class bg_sound extends Sound {
}
}//package
Section 52
//btnSound (btnSound)
package {
import flash.media.*;
public dynamic class btnSound extends Sound {
}
}//package
Section 53
//SaveImage (SaveImage)
package {
import com.adobe.images.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
public class SaveImage extends MovieClip {
public static function drawImage(_arg1:DisplayObject, _arg2:Rectangle, _arg3:String="未命名.jpg"):void{
var _local4:Matrix = new Matrix();
_local4.tx = -(_arg2.x);
_local4.ty = -(_arg2.y);
_arg2.x = 0;
_arg2.y = 0;
var _local5:BitmapData = new BitmapData(_arg2.width, _arg2.height, true);
_local5.draw(_arg1, _local4);
var _local6:FileReference = new FileReference();
var _local7:JPGEncoder = new JPGEncoder(100);
_local6.save(_local7.encode(_local5), _arg3);
}
}
}//package