Section 1
//CD_VO_Loading (CD_VO_Loading)
package {
import flash.media.*;
public dynamic class CD_VO_Loading extends Sound {
}
}//package
Section 2
//pre (pre)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.text.*;
import flash.geom.*;
public class pre extends MovieClip {
var ldr:Loader;
var theStage;
var clientWebsite:String;// = "http://www.creaturediscomforts.org/"
var preloader:Preloader;
var clientName:String;// = "Leonard Cheshire Disability"
public function pre(){
var _local1:String;
var _local2:URLRequest;
preloader = new Preloader();
ldr = new Loader();
clientName = "Leonard Cheshire Disability";
clientWebsite = "http://www.creaturediscomforts.org/";
super();
Security.allowDomain("http://creature.s15310919.onlinehome-server.info");
createCustomMenu();
preloader.x = 450;
preloader.y = 230;
addChild(preloader);
theStage = stage;
_local1 = "http://creature.s15310919.onlinehome-server.info/millie/CD_Millie.swf";
_local2 = new URLRequest(_local1);
ldr.load(_local2);
ldr.contentLoaderInfo.addEventListener(Event.INIT, loadGameInit);
ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
}
function loadComplete(_arg1):void{
addChild(_arg1);
removeChild(preloader);
ldr.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, showProgress);
ldr.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
addRubberRepublicTracker();
}
function visitMCM(_arg1:ContextMenuEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.mcmnet.co.uk/");
navigateToURL(_local2, "_blank");
}
private function addRubberRepublicTracker():void{
var _local1:Object;
var _local2:*;
var _local3:URLRequest;
var _local4:Loader;
_local1 = this.root.loaderInfo.parameters;
_local2 = ("?referrer=" + _local1["referrer"]);
_local3 = new URLRequest(("http://viral.s3.amazonaws.com/tracking/mcm_tracker_02.swf" + _local2));
_local4 = new Loader();
_local4.load(_local3);
addChild(_local4);
}
function showProgress(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = Math.round(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100));
preloader.gotoAndStop(_local2);
if (_local2 >= 99){
loadComplete(ldr);
};
}
function loadGameInit(_arg1:Event){
}
private function debugTrace(_arg1):void{
}
function onIOError(_arg1:IOErrorEvent):void{
trace(_arg1);
}
private function createCustomMenu():void{
var _local1:ContextMenu;
var _local2:Date;
var _local3:ContextMenuBuiltInItems;
var _local4:ContextMenuItem;
var _local5:*;
_local2 = new Date();
_local1 = new ContextMenu();
_local1.hideBuiltInItems();
_local3 = _local1.builtInItems;
_local3.print = true;
_local4 = new ContextMenuItem(((("© " + String(_local2.getFullYear())) + " ") + clientName));
_local1.customItems.push(_local4);
_local4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, visitClientWebsite);
_local5 = new ContextMenuItem("Game by MCM Net Ltd");
_local1.customItems.push(_local5);
_local5.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, visitMCM);
contextMenu = _local1;
}
function visitClientWebsite(_arg1:ContextMenuEvent){
var _local2:URLRequest;
_local2 = new URLRequest(clientWebsite);
navigateToURL(_local2, "_blank");
}
}
}//package
Section 3
//Preloader (Preloader)
package {
import flash.display.*;
public dynamic class Preloader extends MovieClip {
public function Preloader(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package