Section 1
//cinemaKissing (com.spilgames.api.cinemaKissing)
package com.spilgames.api {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.utils.*;
import flash.media.*;
import fl.transitions.*;
import fl.transitions.easing.*;
public class cinemaKissing extends MovieClip {
private var panel;
private var _scoreCallbackID:int;
private var myLoaderInfo:LoaderInfo;
private var levelMc;
private var nextLevel;
private var timeArr:Array;
private var totalLife:Number;
private var st:SoundTransform;
private var tryAgain;
private var intro;
private var stRef;
private var isKiss:Boolean;
private var score:Number;
private var tempNo:Number;
private var _debugDisplay:TextField;
private var _awardsCallbackID:int;
private var totalPeople:Array;
private var prePeople:Number;
private var sound:Sound;
private var otherPeopleId:Number;
private var timeOver;
private var gameComplete;
private var timeIntervalId:Number;
private var currentLevel:Number;
private var totalGameLevel:Number;
private var soundCh:SoundChannel;
private var audio;
private var gameOver;
private var gameTime:Number;
private var coughtCouple:Number;
private var barInterval:Number;
public function cinemaKissing(_arg1:Object){
var _local2:SpilGamesServices;
st = new SoundTransform();
super();
stRef = _arg1;
myLoaderInfo = stRef.loaderInfo;
sound = new Sound();
soundCh = new SoundChannel();
timeIntervalId = new Number();
isKiss = new Boolean();
prePeople = new Number(0);
totalPeople = new Array(2, 3, 4, 5);
coughtCouple = new Number(1);
_local2 = SpilGamesServices.getInstance();
_local2.addEventListener("servicesReady", onServicesReady);
_local2.addEventListener("servicesFailed", onServicesFailed);
_local2.connect(stRef);
score = new Number(0);
tempNo = new Number(0);
gameTime = new Number(60);
totalLife = new Number(3);
totalGameLevel = new Number(4);
currentLevel = new Number(1);
_debugDisplay = new TextField();
_debugDisplay.y = -250;
_debugDisplay.x = -200;
_debugDisplay.width = 50;
_debugDisplay.height = 100;
stRef.addChild(_debugDisplay);
preloader();
stRef.addEventListener("peopleWatching", checkKissing);
stRef.addEventListener("peopleNotWatching", enableKissingCouple);
stRef.addEventListener(MouseEvent.MOUSE_UP, stopKissing);
}
private function preload(_arg1:Event){
if ((((myLoaderInfo.bytesLoaded == myLoaderInfo.bytesTotal)) && (!((myLoaderInfo.bytesTotal == 0))))){
stRef.removeEventListener(Event.ENTER_FRAME, preload);
stRef.gotoAndStop("intro");
showIntro();
} else {
stRef.loading_mc.bar.width = Math.round(((myLoaderInfo.bytesLoaded / myLoaderInfo.bytesTotal) * 100));
stRef.loading_mc.txt.text = String((("Loading " + Math.round(((myLoaderInfo.bytesLoaded / myLoaderInfo.bytesTotal) * 100))) + "%"));
};
}
private function startKissing(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
_local2 = false;
_local3 = 1;
while (_local3 <= totalPeople[(currentLevel - 1)]) {
if (levelMc[(("girl_" + _local3) + "_mc")].currentFrame >= 30){
_local2 = true;
levelMc.kissing_couple_mc.mouseEnabled = false;
break;
};
_local3++;
};
if (_local2 == false){
levelMc.kissing_couple_mc.gotoAndPlay("kissing");
isKiss = true;
barInterval = setInterval(increaseKissMeter, 100);
} else {
coughtCouple++;
panel.life_mc.gotoAndStop(coughtCouple);
if (coughtCouple >= 4){
trace("all life end and oops screen appears");
showTryAgain();
};
};
}
private function showGameLevel(){
var _local1:*;
var _local2:*;
var _local3:*;
tempNo = 0;
intro.backBtn.visible = false;
intro.storyBtn.visible = true;
intro.visible = false;
_local1 = String((("level_" + currentLevel) + "_mc"));
_local2 = loadFromLibrary(_local1);
levelMc = new (_local2);
levelMc.kissing_couple_mc.gotoAndStop("normal");
_local3 = 1;
while (_local3 <= 5) {
levelMc[(("girl_" + _local3) + "_mc")].gotoAndStop("normal");
levelMc[(("girl_" + _local3) + "_mc")].removeEventListener(MouseEvent.CLICK, resetPeople);
_local3++;
};
levelMc.door_3_mc.gotoAndStop(1);
levelMc.door_5_mc.gotoAndStop(1);
levelMc.kissing_couple_mc.buttonMode = true;
levelMc.kissing_couple_mc.mouseChildren = false;
levelMc.kissing_couple_mc.mouseEnabled = true;
levelMc.kissing_couple_mc.addEventListener(MouseEvent.MOUSE_DOWN, startKissing);
levelMc.kissing_couple_mc.addEventListener(MouseEvent.MOUSE_UP, stopKissing);
stRef.gameAssetsMc.addChild(levelMc);
panel = new gamePanel();
panel.life_mc.gotoAndStop(1);
panel.kissMeterMc.gotoAndStop(1);
panel.time_txt.htmlText = (("<b>" + String(gameTime)) + "</b>");
panel.levelTxt.htmlText = (("<b>" + String(currentLevel)) + "</b>");
stRef.gameAssetsMc.addChild(panel);
if (currentLevel == 1){
otherPeopleId = setInterval(coughtKiss, 10000);
} else {
if (currentLevel == 2){
otherPeopleId = setInterval(coughtKiss, 9500);
} else {
if (currentLevel == 3){
otherPeopleId = setInterval(coughtKiss, 9000);
} else {
if (currentLevel == 4){
otherPeopleId = setInterval(coughtKiss, 8500);
};
};
};
};
timeIntervalId = setInterval(checkGameTime, 1000);
}
private function onServicesReady(_arg1:Event):void{
_debugDisplay.appendText("SpilGamesServices are ready\n");
}
private function resetIntro(_arg1:MouseEvent){
intro.gotoAndPlay("close");
intro.backBtn.visible = false;
intro.storyBtn.visible = true;
}
private function preloader(){
stRef.addEventListener(Event.ENTER_FRAME, preload);
}
private function controlAudio(_arg1:MouseEvent){
if (audio.currentFrame == 2){
audio.gotoAndStop(3);
st.volume = 0;
} else {
audio.gotoAndStop(2);
st.volume = 1;
};
SoundMixer.soundTransform = st;
}
private function restartGame(_arg1:MouseEvent){
clearContainer(gameComplete);
score = 0;
currentLevel = 1;
showGameLevel();
}
private function showTryAgain(){
clearInterval(otherPeopleId);
clearInterval(timeIntervalId);
clearInterval(barInterval);
tryAgain = new try_again();
tryAgain.tryAgainBtn.buttonMode = true;
tryAgain.tryAgainBtn.addEventListener(MouseEvent.CLICK, playCurrentLevel);
stRef.gameAssetsMc.addChild(tryAgain);
if (tempNo == 0){
tempNo = 1;
} else {
tempNo = Math.round((tempNo * 10));
};
_scoreCallbackID = ScoreService.submitScore((score + tempNo), onScoreRequestProcessed);
}
private function stopKissing(_arg1:MouseEvent){
if (isKiss == true){
levelMc.kissing_couple_mc.gotoAndStop("normal");
};
isKiss = false;
clearInterval(barInterval);
}
private function clearContainer(_arg1:MovieClip):void{
var num:*;
var obj = _arg1;
try {
num = obj.numChildren;
while ((num = (num - 1)), num) {
obj.removeChildAt(num);
};
} catch(e:Error) {
};
}
private function resetPeople(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "girl_3_mc"){
levelMc.door_3_mc.gotoAndStop(1);
} else {
if (_arg1.currentTarget.name == "girl_5_mc"){
levelMc.door_5_mc.gotoAndStop(1);
};
};
_arg1.currentTarget.gotoAndStop("normal");
}
private function checkKissing(_arg1){
trace("checkKissing checkKissing ");
levelMc[_arg1.data].buttonMode = true;
levelMc[_arg1.data].addEventListener(MouseEvent.CLICK, resetPeople);
trace(("isKiss " + isKiss));
if (isKiss == true){
coughtCouple++;
panel.life_mc.gotoAndStop(coughtCouple);
clearInterval(barInterval);
levelMc.kissing_couple_mc.gotoAndStop("normal");
isKiss = false;
if (coughtCouple >= (totalLife + 1)){
trace("all life end and oops screen appears");
showTryAgain();
};
trace(panel.life_mc.currentFrame);
};
}
private function playCurrentLevel(_arg1:MouseEvent){
resetAll();
tryAgain.visible = false;
if (currentLevel == 1){
otherPeopleId = setInterval(coughtKiss, 10000);
} else {
if (currentLevel == 2){
otherPeopleId = setInterval(coughtKiss, 9500);
} else {
if (currentLevel == 3){
otherPeopleId = setInterval(coughtKiss, 9000);
} else {
if (currentLevel == 4){
otherPeopleId = setInterval(coughtKiss, 8500);
};
};
};
};
timeIntervalId = setInterval(checkGameTime, 1000);
clearContainer(tryAgain);
}
private function coughtKiss(){
var _local1:*;
trace("function otherPeopleId is calling ");
_local1 = randomNumber(1, totalPeople[(currentLevel - 1)], prePeople);
prePeople = _local1;
if ((((_local1 == 3)) || ((_local1 == 5)))){
levelMc[(("door_" + _local1) + "_mc")].gotoAndPlay(2);
};
levelMc[(("girl_" + _local1) + "_mc")].gotoAndPlay(2);
}
private function enableKissingCouple(_arg1){
levelMc.kissing_couple_mc.mouseEnabled = true;
levelMc[_arg1.data].buttonMode = false;
levelMc[_arg1.data].removeEventListener(MouseEvent.CLICK, resetPeople);
}
private function loadFromLibrary(_arg1){
return ((getDefinitionByName(_arg1) as Class));
}
private function checkGameTime(){
gameTime--;
if (gameTime < 10){
panel.time_txt.htmlText = (("<b>0" + String(gameTime)) + "</b>");
} else {
panel.time_txt.htmlText = (("<b>" + String(gameTime)) + "</b>");
};
if (gameTime <= 0){
clearInterval(timeIntervalId);
showTryAgain();
};
}
private function showIntro(){
intro = new Intro_mc();
intro.backBtn.visible = false;
intro.storyBtn.visible = true;
intro.playBtn.visible = true;
intro.backBtn.buttonMode = true;
intro.storyBtn.buttonMode = true;
intro.playBtn.buttonMode = true;
intro.startBtn.buttonMode = true;
intro.backBtn.addEventListener(MouseEvent.CLICK, resetIntro);
intro.closeBtn.addEventListener(MouseEvent.CLICK, resetIntro);
intro.storyBtn.addEventListener(MouseEvent.CLICK, playIntro);
intro.playBtn.addEventListener(MouseEvent.CLICK, playIntro);
intro.startBtn.addEventListener(MouseEvent.CLICK, startGame);
intro.gotoAndStop(1);
stRef.gameAssetsMc.addChild(intro);
audio = new audio_mc();
audio.x = 606;
audio.y = 20;
audio.mouseChildren = false;
audio.buttonMode = true;
audio.addEventListener(MouseEvent.CLICK, controlAudio);
stRef.gameSoundMc.addChild(audio);
}
private function startGame(_arg1:MouseEvent){
clearContainer(intro);
showGameLevel();
}
private function onScoreRequestProcessed(_arg1:int, _arg2:Object):void{
_debugDisplay.appendText(("onScoreRequestProcessed" + "\n"));
_debugDisplay.appendText((("\tcallbackID: " + _arg1) + "\n"));
if (!_arg2.errorMessage){
_debugDisplay.appendText((("\txml: " + _arg2.xml) + "\n"));
} else {
_debugDisplay.appendText((("\tError in request: " + _arg2.errorMessage) + "\n"));
};
}
private function playIntro(_arg1:MouseEvent){
intro.gotoAndPlay(2);
if (_arg1.currentTarget.name == "playBtn"){
intro.backBtn.visible = false;
intro.storyBtn.visible = false;
intro.startBtn.visible = true;
intro.playBtn.visible = false;
} else {
intro.backBtn.visible = true;
intro.storyBtn.visible = false;
intro.playBtn.visible = false;
intro.startBtn.visible = true;
};
}
private function changeLevel(_arg1:MouseEvent){
trace("show next level");
clearContainer(levelMc);
clearContainer(panel);
nextLevel.visible = false;
showGameLevel();
}
private function increaseKissMeter(){
tempNo = (panel.kissMeterMc.kissBarMc.scaleX + (19 / (gameTime * (currentLevel + 1.5))));
panel.kissMeterMc.kissBarMc.scaleX = tempNo;
if (tempNo > 34){
trace("next level");
trace(((((("1000 " + currentLevel) + " ") + ((totalLife - coughtCouple) + 1)) + " :: ") + gameTime));
score = (score + (gameTime * 100));
resetAll();
if (currentLevel >= totalGameLevel){
trace("game complete");
gameComplete = new game_complete();
gameComplete.scoreTxt.text = String(score);
gameComplete.playAgainBtn.buttonMode = true;
gameComplete.playAgainBtn.addEventListener(MouseEvent.CLICK, restartGame);
stRef.gameAssetsMc.addChild(gameComplete);
_scoreCallbackID = ScoreService.submitScore(score, onScoreRequestProcessed);
} else {
nextLevel = new level_complete();
nextLevel.scoreTxt.text = String(score);
nextLevel.nextLevelBtn.buttonMode = true;
nextLevel.nextLevelBtn.addEventListener(MouseEvent.CLICK, changeLevel);
stRef.gameAssetsMc.addChild(nextLevel);
currentLevel++;
_scoreCallbackID = ScoreService.submitScore(score, onScoreRequestProcessed);
};
};
}
private function resetAll(){
var _local1:*;
clearInterval(otherPeopleId);
clearInterval(timeIntervalId);
clearInterval(barInterval);
isKiss = false;
coughtCouple = 1;
gameTime = 60;
levelMc.kissing_couple_mc.gotoAndStop("normal");
panel.kissMeterMc.kissBarMc.scaleX = 1;
panel.time_txt.htmlText = (("<b>" + String(gameTime)) + "</b>");
panel.life_mc.gotoAndStop(1);
_local1 = 1;
while (_local1 <= totalPeople[(currentLevel - 1)]) {
levelMc[(("girl_" + _local1) + "_mc")].gotoAndStop("normal");
_local1++;
};
}
private function randomNumber(_arg1:Number, _arg2:Number, _arg3:Number):Number{
var _local4:Number;
var _local5:*;
_local4 = new Number();
_local5 = 0;
while (_local5 < 1) {
_local4 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
trace(((("randomNum " + _local4) + " :: ") + _arg3));
if (_local4 == _arg3){
_local5--;
trace(("i " + _local5));
} else {
trace("break");
break;
};
_local5++;
};
return (_local4);
}
private function onServicesFailed(_arg1:ErrorEvent):void{
_debugDisplay.appendText((("SpilGamesServices failed: " + _arg1.text) + "\n"));
}
}
}//package com.spilgames.api
Section 2
//ScoreService (com.spilgames.api.ScoreService)
package com.spilgames.api {
public class ScoreService {
public static function submitScore(_arg1:int, _arg2:Function=null):int{
trace(("scoreSubmit: " + _arg1));
return (SpilGamesServices.getInstance().send("Score", "submitScore", _arg2, {score:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 3
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private const DEFAULT_CONNECTION_LOCATION:String = "http://www8.agame.com/games/flash/services/ServicesConnection.swf";
private var _alwaysInFront:Boolean;// = false
private var _loader:Loader;
private var _request:URLRequest;
private var _connecting:Boolean;// = false
private var _servicesConnection;// = null
private var _connected:Boolean;// = false
private var currentDelay:Number;// = 0
private var previousFrameTime:Number;
private var _numConnectionLoadTries:uint;// = 0
public static const INVALID_ID:int = -1;
public static const CONFIGURATION_FAILED:String = "configurationFailure";
private static const MAX_CONNECTION_LOAD_RETRIES:uint = 99;
public static const INVALID_DOMAIN:String = "invalidDomain";
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(_arg1:Private=null){
_servicesConnection = null;
_connecting = false;
_connected = false;
_numConnectionLoadTries = 0;
_alwaysInFront = false;
currentDelay = 0;
super();
if (!_arg1){
throw (new Error("Cannot instantiate this class, use SpilGamesServices.getInstance"));
};
}
public function get alwaysInFront():Boolean{
return (_alwaysInFront);
}
public function get version():String{
return ("1.1");
}
private function handleRemovedFromStage(_arg1:Event):void{
trace("WARNING: please do not remove SpilGamesServices from the stage");
}
private function handleIOError(_arg1:IOErrorEvent):void{
_numConnectionLoadTries++;
if (_numConnectionLoadTries > MAX_CONNECTION_LOAD_RETRIES){
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connecting = false;
trace("ERROR: SpilGamesServices failed to load the connection object");
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
} else {
trace(("WARN: SpilGamesServices failed to load the connection object, retry #" + _numConnectionLoadTries));
previousFrameTime = getTimer();
addEventListener(Event.ENTER_FRAME, updateConnectionRetry);
};
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
private function updateConnectionRetry(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = getTimer();
_local3 = ((_local2 - previousFrameTime) / 1000);
currentDelay = (currentDelay + _local3);
if (currentDelay >= 2){
trace(("WARN: SpilGamesServices trying to reconnect after: " + currentDelay));
_loader.load(_request);
removeEventListener(Event.ENTER_FRAME, updateConnectionRetry);
currentDelay = 0;
};
previousFrameTime = _local2;
}
public function getItemID():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemID());
};
return (INVALID_ID);
}
public function bringToFront(_arg1:Event=null):void{
var e = _arg1;
if (parent){
try {
parent.setChildIndex(this, (parent.numChildren - 1));
} catch(e:Error) {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
private function handleLoadComplete(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_servicesConnection = LoaderInfo(_arg1.target).content;
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
addChild(_servicesConnection);
}
public function send(_arg1:String, _arg2:String, _arg3:Function, _arg4:Object=null):int{
if (isReady()){
return (_servicesConnection.send(_arg1, _arg2, _arg3, _arg4));
};
return (INVALID_ID);
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
private function handleServicesReady(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connected = true;
_connecting = false;
dispatchEvent(new Event("servicesReady"));
}
private function handleServiceError(_arg1:Event):void{
var _local2:String;
if (hasEventListener("serviceError")){
_local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
dispatchEvent(new ErrorEvent("serviceError", false, false, _local2));
};
}
public function disconnect():void{
if (_servicesConnection){
_servicesConnection.removeEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.removeEventListener("serviceError", handleServiceError);
if (_connected){
_servicesConnection.disconnect();
};
removeChild(_servicesConnection);
};
_servicesConnection = null;
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
};
_loader = null;
};
removeEventListener(Event.ENTER_FRAME, bringToFront);
removeEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (parent){
parent.removeChild(this);
};
_connected = (_connecting = false);
}
public function get connecting():Boolean{
return (_connecting);
}
private function handleServicesFailed(_arg1:ErrorEvent):void{
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
_connecting = false;
if (hasEventListener("servicesFailed")){
dispatchEvent(new ErrorEvent("servicesFailed", false, false, _arg1.text));
};
}
public function get connection(){
return (_servicesConnection);
}
public function isServiceAvailable(_arg1:String):Boolean{
return (((isReady()) && (_servicesConnection.isServiceAvailable(_arg1))));
}
public function set alwaysInFront(_arg1:Boolean):void{
if (_alwaysInFront != _arg1){
_alwaysInFront = _arg1;
if (_alwaysInFront){
addEventListener(Event.ENTER_FRAME, bringToFront);
} else {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public function connect(_arg1:DisplayObjectContainer, ... _args):void{
var _local3:String;
var _local4:URLVariables;
var _local5:Date;
if (((!(_connecting)) && (!(_connected)))){
if (!_arg1.stage){
throw (new Error("The given clip must be present in the display list (added to stage)"));
};
_connecting = true;
_arg1.stage.addChild(this);
addEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local3 = root.loaderInfo.parameters["servicesLoc"];
_request = new URLRequest(_local3);
} else {
_local3 = DEFAULT_CONNECTION_LOCATION;
_local4 = new URLVariables();
_local5 = new Date();
_local4.nocache = ((((_local5.fullYear * 12) + (_local5.month + 1)) * 31) + _local5.day);
_request = new URLRequest(_local3);
_request.data = _local4;
};
allowDomain(_local3);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_loader.load(_request);
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new SpilGamesServices(new Private());
};
return (_instance);
}
}
}//package com.spilgames.api
class Private {
private function Private(){
}
}
Section 4
//User (com.spilgames.api.User)
package com.spilgames.api {
import flash.display.*;
public class User {
public static function getUserName():String{
var _local1:*;
_local1 = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserName());
};
return ("");
}
public static function isGuest():Boolean{
var _local1:*;
var _local2:DisplayObject;
var _local3:Object;
_local1 = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.isGuest());
};
_local2 = SpilGamesServices.getInstance().root;
if (_local2.loaderInfo != null){
_local3 = _local2.loaderInfo.parameters;
return (((((((!(_local3.username)) || ((_local3.username == "")))) || (!(_local3.hash)))) || ((_local3.hash == ""))));
};
return (false);
}
public static function getUserHash():String{
var _local1:*;
_local1 = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserHash());
};
return ("");
}
}
}//package com.spilgames.api
Section 5
//backBtn_86 (kissing_in_the_cinema_fla.backBtn_86)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class backBtn_86 extends MovieClip {
public var __id10_:LocalizedTextField;
public function backBtn_86(){
__setProp___id10__backBtn_Layer2_1();
}
function __setProp___id10__backBtn_Layer2_1(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.text = "{back}";
__id10_.textColor = 0;
__id10_.textSize = 25;
__id10_.bold = true;
__id10_.disableWordwrap = false;
__id10_.embedFonts = false;
__id10_.font = "Arial";
__id10_.hAlign = "center";
__id10_.multiline = false;
__id10_.vAlign = "middle";
__id10_.antiAliasType = "advanced";
__id10_.glowBlur = 3;
__id10_.glowColor = 0;
__id10_.useGlowFilter = false;
__id10_.glowQuality = 1;
__id10_.glowStrength = 5;
__id10_.gridFitType = "pixel";
__id10_.italic = false;
__id10_.selectable = false;
__id10_.underline = false;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 6
//bg_101 (kissing_in_the_cinema_fla.bg_101)
package kissing_in_the_cinema_fla {
import flash.display.*;
public dynamic class bg_101 extends MovieClip {
public function bg_101(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
stop();
}
}
}//package kissing_in_the_cinema_fla
Section 7
//door_94 (kissing_in_the_cinema_fla.door_94)
package kissing_in_the_cinema_fla {
import flash.display.*;
public dynamic class door_94 extends MovieClip {
public function door_94(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package kissing_in_the_cinema_fla
Section 8
//flag_icon_116 (kissing_in_the_cinema_fla.flag_icon_116)
package kissing_in_the_cinema_fla {
import flash.display.*;
public dynamic class flag_icon_116 extends MovieClip {
public function flag_icon_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package kissing_in_the_cinema_fla
Section 9
//l_br_118 (kissing_in_the_cinema_fla.l_br_118)
package kissing_in_the_cinema_fla {
import flash.display.*;
import flash.text.*;
public dynamic class l_br_118 extends MovieClip {
public var text:TextField;
public var flag:MovieClip;
}
}//package kissing_in_the_cinema_fla
Section 10
//life_110 (kissing_in_the_cinema_fla.life_110)
package kissing_in_the_cinema_fla {
import flash.display.*;
public dynamic class life_110 extends MovieClip {
public function life_110(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package kissing_in_the_cinema_fla
Section 11
//loading_mc_1 (kissing_in_the_cinema_fla.loading_mc_1)
package kissing_in_the_cinema_fla {
import flash.display.*;
import flash.text.*;
public dynamic class loading_mc_1 extends MovieClip {
public var txt:TextField;
}
}//package kissing_in_the_cinema_fla
Section 12
//MainTimeline (kissing_in_the_cinema_fla.MainTimeline)
package kissing_in_the_cinema_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import com.spilgames.api.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
public dynamic class MainTimeline extends MovieClip {
public var btn_moregamesat:BrandingLogo;
public var i:int;
public var xmlData:XML;
public var loading_mc:MovieClip;
public var gameAssetsMc:MovieClip;
public var fontList:Array;
public var gameSoundMc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 4, frame5, 7, frame8, 9, frame10);
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
function frame10(){
stop();
}
function frame1(){
stop();
new cinemaKissing(this);
stop();
xmlData = <LocalisedText><textItem identifier="startGame"><en_us><![CDATA[Start Game]]></en_us><en_uk><![CDATA[Start Game]]></en_uk><nl><![CDATA[Spel starten]]></nl><fr><![CDATA[Jouer]]></fr><de><![CDATA[Spiel starten]]></de><es><![CDATA[Comenzar]]></es><br><![CDATA[Começar]]></br><pt><![CDATA[Iniciar]]></pt><it><![CDATA[Avvia gioco]]></it><se><![CDATA[Starta spel]]></se><pl><![CDATA[Start]]></pl><ru><![CDATA[Начать игру]]></ru><id><![CDATA[Mulai Game]]></id><ar><![CDATA[Start Game]]></ar><jp><![CDATA[Start Game]]></jp><cn><![CDATA[Start Game]]></cn><es_mx><![CDATA[Comenzar]]></es_mx><es_ar><![CDATA[Comenzar]]></es_ar></textItem><textItem identifier="title"><en_us><![CDATA[Kissing in the Cinema]]></en_us><en_uk><![CDATA[Kissing in the Cinema]]></en_uk><nl><![CDATA[Zoenen in de bios]]></nl><fr><![CDATA[Baisers au ciné]]></fr><de><![CDATA[Küsse im Kino]]></de><es><![CDATA[Besos en el Cine]]></es><br><![CDATA[Beijando no Cinema]]></br><pt><![CDATA[Beijos no Cinema]]></pt><it><![CDATA[Baci al cinema]]></it><se><![CDATA[Kyssar på bio]]></se><pl><![CDATA[Całowanie w Kinie]]></pl><ru><![CDATA[Поцелуи в кинотеатре]]></ru><id><![CDATA[Ciuman di Bioskop]]></id><ar><![CDATA[Kissing in the Cinema]]></ar><jp><![CDATA[Kissing in the Cinema]]></jp><cn><![CDATA[Kissing in the Cinema]]></cn><es_mx><![CDATA[Besos en el Cine]]></es_mx><es_ar><![CDATA[Besos en el Cine]]></es_ar></textItem><textItem identifier="story"><en_us><![CDATA[Story]]></en_us><en_uk><![CDATA[Story]]></en_uk><nl><![CDATA[Verhaal]]></nl><fr><![CDATA[Histoire]]></fr><de><![CDATA[Die Geschichte]]></de><es><![CDATA[Historia]]></es><br><![CDATA[História]]></br><pt><![CDATA[História]]></pt><it><![CDATA[Storia]]></it><se><![CDATA[Berättelse]]></se><pl><![CDATA[Fabuła]]></pl><ru><![CDATA[Сюжет]]></ru><id><![CDATA[Cerita]]></id><ar><![CDATA[Story]]></ar><jp><![CDATA[Story]]></jp><cn><![CDATA[Story]]></cn><es_mx><![CDATA[Historia]]></es_mx><es_ar><![CDATA[Historia]]></es_ar></textItem><textItem identifier="play"><en_us><![CDATA[Play]]></en_us><en_uk><![CDATA[Play]]></en_uk><nl><![CDATA[Spelen]]></nl><fr><![CDATA[Jouer]]></fr><de><![CDATA[Spielen]]></de><es><![CDATA[Jugar]]></es><br><![CDATA[Jogar]]></br><pt><![CDATA[Jogar]]></pt><it><![CDATA[Gioca]]></it><se><![CDATA[Spela]]></se><pl><![CDATA[Zagraj]]></pl><ru><![CDATA[Играть]]></ru><id><![CDATA[Mainkan]]></id><ar><![CDATA[Play]]></ar><jp><![CDATA[Play]]></jp><cn><![CDATA[Play]]></cn><es_mx><![CDATA[Jugar]]></es_mx><es_ar><![CDATA[Jugar]]></es_ar></textItem><textItem identifier="ins"><en_us><![CDATA[There's nothing like a super romantic movie to get you in the mood to snuggle up with your boyfriend. Only trouble is, you're not the only ones in the cinema. No worries! Sneak a secret smooch with your favorite guy—just don't get caught!]]></en_us><en_uk><![CDATA[There's nothing like a super romantic movie to get you in the mood to snuggle up with your boyfriend. Only trouble is, you're not the only ones in the cinema. No worries! Sneak a secret snog with your favourite guy—just don't get caught!]]></en_uk><nl><![CDATA[Wat is er fijner dan een romantische film in de bios om lekker tegen je vriendje aan te knuffelen? Het enige probleem is dat je niet alleen in de bios zit! Zoen stiekem met je liefje, maar laat je niet betrappen!]]></nl><fr><![CDATA[Rien de tel qu'un film romantique à souhait pour te donner envie de te blottir contre ton copain. L'ennui, c'est que vous n'êtes pas les seuls au cinéma. Pas de problème ! Fais un bisou en douce au garçon de ta vie — mais sans te faire remarquer !]]></fr><de><![CDATA[Es bringt dich doch nichts mehr in Stimmung zum Knutschen mit deinem Freund als ein super-romantischer Film! Das einzige Problem ist, dass ihr im Kino nicht alleine seid. Aber keine Sorge! Hol dir heimlich einen Kuss von deinem Liebling – aber lasst euch nicht erwischen!]]></de><es><![CDATA[No hay nada como una peli súper romántica para arrimarte a tu novio. El único problema es que no estáis solos en el cine. ¡No pasa nada! Besuquéate a escondidas con tu chico favorito… ¡sin que os pillen!]]></es><br><![CDATA[Não há nada melhor que um filme super romântico para te deixar com vontade de ficar agarradinha com seu namorado. O único problema é que vocês não são os únicos da sala. Não se preocupe! Dê um beijo escondido no seu cara favorito—mas não seja flagrada!]]></br><pt><![CDATA[Não há nada com um filme super romântico para te dar vontade de agarrar o teu namorado. O único problema é que não estão sozinhos no cinema. Não te preocupes! Rouba um beijo às escondidas ao teu rapaz preferido - mas não te deixes apanhar!]]></pt><it><![CDATA[Non c'è nulla di meglio di un bel film romantico per farti venire voglia di raggomitolarti tra le braccia del tuo ragazzo. L'unico inconveniente è che al cinema non siete soli. Nessun problema! Sbaciucchia di nascosto il tuo amore... Ma non farti beccare!]]></it><se><![CDATA[Det finns inget som får dig att vilja kyssa din kille som en superromantisk film. En problemet är att ni inte är ensamma på bion. Inga problem! Stjäl en kyss av din kille i smyg, men låt ingen se er!]]></se><pl><![CDATA[Superromantyczny film znakomicie wprowadza w całuśny nastrój. Jedynym problemem jest fakt, że w kinie nie jesteście sami. Ale nie przejmuj się! Skradnij po prostu całusa swojej sympatii, nie dając się przy tym przyłapać!]]></pl><ru><![CDATA[Романтические фильмы всегда пробуждают в тебе желание целоваться. Беда в том, что вы в кинотеатре не одни. Ничего страшного! Целуйся со своим парнем украдкой – главное, чтобы вас не засекли!]]></ru><id><![CDATA[Tidak ada yang menyamai film super romantis yang membawa suasana hati untuk mencium cowokmu. Satu-satunya masalah adalah, kamu bukan satu-satunya di bioskop. Jangan khawatir, lakukan satu ciuman tersembunyi dengan cowok favoritmu - asal jangan tertangkap!]]></id><ar><![CDATA[There's nothing like a super romantic movie to get you in the mood to snuggle up with your boyfriend. Only trouble is, you're not the only ones in the cinema. No worries! Sneak a secret smooch with your favorite guy—just don't get caught!]]></ar><jp><![CDATA[There's nothing like a super romantic movie to get you in the mood to snuggle up with your boyfriend. Only trouble is, you're not the only ones in the cinema. No worries! Sneak a secret smooch with your favorite guy—just don't get caught!]]></jp><cn><![CDATA[There's nothing like a super romantic movie to get you in the mood to snuggle up with your boyfriend. Only trouble is, you're not the only ones in the cinema. No worries! Sneak a secret smooch with your favorite guy—just don't get caught!]]></cn><es_mx><![CDATA[No hay nada como una peli súper romántica para arrimarte a tu novio. El único problema es que no estáis solos en el cine. ¡No pasa nada! Besuquéate a escondidas con tu chico favorito… ¡sin que os pillen!]]></es_mx><es_ar><![CDATA[No hay nada como una peli súper romántica para arrimarte a tu novio. El único problema es que no estáis solos en el cine. ¡No pasa nada! Besuquéate a escondidas con tu chico favorito… ¡sin que os pillen!]]></es_ar></textItem><textItem identifier="back"><en_us><![CDATA[Back]]></en_us><en_uk><![CDATA[Back]]></en_uk><nl><![CDATA[Terug]]></nl><fr><![CDATA[Retour]]></fr><de><![CDATA[Zurück]]></de><es><![CDATA[Atrás]]></es><br><![CDATA[Voltar]]></br><pt><![CDATA[Voltar]]></pt><it><![CDATA[Indietro]]></it><se><![CDATA[Tillbaka]]></se><pl><![CDATA[Powrót]]></pl><ru><![CDATA[Назад]]></ru><id><![CDATA[Kembali]]></id><ar><![CDATA[Back]]></ar><jp><![CDATA[Back]]></jp><cn><![CDATA[Back]]></cn><es_mx><![CDATA[Atrás]]></es_mx><es_ar><![CDATA[Atrás]]></es_ar></textItem><textItem identifier="level"><en_us><![CDATA[Level:]]></en_us><en_uk><![CDATA[Level:]]></en_uk><nl><![CDATA[Level:]]></nl><fr><![CDATA[Niveau :]]></fr><de><![CDATA[Level:]]></de><es><![CDATA[Nivel:]]></es><br><![CDATA[Fase:]]></br><pt><![CDATA[Nível:]]></pt><it><![CDATA[Livello:]]></it><se><![CDATA[Nivå:]]></se><pl><![CDATA[Poziom:]]></pl><ru><![CDATA[Уровень:]]></ru><id><![CDATA[Level:]]></id><ar><![CDATA[Level:]]></ar><jp><![CDATA[Level:]]></jp><cn><![CDATA[Level:]]></cn><es_mx><![CDATA[Nivel:]]></es_mx><es_ar><![CDATA[Nivel:]]></es_ar></textItem><textItem identifier="timer"><en_us><![CDATA[Time:]]></en_us><en_uk><![CDATA[Time:]]></en_uk><nl><![CDATA[Tijd:]]></nl><fr><![CDATA[Temps :]]></fr><de><![CDATA[Zeit:]]></de><es><![CDATA[Tiempo:]]></es><br><![CDATA[Tempo:]]></br><pt><![CDATA[Tempo:]]></pt><it><![CDATA[Tempo:]]></it><se><![CDATA[Tid:]]></se><pl><![CDATA[Czas:]]></pl><ru><![CDATA[Время:]]></ru><id><![CDATA[Waktu:]]></id><ar><![CDATA[Time:]]></ar><jp><![CDATA[Time:]]></jp><cn><![CDATA[Time:]]></cn><es_mx><![CDATA[Tiempo:]]></es_mx><es_ar><![CDATA[Tiempo:]]></es_ar></textItem><textItem identifier="progress"><en_us><![CDATA[Progress:]]></en_us><en_uk><![CDATA[Progress:]]></en_uk><nl><![CDATA[Voortgang:]]></nl><fr><![CDATA[Progression :]]></fr><de><![CDATA[Fortschritt:]]></de><es><![CDATA[Progreso:]]></es><br><![CDATA[Progresso:]]></br><pt><![CDATA[Progresso:]]></pt><it><![CDATA[Progresso:]]></it><se><![CDATA[Framsteg:]]></se><pl><![CDATA[Postępy:]]></pl><ru><![CDATA[Прогресс:]]></ru><id><![CDATA[Kemajuan:]]></id><ar><![CDATA[Progress:]]></ar><jp><![CDATA[Progress:]]></jp><cn><![CDATA[Progress:]]></cn><es_mx><![CDATA[Progreso:]]></es_mx><es_ar><![CDATA[Progreso:]]></es_ar></textItem><textItem identifier="life"><en_us><![CDATA[Life:]]></en_us><en_uk><![CDATA[Life:]]></en_uk><nl><![CDATA[Levens:]]></nl><fr><![CDATA[Vie :]]></fr><de><![CDATA[Leben:]]></de><es><![CDATA[Vida:]]></es><br><![CDATA[Vida:]]></br><pt><![CDATA[Vida:]]></pt><it><![CDATA[Vita:]]></it><se><![CDATA[Liv:]]></se><pl><![CDATA[Życie:]]></pl><ru><![CDATA[Жизни:]]></ru><id><![CDATA[Nyawa:]]></id><ar><![CDATA[Life:]]></ar><jp><![CDATA[Life:]]></jp><cn><![CDATA[Life:]]></cn><es_mx><![CDATA[Vida:]]></es_mx><es_ar><![CDATA[Vida:]]></es_ar></textItem><textItem identifier="levelcomplete"><en_us><![CDATA[Level Complete!]]></en_us><en_uk><![CDATA[Level Complete!]]></en_uk><nl><![CDATA[Level voltooid!]]></nl><fr><![CDATA[Niveau réussi !]]></fr><de><![CDATA[Level abgeschlossen!]]></de><es><![CDATA[¡Nivel completado!]]></es><br><![CDATA[Fase Concluída!]]></br><pt><![CDATA[Nível terminado!]]></pt><it><![CDATA[Livello completo!]]></it><se><![CDATA[Nivå klarad!]]></se><pl><![CDATA[Poziom ukończony!]]></pl><ru><![CDATA[Уровень пройден!]]></ru><id><![CDATA[Level Selesai!]]></id><ar><![CDATA[Level Complete!]]></ar><jp><![CDATA[Level Complete!]]></jp><cn><![CDATA[Level Complete!]]></cn><es_mx><![CDATA[¡Nivel completado!]]></es_mx><es_ar><![CDATA[¡Nivel completado!]]></es_ar></textItem><textItem identifier="score"><en_us><![CDATA[Score:]]></en_us><en_uk><![CDATA[Score:]]></en_uk><nl><![CDATA[Score:]]></nl><fr><![CDATA[Score :]]></fr><de><![CDATA[Punkte:]]></de><es><![CDATA[Puntuación:]]></es><br><![CDATA[Pontuação:]]></br><pt><![CDATA[Pontuação:]]></pt><it><![CDATA[Punteggio:]]></it><se><![CDATA[Poäng:]]></se><pl><![CDATA[Wynik:]]></pl><ru><![CDATA[Счет:]]></ru><id><![CDATA[Skor:]]></id><ar><![CDATA[Score:]]></ar><jp><![CDATA[Score:]]></jp><cn><![CDATA[Score:]]></cn><es_mx><![CDATA[Puntuación:]]></es_mx><es_ar><![CDATA[Puntuación:]]></es_ar></textItem><textItem identifier="nextlevel"><en_us><![CDATA[Next Level]]></en_us><en_uk><![CDATA[Next Level]]></en_uk><nl><![CDATA[Volgend level]]></nl><fr><![CDATA[Niveau suivant]]></fr><de><![CDATA[Nächster Level]]></de><es><![CDATA[Siguiente nivel]]></es><br><![CDATA[Próxima Fase]]></br><pt><![CDATA[Nível seguinte]]></pt><it><![CDATA[Prossimo livello]]></it><se><![CDATA[Nästa nivå]]></se><pl><![CDATA[Następny poziom]]></pl><ru><![CDATA[Следующий уровень]]></ru><id><![CDATA[Level Berikutnya]]></id><ar><![CDATA[Next Level]]></ar><jp><![CDATA[Next Level]]></jp><cn><![CDATA[Next Level]]></cn><es_mx><![CDATA[Siguiente nivel]]></es_mx><es_ar><![CDATA[Siguiente nivel]]></es_ar></textItem><textItem identifier="levefail"><en_us><![CDATA[Level Failed]]></en_us><en_uk><![CDATA[Level Failed]]></en_uk><nl><![CDATA[Level mislukt]]></nl><fr><![CDATA[Niveau échoué]]></fr><de><![CDATA[Level fehlgeschlagen]]></de><es><![CDATA[Nivel fallido]]></es><br><![CDATA[Não Conseguiu]]></br><pt><![CDATA[Nível falhado]]></pt><it><![CDATA[Livello fallito]]></it><se><![CDATA[Nivå misslyckad]]></se><pl><![CDATA[Poziom nie został ukończony]]></pl><ru><![CDATA[Не вышло...]]></ru><id><![CDATA[Level Gagal]]></id><ar><![CDATA[Level Failed]]></ar><jp><![CDATA[Level Failed]]></jp><cn><![CDATA[Level Failed]]></cn><es_mx><![CDATA[Nivel fallido]]></es_mx><es_ar><![CDATA[Nivel fallido]]></es_ar></textItem><textItem identifier="tryagain"><en_us><![CDATA[Try Again]]></en_us><en_uk><![CDATA[Try Again]]></en_uk><nl><![CDATA[Opnieuw proberen]]></nl><fr><![CDATA[Réessayer]]></fr><de><![CDATA[Nochmal probieren]]></de><es><![CDATA[Volver a intentar]]></es><br><![CDATA[Tentar de Novo]]></br><pt><![CDATA[Tentar outra vez]]></pt><it><![CDATA[Riprova]]></it><se><![CDATA[Försök igen]]></se><pl><![CDATA[Spróbuj ponownie]]></pl><ru><![CDATA[Еще раз]]></ru><id><![CDATA[Coba Lagi]]></id><ar><![CDATA[Try Again]]></ar><jp><![CDATA[Try Again]]></jp><cn><![CDATA[Try Again]]></cn><es_mx><![CDATA[Volver a intentar]]></es_mx><es_ar><![CDATA[Volver a intentar]]></es_ar></textItem><textItem identifier="playagain"><en_us><![CDATA[Play Again]]></en_us><en_uk><![CDATA[Play Again]]></en_uk><nl><![CDATA[Opnieuw spelen]]></nl><fr><![CDATA[Rejouer]]></fr><de><![CDATA[Nochmal spielen]]></de><es><![CDATA[Volver a jugar]]></es><br><![CDATA[Jogar de Novo]]></br><pt><![CDATA[Jogar outra vez]]></pt><it><![CDATA[Rigioca]]></it><se><![CDATA[Spela igen]]></se><pl><![CDATA[Zagraj ponownie]]></pl><ru><![CDATA[Еще раз]]></ru><id><![CDATA[Main Lagi]]></id><ar><![CDATA[Play Again]]></ar><jp><![CDATA[Play Again]]></jp><cn><![CDATA[Play Again]]></cn><es_mx><![CDATA[Volver a jugar]]></es_mx><es_ar><![CDATA[Volver a jugar]]></es_ar></textItem><textItem identifier="cong"><en_us><![CDATA[Congrats!]]></en_us><en_uk><![CDATA[Congratulations!]]></en_uk><nl><![CDATA[Gefeliciteerd!]]></nl><fr><![CDATA[Félicitations !]]></fr><de><![CDATA[Glückwunsch!]]></de><es><![CDATA[¡Enhorabuena!]]></es><br><![CDATA[Parabéns!]]></br><pt><![CDATA[Parabéns!]]></pt><it><![CDATA[Complimenti!]]></it><se><![CDATA[Gratulerar!]]></se><pl><![CDATA[Gratulacje!]]></pl><ru><![CDATA[Поздравляем!]]></ru><id><![CDATA[Selamat]]></id><ar><![CDATA[Congrats!]]></ar><jp><![CDATA[Congrats!]]></jp><cn><![CDATA[Congrats!]]></cn><es_mx><![CDATA[¡Enhorabuena!]]></es_mx><es_ar><![CDATA[¡Enhorabuena!]]></es_ar></textItem><textItem identifier="gameover"><en_us><![CDATA[Game Over]]></en_us><en_uk><![CDATA[Game Over]]></en_uk><nl><![CDATA[Game over]]></nl><fr><![CDATA[Game over]]></fr><de><![CDATA[Game Over]]></de><es><![CDATA[Fin del juego]]></es><br><![CDATA[Acabou]]></br><pt><![CDATA[Acabou]]></pt><it><![CDATA[Gioco finito]]></it><se><![CDATA[Game over]]></se><pl><![CDATA[Koniec gry]]></pl><ru><![CDATA[Конец игры]]></ru><id><![CDATA[Game Tamat]]></id><ar><![CDATA[Game Over]]></ar><jp><![CDATA[Game Over]]></jp><cn><![CDATA[Game Over]]></cn><es_mx><![CDATA[Fin del juego]]></es_mx><es_ar><![CDATA[Fin del juego]]></es_ar></textItem><textItem identifier="totalscore"><en_us><![CDATA[Total Score:]]></en_us><en_uk><![CDATA[Total Score:]]></en_uk><nl><![CDATA[Totaalscore:]]></nl><fr><![CDATA[Score total :]]></fr><de><![CDATA[Gesamtpunkte:]]></de><es><![CDATA[Puntuación total:]]></es><br><![CDATA[Total de Pontos:]]></br><pt><![CDATA[Pontuação total:]]></pt><it><![CDATA[Punteggio totale:]]></it><se><![CDATA[Totalpoäng:]]></se><pl><![CDATA[Łączny wynik:]]></pl><ru><![CDATA[Общий счет:]]></ru><id><![CDATA[Total Skor:]]></id><ar><![CDATA[Total Score:]]></ar><jp><![CDATA[Total Score:]]></jp><cn><![CDATA[Total Score:]]></cn><es_mx><![CDATA[Puntuación total:]]></es_mx><es_ar><![CDATA[Puntuación total:]]></es_ar></textItem></LocalisedText>
;
SpilGame.importXMLv2(xmlData);
trace("Language Data Succesfully included");
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("kissing_in_the_cinema", PortalGroup.TEENS, "kissing_in_the_cinema.html", this, true);
btn_moregamesat.buttonMode = true;
btn_moregamesat.mouseEnabled = true;
btn_moregamesat.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
}
function frame5(){
stop();
}
function frame8(){
stop();
}
}
}//package kissing_in_the_cinema_fla
Section 13
//man_98 (kissing_in_the_cinema_fla.man_98)
package kissing_in_the_cinema_fla {
import flash.display.*;
import flash.events.*;
public dynamic class man_98 extends MovieClip {
public function man_98(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
dispatchEvent(new DataEvent("peopleNotWatching", true, true, String("girl_1_mc")));
}
function frame30(){
dispatchEvent(new DataEvent("peopleWatching", true, true, String("girl_1_mc")));
}
}
}//package kissing_in_the_cinema_fla
Section 14
//man_t2_97 (kissing_in_the_cinema_fla.man_t2_97)
package kissing_in_the_cinema_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
public dynamic class man_t2_97 extends MovieClip {
public function man_t2_97(){
addFrameScript(0, frame1, 2, frame3, 40, frame41);
}
function frame3(){
this["parent"].door_3_mc.gotoAndPlay(3);
}
function frame1(){
stop();
this["parent"].door_3_mc.gotoAndStop(1);
dispatchEvent(new DataEvent("peopleNotWatching", true, true, String("girl_3_mc")));
}
function frame41(){
dispatchEvent(new DataEvent("peopleWatching", true, true, String("girl_3_mc")));
}
}
}//package kissing_in_the_cinema_fla
Section 15
//man4_100 (kissing_in_the_cinema_fla.man4_100)
package kissing_in_the_cinema_fla {
import flash.display.*;
import flash.events.*;
public dynamic class man4_100 extends MovieClip {
public function man4_100(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
dispatchEvent(new DataEvent("peopleNotWatching", true, true, String("girl_2_mc")));
}
function frame30(){
dispatchEvent(new DataEvent("peopleWatching", true, true, String("girl_2_mc")));
}
}
}//package kissing_in_the_cinema_fla
Section 16
//nextLevelBtn_114 (kissing_in_the_cinema_fla.nextLevelBtn_114)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class nextLevelBtn_114 extends MovieClip {
public var __id4_:LocalizedTextField;
public function nextLevelBtn_114(){
__setProp___id4__nextLevelBtn_Layer2_1();
}
function __setProp___id4__nextLevelBtn_Layer2_1(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.text = "{nextlevel}";
__id4_.textColor = 0;
__id4_.textSize = 25;
__id4_.bold = true;
__id4_.disableWordwrap = false;
__id4_.embedFonts = false;
__id4_.font = "Arial";
__id4_.hAlign = "center";
__id4_.multiline = false;
__id4_.vAlign = "middle";
__id4_.antiAliasType = "advanced";
__id4_.glowBlur = 3;
__id4_.glowColor = 0;
__id4_.useGlowFilter = false;
__id4_.glowQuality = 1;
__id4_.glowStrength = 5;
__id4_.gridFitType = "pixel";
__id4_.italic = false;
__id4_.selectable = false;
__id4_.underline = false;
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 17
//playAgainBtn_79 (kissing_in_the_cinema_fla.playAgainBtn_79)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class playAgainBtn_79 extends MovieClip {
public var __id17_:LocalizedTextField;
public function playAgainBtn_79(){
__setProp___id17__playAgainBtn_Layer2_1();
}
function __setProp___id17__playAgainBtn_Layer2_1(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.text = "{playagain}";
__id17_.textColor = 0;
__id17_.textSize = 25;
__id17_.bold = true;
__id17_.disableWordwrap = false;
__id17_.embedFonts = false;
__id17_.font = "Arial";
__id17_.hAlign = "center";
__id17_.multiline = false;
__id17_.vAlign = "middle";
__id17_.antiAliasType = "advanced";
__id17_.glowBlur = 3;
__id17_.glowColor = 0;
__id17_.useGlowFilter = false;
__id17_.glowQuality = 1;
__id17_.glowStrength = 5;
__id17_.gridFitType = "pixel";
__id17_.italic = false;
__id17_.selectable = false;
__id17_.underline = false;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 18
//playBtn_90 (kissing_in_the_cinema_fla.playBtn_90)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class playBtn_90 extends MovieClip {
public var __id13_:LocalizedTextField;
public function playBtn_90(){
__setProp___id13__playBtn_Layer2_1();
}
function __setProp___id13__playBtn_Layer2_1(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.text = "{play}";
__id13_.textColor = 0;
__id13_.textSize = 25;
__id13_.bold = true;
__id13_.disableWordwrap = false;
__id13_.embedFonts = false;
__id13_.font = "Arial";
__id13_.hAlign = "center";
__id13_.multiline = false;
__id13_.vAlign = "middle";
__id13_.antiAliasType = "advanced";
__id13_.glowBlur = 3;
__id13_.glowColor = 0;
__id13_.useGlowFilter = false;
__id13_.glowQuality = 1;
__id13_.glowStrength = 5;
__id13_.gridFitType = "pixel";
__id13_.italic = false;
__id13_.selectable = false;
__id13_.underline = false;
try {
__id13_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 19
//startBtn_88 (kissing_in_the_cinema_fla.startBtn_88)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class startBtn_88 extends MovieClip {
public var __id11_:LocalizedTextField;
public function startBtn_88(){
__setProp___id11__startBtn_Layer2_1();
}
function __setProp___id11__startBtn_Layer2_1(){
try {
__id11_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id11_.text = "{startGame}";
__id11_.textColor = 0;
__id11_.textSize = 25;
__id11_.bold = true;
__id11_.disableWordwrap = false;
__id11_.embedFonts = false;
__id11_.font = "Arial";
__id11_.hAlign = "center";
__id11_.multiline = false;
__id11_.vAlign = "middle";
__id11_.antiAliasType = "advanced";
__id11_.glowBlur = 3;
__id11_.glowColor = 0;
__id11_.useGlowFilter = false;
__id11_.glowQuality = 1;
__id11_.glowStrength = 5;
__id11_.gridFitType = "pixel";
__id11_.italic = false;
__id11_.selectable = false;
__id11_.underline = false;
try {
__id11_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 20
//storyBtn_89 (kissing_in_the_cinema_fla.storyBtn_89)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class storyBtn_89 extends MovieClip {
public var __id12_:LocalizedTextField;
public function storyBtn_89(){
__setProp___id12__storyBtn_Layer2_1();
}
function __setProp___id12__storyBtn_Layer2_1(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.text = "{story}";
__id12_.textColor = 0;
__id12_.textSize = 25;
__id12_.bold = true;
__id12_.disableWordwrap = false;
__id12_.embedFonts = false;
__id12_.font = "Arial";
__id12_.hAlign = "center";
__id12_.multiline = false;
__id12_.vAlign = "middle";
__id12_.antiAliasType = "advanced";
__id12_.glowBlur = 3;
__id12_.glowColor = 0;
__id12_.useGlowFilter = false;
__id12_.glowQuality = 1;
__id12_.glowStrength = 5;
__id12_.gridFitType = "pixel";
__id12_.italic = false;
__id12_.selectable = false;
__id12_.underline = false;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 21
//Symbol19_108 (kissing_in_the_cinema_fla.Symbol19_108)
package kissing_in_the_cinema_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol19_108 extends MovieClip {
public var kissBarMc:SimpleButton;
public function Symbol19_108(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
stop();
}
function frame45(){
stop();
dispatchEvent(new DataEvent("levelComplete", true, true, String("nextLevel")));
}
}
}//package kissing_in_the_cinema_fla
Section 22
//Symbol2_83 (kissing_in_the_cinema_fla.Symbol2_83)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class Symbol2_83 extends MovieClip {
public var __id18_:LocalizedTextField;
public var __id19_:LocalizedTextField;
public function Symbol2_83(){
__setProp___id18__Symbol2_Layer2_1();
__setProp___id19__Symbol2_Layer2_1();
}
function __setProp___id19__Symbol2_Layer2_1(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.text = "{gameover}";
__id19_.textColor = 0xFFFFFF;
__id19_.textSize = 40;
__id19_.bold = true;
__id19_.disableWordwrap = false;
__id19_.embedFonts = false;
__id19_.font = "Arial";
__id19_.hAlign = "center";
__id19_.multiline = false;
__id19_.vAlign = "middle";
__id19_.antiAliasType = "advanced";
__id19_.glowBlur = 3;
__id19_.glowColor = 0;
__id19_.useGlowFilter = false;
__id19_.glowQuality = 1;
__id19_.glowStrength = 5;
__id19_.gridFitType = "pixel";
__id19_.italic = false;
__id19_.selectable = false;
__id19_.underline = false;
try {
__id19_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id18__Symbol2_Layer2_1(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.text = "{cong}";
__id18_.textColor = 0xFFFFFF;
__id18_.textSize = 40;
__id18_.bold = true;
__id18_.disableWordwrap = false;
__id18_.embedFonts = false;
__id18_.font = "Arial";
__id18_.hAlign = "center";
__id18_.multiline = false;
__id18_.vAlign = "middle";
__id18_.antiAliasType = "advanced";
__id18_.glowBlur = 3;
__id18_.glowColor = 0;
__id18_.useGlowFilter = false;
__id18_.glowQuality = 1;
__id18_.glowStrength = 5;
__id18_.gridFitType = "pixel";
__id18_.italic = false;
__id18_.selectable = false;
__id18_.underline = false;
try {
__id18_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 23
//Symbol3_99 (kissing_in_the_cinema_fla.Symbol3_99)
package kissing_in_the_cinema_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol3_99 extends MovieClip {
public function Symbol3_99(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
dispatchEvent(new DataEvent("peopleNotWatching", true, true, String("girl_4_mc")));
}
function frame30(){
dispatchEvent(new DataEvent("peopleWatching", true, true, String("girl_4_mc")));
}
}
}//package kissing_in_the_cinema_fla
Section 24
//title_85 (kissing_in_the_cinema_fla.title_85)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class title_85 extends MovieClip {
public var __id9_:LocalizedTextField;
public function title_85(){
__setProp___id9__title_Layer3_1();
}
function __setProp___id9__title_Layer3_1(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.text = "{title}";
__id9_.textColor = 0xFFFFFF;
__id9_.textSize = 50;
__id9_.bold = true;
__id9_.disableWordwrap = false;
__id9_.embedFonts = false;
__id9_.font = "Arial";
__id9_.hAlign = "center";
__id9_.multiline = true;
__id9_.vAlign = "top";
__id9_.antiAliasType = "advanced";
__id9_.glowBlur = 3;
__id9_.glowColor = 0;
__id9_.useGlowFilter = false;
__id9_.glowQuality = 1;
__id9_.glowStrength = 5;
__id9_.gridFitType = "pixel";
__id9_.italic = false;
__id9_.selectable = false;
__id9_.underline = false;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 25
//tryAgainBtn_124 (kissing_in_the_cinema_fla.tryAgainBtn_124)
package kissing_in_the_cinema_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class tryAgainBtn_124 extends MovieClip {
public var __id1_:LocalizedTextField;
public function tryAgainBtn_124(){
__setProp___id1__tryAgainBtn_Layer2_1();
}
function __setProp___id1__tryAgainBtn_Layer2_1(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.text = "{tryagain}";
__id1_.textColor = 0;
__id1_.textSize = 25;
__id1_.bold = true;
__id1_.disableWordwrap = false;
__id1_.embedFonts = false;
__id1_.font = "Arial";
__id1_.hAlign = "center";
__id1_.multiline = false;
__id1_.vAlign = "middle";
__id1_.antiAliasType = "advanced";
__id1_.glowBlur = 3;
__id1_.glowColor = 0;
__id1_.useGlowFilter = false;
__id1_.glowQuality = 1;
__id1_.glowStrength = 5;
__id1_.gridFitType = "pixel";
__id1_.italic = false;
__id1_.selectable = false;
__id1_.underline = false;
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kissing_in_the_cinema_fla
Section 26
//tt_96 (kissing_in_the_cinema_fla.tt_96)
package kissing_in_the_cinema_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
public dynamic class tt_96 extends MovieClip {
public function tt_96(){
addFrameScript(0, frame1, 2, frame3, 38, frame39);
}
function frame3(){
this["parent"].door_5_mc.gotoAndPlay(3);
}
function frame1(){
stop();
dispatchEvent(new DataEvent("peopleNotWatching", true, true, String("girl_5_mc")));
this["parent"].door_5_mc.gotoAndStop(1);
}
function frame39(){
dispatchEvent(new DataEvent("peopleWatching", true, true, String("girl_5_mc")));
}
}
}//package kissing_in_the_cinema_fla
Section 27
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var useGoogleAnalitics:Boolean;// = true
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 portalGroup:uint;
public var emailLink:String;// = "game"
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");
public function Brand(){
moreLink = "";
emailLink = "game";
useGoogleAnalitics = true;
hasSendToFriendLink = true;
preferedLanguage = "";
isExternal = false;
hostingDomain = "";
super();
}
public function exportXML():XML{
var _local1:XML;
var _local2:XML;
var _local3:XML;
_local1 = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
_local2 = <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);
}
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;
_local5 = ("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);
}
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String;
_local6 = ("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_term():String{
return ("utm_term=");
}
public function importXML(_arg1:XMLNode):void{
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
var _local5:String;
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
_local5 = ("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{
var _local2:Array;
if (!_arg1){
return ("");
};
_local2 = _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 28
//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 29
//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 _local1:Array;
var _local2:Brand;
_local1 = 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 _local1:XML;
var _local2:Brand;
_local1 = <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 30
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var references:Array;
public var name:String;
public var embedInputFonts:Boolean;// = true
public var forceFont:String;// = null
public var id:uint;
public var portal_groups:Array;
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){
embedFonts = true;
embedInputFonts = true;
forceFont = null;
references = [];
displayName = "";
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function exportXML():XMLNode{
var _local1:XMLNode;
var _local2:XMLNode;
var _local3:Array;
var _local4:Array;
var _local5:int;
_local1 = 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;
_local2 = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
_local3 = [];
_local4 = PortalGroup.channelNames;
_local5 = 0;
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 31
//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 _local1:Array;
var _local2:XMLNode;
var _local3:Language;
_local1 = getLanguagesArray();
_local2 = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
public static function getLanguagesArray():Array{
var _local1:Array;
var _local2:Object;
var _local3:Language;
_local1 = new Array();
_local2 = 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 32
//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 mc:MovieClip;
private var popup:MovieClip;
private var languageName_text:TextField;
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);
}
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);
};
}
public function init():void{
var _local1:Array;
var _local2:int;
var _local3:MovieClip;
var _local4:Language;
trace("initselectbox");
_local1 = 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);
_local2 = 0;
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 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;
};
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
}
}//package spill.localisation
Section 33
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var flag:MovieClip;
public var languageName_text:TextField;
}
}//package spill.localisation
Section 34
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_se:MovieClip;
public var l_ar:MovieClip;
public var l_br:MovieClip;
public var l_in:MovieClip;
public var l_cn:MovieClip;
public var l_de:MovieClip;
public var l_es_mx:MovieClip;
public var l_es:MovieClip;
public var l_en_uk:MovieClip;
public var l_fr:MovieClip;
public var l_en_us:MovieClip;
public var l_pl:MovieClip;
public var l_pt:MovieClip;
public var l_nl:MovieClip;
public var l_id:MovieClip;
public var l_es_ar:MovieClip;
public var l_it:MovieClip;
public var l_jp:MovieClip;
public var l_ru:MovieClip;
}
}//package spill.localisation
Section 35
//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 languageChanged(_arg1:Event):void{
text = originalText;
updateProperties();
}
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 removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function replaceFn():String{
var _local2:String;
_local2 = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
text = originalText;
}
}
}//package spill.localisation
Section 36
//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 _local1:XMLNode;
var _local2:int;
var _local3:XMLNode;
_local1 = new XMLNode(1, "channels");
_local2 = 0;
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 37
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 38
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.net.*;
import flash.ui.*;
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:String;
_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;
_local2 = (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;
_local2 = 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;
_local2 = 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;
_local2 = 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;
_local2 = 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;
_local1 = <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 _local1:Array;
var _local2:String;
var _local3:Brand;
_local1 = Brandings.getBrandsArray();
_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;
_local2 = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function get isStagingDomain():Boolean{
var _local1:String;
_local1 = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject;
var _local2:String;
_local1 = SharedObject.getLocal(cookieName, cookiePath);
_local2 = 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 39
//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 40
//TextFieldFit (spill.localisation.TextFieldFit)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.utils.*;
import flash.filters.*;
public class TextFieldFit extends MovieClip {
protected var _text:String;// = "default"
protected var _textSize:Number;// = 12
protected var _embedFonts:Boolean;// = true
protected var _glowColor:uint;// = 0
private var h:Number;
protected var _antiAliasType:String;// = "advanced"
private var w:Number;
protected var _useGlowFilter:Boolean;// = false
protected var _hAlign:String;// = "left"
protected var _textColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowBlur:Number;// = 3
private var field:TextField;
protected var _gridFitType:String;// = "pixel"
protected var _glowQuality:Number;// = 1
private var debugBounding:Sprite;
protected var _disableWordwrap:Boolean;// = false
protected var _multiline:Boolean;// = false
protected var _font:String;// = ""
protected var _underline:Boolean;// = false
protected var _vAlign:String;// = "top"
protected var _italic:Boolean;// = false
protected var _bold:Boolean;// = false
private var sizeChanged:Boolean;// = true
private var embeddedFonts:Array;
protected var _selectable:Boolean;// = false
private var format:TextFormat;
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;
var _local2:Number;
var _local3:Number;
sizeChanged = true;
valid = true;
_text = "default";
_textColor = 0;
_textSize = 12;
_multiline = false;
_disableWordwrap = false;
_hAlign = "left";
_vAlign = "top";
_bold = false;
_underline = false;
_italic = false;
_selectable = false;
_font = "";
_embedFonts = true;
_antiAliasType = "advanced";
_gridFitType = "pixel";
_useGlowFilter = false;
_glowBlur = 3;
_glowColor = 0;
_glowStrength = 5;
_glowQuality = 1;
super();
_local1 = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
_local2 = width;
_local3 = 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 get italic():Boolean{
return (_italic);
}
public function get textColor():uint{
return (_textColor);
}
public function get vAlign():String{
return (_vAlign);
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function get selectable():Boolean{
return (_selectable);
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
public function get bold():Boolean{
return (_bold);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
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 set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function get gridFitType():String{
return (_gridFitType);
}
public function get underline():Boolean{
return (_underline);
}
public function get textSize():Number{
return (_textSize);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _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);
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function get text():String{
return (_text);
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
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 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 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 textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function get textField():TextField{
return (field);
}
public function get glowColor():uint{
return (_glowColor);
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
}
}//package spill.localisation
Section 41
//audio_mc (audio_mc)
package {
import flash.display.*;
public dynamic class audio_mc extends MovieClip {
public function audio_mc(){
addFrameScript(1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 42
//game_complete (game_complete)
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.net.*;
public dynamic class game_complete extends MovieClip {
public var playAgainBtn:MovieClip;
public var btn_moregamesat:BrandingLogo;
public var scoreTxt:TextField;
public var __id16_:LocalizedTextField;
public function game_complete(){
addFrameScript(0, frame1);
__setProp___id16__game_complete_Layer10_1();
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
function __setProp___id16__game_complete_Layer10_1(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.text = "{totalscore}";
__id16_.textColor = 0xFFFF00;
__id16_.textSize = 28;
__id16_.bold = true;
__id16_.disableWordwrap = false;
__id16_.embedFonts = false;
__id16_.font = "Arial";
__id16_.hAlign = "right";
__id16_.multiline = false;
__id16_.vAlign = "middle";
__id16_.antiAliasType = "advanced";
__id16_.glowBlur = 5;
__id16_.glowColor = 0;
__id16_.useGlowFilter = false;
__id16_.glowQuality = 1;
__id16_.glowStrength = 5;
__id16_.gridFitType = "pixel";
__id16_.italic = false;
__id16_.selectable = false;
__id16_.underline = false;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
btn_moregamesat.buttonMode = true;
btn_moregamesat.mouseEnabled = true;
btn_moregamesat.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
}
}
}//package
Section 43
//gamePanel (gamePanel)
package {
import flash.display.*;
import flash.text.*;
import spill.localisation.*;
public dynamic class gamePanel extends MovieClip {
public var time_txt:TextField;
public var __id6_:LocalizedTextField;
public var __id5_:LocalizedTextField;
public var __id7_:LocalizedTextField;
public var levelTxt:TextField;
public var __id8_:LocalizedTextField;
public var life_mc:MovieClip;
public var kissMeterMc:MovieClip;
public function gamePanel(){
__setProp___id7__gamePanel_Layer3_1();
__setProp___id6__gamePanel_Layer3_1();
__setProp___id5__gamePanel_Layer3_1();
__setProp___id8__gamePanel_Layer3_1();
}
function __setProp___id8__gamePanel_Layer3_1(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.text = "{life}";
__id8_.textColor = 9096959;
__id8_.textSize = 13;
__id8_.bold = true;
__id8_.disableWordwrap = false;
__id8_.embedFonts = false;
__id8_.font = "Arial";
__id8_.hAlign = "right";
__id8_.multiline = false;
__id8_.vAlign = "middle";
__id8_.antiAliasType = "advanced";
__id8_.glowBlur = 3;
__id8_.glowColor = 0;
__id8_.useGlowFilter = false;
__id8_.glowQuality = 1;
__id8_.glowStrength = 5;
__id8_.gridFitType = "pixel";
__id8_.italic = false;
__id8_.selectable = false;
__id8_.underline = false;
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id6__gamePanel_Layer3_1(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.text = "{timer}";
__id6_.textColor = 9096959;
__id6_.textSize = 13;
__id6_.bold = true;
__id6_.disableWordwrap = false;
__id6_.embedFonts = false;
__id6_.font = "Arial";
__id6_.hAlign = "right";
__id6_.multiline = false;
__id6_.vAlign = "middle";
__id6_.antiAliasType = "advanced";
__id6_.glowBlur = 3;
__id6_.glowColor = 0;
__id6_.useGlowFilter = false;
__id6_.glowQuality = 1;
__id6_.glowStrength = 5;
__id6_.gridFitType = "pixel";
__id6_.italic = false;
__id6_.selectable = false;
__id6_.underline = false;
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id7__gamePanel_Layer3_1(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.text = "{progress}";
__id7_.textColor = 9096959;
__id7_.textSize = 13;
__id7_.bold = true;
__id7_.disableWordwrap = false;
__id7_.embedFonts = false;
__id7_.font = "Arial";
__id7_.hAlign = "right";
__id7_.multiline = false;
__id7_.vAlign = "middle";
__id7_.antiAliasType = "advanced";
__id7_.glowBlur = 3;
__id7_.glowColor = 0;
__id7_.useGlowFilter = false;
__id7_.glowQuality = 1;
__id7_.glowStrength = 5;
__id7_.gridFitType = "pixel";
__id7_.italic = false;
__id7_.selectable = false;
__id7_.underline = false;
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id5__gamePanel_Layer3_1(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.text = "{level}";
__id5_.textColor = 9096959;
__id5_.textSize = 13;
__id5_.bold = true;
__id5_.disableWordwrap = false;
__id5_.embedFonts = false;
__id5_.font = "Arial";
__id5_.hAlign = "right";
__id5_.multiline = false;
__id5_.vAlign = "middle";
__id5_.antiAliasType = "advanced";
__id5_.glowBlur = 3;
__id5_.glowColor = 0;
__id5_.useGlowFilter = false;
__id5_.glowQuality = 1;
__id5_.glowStrength = 5;
__id5_.gridFitType = "pixel";
__id5_.italic = false;
__id5_.selectable = false;
__id5_.underline = false;
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 44
//Intro_mc (Intro_mc)
package {
import flash.display.*;
import flash.events.*;
import spill.localisation.*;
import flash.utils.*;
import flash.net.*;
public dynamic class Intro_mc extends MovieClip {
public var backBtn:MovieClip;
public var storyBtn:MovieClip;
public var closeBtn:SimpleButton;
public var __setPropDict:Dictionary;
public var btn_moregamesat:BrandingLogo;
public var startBtn:MovieClip;
public var playBtn:MovieClip;
public var __id15_:LocalizedTextField;
public function Intro_mc(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 4, frame5, 7, frame8, 2, frame3, 3, frame4, 5, frame6, 6, frame7);
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
function frame3(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 3)) && ((int(__setPropDict[__id15_]) <= 8))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Intro_mc_Layer25_3();
};
}
function frame6(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 3)) && ((int(__setPropDict[__id15_]) <= 8))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Intro_mc_Layer25_3();
};
}
function frame7(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 3)) && ((int(__setPropDict[__id15_]) <= 8))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Intro_mc_Layer25_3();
};
}
function frame1(){
stop();
btn_moregamesat.buttonMode = true;
btn_moregamesat.mouseEnabled = true;
btn_moregamesat.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
}
function frame4(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 3)) && ((int(__setPropDict[__id15_]) <= 8))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Intro_mc_Layer25_3();
};
}
function frame5(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 3)) && ((int(__setPropDict[__id15_]) <= 8))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Intro_mc_Layer25_3();
};
stop();
}
function frame8(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 3)) && ((int(__setPropDict[__id15_]) <= 8))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Intro_mc_Layer25_3();
};
gotoAndStop(2);
}
function __setProp___id15__Intro_mc_Layer25_3(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.text = "{ins}";
__id15_.textColor = 0;
__id15_.textSize = 13;
__id15_.bold = false;
__id15_.disableWordwrap = false;
__id15_.embedFonts = false;
__id15_.font = "Verdana";
__id15_.hAlign = "center";
__id15_.multiline = true;
__id15_.vAlign = "top";
__id15_.antiAliasType = "advanced";
__id15_.glowBlur = 3;
__id15_.glowColor = 0;
__id15_.useGlowFilter = false;
__id15_.glowQuality = 1;
__id15_.glowStrength = 5;
__id15_.gridFitType = "pixel";
__id15_.italic = false;
__id15_.selectable = false;
__id15_.underline = false;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 45
//level_1_mc (level_1_mc)
package {
import flash.display.*;
public dynamic class level_1_mc extends MovieClip {
public var door_3_mc:MovieClip;
public var girl_1_mc:MovieClip;
public var girl_4_mc:MovieClip;
public var girl_2_mc:MovieClip;
public var girl_5_mc:MovieClip;
public var door_5_mc:MovieClip;
public var kissing_couple_mc:MovieClip;
public var girl_3_mc:MovieClip;
}
}//package
Section 46
//level_2_mc (level_2_mc)
package {
import flash.display.*;
public dynamic class level_2_mc extends MovieClip {
public var door_3_mc:MovieClip;
public var girl_1_mc:MovieClip;
public var girl_4_mc:MovieClip;
public var girl_2_mc:MovieClip;
public var girl_5_mc:MovieClip;
public var door_5_mc:MovieClip;
public var kissing_couple_mc:MovieClip;
public var girl_3_mc:MovieClip;
}
}//package
Section 47
//level_3_mc (level_3_mc)
package {
import flash.display.*;
public dynamic class level_3_mc extends MovieClip {
public var door_3_mc:MovieClip;
public var girl_1_mc:MovieClip;
public var girl_4_mc:MovieClip;
public var girl_2_mc:MovieClip;
public var girl_5_mc:MovieClip;
public var door_5_mc:MovieClip;
public var kissing_couple_mc:MovieClip;
public var girl_3_mc:MovieClip;
}
}//package
Section 48
//level_4_mc (level_4_mc)
package {
import flash.display.*;
public dynamic class level_4_mc extends MovieClip {
public var door_3_mc:MovieClip;
public var girl_1_mc:MovieClip;
public var girl_4_mc:MovieClip;
public var girl_2_mc:MovieClip;
public var girl_5_mc:MovieClip;
public var door_5_mc:MovieClip;
public var kissing_couple_mc:MovieClip;
public var girl_3_mc:MovieClip;
}
}//package
Section 49
//level_complete (level_complete)
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.net.*;
public dynamic class level_complete extends MovieClip {
public var nextLevelBtn:MovieClip;
public var btn_moregamesat:BrandingLogo;
public var __id2_:LocalizedTextField;
public var scoreTxt:TextField;
public var __id3_:LocalizedTextField;
public function level_complete(){
addFrameScript(0, frame1);
__setProp___id2__level_complete_Layer12_1();
__setProp___id3__level_complete_Layer11_1();
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
function frame1(){
stop();
btn_moregamesat.buttonMode = true;
btn_moregamesat.mouseEnabled = true;
btn_moregamesat.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
}
function __setProp___id2__level_complete_Layer12_1(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.text = "{score}";
__id2_.textColor = 0;
__id2_.textSize = 27;
__id2_.bold = true;
__id2_.disableWordwrap = false;
__id2_.embedFonts = false;
__id2_.font = "Arial";
__id2_.hAlign = "right";
__id2_.multiline = false;
__id2_.vAlign = "middle";
__id2_.antiAliasType = "advanced";
__id2_.glowBlur = 3;
__id2_.glowColor = 0;
__id2_.useGlowFilter = false;
__id2_.glowQuality = 1;
__id2_.glowStrength = 5;
__id2_.gridFitType = "pixel";
__id2_.italic = false;
__id2_.selectable = false;
__id2_.underline = false;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id3__level_complete_Layer11_1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.text = "{levelcomplete}";
__id3_.textColor = 0;
__id3_.textSize = 35;
__id3_.bold = true;
__id3_.disableWordwrap = false;
__id3_.embedFonts = false;
__id3_.font = "Arial";
__id3_.hAlign = "center";
__id3_.multiline = true;
__id3_.vAlign = "middle";
__id3_.antiAliasType = "advanced";
__id3_.glowBlur = 3;
__id3_.glowColor = 0;
__id3_.useGlowFilter = false;
__id3_.glowQuality = 1;
__id3_.glowStrength = 5;
__id3_.gridFitType = "pixel";
__id3_.italic = false;
__id3_.selectable = false;
__id3_.underline = false;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 50
//try_again (try_again)
package {
import flash.display.*;
import flash.events.*;
import spill.localisation.*;
import flash.net.*;
public dynamic class try_again extends MovieClip {
public var btn_moregamesat:BrandingLogo;
public var __id0_:LocalizedTextField;
public var tryAgainBtn:MovieClip;
public function try_again(){
addFrameScript(0, frame1);
__setProp___id0__try_again_Layer13_1();
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
function frame1(){
stop();
btn_moregamesat.buttonMode = true;
btn_moregamesat.mouseEnabled = true;
btn_moregamesat.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
}
function __setProp___id0__try_again_Layer13_1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.text = "{levefail}";
__id0_.textColor = 0;
__id0_.textSize = 35;
__id0_.bold = true;
__id0_.disableWordwrap = false;
__id0_.embedFonts = false;
__id0_.font = "Arial";
__id0_.hAlign = "center";
__id0_.multiline = true;
__id0_.vAlign = "middle";
__id0_.antiAliasType = "advanced";
__id0_.glowBlur = 3;
__id0_.glowColor = 0;
__id0_.useGlowFilter = false;
__id0_.glowQuality = 1;
__id0_.glowStrength = 5;
__id0_.gridFitType = "pixel";
__id0_.italic = false;
__id0_.selectable = false;
__id0_.underline = false;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package