Section 1
//CosmoShipAnim_49 (CivilizationQuest_old_fla.CosmoShipAnim_49)
package CivilizationQuest_old_fla {
import flash.display.*;
public dynamic class CosmoShipAnim_49 extends MovieClip {
public var Fire:MovieClip;
public function CosmoShipAnim_49(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package CivilizationQuest_old_fla
Section 2
//HumanAnim_53 (CivilizationQuest_old_fla.HumanAnim_53)
package CivilizationQuest_old_fla {
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class HumanAnim_53 extends MovieClip {
public function HumanAnim_53(){
addFrameScript(0, frame1, 12, frame13, 29, frame30, 30, frame31);
}
function frame1(){
stop();
}
function frame13(){
gotoAndPlay("Attack");
}
function frame30(){
main.m_main.Game.Mamont.play();
main.m_main.Game.Cloud.play();
}
function frame31(){
stop();
}
}
}//package CivilizationQuest_old_fla
Section 3
//Baby (gui.Baby)
package gui {
public dynamic class Baby extends Object_Base {
public function Baby(){
addFrameScript(0, frame1, 19, frame20);
m_item_name = "BabyItem";
b_hide = true;
b_valid = false;
}
public function Action(){
return (false);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package gui
Section 4
//Car (gui.Car)
package gui {
import flash.net.*;
import flash.events.*;
public dynamic class Car extends Object_Base {
public function Car(){
addFrameScript(0, frame1, 29, frame30, 59, frame60, 89, frame90, 90, frame91);
visible = false;
b_valid = false;
}
public function Action(){
if (main.m_item.m_name == "WheelItem"){
play();
main.RemoveObject(this);
return (true);
};
return (false);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
function frame60(){
main.m_main.Game.CosmoShip.play();
}
function frame90(){
stop();
}
function frame91(){
stop();
}
}
}//package gui
Section 5
//Cloud (gui.Cloud)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class Cloud extends Object_Base {
public var CloudAnim:MovieClip;
public function Cloud(){
addFrameScript(0, frame1, 44, frame45);
m_item_name = "FlashItem";
}
public function Action(){
return (false);
}
public function GetItem(){
this.CloudAnim.FlashImg.visible = false;
}
public function PutItem(){
this.CloudAnim.FlashImg.visible = true;
}
function frame1(){
stop();
}
function frame45(){
stop();
}
}
}//package gui
Section 6
//CosmoMan (gui.CosmoMan)
package gui {
import flash.display.*;
public dynamic class CosmoMan extends Object_Base {
public var Selector:MovieClip;
public var Man:MovieClip;
public function CosmoMan(){
m_item_name = "CosmoManItem";
}
public function Action(){
return (false);
}
public function GetItem(){
this.Man.visible = false;
}
public function PutItem(){
this.Man.visible = true;
}
}
}//package gui
Section 7
//CosmoShip (gui.CosmoShip)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class CosmoShip extends Object_Base {
public var CSA:MovieClip;
public function CosmoShip(){
addFrameScript(0, frame1, 31, frame32, 32, frame33, 79, frame80);
this.b_enabled = false;
this.CSA.Fire.visible = false;
}
public function Action(){
if (main.m_item.m_name == "CosmoManItem"){
main.RemoveObject(this);
main.m_main.Game.Car.play();
play();
return (true);
};
return (false);
}
function frame1(){
stop();
}
function frame32(){
stop();
this.b_enabled = true;
}
function frame33(){
this.CSA.Fire.visible = true;
}
function frame80(){
stop();
this.CSA.Fire.visible = false;
this.CSA.play();
}
}
}//package gui
Section 8
//Dino (gui.Dino)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class Dino extends Object_Base {
public var Selector:MovieClip;
public function Dino(){
addFrameScript(0, frame1, 29, frame30);
}
public function Action(){
if (main.m_item.m_name == "DinoFood"){
play();
main.RemoveObject(this);
main.EnableObject("Pika");
main.m_main.Game.Human.play();
main.m_main.Game.Tutorial1.visible = false;
return (true);
};
return (false);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package gui
Section 9
//Factory (gui.Factory)
package gui {
import flash.net.*;
import flash.events.*;
public dynamic class Factory extends Object_Base {
public function Factory(){
addFrameScript(0, frame1, 29, frame30);
}
public function Action(){
if (main.m_item.m_name == "BookItem"){
play();
main.m_main.Game.Car.play();
main.m_main.Game.Car.visible = true;
main.m_main.Game.Car.b_valid = true;
main.RemoveObject(this);
return (true);
};
return (false);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package gui
Section 10
//HelpSystem (gui.HelpSystem)
package gui {
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
public dynamic class HelpSystem extends MovieClip {
public var TText:TextField;
public var BG:MovieClip;
var m_names;
var m_current;// = 0
public function HelpSystem(){
m_names = new Array();
super();
addEventListener(Event.ENTER_FRAME, Update);
this.visible = false;
m_names.push({m_obj:"Dino", m_name:"Hungry dinosaur"});
m_names.push({m_obj:"Paporotnik", m_name:"Fern"});
m_names.push({m_obj:"Mamont", m_name:"Mammoth"});
m_names.push({m_obj:"Human", m_name:"Human"});
m_names.push({m_obj:"Pika", m_name:"Pike"});
m_names.push({m_obj:"Cloud", m_name:"Thundercloud"});
m_names.push({m_obj:"Koster", m_name:"Bonfire"});
m_names.push({m_obj:"Ruda", m_name:"Golden ore"});
m_names.push({m_obj:"Key", m_name:"Key"});
m_names.push({m_obj:"Sunduk", m_name:"Chest"});
m_names.push({m_obj:"Ring", m_name:"Ring"});
m_names.push({m_obj:"Tower", m_name:"Princess in the tower"});
m_names.push({m_obj:"Knight", m_name:"Knight"});
m_names.push({m_obj:"Baby", m_name:"Baby"});
m_names.push({m_obj:"Tree", m_name:"Apple-tree"});
m_names.push({m_obj:"Newton", m_name:"Scientist"});
m_names.push({m_obj:"Factory", m_name:"Factory"});
m_names.push({m_obj:"Car", m_name:"Car"});
m_names.push({m_obj:"Wheel", m_name:"Wheel"});
m_names.push({m_obj:"CosmoMan", m_name:"Spaceman"});
m_names.push({m_obj:"CosmoShip", m_name:"Spaceship"});
}
function Update(_arg1){
var _local2:*;
if (((main.m_over) && (!((m_current == main.m_over))))){
m_current = main.m_over;
this.visible = true;
this.TText.text = m_current.name;
for each (_local2 in m_names) {
if (_local2.m_obj == m_current.name){
this.TText.text = _local2.m_name;
this.BG.width = (this.TText.textWidth + 30);
};
};
};
if (!main.m_over){
this.visible = false;
m_current = 0;
} else {
x = main.m_main.mouseX;
y = main.m_main.mouseY;
};
}
}
}//package gui
Section 11
//Human (gui.Human)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class Human extends Object_Base {
public var HumanAnim:MovieClip;
public function Human(){
addFrameScript(0, frame1, 27, frame28);
}
public function Action(){
if (main.m_item.m_name == "PikaItem"){
trace("Pika");
this.HumanAnim.gotoAndPlay("Kill");
main.RemoveObject(this);
main.RemoveObject(main.m_main.Game.Mamont);
return (true);
};
return (false);
}
function frame1(){
stop();
}
function frame28(){
stop();
this.HumanAnim.play();
}
}
}//package gui
Section 12
//Key (gui.Key)
package gui {
import flash.display.*;
public dynamic class Key extends Object_Base {
public var Selector:MovieClip;
public function Key(){
m_item_name = "KeyItem";
b_hide = true;
b_valid = false;
visible = false;
}
public function Action(){
return (false);
}
}
}//package gui
Section 13
//Knight (gui.Knight)
package gui {
import flash.net.*;
import flash.events.*;
public dynamic class Knight extends Object_Base {
public function Knight(){
addFrameScript(0, frame1, 29, frame30);
}
public function Action(){
if (main.m_item.m_name == "RingItem"){
play();
main.RemoveObject(this);
main.RemoveObject(main.m_main.Game.Tower);
return (true);
};
return (false);
}
function frame1(){
stop();
}
function frame30(){
stop();
main.m_main.Game.Tower.play();
}
}
}//package gui
Section 14
//Koster (gui.Koster)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class Koster extends Object_Base {
public var Fire:MovieClip;
public var Selector:MovieClip;
public function Koster(){
this.Fire.visible = false;
}
public function Action(){
if (main.m_item.m_name == "FlashItem"){
this.Fire.visible = true;
main.m_main.FlashSound.play();
return (true);
};
if ((((main.m_item.m_name == "RudaItem")) && (this.Fire.visible))){
main.m_main.Game.Key.visible = true;
main.m_main.Game.Key.b_valid = true;
main.RemoveObject(this);
main.m_main.RudaFireSound.play();
return (true);
};
return (false);
}
}
}//package gui
Section 15
//Mamont (gui.Mamont)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class Mamont extends Object_Base {
public var Selector:MovieClip;
public function Mamont(){
addFrameScript(0, frame1, 29, frame30);
}
public function Action(){
if (main.m_item.m_name == "PikaItem"){
trace("Pika");
main.m_main.Game.Human.HumanAnim.gotoAndPlay("Kill");
main.RemoveObject(this);
main.RemoveObject(main.m_main.Game.Human);
return (true);
};
return (false);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package gui
Section 16
//Newton (gui.Newton)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.utils.*;
public dynamic class Newton extends Object_Base {
public var Selector:MovieClip;
public var Lamp:MovieClip;
public function Newton(){
visible = false;
this.Lamp.visible = false;
b_valid = false;
m_item_name = "BookItem";
}
public function Action(){
if (main.m_item.m_name == "AppleItem"){
this.Lamp.visible = true;
main.m_main.AppleSound.play();
return (true);
};
return (false);
}
override public function MouseDown(){
var _local1:*;
if (((((this.Lamp.visible) && ((main.m_item == 0)))) && (m_item_name))){
_local1 = new ((getDefinitionByName(m_item_name) as Class));
main.m_item = _local1;
main.m_item.m_name = m_item_name;
main.m_item.m_parent = this;
main.m_main.addChild(main.m_item);
if (b_hide){
visible = false;
};
return (true);
};
return (false);
}
}
}//package gui
Section 17
//Object_Base (gui.Object_Base)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.utils.*;
public dynamic class Object_Base extends MovieClip {
var m_item_name;// = 0
public var b_valid;// = true
public var b_hide;// = false
public function Object_Base(){
main.AddObject(this);
if (this.Selector){
this.Selector.visible = false;
};
}
public function MouseDown(){
var _local1:*;
if ((((main.m_item == 0)) && (m_item_name))){
_local1 = new ((getDefinitionByName(m_item_name) as Class));
main.m_item = _local1;
main.m_item.m_name = m_item_name;
main.m_item.m_parent = this;
main.m_main.addChild(main.m_item);
if (b_hide){
visible = false;
};
return (true);
};
return (false);
}
}
}//package gui
Section 18
//Paporotnik (gui.Paporotnik)
package gui {
import flash.display.*;
public dynamic class Paporotnik extends Object_Base {
public var Selector:MovieClip;
public function Paporotnik(){
m_item_name = "DinoFood";
}
public function Action(){
trace("DinoFood");
return (false);
}
}
}//package gui
Section 19
//Pika (gui.Pika)
package gui {
import flash.display.*;
public dynamic class Pika extends Object_Base {
public var Selector:MovieClip;
public function Pika(){
m_item_name = "PikaItem";
b_hide = true;
b_valid = false;
}
public function Action(){
return (false);
}
}
}//package gui
Section 20
//Preloader (gui.Preloader)
package gui {
import flash.display.*;
import flash.events.*;
public dynamic class Preloader extends MovieClip {
public var BPlay:SimpleButton;
public var bar:MovieClip;
var bytestotal;
var bytesloaded;
var valid;// = true
public function Preloader(){
addEventListener(Event.ENTER_FRAME, Update);
this.BPlay.visible = false;
this.BPlay.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
}
public function Update(_arg1){
if (!valid){
return;
};
bytestotal = stage.loaderInfo.bytesTotal;
bytesloaded = stage.loaderInfo.bytesLoaded;
var _local2:* = (bytesloaded / bytestotal);
this.bar.scaleX = _local2;
if (bytesloaded >= bytestotal){
removeEventListener(Event.ENTER_FRAME, Update);
valid = false;
this.BPlay.visible = true;
};
}
private function onDown(_arg1){
if (main.b_locked){
main.m_main.gotoAndStop("Locked");
} else {
main.m_main.gotoAndStop("Game");
};
}
}
}//package gui
Section 21
//RestartButton (gui.RestartButton)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class RestartButton extends SimpleButton {
public function RestartButton(){
addEventListener(MouseEvent.MOUSE_DOWN, onDown);
}
public function onDown(_arg1){
main.Restart();
main.m_main.gotoAndStop("Restart");
}
}
}//package gui
Section 22
//Ring (gui.Ring)
package gui {
import flash.display.*;
public dynamic class Ring extends Object_Base {
public var Selector:MovieClip;
public function Ring(){
m_item_name = "RingItem";
b_hide = true;
b_valid = false;
visible = false;
}
public function Action(){
return (false);
}
}
}//package gui
Section 23
//Ruda (gui.Ruda)
package gui {
public dynamic class Ruda extends Object_Base {
public function Ruda(){
m_item_name = "RudaItem";
b_hide = true;
}
public function Action(){
return (false);
}
}
}//package gui
Section 24
//ScoresPart (gui.ScoresPart)
package gui {
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
public dynamic class ScoresPart extends MovieClip {
public var TText:TextField;
var m_cur_score;
var dx;
var dy;
var dd;// = 0
public function ScoresPart(_arg1, _arg2, _arg3){
m_cur_score = _arg1;
addEventListener(Event.ENTER_FRAME, Update);
this.TText.text = _arg1;
var _local4:* = 99;
var _local5:* = 24;
x = _arg2;
y = _arg3;
dx = ((_local4 - x) * 0.01);
dy = ((_local5 - y) * 0.01);
main.m_main.addChild(this);
}
function Update(_arg1){
x = (x + (dx * dd));
y = (y + (dy * dd));
dd = (dd + 0.3);
scaleX = (scaleX - 0.01);
scaleY = (scaleY - 0.01);
if ((((x < 99)) || ((y < 24)))){
main.m_scores = (main.m_scores + m_cur_score);
removeEventListener(Event.ENTER_FRAME, Update);
this.parent.removeChild(this);
};
}
}
}//package gui
Section 25
//SoundButton (gui.SoundButton)
package gui {
import flash.display.*;
import flash.media.*;
import flash.events.*;
public dynamic class SoundButton extends MovieClip {
public function SoundButton(){
var _local1:SoundTransform;
super();
addFrameScript(0, frame1);
if (main.b_sound == false){
this.gotoAndStop(2);
_local1 = new SoundTransform(0, 0);
SoundMixer.soundTransform = _local1;
};
addEventListener(MouseEvent.MOUSE_DOWN, onPress);
main.m_main.addChild(this);
}
private function onPress(_arg1){
var _local2:SoundTransform;
var _local3:SoundTransform;
if (main.b_sound){
this.gotoAndStop(2);
main.b_sound = false;
_local2 = new SoundTransform(0, 0);
SoundMixer.soundTransform = _local2;
} else {
this.gotoAndStop(1);
main.b_sound = true;
_local3 = new SoundTransform(1, 0);
SoundMixer.soundTransform = _local3;
};
}
public function Delete(){
if (parent){
parent.removeChild(this);
};
}
function frame1(){
stop();
}
}
}//package gui
Section 26
//Start (gui.Start)
package gui {
import flash.display.*;
import flash.events.*;
public dynamic class Start extends MovieClip {
public var BStart:SimpleButton;
public function Start(){
this.BStart.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
}
private function onDown(_arg1){
visible = false;
main.m_px = (main.m_px - 50);
}
}
}//package gui
Section 27
//Sunduk (gui.Sunduk)
package gui {
import flash.net.*;
import flash.events.*;
public dynamic class Sunduk extends Object_Base {
public function Sunduk(){
addFrameScript(0, frame1);
}
public function Action(){
if (main.m_item.m_name == "KeyItem"){
gotoAndStop(2);
main.RemoveObject(this);
main.m_main.Game.Ring.visible = true;
main.m_main.Game.Ring.b_valid = true;
main.m_main.UnlockSound.play();
return (true);
};
return (false);
}
function frame1(){
stop();
}
}
}//package gui
Section 28
//Tower (gui.Tower)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class Tower extends Object_Base {
public var Princess:MovieClip;
public function Tower(){
addFrameScript(0, frame1, 27, frame28, 45, frame46);
}
public function Action(){
if (main.m_item.m_name == "RingItem"){
main.m_main.Game.Knight.play();
main.RemoveObject(this);
main.RemoveObject(main.m_main.Game.Knight);
return (true);
};
if (main.m_item.m_name == "FlashItem"){
main.m_main.Game.Tower.gotoAndPlay("Flash");
return (false);
};
return (false);
}
function frame1(){
stop();
}
function frame28(){
stop();
main.m_main.Game.Baby.play();
main.m_main.Game.Baby.b_valid = true;
}
function frame46(){
gotoAndStop(1);
}
}
}//package gui
Section 29
//Tree (gui.Tree)
package gui {
import flash.display.*;
import flash.net.*;
import flash.events.*;
public dynamic class Tree extends Object_Base {
public var Selector:MovieClip;
public function Tree(){
m_item_name = "AppleItem";
}
public function Action(){
if (main.m_item.m_name == "BabyItem"){
main.m_main.Game.Newton.visible = true;
main.m_main.Game.Newton.b_valid = true;
return (true);
};
return (false);
}
}
}//package gui
Section 30
//Wheel (gui.Wheel)
package gui {
public dynamic class Wheel extends Object_Base {
public function Wheel(){
m_item_name = "WheelItem";
b_hide = true;
}
public function Action(){
return (false);
}
}
}//package gui
Section 31
//AppleItem (AppleItem)
package {
import flash.display.*;
public dynamic class AppleItem extends MovieClip {
}
}//package
Section 32
//BabyItem (BabyItem)
package {
import flash.display.*;
public dynamic class BabyItem extends MovieClip {
}
}//package
Section 33
//BookItem (BookItem)
package {
import flash.display.*;
public dynamic class BookItem extends MovieClip {
}
}//package
Section 34
//CosmoManItem (CosmoManItem)
package {
import flash.display.*;
public dynamic class CosmoManItem extends MovieClip {
}
}//package
Section 35
//DinoFood (DinoFood)
package {
import flash.display.*;
public dynamic class DinoFood extends MovieClip {
}
}//package
Section 36
//FlashItem (FlashItem)
package {
import flash.display.*;
public dynamic class FlashItem extends MovieClip {
}
}//package
Section 37
//KeyItem (KeyItem)
package {
import flash.display.*;
public dynamic class KeyItem extends MovieClip {
}
}//package
Section 38
//main (main)
package {
import flash.display.*;
import gui.*;
import flash.net.*;
import flash.events.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class main extends MovieClip {
public var Start:Start;
public var Game:MovieClip;
public var SoundButton:SoundButton;
public static var m_main;
public static var mySO:SharedObject = SharedObject.getLocal("RuneMagic_1");
public static var m_item = 0;
public static var m_objects = new Array();
public static var m_over = 0;
public static var m_px = 0;
public static var m_dt = 0;
public static var m_pdx = new Array();
public static var m_pdx_num = 0;
public static var b_sound = true;
public static var m_scores = 0;
public static var m_hidden_scores = 0;
public static var b_pause = true;
public static var b_locked = false;
public function main(){
addFrameScript(0, frame1, 29, frame30, 39, frame40);
m_main = this;
if (!mySO.data.Saves){
MochiBot.track(main.m_main, "b74d9e4c");
mySO.data.Saves = new Object();
};
addEventListener(Event.ENTER_FRAME, Update);
addEventListener(MouseEvent.MOUSE_DOWN, onDown);
addEventListener(MouseEvent.MOUSE_UP, onUp);
main.m_pdx.push(70);
main.m_pdx.push(185);
main.m_pdx.push(40);
main.m_pdx.push(85);
main.m_pdx.push(85);
main.m_pdx.push(85);
main.m_pdx.push(285);
main.m_pdx.push(40);
main.m_pdx.push(120);
main.m_pdx.push(140);
main.m_pdx.push(610);
main.m_pdx.push(85);
main.m_pdx.push(85);
main.m_pdx.push(85);
main.m_pdx.push(85);
if (!isUrl(["flashgamelicense.com"])){
};
}
function Update(_arg1){
var _local2:*;
if (((main.m_main.Start) && ((main.m_main.Start.visible == true)))){
main.b_pause = true;
return;
};
main.b_pause = false;
if (m_item){
m_item.x = main.m_main.mouseX;
m_item.y = main.m_main.mouseY;
};
m_over = false;
for each (_local2 in m_objects) {
if (_local2.b_valid){
if (_local2.Selector){
if (_local2.Selector.hitTestPoint(main.m_main.mouseX, main.m_main.mouseY, true)){
m_over = _local2;
};
};
if (!_local2.Selector){
if (_local2.hitTestPoint(main.m_main.mouseX, main.m_main.mouseY, true)){
m_over = _local2;
};
};
};
};
if (main.m_main.Game){
if (main.m_dt < 0){
if (main.m_px < main.m_main.Game.x){
main.m_main.Game.x = (main.m_main.Game.x - 10);
};
} else {
main.m_dt = (main.m_dt - (1 / 30));
};
};
}
private function onUp(_arg1){
if (((main.m_item) && (main.m_over))){
if (main.m_over.Action()){
main.FreeItem(true);
return;
};
};
}
private function onDown(_arg1){
var _local2:*;
var _local3:* = true;
var _local4:* = main.m_main.mouseX;
var _local5:* = main.m_main.mouseY;
if (((main.m_item) && (main.m_over))){
if (main.m_over.Action()){
main.FreeItem(true);
return;
};
};
if (main.m_over){
if (main.m_over.MouseDown()){
if (m_item.m_parent.GetItem){
m_item.m_parent.GetItem();
};
main.m_main.PressSound.play();
_local3 = false;
};
};
if (_local3){
FreeItem();
};
}
function frame1(){
stop();
this.b_first = true;
}
function frame30(){
if (this.b_first){
main.m_main.Music1 = new mDinoMusic();
main.m_main.Music2 = new mMedievalMusic();
main.m_main.Music3 = new mCityMusic();
main.m_main.Music4 = new mSpaceMusic();
main.m_main.m_music = main.m_main.Music1.play(0, 9999);
main.m_main.PressSound = new sButtonPress();
main.m_main.ClockSound = new sClock();
main.m_main.AppleSound = new sApple();
main.m_main.FlashSound = new sFlash();
main.m_main.RudaFireSound = new sRudaFire();
main.m_main.UnlockSound = new sUnlock();
this.b_first = false;
};
}
function frame40(){
gotoAndStop("Game");
}
public static function AddObject(_arg1){
m_objects.push(_arg1);
}
public static function RemoveObject(_arg1){
var _local2:*;
_local2 = 0;
while (_local2 < m_objects.length) {
if (m_objects[_local2] == _arg1){
m_objects.splice(_local2, 1);
return;
};
_local2++;
};
}
public static function FreeItem(_arg1=false){
if (m_item){
if (_arg1 == true){
m_item.m_parent.b_valid = false;
RemoveObject(m_item.m_parent);
main.m_px = (main.m_px - main.m_pdx[main.m_pdx_num]);
main.m_pdx_num++;
main.m_dt = 0;
if (main.m_pdx_num == 4){
main.m_main.m_music.stop();
main.m_main.m_music = main.m_main.Music2.play(0, 9999);
} else {
if (main.m_pdx_num == 8){
main.m_main.m_music.stop();
main.m_main.m_music = main.m_main.Music3.play(0, 9999);
} else {
if (main.m_pdx_num == 11){
main.m_main.m_music.stop();
main.m_main.m_music = main.m_main.Music4.play(0, 9999);
};
};
};
} else {
m_item.m_parent.visible = true;
if (m_item.m_parent.PutItem){
m_item.m_parent.PutItem();
};
};
m_item.parent.removeChild(m_item);
m_item.m_parent = 0;
m_item = 0;
};
}
public static function EnableObject(_arg1){
main.m_main.Game[_arg1].b_valid = true;
}
public static function Restart(){
m_objects.splice(0);
m_scores = 0;
m_hidden_scores = 0;
m_px = 0;
m_dt = 0;
m_pdx_num = 0;
main.m_main.m_music.stop();
main.m_main.m_music = main.m_main.Music1.play(0, 9999);
}
public static function isUrl(_arg1:Array):Boolean{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local2:String = main.m_main.stage.loaderInfo.loaderURL;
var _local3:* = _local2.split("://");
if (_local3[1]){
_local2 = _local3[1];
};
for (_local5 in _arg1) {
_local4 = true;
_local6 = _local2.search(_arg1[_local5]);
if (_local6 > 0){
_local7 = _local2.charAt((_local6 - 1));
};
if (_local6 == -1){
_local4 = false;
};
if ((((_local6 > 0)) && (!((_local7 == "."))))){
_local4 = false;
};
if (_local4){
return (true);
};
};
return (false);
}
}
}//package
Section 39
//mCityMusic (mCityMusic)
package {
import flash.media.*;
public dynamic class mCityMusic extends Sound {
}
}//package
Section 40
//mDinoMusic (mDinoMusic)
package {
import flash.media.*;
public dynamic class mDinoMusic extends Sound {
}
}//package
Section 41
//mMedievalMusic (mMedievalMusic)
package {
import flash.media.*;
public dynamic class mMedievalMusic extends Sound {
}
}//package
Section 42
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 43
//mSpaceMusic (mSpaceMusic)
package {
import flash.media.*;
public dynamic class mSpaceMusic extends Sound {
}
}//package
Section 44
//PikaItem (PikaItem)
package {
import flash.display.*;
public dynamic class PikaItem extends MovieClip {
}
}//package
Section 45
//RingItem (RingItem)
package {
import flash.display.*;
public dynamic class RingItem extends MovieClip {
}
}//package
Section 46
//RudaItem (RudaItem)
package {
import flash.display.*;
public dynamic class RudaItem extends MovieClip {
}
}//package
Section 47
//sApple (sApple)
package {
import flash.media.*;
public dynamic class sApple extends Sound {
}
}//package
Section 48
//sButtonPress (sButtonPress)
package {
import flash.media.*;
public dynamic class sButtonPress extends Sound {
}
}//package
Section 49
//sClock (sClock)
package {
import flash.media.*;
public dynamic class sClock extends Sound {
}
}//package
Section 50
//sFlash (sFlash)
package {
import flash.media.*;
public dynamic class sFlash extends Sound {
}
}//package
Section 51
//sRudaFire (sRudaFire)
package {
import flash.media.*;
public dynamic class sRudaFire extends Sound {
}
}//package
Section 52
//sUnlock (sUnlock)
package {
import flash.media.*;
public dynamic class sUnlock extends Sound {
}
}//package
Section 53
//WheelItem (WheelItem)
package {
import flash.display.*;
public dynamic class WheelItem extends MovieClip {
}
}//package