Frame 1
Stage.scaleMode = "noScale";
Stage.align = "";
_quality = "BEST";
lb.activate(this);
preintro.loops = 2;
resizeL = new Object();
Stage.addListener(resizeL);
resizeL.onResize = function () {
var _local2 = Stage.height;
if (_local2 < 610) {
_root._y = Math.round((600 - _local2) / 2);
} else {
_root._y = 0;
}
};
resizeL.onResize();
Instance of Symbol 13 MovieClip [JosLoaderBarSymbol] "lb" in Frame 1
//component parameters
onClipEvent (initialize) {
clip_param = "";
percentToLoad_param = 100;
}
Frame 2
loaderL = new Object();
lb.addListener(loaderL);
loaderL.onDone = function () {
kitchen.hide();
kitchen.loadPage("ikea_lo.swf");
this.onDone = function () {
mover.turbo = true;
};
lb.activate(kitchen);
mover.preloadHi(kitchen.clip);
};
lb.activate(this);
stop();
Jos.sendStats = function (tag) {
Jos.doFunc(function () {
fscommand ("spotlight", tag);
}, 20);
};
Jos.sendStats("1obej400");
Instance of Symbol 20 MovieClip [JosSoundmixerSymbol] "mixer" in Frame 2
//component parameters
onClipEvent (initialize) {
mixtime_param = 50;
group_param = "JosInterface";
}
Instance of Symbol 20 MovieClip [JosSoundmixerSymbol] "fxmixer" in Frame 2
//component parameters
onClipEvent (initialize) {
mixtime_param = 50;
group_param = "JosInterface";
}
Instance of Symbol 23 MovieClip [JosExternalMovieSymbol] "kitchen" in Frame 2
//component parameters
onClipEvent (initialize) {
autoplay_param = false;
border_param = 0;
mask_param = false;
align_param = "Center";
valign_param = "Center";
}
Instance of Symbol 27 MovieClip [KitchenMachineSymbol] "mover" in Frame 2
//component parameters
onClipEvent (initialize) {
varName = "defaultValue";
}
Frame 7
function onIntroFade() {
play();
mover.loadInit(kitchen.clip);
}
stop();
Frame 9
function onIntroDone() {
play();
}
stop();
Frame 11
mover.setMusic();
Frame 20
nav_text.extend(JosMovieClip);
nav_text.setTo({_alpha:0});
nav_text.moveTo({_alpha:100}, 25, Math.curve.ease_out);
Frame 42
function loadSubPage(obj, backToKitchen) {
mover.disable();
mousePointer.disable();
kitchenText.deactivate();
switch (obj._name) {
case "subpage1_menu" :
Jos.sendStats("8gkrq796");
Jos.broadcastGroup("linkmenu", "disable");
kt.show("kt.swf");
back_menu.pos_y = 458;
back_menu.linkObj = obj;
if (this.lastVisit._name == "subpage3_menu") {
back_menu.back = function () {
kt.hide();
Jos.broadcastGroup("linkmenu", "enable");
Jos.doFunc(function () {
_root.subpage3_menu.activate(true);
}, 2);
};
} else {
back_menu.back = function () {
kt.hide();
kitchenText.showPrice();
Jos.broadcastGroup("linkmenu", "enable");
};
}
if (mixer._enabled) {
mixer.stopAllMoves();
mixer.moveTo({volume:0}, 100, Math.curve.ease_out);
}
break;
case "subpage2_menu" :
Jos.sendStats("9icgl297");
Jos.broadcastGroup("linkmenu", "disable");
kh.show("kh.swf");
back_menu.pos_y = 458;
back_menu.linkObj = obj;
if (this.lastVisit._name == "subpage3_menu") {
back_menu.back = function () {
kh.hide();
Jos.broadcastGroup("linkmenu", "enable");
Jos.doFunc(function () {
_root.subpage3_menu.activate(true);
}, 2);
};
} else {
back_menu.back = function () {
kh.hide();
kitchenText.showPrice();
Jos.broadcastGroup("linkmenu", "enable");
};
}
if (mixer._enabled) {
mixer.stopAllMoves();
mixer.moveTo({volume:0}, 100, Math.curve.ease_out);
}
break;
case "subpage3_menu" :
switch (mover.currentRoom) {
case 0 :
Jos.sendStats("10ifu128");
break;
case 5 :
Jos.sendStats("11fbb273");
break;
case 4 :
Jos.sendStats("12eub947");
break;
case 3 :
Jos.sendStats("13rkh480");
break;
case 2 :
Jos.sendStats("14xym171");
break;
case 1 :
Jos.sendStats("15oay172");
}
subPage.show(mover.currentRoom);
this.lastVisit = obj;
back_menu.pos_y = 508;
back_menu.linkObj = obj;
back_menu.back = function () {
subPage.hide();
kitchenText.showPrice();
};
if (!mixer._enabled) {
break;
}
mixer.stopAllMoves();
mixer.moveTo({volume:25}, 50, Math.curve.ease_out);
}
back_menu.turnOn();
}
back_menu.disable();
Jos.broadcastGroup("linkmenu", "disable");
subpage1_menu.setLabel("KVALITETS-\nTESTAREN");
subpage2_menu.setLabel("NYHET!\nK\u00D6KSHJ\u00C4LPEN");
link1_menu.setLabel("PLANERA DITT\nDR\u00D6MK\u00D6K");
link2_menu.setLabel("FLER DR\u00D6MK\u00D6K");
link3_menu.setLabel("TIPSA\nEN KOMPIS");
back_menu.setLabel("TILLBAKA");
subpage1_menu.onActivateHandler = function () {
loadSubPage(this);
};
subpage1_menu.onDeactivateHandler = function () {
this._parent.back_menu.turnOff(true);
};
subpage2_menu.onActivateHandler = function (v) {
loadSubPage(this, v);
};
subpage2_menu.onDeactivateHandler = function () {
this._parent.back_menu.turnOff(true);
};
subpage3_menu.onActivateHandler = function () {
loadSubPage(this);
};
subpage3_menu.onDeactivateHandler = function () {
this._parent.back_menu.turnOff(true);
};
link1_menu.onDeactivateHandler = function () {
getURL ("http://www.ikea.com/ms/sv_SE/complete_kitchen_guide/planner_tool/index.html", "_blank");
Jos.sendStats("16znp893");
};
link2_menu.onDeactivateHandler = function () {
getURL ("http://www.ikea.com/ms/sv_SE/complete_kitchen_guide/get_inspired/index.html", "_blank");
Jos.sendStats("17bbf136");
};
link3_menu.onDeactivateHandler = function () {
getURL ("javascript:openTip()");
Jos.sendStats("18dbf338");
};
back_menu.extend(JosMovieClip);
back_menu.initColorMethods();
back_menu.turnOn = function () {
this.stopAllMoves();
if (this._alpha == 0) {
this.setTo({_y:this.pos_y}, 25, Math.curve.ease_out);
} else {
this.moveTo({_y:this.pos_y}, 14, Math.curve.ease_out, 5);
}
this.moveTo({_alpha:100}, 14, Math.curve.ease_out);
this.onPress = this.turnOff;
};
back_menu.turnOff = function (noDeactivate) {
if (!noDeactivate) {
this.linkObj.deactivate();
}
delete this.linkObj;
this.back();
this.stopAllMoves();
this.moveTo({_alpha:0, _y:this.pos_y}, 14, Math.curve.ease_out);
mousePointer.enable();
mover.enable();
delete this.back;
delete this.onPress;
if (mixer._enabled) {
mixer.stopAllMoves();
mixer.moveTo({volume:100}, 50, Math.curve.ease_out);
}
};
back_menu._alpha = 0;
logo._visible = false;
volume_switch = Jos.listenTo(volume_on);
volume_off.addlistener(volume_switch);
volume_switch.onActivate = function (obj) {
if (obj._name == "volume_on") {
mixer.enable();
} else {
mixer.disable();
}
};
volume_on.onPress(true);
mover.enable();
Instance of Symbol 88 MovieClip [JosMousePointerSymbol] "mousePointer" in Frame 42
//component parameters
onClipEvent (initialize) {
group_param = "";
}
Instance of Symbol 90 MovieClip [JosButtonTextSymbol] "subpage2_menu" in Frame 42
//component parameters
onClipEvent (initialize) {
label_param = "";
labelActive_param = "";
normal_color = 13421491 /* 0xCCCBB3 */;
hilite_color = 13060408 /* 0xC74938 */;
active_color = 6268993 /* 0x5FA841 */;
autoSize_param = "center";
switch_param = true;
switchlock_param = false;
group_param = "ikeamenutop,linkmenu";
}
Instance of Symbol 90 MovieClip [JosButtonTextSymbol] "subpage1_menu" in Frame 42
//component parameters
onClipEvent (initialize) {
label_param = "";
labelActive_param = "";
normal_color = 13421491 /* 0xCCCBB3 */;
hilite_color = 13060408 /* 0xC74938 */;
active_color = 6268993 /* 0x5FA841 */;
autoSize_param = "center";
switch_param = true;
switchlock_param = false;
group_param = "ikeamenutop,linkmenu";
}
Instance of Symbol 90 MovieClip [JosButtonTextSymbol] "link2_menu" in Frame 42
//component parameters
onClipEvent (initialize) {
label_param = "";
labelActive_param = "";
normal_color = 13421491 /* 0xCCCBB3 */;
hilite_color = 13060408 /* 0xC74938 */;
active_color = 6268993 /* 0x5FA841 */;
autoSize_param = "center";
switch_param = false;
switchlock_param = false;
group_param = "linkmenu";
}
Instance of Symbol 90 MovieClip [JosButtonTextSymbol] "link3_menu" in Frame 42
//component parameters
onClipEvent (initialize) {
label_param = "";
labelActive_param = "";
normal_color = 13421491 /* 0xCCCBB3 */;
hilite_color = 13060408 /* 0xC74938 */;
active_color = 6268993 /* 0x5FA841 */;
autoSize_param = "center";
switch_param = false;
switchlock_param = false;
group_param = "linkmenu";
}
Instance of Symbol 90 MovieClip [JosButtonTextSymbol] "subpage3_menu" in Frame 42
//component parameters
onClipEvent (initialize) {
label_param = "";
labelActive_param = "";
normal_color = 14671566 /* 0xDFDECE */;
hilite_color = 13060408 /* 0xC74938 */;
active_color = 6268993 /* 0x5FA841 */;
autoSize_param = "center";
switch_param = true;
switchlock_param = false;
group_param = "ikeamenutop,linkmenu";
}
Instance of Symbol 90 MovieClip [JosButtonTextSymbol] "link1_menu" in Frame 42
//component parameters
onClipEvent (initialize) {
label_param = "";
labelActive_param = "";
normal_color = 13421491 /* 0xCCCBB3 */;
hilite_color = 13060408 /* 0xC74938 */;
active_color = 6268993 /* 0x5FA841 */;
autoSize_param = "center";
switch_param = false;
switchlock_param = false;
group_param = "linkmenu";
}
Instance of Symbol 90 MovieClip [JosButtonTextSymbol] "volume_on" in Frame 42
//component parameters
onClipEvent (initialize) {
label_param = "P\u00C5";
labelActive_param = "";
normal_color = 13421491 /* 0xCCCBB3 */;
hilite_color = 13060408 /* 0xC74938 */;
active_color = 6268993 /* 0x5FA841 */;
autoSize_param = "none";
switch_param = true;
switchlock_param = true;
group_param = "volumemenu";
}
Instance of Symbol 90 MovieClip [JosButtonTextSymbol] "volume_off" in Frame 42
//component parameters
onClipEvent (initialize) {
label_param = "AV";
labelActive_param = "";
normal_color = 13421491 /* 0xCCCBB3 */;
hilite_color = 13060408 /* 0xC74938 */;
active_color = 6268993 /* 0x5FA841 */;
autoSize_param = "none";
switch_param = true;
switchlock_param = true;
group_param = "volumemenu";
}
Frame 77
var screensaver = new Object();
screensaver.inactivationtime = (screensaver.timeInactive = 500);
MovieClip.addListener(screensaver);
Mouse.addListener(screensaver);
screensaver.onMouseMove = (screensaver.onMouseDown = function () {
screensaver.timeInactive = screensaver.inactivationtime;
this.inactivate();
});
screensaver.onEnterFrame = function () {
if ((--this.timeInactive) == 0) {
this.activate();
}
};
screensaver.activate = function () {
this._activated = true;
if (mixer._enabled && (mixer.volume != 0)) {
mixer.stopAllMoves();
this.lastVolume = mixer.volume;
mixer.moveTo({volume:25}, 1000, Math.curve.ease_out);
}
};
screensaver.inactivate = function () {
if ((!this._activated) || (mixer.volume == 0)) {
return(false);
}
this._activated = false;
if (mixer._enabled) {
mixer.stopAllMoves();
mixer.moveTo({volume:this.lastVolume}, 200, Math.curve.ease_out);
}
};
kitchenText._visible = true;
kitchenText.hidePrice();
logo.extend(JosMovieClip);
logo.setTo({_alpha:0, _visible:true});
logo.moveTo({_alpha:100}, 40, Math.curve.ease_out);
Stage.addListener(logo);
logo.onResize = function () {
this._x = Math.max(708, parseInt(((Stage.width / 2) + 354) - 32));
this._y = Math.max(570, parseInt(((Stage.height / 2) + 300) - 21));
};
logo.onResize();
smutsrad.extend(JosMovieClip);
smutsrad.setTo({_alpha:0, _visible:true});
smutsrad.moveTo({_alpha:100}, 40, Math.curve.ease_out);
Stage.addListener(smutsrad);
smutsrad.onResize = function () {
this._y = Math.max(570, parseInt(((Stage.height / 2) + 300) - 21));
};
smutsrad.onResize();
Jos.broadcastGroup("linkmenu", "enable");
Frame 78
Frame 100
var priceList = Jos.listenTo(mover);
priceList.onDeactivate = function () {
kitchenText.showPrice(1);
mover.removeListener(this);
};
nav_text.onMouseDown = function () {
this.moveTo({_alpha:0}, 25, Math.curve.ease_out);
mover.removeListener(this);
delete this.onActivate;
};
Mouse.addListener(nav_text);
stop();
Symbol 1 MovieClip [JosMovieClipSymbol] Frame 1
#initclip 2
function JosMovieClip() {
if (_global.Jos == undefined) {
_global.Jos = new JosClass();
}
this.init();
}
JosMovieClip.prototype = new MovieClip();
JosMovieClip.prototype.init = function () {
this._activated = false;
this._enabled = false;
this.initColorMethods();
};
JosMovieClip.prototype.moveTo = function (objList, frames, curve, delay, loop, func, funcObj) {
var objs = new Array();
for (l in objList) {
objs.push({name:l, goal:objList[l], start:this[l], dist:objList[l] - this[l]});
}
this.$mover = {obj:this, func:func, funcObj:funcObj, objs:objs, step:1 / frames, t:0, frames:frames, curve:curve, delay:((delay != undefined) ? (delay) : 0), loop:((loop != undefined) ? (loop) : 0)};
this.$mover.onEnterFrame = function () {
if (!this.obj.__proto__) {
this.stopMove();
}
if (this.delay) {
return(this.delay--);
}
if ((++this.t) <= this.frames) {
var _local2 = this.curve(this.t * this.step);
l = this.objs.length;
while (l--) {
o = this.objs[l];
this.obj[o.name] = o.start + (o.dist * _local2);
}
} else if (this.loop--) {
this.t = 0;
this.onEnterFrame();
} else {
var o = this.obj;
if (this.func == undefined) {
o.onMoveDone();
} else if (this.funcObj == false) {
this.func();
} else {
this.funcObj[this.func]();
}
this.stopMove();
}
};
this.$mover.stopMove = function () {
MovieClip.removeListener(this);
this.obj.$movers.del(this);
delete this.obj.$mover;
};
MovieClip.addListener(this.$mover);
if (this.$movers == null) {
this.$movers = new Array();
}
this.$movers.push(this.$mover);
this.onMoveStart();
};
JosMovieClip.prototype.moveBy = function (objList, frames, curve, delay, loop, func, funcObj) {
obj = new Object();
for (var _local3 in objList) {
obj[_local3] = this[_local3] + objList[_local3];
}
this.moveTo(obj, frames, curve, delay, loop, func, funcObj);
};
JosMovieClip.prototype.stopAllMoves = function () {
i = this.$movers.length;
while (i--) {
MovieClip.removeListener(this.$movers[i]);
}
delete this.$movers;
this.onMoveStop();
};
JosMovieClip.prototype.setTo = function (objList) {
for (var _local3 in objList) {
this[_local3] = objList[_local3];
}
};
JosMovieClip.prototype.playTo = function (toFrame, tempo, delay, loop) {
if (this.$toFramer != undefined) {
this.stopToFrame();
}
if (delay == undefined) {
delay = 0;
}
if (tempo == undefined) {
tempo = 0;
}
this.$toFramer = {fromFrame:this._currentFrame, toFrame:toFrame, loop_pos:0, tempo:0, tempo_init:tempo, loop:((loop != undefined) ? (loop) : 0), delay:delay, delay_init:delay, obj:this};
this.$toFramer.onEnterFrame = function () {
if (this.delay) {
return(this.delay--);
}
if (this.tempo) {
return(this.tempo--);
}
this.tempo = this.tempo_init;
var _local2 = this.obj._currentFrame;
if (this.toFrame > _local2) {
this.obj.gotoAndStop(_local2 + 1);
} else if (this.toFrame < _local2) {
this.obj.gotoAndStop(_local2 - 1);
} else if (this.loop--) {
this.delay = this.delay_init;
this.obj.gotoAndStop(this.fromFrame);
} else {
this.done();
}
};
this.$toFramer.done = function () {
MovieClip.removeListener(this);
this.obj.onPlayToDone();
};
this.stopToFrame = function () {
MovieClip.removeListener(this.$toFramer);
delete this.$toFramer;
};
MovieClip.addListener(this.$toFramer);
};
JosMovieClip.prototype.copyProperties = function () {
return({_x:this._x, _y:this._y, _xscale:this._xscale, _yscale:this._yscale, _rotation:this._rotation, _alpha:this._alpha});
};
JosMovieClip.prototype.initColorMethods = function () {
this._color = new Color(this);
this.addProperty("red", this.getRed, this.setRed);
this.addProperty("green", this.getGreen, this.setGreen);
this.addProperty("blue", this.getBlue, this.setBlue);
this._red = 0;
this._green = 0;
this._blue = 0;
};
JosMovieClip.prototype.setRed = function (val) {
this._color.setTransform({rb:val});
this._red = val;
};
JosMovieClip.prototype.getRed = function () {
return(this._red);
};
JosMovieClip.prototype.setGreen = function (val) {
this._color.setTransform({gb:val});
this._green = val;
};
JosMovieClip.prototype.getGreen = function () {
return(this._green);
};
JosMovieClip.prototype.setBlue = function (val) {
this._color.setTransform({bb:val});
this._blue = val;
};
JosMovieClip.prototype.getBlue = function () {
return(this._blue);
};
JosMovieClip.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
};
JosMovieClip.prototype.enable = function () {
this._enabled = true;
};
JosMovieClip.prototype.disable = function () {
this._enabled = false;
};
JosMovieClip.prototype.activate = function () {
this._activated = true;
};
JosMovieClip.prototype.deactivate = function () {
this._activated = false;
};
JosMovieClip.prototype.show = function () {
this._visible = true;
};
JosMovieClip.prototype.hide = function () {
this._visible = false;
};
JosMovieClip.prototype.registerSkin = function () {
if (this._skins == undefined) {
this._skins = new Object();
}
var _local3;
while (arguments.length) {
_local3 = arguments.pop();
this._skins[_local3._name] = _local3;
}
};
JosMovieClip.prototype.setSkin = function (skin) {
var _local2;
var _local5;
var _local3;
var _local4;
for (var _local12 in skin) {
_local2 = this._skins[_local12];
_local5 = {_x:_local2._x, _y:_local2._y, _xscale:_local2._xscale, _yscale:_local2._yscale, _rotation:_local2._rotation};
_local3 = _local2.getDepth();
_local4 = _local2._parent;
_local2.removeMovieClip();
_local4.attachMovie(skin[_local12], _local12, _local3, _local5);
}
};
JosMovieClip.prototype.getSkins = function () {
for (var _local2 in this._skins) {
trace((_local2 + ":") + this._skins[_local2]);
}
};
Object.registerClass("JosMovieClipSymbol", JosMovieClip);
#endinitclip
Symbol 4 MovieClip [JosSymbol] Frame 1
#initclip 1
function JosClass() {
this.init();
}
JosClass.prototype = new Object();
JosClass.prototype.init = function () {
_global.Jos = this;
this._visible = false;
this.version = "Jos3005, Flash 6.0, Actionscript 1.0";
this.info = "Written by Jimmy Herdberg. (c)2003-2004 Koko Kaka Entertainment AB";
_root._quality = "BEST";
_root._focusrect = eval("FALSE");
this._groups = new Object();
this.getVersion = function () {
return(this.version_param);
};
this.addProperty("version", this.getVersion, null);
this._ID = (this._lowID = 500000);
this.getLowID = function () {
return(--this._lowID);
};
this.getID = function () {
return(++this._ID);
};
this.lastID = function () {
return(this._ID);
};
ASBroadcaster.initialize(MovieClip);
var _local4 = _root.createEmptyMovieClip("JmysOperatingSystem", this.getId());
_local4.onEnterFrame = function () {
MovieClip.broadcastMessage("onEnterFrame");
};
};
JosClass.prototype.type = function (obj) {
if (obj.__proto__ != Array.prototype) {
return(typeof(obj));
}
return("array");
};
JosClass.prototype.doFunc = function () {
var _local3 = {__obj:((arguments.length == 3) ? (arguments.shift()) : false), __func:arguments.shift(), __frames:arguments.shift()};
_local3.onEnterFrame = function () {
if ((--this.__frames) > 0) {
return(false);
}
if (this.__obj == false) {
this.__func();
} else {
this.__obj[this.__func]();
}
MovieClip.removeListener(this);
};
_local3.stop = function () {
MovieClip.removeListener(this);
};
if (_local3.__frames <= 0) {
_local3.onEnterFrame();
} else {
MovieClip.addListener(_local3);
}
return(_local3);
};
JosClass.prototype.addToGroup = function (group, obj) {
if ((obj != "") && (obj != undefined)) {
group = group.split(",");
group.push("all");
} else {
group = ["all"];
}
var _local2;
var _local3 = group.length;
while (_local3--) {
_local2 = group[_local3];
if (this._groups[_local2] == undefined) {
this._groups[_local2] = {_activated:false, objects:new Array()};
}
this._groups[_local2].objects.push(obj);
}
};
JosClass.prototype.broadcastGroup = function (group, func, args) {
var _local2 = this._groups[group].objects;
if (typeof(args) == "string") {
args = [args];
}
for (var _local5 in _local2) {
_local2[_local5][func](args);
}
};
JosClass.prototype.removeFromGroup = function (group, obj) {
var _local2 = this._groups[group].objects.search(obj);
if (_local2 != -1) {
this._groups[group].objects.delAt(_local2);
}
delete obj.group_param;
};
JosClass.prototype.enableGroup = function (group) {
var _local3 = this._groups[group].objects;
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].enable();
_local2++;
}
};
JosClass.prototype.disableGroup = function (group) {
var _local3 = this._groups[group].objects;
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].disable();
_local2++;
}
};
JosClass.prototype.activateInGroup = function (group, obj, noActivate) {
if ((group != "") && (group != undefined)) {
var _local2 = group.split(",")[0];
if (obj != this._groups[_local2]._activated) {
this._groups[_local2]._activated.deactivate();
this._groups[_local2]._activated = obj;
}
}
if (noActivate != true) {
obj.activate();
}
};
Object.prototype.extend = function (superclass) {
this.prototype.__proto__ = superclass.prototype;
for (var _local3 in superclass.prototype) {
this[_local3] = superclass.prototype[_local3];
}
};
JosClass.prototype.link = function (obj1, obj2) {
var _local3 = new Object();
obj1.addListener(_local3);
_local3.obj1 = obj1;
_local3.obj2 = obj2;
_local3.onActivate = function () {
this.obj2.activate.apply(this.obj2, arguments);
};
_local3.onDeactivate = function () {
this.obj2.deactivate.apply(this.obj2, arguments);
};
return(_local3);
};
JosClass.prototype.unlink = function (listener) {
listener.obj1.removeListener(listener);
};
JosClass.prototype.linkMessage = function (method1, obj1, method2, obj2) {
var _local2 = new Object();
obj1.addListener(_local2);
_local2.obj1 = obj1;
_local2.obj2 = obj2;
_local2.method2 = method2;
_local2[method1] = function () {
this.obj2[this.method2](this.obj1);
};
return(_local2);
};
JosClass.prototype.listenTo = function (obj) {
var _local1 = new Object();
obj.addListener(_local1);
return(_local1);
};
ASSetPropFlags(Object.prototype, null, 1);
MovieClip.prototype.onLoad = function () {
this._parent.initClip(this);
};
Stage.center_x = Stage.width / 2;
Stage.center_y = Stage.height / 2;
String.prototype.concat = function () {
var _local4 = this.toString();
var _local3 = 0;
while (_local3 < arguments.length) {
_local4 = _local4 + arguments[_local3];
_local3++;
}
return(_local4);
};
String.prototype.charToArray = function () {
var _local3 = new Array();
var _local2 = this.length;
while (_local2--) {
_local3.unshift(this.charAt(_local2));
}
return(_local3);
};
String.prototype.reverse = function () {
var _local3;
var _local2 = this.length - 1;
while (_local2 > -1) {
_local3 = _local3 + this.charAt(_local2);
_local2--;
}
return(_local3);
};
String.prototype.ltrim = function () {
var _local2 = -1;
while (_local2++ , this.charCodeAt(_local2) < 33) {
}
return(this.substring(_local2));
};
String.prototype.rtrim = function () {
var _local2 = this.length;
while (_local2-- , this.charCodeAt(_local2) < 33) {
}
_local2++;
return(this.substring(0, _local2));
};
String.prototype.trim = function () {
return(this.rtrim().ltrim());
};
ASSetPropFlags(String.prototype, null, 1);
Array.prototype.del = function (val) {
var _local2 = this.length;
while (_local2--) {
if (this[_local2] == val) {
this.splice(_local2, 1);
return(_local2);
}
}
return(-1);
};
Array.prototype.delAt = function (val) {
this.splice(val, 1);
};
Array.prototype.copy = function () {
return(this.slice());
};
Array.prototype.shuffle = function (times) {
var _local4 = this.length;
var _local3;
var _local2;
var _local5;
while (times--) {
_local3 = Math.floor(Math.random() * _local4);
_local2 = Math.floor(Math.random() * _local4);
_local5 = this[_local3];
this[_local3] = this[_local2];
this[_local2] = _local5;
}
};
Array.prototype.search = function (val) {
var _local2 = this.length;
while (_local2--) {
if (this[_local2] == val) {
return(_local2);
}
}
return(-1);
};
Array.prototype.equals = function (a) {
if (this == a) {
return(true);
}
var _local2 = this.length;
if (_local2 != a.length) {
return(false);
}
while (_local2--) {
if (this[_local2] != a[_local2]) {
return(false);
}
}
return(true);
};
Array.prototype.merge = function (a2) {
var _local4 = this.length;
var _local6 = a2.length;
var _local3;
var _local2;
_local3 = 0;
while (_local3 < _local6) {
_local2 = 0;
while (_local2 < _local4) {
if (a2[_local3] != this[_local2]) {
} else {
break;
}
_local2++;
}
if (_local2 == _local4) {
this.push(a2[_local3]);
}
_local3++;
}
};
ASSetPropFlags(Array.prototype, null, 1);
Math.between = function (min, max, val) {
return(Math.min(Math.max(min, val), max));
};
Math.parseFloat = function (num, l) {
if (num != Number.NaN) {
num = num.toString();
if (num.indexOf(".") != -1) {
l = (l + num.indexOf(".")) + 1;
return(parseFloat(num.slice(0, l)));
}
return(parseInt(num));
}
return(0);
};
Math.curve = new Object();
Math.curve.linear = function (t) {
return(t);
};
Math.curve.ease = function (t) {
return((Math.sin((t * Math.PI) - (Math.PI/2)) + 1) / 2);
};
Math.curve.ease_2 = function (t) {
return(Math.sin((Math.PI * t) / 2) * Math.sqrt(t));
};
Math.curve.ease_in = function (t) {
return(t * t);
};
Math.curve.ease_in_2 = function (t) {
return(((t * t) * t) * t);
};
Math.curve.ease_out_2 = function (t) {
return(1 - ((1 - t) * (1 - t)));
};
Math.curve.ease_out = function (t) {
return(Math.sin((Math.PI * t) / 2));
};
Math.curve.sine = function (t) {
return((1 - Math.cos((Math.PI * t) * 2)) / 2);
};
Math.curve.bounce_out = function (t) {
return(Math.sin((Math.PI * t) / 2) + (Math.sin(Math.PI * t) * 0.05));
};
Math.curve.bounce_out_2 = function (t) {
return(Math.sin((Math.PI * t) / 2) + (Math.sin(Math.PI * t) * 0.3));
};
Math.curve.bounce_out_3 = function (t) {
return(Math.sin((Math.PI * t) / 2) + (Math.sin(Math.PI * t) * 0.075));
};
Math.curve.flash = function (t) {
return((t * t) + ((1 - Math.cos((Math.PI * t) * 2)) / 1.25));
};
Math.curve.dream = function (t) {
return((t * t) + ((Math.sin((Math.PI * t) * t) * 0.1) * t));
};
Math.curve.sneak = function (t) {
t = 1 - t;
return(Math.sin((0.5 + (Math.curve.ease(t * 0.6) * 2)) * Math.PI) * (1 - Math.curve.ease_out(t)));
};
Math.curve.bouncer = function (t) {
return(1 - (Math.abs(Math.sin((0.5 + (Math.curve.ease_in(t) * 4)) * Math.PI)) * (1 - Math.curve.ease_out(t))));
};
Math.curve.fade_over = function (t) {
return(1 - (Math.sin((0.5 + (Math.curve.ease(t * 0.6) * 2)) * Math.PI) * (1 - Math.curve.ease_out(t))));
};
Math.mod = new Object();
Math.mod.sine = function (t) {
return(Math.sin(((t % 1) * Math.PI) * 2));
};
Math.mod.cose = function (t) {
return(Math.cos(((t % 1) * Math.PI) * 2));
};
Math.posMod = new Object();
Math.posMod.sine = function (t) {
return((Math.sin(((t % 1) * Math.PI) * 2) / 2) + 1);
};
Math.mod.sine_out_5 = function (t) {
return(Math.sin(((t % 1) * Math.PI) * 10) * (1 - t));
};
Math.mod.sine_out_4 = function (t) {
return(Math.sin(((t % 1) * Math.PI) * 8) * (1 - t));
};
Math.mod.sine_out_3 = function (t) {
return(Math.sin(((t % 1) * Math.PI) * 6) * (1 - t));
};
Math.mod.sine_out_2 = function (t) {
return(Math.sin(((t % 1) * Math.PI) * 4) * (1 - t));
};
Color.hexToRGB = function (col) {
return({red:(col & 16711680) / 65536, green:(col & 65280) / 256, blue:col & 255});
};
Color.RGBToHex = function (col) {
return(((col.red * 65536) + (col.green * 256)) + col.blue);
};
ASSetPropFlags(Color.prototype, null, 1);
o = ASBroadcaster;
o._broadcastMessage = function () {
var _local3 = this._listeners.concat();
var _local4 = arguments.shift();
for (var _local5 in _local3) {
_local3[_local5][_local4].apply(_local3[_local5], arguments);
}
this[_local4 + "Handler"](arguments);
};
o.addListener = function (obj) {
var _local2 = this._listeners;
var _local3 = _local2.length;
_local2[-1] = obj;
_local3--;
while (_local2[_local3] != obj) {
}
delete _local2[-1];
if (_local3 < 0) {
_local2.unshift(obj);
this.broadcastMessage = ASBroadcaster._broadcastMessage;
return(true);
}
return(false);
};
o.removeListener = function (obj) {
var _local2 = this._listeners;
var _local3 = _local2.length;
_local2[-1] = obj;
_local3--;
while (_local2[_local3] != obj) {
}
delete _local2[-1];
if (_local3 >= 0) {
_local2.splice(_local3, 1);
if (_local2.length == 0) {
this.broadcastMessage = undefined;
}
return(true);
}
return(false);
};
o.initialize = function (obj) {
obj.broadcastMessage = undefined;
obj.addListener = AsBroadcaster.addListener;
obj.removeListener = AsBroadcaster.removeListener;
obj._listeners = [];
AsSetPropFlags(obj, "broadcastMessage,addListener,removeListener,_listeners", 131);
};
ASSetPropFlags(o, null, 131);
delete o;
JosClass.prototype.CMS = function (url) {
var _local8 = new XML();
_local8.ignoreWhite = true;
_local8.scene = new Object();
_local8.getNode = function (node, content) {
var _local7 = node.childNodes.length;
var _local9;
var _local2;
var _local3;
var _local4;
var _local6 = -1;
content.collection = new Array();
while ((_local6++) < _local7) {
_local2 = node.childNodes[_local6];
if (_local2.nodeType == 1) {
_local9 = (((_local2.attributes.name != undefined) && (_local2.attributes.name != "")) ? (_local2.attributes.name) : ((_local2.nodeName + "_") + _local6));
_local3 = (content[_local2.attributes.name] = new Jos.CMS_obj());
content.collection.push(_local3);
_local3.type = _local2.nodeName;
for (_local4 in _local2.attributes) {
_local3[_local4] = _local2.attributes[_local4];
}
if (!(_local2.nodeName === "list")) {
} else {
_local3.value = _local2.attributes.value.split(",");
}
if (_local2.hasChildNodes()) {
this.getNode(_local2, _local3);
}
} else if (content.text == undefined) {
content.text = _local2.nodeValue.trim();
} else {
content.text = content.text + _local2.nodeValue.trim();
}
}
if (!content.collection.length) {
delete content.collection;
}
};
_local8.setScene = function (_scene, obj) {
if (typeof(_scene) == "string") {
_scene = this.scene[_scene];
}
var _local2;
var _local3 = 0;
while (_local3 < _scene.collection.length) {
_local2 = _scene.collection[_local3];
switch (_local2.type) {
case "string" :
case "list" :
obj[_local2.name] = _local2.value;
break;
case "image" :
case "movie" :
obj[_local2.name].loadMovie(_local2.value);
break;
default :
this.setScene(_local2, obj[_local2.name]);
}
_local3++;
}
};
_local8.load(url);
_local8.onLoad = function () {
this.version = this.firstChild.attributes.version;
this.getNode(this.firstChild, this.scene);
this.onLoaded();
};
return(_local8);
};
JosClass.prototype.CMS_obj = function () {
this.toString = function () {
return(((typeof(this.value) == "string") ? (this.value) : this));
};
};
Object.registerClass("JosSymbol", JosClass);
#endinitclip
Symbol 5 MovieClip [JosButtonSymbol] Frame 1
#initclip 6
function JosStaticButtonClass() {
this.init();
}
JosStaticButtonClass.prototype = new JosMovieClip();
JosStaticButtonClass.prototype.init = function () {
super.init();
this.state_param = false;
this.setSize(this._width, this._height);
this._xscale = (this._yscale = 100);
};
JosStaticButtonClass.prototype.enable = function () {
super.enable();
this._alpha = 100;
this.show();
this.normal();
if (!this.switch_param) {
this.onJosRollOver = this.hilite;
this.onJosRollOut = this.normal;
this.onJosPress = this.activate;
this.onJosRelease = function () {
super.deactivate();
this.normal();
};
} else {
if (this.switchlock_param) {
this.onJosPress = (this.onJosPressActivate = function () {
delete this.onJosRollOver;
delete this.onJosRollOut;
delete this.onJosPress;
this.deactivateJosEvents();
Jos.activateInGroup(this.group_param, this);
});
this.deactivate = function () {
super.deactivate();
this.normal();
this.onJosRollOver = this.hilite;
this.onJosRollOut = this.normal;
this.onJosPress = this.onJosPressActivate;
this.activateJosEvents();
this.broadcastMessage("onDeactivate", this);
};
} else {
this.onJosPress = (this.onJosPressActivate = function () {
this.onJosRollOut = this.active;
this.onJosPress = this.deactivate;
Jos.activateInGroup(this.group_param, this);
});
this.deactivate = function () {
super.deactivate();
this.normal();
this.onJosRollOut = this.normal;
this.onJosPress = this.onJosPressActivate;
this.broadcastMessage("onDeactivate", this);
};
}
this.onJosRollOver = this.hilite;
this.onJosRollOut = this.normal;
}
this.activateJosEvents();
};
JosStaticButtonClass.prototype.disable = function () {
super.disable();
this._alpha = 50;
this.deactivateJosEvents();
delete this.deactivate;
delete this.onRollOver;
delete this.onRollOut;
delete this.onPress;
delete this.onRelease;
delete this.onReleaseOutside;
delete this.onDragOut;
};
JosStaticButtonClass.prototype.activate = function () {
super.activate();
this.active();
this.broadcastMessage("onActivate", this);
};
JosStaticButtonClass.prototype.activateJosEvents = function () {
this._mouseState = false;
this.onMouseMove = function () {
var _local4 = this._xmouse;
var _local3 = this._ymouse;
var _local2;
if ((((_local4 > 0) && (_local4 < this.width)) && (_local3 > 0)) && (_local3 < this.height)) {
_local2 = true;
} else {
_local2 = false;
}
if (this._mouseState != _local2) {
if (_local2) {
this.broadcastMessage("onJosRollOver", this);
} else {
this.broadcastMessage("onJosRollOut", this);
}
this._mouseState = _local2;
}
};
this.onMouseDown = function () {
if (this._mouseState == true) {
this.broadcastMessage("onJosPress", this);
}
};
this.onMouseUp = function () {
if (this._mouseState == true) {
this.broadcastMessage("onJosRelease", this);
}
};
this.onMouseMove();
};
JosStaticButtonClass.prototype.deactivateJosEvents = function () {
delete this.onMouseMove;
delete this.onMouseDown;
delete this.onMouseUp;
};
JosStaticButtonClass.prototype.normal = function () {
this.draw("normal");
};
JosStaticButtonClass.prototype.hilite = function () {
this.draw("hilite");
};
JosStaticButtonClass.prototype.active = function () {
this.draw("active");
};
Object.registerClass("JosButtonSymbol", JosStaticButtonClass);
#endinitclip
Symbol 6 MovieClip [JosClipExternalSymbol] Frame 1
#initclip 3
function JosClipExternalClass(noInit) {
if (!noInit) {
this.init();
ASBroadcaster.initialize(this);
}
}
JosClipExternalClass.prototype = new JosMovieClip();
JosClipExternalClass.prototype.init = function () {
super.init();
this.setSize(this._width, this._height);
this._xscale = (this._yscale = 100);
this.enable();
};
JosClipExternalClass.prototype.enable = function () {
super.enable();
this._alpha = 100;
this.show();
};
JosClipExternalClass.prototype.disable = function () {
super.disable();
this._alpha = 50;
};
JosClipExternalClass.prototype.activate = function () {
if (this._enabled) {
this.clip.removeMovieClip();
super.activate();
this.createEmptyMovieClip("clip", 1);
this.clip.loadMovie(this.clipname);
this.broadcastMessage("onActivate", this);
}
};
JosClipExternalClass.prototype.deactivate = function () {
super.deactivate();
delete this.clipname;
this.clip.unloadMovie();
this.broadcastMessage("onDeactivate", this);
};
JosMovieClip.prototype.stop = function (fr) {
if (fr == undefined) {
fr = this.clip._currentframe;
}
this.clip.gotoAndStop(fr);
};
JosClipExternalClass.prototype.unloadClip = function () {
delete this.onEnterFrame;
if (this.clip) {
this.clip.removeMovieClip();
}
};
JosClipExternalClass.prototype.draw = function (fr) {
if (fr == undefined) {
this.clip.play();
} else {
this.clip.gotoAndPlay(fr);
}
};
JosClipExternalClass.prototype.loadPage = function (clipname) {
if (clipname != this.clipname) {
this.clipname = clipname;
this.activate();
this.initClip();
} else {
return(false);
}
};
JosClipExternalClass.prototype.initClip = function () {
if (this.clip.getBytesTotal() < 30) {
this.onEnterFrame = this.initClip;
} else if (this.clip.getBytesTotal() >= 30) {
_root.statusfield.text = "initClip" + getTimer();
this.clip.stop();
this.bytesTotal = this.clip.getBytesTotal();
this.onEnterFrame = function () {
this.bytesLoaded = this.clip.getBytesLoaded();
if (this.bytesLoaded >= this.bytesTotal) {
this.clip.extend(JosMovieClip);
if (this.autoplay_param) {
this.draw();
}
this.broadcastMessage("onClipLoaded", this);
this.onEnterFrame = function () {
if (this.clip._currentframe == this.clip._totalframes) {
this.broadcastMessage("onClipDone", this);
if (this.autostop_param == true) {
this.clip.stop();
}
delete this.onEnterFrame;
}
};
}
};
this.broadcastMessage("onClipInit", this);
this.onEnterFrame();
}
};
Object.registerClass("JosClipExternalSymbol", JosClipExternalClass);
#endinitclip
Symbol 7 MovieClip [JosSoundSymbol] Frame 1
#initclip 7
function JosSound() {
Jos.addToGroup(this.group_param, this);
ASBroadcaster.initialize(this);
this.init();
}
JosSound.prototype = new JosMovieClip();
JosSound.prototype.init = function () {
super.init();
this.initSound();
this.addProperty("volume", this.getVolume, this.setVolume);
this.addProperty("pan", this.getPan, this.setPan);
this.addProperty("duration", this.getDuration, null);
this.addProperty("position", this.getPosition, null);
this._transformation = {ll:100, lr:0, rr:100, rl:0};
this.addProperty("LL", this.getLL, this.setLL);
this.addProperty("LR", this.getLR, this.setLR);
this.addProperty("RL", this.getRL, this.setRL);
this.addProperty("RR", this.getRR, this.setRR);
};
JosSound.prototype.initSound = function () {
this._snd.stop();
delete this._snd;
this._snd = new Sound(this);
this._snd._parent = this;
this._snd.onSoundComplete = function () {
this._parent.deactivate();
};
this._snd.onLoad = function () {
this._parent.setTo(this._parent._transformation);
this._parent.loaded = true;
this._parent.broadcastMessage("onLoad", this._parent);
};
};
JosSound.prototype.activate = function (soundname, secondoffset, loop) {
if (typeof(soundname) == "string") {
if (this._activated) {
this.initSound();
}
if (soundname.substr(soundname.length - 4) != ".mp3") {
this.setSound(soundname, secondoffset, loop);
} else {
this.loadSound(soundname, secondoffset);
}
} else if (typeof(soundname) == "number") {
this._secondoffset = soundname;
if (loop != undefined) {
this._loop = secondoffset;
}
}
if (this.soundname != undefined) {
this.started = getTimer();
super.activate();
switch (this.soundtype) {
case 1 :
this._snd.start(this._secondoffset, this._loop);
this.broadcastMessage("onActivate", this);
break;
case 2 :
case 3 :
if (this.loaded) {
this._snd.start(this._secondoffset, this._loop);
this.broadcastMessage("onActivate", this);
} else {
return("sound not loaded yet.");
}
}
}
};
JosSound.prototype.setSound = function (soundname, secondoffset, loop) {
this.soundname = soundname;
if (this.soundtype > 1) {
this.initSound();
}
this.soundtype = 1;
this._snd.attachSound(soundname);
this._secondoffset = ((secondoffset == undefined) ? 0 : (secondoffset));
this._loop = ((loop == undefined) ? 0 : (loop));
};
JosSound.prototype.loadSound = function (soundname, streaming) {
this.soundname = soundname;
this._secondOffset = 0;
if (this.soundtype > 1) {
this.initSound();
}
if (streaming) {
this.soundtype = 2;
} else {
this.soundtype = 3;
}
this.loaded = false;
if (this.soundtype == 2) {
this.onEnterFrame = function () {
if (this._snd.position) {
this.loaded = true;
this.broadcastMessage("onStart", this);
delete this.onEnterFrame;
}
};
}
this._snd.loadSound(soundname, ((streaming == false) ? false : true));
};
JosSound.prototype.deactivate = function () {
super.deactivate();
this._snd.stop();
this.broadcastMessage("onDeactivate", this);
};
JosSound.prototype.pause = function () {
this._secondoffset = this._snd.position / 1000;
this._snd.stop();
this.broadcastMessage("onPause", this);
};
JosSound.prototype.getVolume = function () {
return(this._snd.getVolume());
};
JosSound.prototype.setVolume = function (val) {
return(this._snd.setVolume(val));
};
JosSound.prototype.getPan = function () {
return(this._snd.getPan());
};
JosSound.prototype.setPan = function (val) {
return(this._snd.setPan(val));
};
JosSound.prototype.getPosition = function () {
return(this._snd.position);
};
JosSound.prototype.getDuration = function () {
return(this._snd.duration);
};
JosSound.prototype.getLL = function () {
return(this._transformation.ll);
};
JosSound.prototype.setLL = function (val) {
this._transformation.ll = val;
this._snd.setTransform(this._transformation);
};
JosSound.prototype.getLR = function () {
return(this._transformation.lr);
};
JosSound.prototype.setLR = function (val) {
this._transformation.lr = val;
this._snd.setTransform(this._transformation);
};
JosSound.prototype.getRL = function () {
return(this._transformation.rl);
};
JosSound.prototype.setRL = function (val) {
this._transformation.rl = val;
this._snd.setTransform(this._transformation);
};
JosSound.prototype.getRR = function () {
return(this._transformation.rr);
};
JosSound.prototype.setRR = function (val) {
this._transformation.rr = val;
this._snd.setTransform(this._transformation);
};
Object.registerClass("JosSoundSymbol", JosSound);
#endinitclip
Symbol 8 MovieClip [JosDynamicButtonSymbol] Frame 1
#initclip 4
function JosDynamicButtonClass() {
this.init();
}
JosDynamicButtonClass.prototype = new JosMovieClip();
JosDynamicButtonClass.prototype.init = function () {
super.init();
this.state_param = false;
this.setSize(this._width, this._height);
this._xscale = (this._yscale = 100);
};
JosDynamicButtonClass.prototype.enable = function () {
super.enable();
this._alpha = 100;
this.show();
this.normal();
if (!this.switch_param) {
this.onRollOver = this.hilite;
this.onRollOut = (this.onDragOut = this.normal);
this.onPress = this.activate;
this.onRelease = function () {
super.deactivate();
this.broadcastMessage("onDeactivate", arguments);
this.normal();
};
} else {
if (this.switchlock_param) {
this.onPress = (this.activate = function (noClick) {
this.active();
Jos.activateInGroup(this.group_param, this, true);
delete this.onRollOver;
delete this.onRollOut;
delete this.onDragOut;
delete this.onPress;
if (noClick != true) {
_root.fxMixer.activate("sClick");
}
this.broadcastMessage("onActivate", this, arguments);
});
this.deactivate = function () {
super.deactivate();
this.normal();
this.onRollOver = this.hilite;
this.onRollOut = (this.onDragOut = this.normal);
this.onPress = this.activate;
this.broadcastMessage("onDeactivate", this);
};
} else {
this.onPress = (this.activate = function (noClick) {
this.active();
Jos.activateInGroup(this.group_param, this, true);
this.onRollOut = (this.onDragOut = this.active);
this.onPress = this.deactivate;
if (noClick != true) {
_root.fxMixer.activate("sClick");
}
this.broadcastMessage("onActivate", this, arguments);
});
this.deactivate = function () {
super.deactivate();
this.normal();
this.onRollOut = (this.onDragOut = this.normal);
this.onPress = this.activate;
this.broadcastMessage("onDeactivate", this);
};
}
this.onRollOver = this.hilite;
this.onRollOut = (this.onDragOut = this.normal);
}
};
JosDynamicButtonClass.prototype.disable = function () {
super.disable();
delete this.deactivate;
delete this.onRollOver;
delete this.onRollOut;
delete this.onPress;
delete this.onRelease;
delete this.onReleaseOutside;
delete this.onDragOut;
};
JosDynamicButtonClass.prototype.activate = function () {
super.activate();
this.active();
_root.fxMixer.activate("sClick");
this.broadcastMessage("onActivate", this, arguments);
};
JosDynamicButtonClass.prototype.normal = function () {
this.draw("normal");
};
JosDynamicButtonClass.prototype.hilite = function () {
this.draw("hilite");
};
JosDynamicButtonClass.prototype.active = function () {
this.draw("active");
};
Object.registerClass("JosDynamicButtonSymbol", JosDynamicButtonClass);
#endinitclip
Symbol 13 MovieClip [JosLoaderBarSymbol] Frame 1
#initclip 5
function JosLoaderBarClass() {
ASBroadcaster.initialize(this);
this.init();
}
JosLoaderBarClass.prototype = new JosMovieClip();
JosLoaderBarClass.prototype.init = function (clip) {
this._visible = false;
};
JosLoaderBarClass.prototype.activate = function (clip) {
super.activate();
if (clip.clip != undefined) {
this.$clip = clip.clip;
} else if (clip != undefined) {
this.$clip = clip;
}
this.onEnterFrame = this.update;
};
JosLoaderBarClass.prototype.update = function (props) {
var _local2 = this.$clip.getBytesLoaded();
var _local4 = this.$clip.getBytesTotal();
if (_local2 > 1) {
var _local3 = Math.min(100, 100 * (_local2 / _local4));
}
if (_local3 != this.percent_loaded) {
this.percent_loaded = _local3;
this.broadcastMessage("onLoading", this);
}
if (Key.isDown(17)) {
this._visible = true;
} else {
this._visible = false;
}
this.txt.text = parseInt(this.percent_loaded);
if (this.percent_loaded == 100) {
this.deactivate();
}
};
JosLoaderBarClass.prototype.deactivate = function () {
this.txt.text = "";
this._visible = false;
super.deactivate();
delete this.onEnterFrame;
this.broadcastMessage("onDone");
};
Object.registerClass("JosLoaderBarSymbol", JosLoaderBarClass);
#endinitclip
Symbol 17 MovieClip Frame 384
if ((--this.loops) <= 0) {
if (_framesloaded > 2) {
preintro = true;
_parent.play();
} else {
preintro = false;
}
}
Symbol 17 MovieClip Frame 453
if (preintro == true) {
stop();
}
Symbol 20 MovieClip [JosSoundmixerSymbol] Frame 1
#initclip 10
function JosSoundMixerClass() {
Jos.addToGroup(this.group_param, this);
ASBroadcaster.initialize(this);
this.init();
}
JosSoundMixerClass.prototype = new JosMovieClip();
JosSoundMixerClass.prototype.enable = function () {
super.enable();
this.stopAllMoves();
this.moveTo({volume:100}, 20, Math.curve.ease_out);
};
JosSoundMixerClass.prototype.disable = function () {
super.disable();
this.stopAllMoves();
this.moveTo({volume:0}, 20, Math.curve.ease_out);
};
JosSoundMixerClass.prototype.init = function () {
super.init();
this.hide();
this.master = new Sound(this);
this.attachMovie("JosSoundSymbol", "ch1", 1);
this.attachMovie("JosSoundSymbol", "ch2", 2);
this.mixtime = this.mixtime_param;
Jos.link(this.ch1, this.diod1);
Jos.link(this.ch2, this.diod2);
this.addProperty("volume", this.getVolume, this.setVolume);
};
JosSoundMixerClass.prototype.activate = function (soundname, secondoffset, loop, vol, pan) {
if (typeof(soundname) == "string") {
super.activate();
var _local3 = this.getChannel();
_local3.volume = ((vol != undefined) ? (vol) : 100);
_local3.pan = ((pan != undefined) ? (pan) : 0);
_local3.activate(soundname, secondoffset, loop);
this.lastChannel = _local3;
return(_local3);
}
};
JosSoundMixerClass.prototype.deactivate = function () {
super.deactivate();
this.ch1.deactivate();
this.ch2.deactivate();
};
JosSoundMixerClass.prototype.mix = function (soundname, secondoffset, loop, mixtime) {
if (mixtime != undefined) {
this.mixtime = mixtime;
}
if (this.lastChannel) {
this.lastChannel.stopAllMoves();
this.lastChannel.moveTo({volume:0}, this.mixtime, Math.curve.ease);
this.lastChannel.onMoveDone = function () {
this.deactivate();
this.volume = 100;
delete this.onMoveDone;
};
}
var _local2 = this.getChannel();
delete _local2.onMoveDone;
_local2.stopAllMoves();
this.activate(soundname, secondoffset, loop);
_local2.volume = 0;
if (_local2.soundtype == 2) {
_local2.addListener(this);
this.onStart = function (ch) {
ch.moveTo({volume:100}, this.mixtime, Math.curve.ease);
ch.removeListener(this);
delete this.onStart;
};
} else {
_local2.moveTo({volume:100}, this.mixtime, Math.curve.ease);
}
};
JosSoundMixerClass.prototype.getChannel = function () {
if ((!this.ch1._activated) || (this.ch2._activated && (this.ch1 != this.lastChannel))) {
return(this.ch1);
}
return(this.ch2);
};
JosSoundMixerClass.prototype.getVolume = function () {
return(this.master.getVolume());
};
JosSoundMixerClass.prototype.setVolume = function (val) {
this.broadcastMessage("onSetVolume", this, val);
return(this.master.setVolume(val));
};
Object.registerClass("JosSoundmixerSymbol", JosSoundMixerClass);
#endinitclip
Symbol 23 MovieClip [JosExternalMovieSymbol] Frame 1
#initclip 8
function ExternalMovieClass() {
ASBroadcaster.initialize(this);
this.init();
}
ExternalMovieClass.prototype = new JosClipExternalClass(true);
ExternalMovieClass.prototype.init = function () {
super.init();
if (this.border_param == 0) {
this.border._visible = false;
} else {
this.border.extend(JosMovieClip);
this.border.init();
this.border.onSetWidth = function (p) {
this._width = p.width + (p.border_param * 2);
this._x = -p.border_param;
};
this.border.onSetHeight = function (p) {
this._height = p.height + (p.border_param * 2);
this._y = -p.border_param;
};
this.addListener(this.border);
}
if (this.mask_param) {
this.mask.onSetWidth = function (p) {
this._width = p.width;
};
this.mask.onSetHeight = function (p) {
this._height = p.height;
};
this.addListener(this.mask);
} else {
this.mask._visible = false;
}
this.addProperty("width", this.getWidth, this.setWidth);
this.addProperty("height", this.getHeight, this.setHeight);
switch (this.align_param) {
case "Left" :
this.cx = this._x;
break;
case "Center" :
this.cx = this._x + (this.width / 2);
break;
case "Right" :
this.cx = this._x + this.width;
}
switch (this.valign_param) {
case "Top" :
this.cy = this._y;
break;
case "Center" :
this.cy = this._y + (this.height / 2);
break;
case "Bottom" :
this.cy = this._y + this.height;
}
this.setWidth(this.width);
this.setHeight(this.height);
};
ExternalMovieClass.prototype.initClip = function () {
if (this.clip.getBytesTotal() < 30) {
this.onEnterFrame = this.initClip;
} else if (this.clip.getBytesTotal() >= 30) {
if (this.mask_param) {
this.clip.setMask(this.mask);
}
delete this.onEnterFrame;
this.setWidth();
this.setHeight();
super.initClip();
}
};
ExternalMovieClass.prototype.getWidth = function () {
return(this.width);
};
ExternalMovieClass.prototype.getHeight = function () {
return(this.height);
};
ExternalMovieClass.prototype.setWidth = function (w) {
if (typeof(w) == "number") {
this.width = w;
}
if (this.clip_width != Math.NaN) {
this.clip._x = ((-this.clip_width) / 2) + (this.width / 2);
}
switch (this.align_param) {
case "Center" :
this._x = this.cx - (this.width / 2);
break;
case "Right" :
this._x = this.cx - this.width;
}
this.broadcastMessage("onSetWidth", this);
};
ExternalMovieClass.prototype.setHeight = function (h) {
if (typeof(h) == "number") {
this.height = h;
}
if (this.clip_height != Math.NaN) {
this.clip._y = ((-this.clip_height) / 2) + (this.height / 2);
}
switch (this.valign_param) {
case "Center" :
this._y = this.cy - (this.height / 2);
break;
case "Bottom" :
this._y = this.cy - this.height;
}
this.broadcastMessage("onSetHeight", this);
};
ExternalMovieClass.prototype.loadPage = function (clip, w, h) {
if (w != Math.NaN) {
this.clip_width = w;
}
if (h != Math.NaN) {
this.clip_height = h;
}
super.loadPage(clip);
};
ExternalMovieClass.prototype.activate = function () {
super.activate();
};
ExternalMovieClass.prototype.deactivate = function () {
super.deactivate();
};
Object.registerClass("JosExternalMovieSymbol", ExternalMovieClass);
#endinitclip
Symbol 26 Button
on (press) {
press();
}
on (release, releaseOutside) {
release();
}
on (rollOver, dragOver) {
this.rollOver();
}
on (rollOut, dragOut) {
this.rollOut();
}
Symbol 27 MovieClip [KitchenMachineSymbol] Frame 1
#initclip 9
function KitchenMachineClass() {
Jos.addToGroup(this.group_param, this);
ASBroadcaster.initialize(this);
this.init();
}
KitchenMachineClass.prototype = new JosMovieClip();
KitchenMachineClass.prototype.init = function () {
super.init();
this.current = (this.nextStop = 1);
this.startframe = 1;
this.endframe = 676;
this.filmlength = (this.endframe - this.startframe) + 1;
this.hiQuality = 1;
this.direction = 0;
this.mousePointer = this._parent.mousePointer;
this.interact_button.useHandCursor = false;
this.speed = 0.5;
this.frameloaded = false;
this.textclip = this._parent.kitchenText;
this.middle = 354;
this.clickTime = 150;
this.turbo = false;
this.hiList = new Object();
this.hiImg = [this.hi1, this.hi2, this.hi3];
this.speedtable = [2, 1, 0.5, -0.5, -1, -2];
this.translationtable = [1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 400, 402, 404, 406, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430, 432, 434, 436, 438, 440, 442, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, 488, 490, 492, 494, 496, 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 530, 532, 534, 536, 538, 540, 542, 544, 546, 548, 550, 552, 554, 556, 558, 560, 562, 564, 566, 568, 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590, 592, 594, 596, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 624, 626, 628, 630, 632, 634, 636, 638, 640, 642, 644, 646, 648, 650, 652, 654, 656, 658, 660, 662, 664, 666, 668, 670, 672, 674, 676, 675, 673, 671, 669, 667, 665, 663, 661, 659, 657, 655, 653, 651, 649, 647, 645, 643, 641, 639, 637, 635, 633, 631, 629, 627, 625, 623, 621, 619, 617, 615, 613, 611, 609, 607, 605, 603, 601, 599, 597, 595, 593, 591, 589, 587, 585, 583, 581, 579, 577, 575, 573, 571, 569, 567, 565, 563, 561, 559, 557, 555, 553, 551, 549, 547, 545, 543, 541, 539, 537, 535, 533, 531, 529, 527, 525, 523, 521, 519, 517, 515, 513, 511, 509, 507, 505, 503, 501, 499, 497, 495, 493, 491, 489, 487, 485, 483, 481, 479, 477, 475, 473, 471, 469, 467, 465, 463, 461, 459, 457, 455, 453, 451, 449, 447, 445, 443, 441, 439, 437, 435, 433, 431, 429, 427, 425, 423, 421, 419, 417, 415, 413, 411, 409, 407, 405, 403, 401, 399, 397, 395, 393, 391, 389, 387, 385, 383, 381, 379, 377, 375, 373, 371, 369, 367, 365, 363, 361, 359, 357, 355, 353, 351, 349, 347, 345, 343, 341, 339, 337, 335, 333, 331, 329, 327, 325, 323, 321, 319, 317, 315, 313, 311, 309, 307, 305, 303, 301, 299, 297, 295, 293, 291, 289, 287, 285, 283, 281, 279, 277, 275, 273, 271, 269, 267, 265, 263, 261, 259, 257, 255, 253, 251, 249, 247, 245, 243, 241, 239, 237, 235, 233, 231, 229, 227, 225, 223, 221, 219, 217, 215, 213, 211, 209, 207, 205, 203, 201, 199, 197, 195, 193, 191, 189, 187, 185, 183, 181, 179, 177, 175, 173, 171, 169, 167, 165, 163, 161, 159, 157, 155, 153, 151, 149, 147, 145, 143, 141, 139, 137, 135, 133, 131, 129, 127, 125, 123, 121, 119, 117, 115, 113, 111, 109, 107, 105, 103, 101, 99, 97, 95, 93, 91, 89, 87, 85, 83, 81, 79, 77, 75, 73, 71, 69, 67, 65, 63, 61, 59, 57, 55, 53, 51, 49, 47, 45, 43, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21, 19, 17, 15, 13, 11, 9, 7, 5, 3];
this.roomLength = [0, 65, 171, 280, 395, 516, 628, 677];
this.musicList = ["room6_sound", "room5_sound", "room4_sound", "room3_sound", "room2_sound", "room1_sound"];
this.currentRoom = -1;
};
KitchenMachineClass.prototype.preloadHi = function (clip) {
this.hide();
if (clip != undefined) {
this.clip = clip;
}
this.clip.gotoAndStop(this.current);
for (var _local3 in this.hiImg) {
var _local2 = this.hiImg[_local3];
_local2.addListener(this.hiList);
_local2.mover = this;
}
this.hiImg[1].onClipLoadedHandler = function () {
this.mover.loadHi(this.mover.hiImg[0], -1, true);
this.mover.loadHi(this.mover.hiImg[2], 1, true);
this.mover.frameloaded = true;
this.mover._parent.onPreloadHi();
delete this.onClipLoadedHandler;
};
this.loadHi(this.hiImg[1], 0, true);
};
KitchenMachineClass.prototype.loadInit = function (clip) {
if (clip != undefined) {
this.clip = clip;
}
this.clip.gotoAndStop(this.current);
this.showHi();
this.setType();
this.closeLoadSign();
this.clip._parent.show();
this.show();
};
KitchenMachineClass.prototype.enable = function () {
this.press = function () {
mousePointer.small();
this.closeLoadsign();
if (this.type == "") {
this.setType("singleclick");
this.pressTime = getTimer() + this.clickTime;
this.onEnterFrame = function () {
if (getTimer() > this.pressTime) {
this.activate();
}
};
} else {
this.activate();
}
};
this.release = (this.deactivate = this.deactivateFunc);
this.activate = this.activateFunc;
this.rollOver = function () {
mousePointer.activate();
};
this.rollOut = function () {
mousePointer.deactivate();
};
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
MousePointer.activate();
}
};
KitchenMachineClass.prototype.disable = function (clip) {
this.deactivate();
mousePointer.deactivate();
delete this.activate;
delete this.deactivate;
delete this.press;
delete this.release;
delete this.rollOver;
delete this.rollOut;
};
KitchenMachineClass.prototype.activateFunc = function () {
super.activate();
this.setType("scroll");
this.frameloaded = false;
this.direction = 0;
this.setImg();
this.clearHi();
this.hidePrice();
this.onEnterFrame = function () {
var _local3 = _root._xmouse;
if (this.turbo) {
var _local4 = Math.between(0, 5, parseInt((6 * _local3) / 708));
} else {
var _local4 = Math.between(1, 4, parseInt((6 * _local3) / 708));
}
this.speed = this.speedtable[_local4];
if (Key.isDown(16)) {
this.speed = this.speed * 2;
}
this.direction = this.direction + ((this.speed - this.direction) * 0.1);
this.setImg();
};
this.broadcastMessage("onActivate", this);
};
KitchenMachineClass.prototype.deactivateFunc = function () {
super.deactivate();
mousePointer.big();
if (this.type == "singleclick") {
var _local5 = _root._xmouse - this.middle;
if (_local5 > 0) {
this.stepBy(-1);
} else {
this.stepBy(1);
}
delete this.onEnterFrame;
this.setType();
} else if (this.type == "scroll") {
this.setType();
delete this.onEnterFrame;
var _local4 = Math.abs(this.speed);
if (this.direction > 0) {
this.scrollBy(8 * _local4, _local4);
} else if (this.direction < 0) {
this.scrollBy(-8 * _local4, _local4);
} else {
this.stepBy(0);
}
} else if (this.type == "scrolling") {
this.setType();
delete this.onEnterFrame;
}
this.closeLoadsign();
};
KitchenMachineClass.prototype.showPrice = function () {
this.textclip.showPrice(this.currentRoom + 1);
};
KitchenMachineClass.prototype.hidePrice = function () {
this.textclip.hidePrice();
};
KitchenMachineClass.prototype.stepBy = function (steps) {
this.setType("stepping");
if ((this.frameloaded == false) && (steps != 0)) {
return(false);
}
this.frameloaded = false;
this.direction = 0;
var _local4 = this.addFrame(this.current, steps);
if (this.getFrame(_local4) == 0) {
return(false);
}
this.current = (this.nextStop = _local4);
if (steps > 0) {
var _local2 = this.hiImg.shift();
this.hiImg.push(_local2);
} else if (steps < 0) {
var _local2 = this.hiImg.pop();
this.hiImg.unshift(_local2);
} else {
var _local2 = this.hiImg[1];
}
_local2.onClipLoadedHandler = function () {
this.mover.frameloaded = true;
this.mover.setType();
this.mover.showHi();
this.mover.setImg(true);
this.mover.showPrice();
delete this.onClipLoadedHandler;
};
this.loadHi(_local2, steps);
this.current = this.nextStop;
};
KitchenMachineClass.prototype.addFrame = function (from, steps) {
from = from + steps;
if (from >= (this.endframe + 1)) {
from = from - this.filmlength;
} else if (from < 1) {
from = from + this.filmlength;
}
return(from);
};
KitchenMachineClass.prototype.scrollBy = function (steps, speed) {
this.setType("scrolling");
this.direction = ((steps > 0) ? (speed) : (-speed));
this.nextStop = this.addFrame(this.current, steps);
this.frameloaded = false;
this.clearHi();
this.hiImg[1].onClipLoadedHandler = function () {
this.mover.loadHi(this.mover.hiImg[0], -1);
this.mover.loadHi(this.mover.hiImg[2], 1);
this.mover.frameloaded = true;
delete this.onClipLoadedHandler;
};
this.loadHi(this.hiImg[1]);
this.onEnterFrame = function () {
if (Math.abs(this.direction) > 0.5) {
this.direction = this.direction * 0.9;
}
if (this.getFrame(this.current) == this.getFrame(this.nextStop)) {
this.setType();
delete this.onEnterFrame;
this.hiImg[1].setTo({_alpha:0});
this.hiImg[1].moveTo({_alpha:100}, 10, Math.curve.ease);
this.hiImg[1].show();
this.showPrice();
switch (this.currentRoom) {
case 0 :
Jos.sendStats("2ddnt874");
break;
case 5 :
Jos.sendStats("3aflt102");
break;
case 4 :
Jos.sendStats("4szjv897");
break;
case 3 :
Jos.sendStats("5uygc974");
break;
case 2 :
Jos.sendStats("6jonu150");
break;
case 1 :
Jos.sendStats("7ruju928");
}
}
this.setImg();
};
};
KitchenMachineClass.prototype.setType = function (t) {
if (t != undefined) {
this.type = t;
} else {
this.type = "";
}
};
KitchenMachineClass.prototype.clearHi = function () {
this.hiImg[0].deactivate();
this.hiImg[1].deactivate();
this.hiImg[2].deactivate();
this.hiImg[0].hide();
this.hiImg[1].hide();
this.hiImg[2].hide();
delete this.hiImg[0].onClipLoadedHandler;
delete this.hiImg[1].onClipLoadedHandler;
delete this.hiImg[2].onClipLoadedHandler;
};
KitchenMachineClass.prototype.setImg = function () {
var _local3 = this.addFrame(this.current, this.direction);
var _local2 = this.getFrame(_local3);
if (_local2) {
this.current = _local3;
this.clip.gotoAndStop(_local2);
this.setMusic();
} else {
this.nextStop = this.current;
this.direction = 0;
this.deactivate();
this.lightLoadsign();
}
};
KitchenMachineClass.prototype.showHi = function () {
this.hiImg[0].hide();
this.hiImg[1].show();
this.hiImg[2].hide();
};
KitchenMachineClass.prototype.loadHi = function (o, offset) {
obj = o;
var _local3 = this.nextStop + offset;
if (_local3 > this.endframe) {
_local3 = _local3 - this.filmlength;
} else if (_local3 < 1) {
_local3 = _local3 + this.filmlength;
}
var _local2 = this.getFrame(_local3, true);
_local2 = _local2 + "";
while (_local2.length < 3) {
_local2 = "0" + _local2;
}
obj.deactivate();
obj.loadPage(("Ikea_hi/ikea_hi_" + _local2) + ".jpg");
};
KitchenMachineClass.prototype.getFrame = function (num, noLoadCheck) {
var _local2 = this.translationtable[parseInt(num - 1)];
if ((this.clip._framesloaded >= _local2) || (noLoadCheck == true)) {
return(_local2);
}
return(0);
};
KitchenMachineClass.prototype.setMusic = function () {
var _local2 = 0;
while (_local2 < (this.roomLength.length - 1)) {
if ((this.current > this.roomLength[_local2]) && (this.current <= this.roomLength[_local2 + 1])) {
break;
}
_local2++;
}
if (_local2 == 6) {
_local2 = 0;
}
if (_local2 != this.currentRoom) {
this.currentRoom = _local2;
this._parent.mixer.mix(this.musiclist[this.currentRoom], 0, 10000, 25 - Math.min(20, parseInt(Math.abs(this.direction) * 10)));
this.broadcastMessage("onSetMusic", this);
}
};
KitchenMachineClass.prototype.lightLoadSign = function () {
this._parent.loadsign._visible = true;
};
KitchenMachineClass.prototype.closeLoadSign = function () {
this._parent.loadsign._visible = false;
};
Object.registerClass("KitchenMachineSymbol", KitchenMachineClass);
#endinitclip
Instance of Symbol 23 MovieClip [JosExternalMovieSymbol] "hi1" in Symbol 27 MovieClip [KitchenMachineSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
autoplay_param = true;
border_param = 0;
mask_param = false;
align_param = "Center";
valign_param = "Center";
}
Instance of Symbol 23 MovieClip [JosExternalMovieSymbol] "hi2" in Symbol 27 MovieClip [KitchenMachineSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
autoplay_param = true;
border_param = 0;
mask_param = false;
align_param = "Center";
valign_param = "Center";
}
Instance of Symbol 23 MovieClip [JosExternalMovieSymbol] "hi3" in Symbol 27 MovieClip [KitchenMachineSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
autoplay_param = true;
border_param = 0;
mask_param = false;
align_param = "Center";
valign_param = "Center";
}
Symbol 37 MovieClip Frame 1
this.extend(_root.JosMovieClip);
this.initColorMethods();
this.setTo(Color.hexToRGB(16777215));
this.show = function () {
this.moveTo(Color.hexToRGB(13060408), 14, Math.curve.ease_out);
};
this.hide = function () {
this.moveTo(Color.hexToRGB(16777215), 14, Math.curve.ease_out);
};
Symbol 38 MovieClip Frame 1
stop();
Symbol 40 Button
on (release) {
this.activate();
}
on (rollOver) {
price1.linktext.show();
}
on (rollOut) {
price1.linktext.hide();
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 43 Button
on (release) {
this.activate();
}
on (rollOver) {
price2.linktext.show();
}
on (rollOut) {
price2.linktext.hide();
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 46 Button
on (release) {
this.activate();
}
on (rollOver) {
price3.linktext.show();
}
on (rollOut) {
price3.linktext.hide();
}
Symbol 48 MovieClip Frame 1
stop();
Symbol 49 Button
on (release) {
this.activate();
}
on (rollOver) {
price4.linktext.show();
}
on (rollOut) {
price4.linktext.hide();
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 52 Button
on (release) {
this.activate();
}
on (rollOver) {
price5.linktext.show();
}
on (rollOut) {
price5.linktext.hide();
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 55 Button
on (release) {
this.activate();
}
on (rollOver) {
price6.linktext.show();
}
on (rollOut) {
price6.linktext.hide();
}
Symbol 56 MovieClip Frame 1
function showPrice(nr) {
if (nr != undefined) {
this.room = nr;
}
this.gotoAndStop(this.room + 2);
this.stopAllMoves();
this.moveTo({_alpha:100}, 25, Math.curve.ease);
}
function hidePrice() {
this.stopAllMoves();
this.setTo({_alpha:0}, 25, Math.curve.ease);
}
this.extend(_root.JosMovieClip);
this.activate = function () {
this._parent.subpage3_menu.activate();
this.deactivate();
};
this.deactivate = function () {
this.gotoAndStop(2);
};
this._visible = false;
stop();
Symbol 59 MovieClip [JosLazerLineSymbol] Frame 1
#initclip 11
function JosLazerLineClass() {
this.init();
}
JosLazerLineClass.prototype = new JosMovieClip();
JosLazerLineClass.prototype.init = function () {
super.init();
this.width = Math.sqrt((this._width * this._width) + (this._height * this._height));
this._xscale = (this._yscale = 100);
this.tempo = parseInt(this.width / 10);
this.line.extend(_root.JosMovieClip);
this.line.setTo({_alpha:20, _width:1});
this.attachMovie("intro_dot", "dot", 1);
this.dot.extend(_root.JosMovieClip);
this.dot.setTo({_xscale:50, _yscale:50});
this.draw();
};
JosLazerLineClass.prototype.activate = function () {
super.activate();
};
JosLazerLineClass.prototype.deactivate = function () {
super.deactivate();
};
JosLazerLineClass.prototype.draw = function () {
this.line.moveTo({_alpha:this.alpha_param}, this.tempo * 10, Math.curve.ease_out, this.delay_param);
this.line.moveTo({_width:this.width}, this.tempo, Math.curve.linear, this.delay_param);
this.dot.moveTo({_x:this.width}, this.tempo, Math.curve.linear, this.delay_param, 1);
this.dot.onMoveDone = function () {
this.removeMovieClip();
};
};
Object.registerClass("JosLazerLineSymbol", JosLazerLineClass);
#endinitclip
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 30;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 80;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 50;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 128
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 128
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 128
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 128
//component parameters
onClipEvent (initialize) {
delay_param = 30;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 25;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 40;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 503
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 503
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 503
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 503
//component parameters
onClipEvent (initialize) {
delay_param = 30;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 600
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 600
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 706
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 40;
fadetime_param = 2;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 706
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 40;
fadetime_param = 2;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 706
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 40;
fadetime_param = 2;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 60 MovieClip Frame 706
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 40;
fadetime_param = 2;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
delay_param = 50;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 128
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 128
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 128
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 25;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 366
//component parameters
onClipEvent (initialize) {
delay_param = 40;
alpha_param = 40;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 503
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 503
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 503
//component parameters
onClipEvent (initialize) {
delay_param = 20;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 549
//component parameters
onClipEvent (initialize) {
delay_param = 30;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 549
//component parameters
onClipEvent (initialize) {
delay_param = 0;
alpha_param = 100;
fadetime_param = 6;
}
Instance of Symbol 59 MovieClip [JosLazerLineSymbol] in Symbol 66 MovieClip Frame 549
//component parameters
onClipEvent (initialize) {
delay_param = 10;
alpha_param = 100;
fadetime_param = 6;
}
Symbol 71 MovieClip Frame 2
lazer2.extend(_root.JosMovieClip);
lazer2.initColorMethods();
lazer2.setTo({_alpha:0, _xscale:400, _yscale:400});
lazer2.moveTo({_xscale:100, _yscale:100}, 800, Math.curve.ease_out);
lazer2.moveTo({_alpha:80}, 800, Math.curve.ease_out);
lazer1.extend(_root.JosMovieClip);
lazer1.initColorMethods();
lazer1.setTo({_xscale:400, _yscale:400});
lazer1.moveTo({_xscale:100, _yscale:100, _alpha:50}, 800, Math.curve.ease_out);
if (Key.isDown(16)) {
lazer1.setTo({red:128});
lazer2.setTo({red:128});
}
Symbol 71 MovieClip Frame 830
lazer1.moveTo({_alpha:0}, 200, Math.curve.ease_out);
Symbol 71 MovieClip Frame 980
lazer2.moveTo({_alpha:0}, 100, Math.curve.ease_out);
Symbol 71 MovieClip Frame 1091
_parent.onIntroFade();
Symbol 71 MovieClip Frame 1410
_parent.onIntroDone();
Symbol 71 MovieClip Frame 1501
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
this.extends(_root.JosMovieClip);
this._visible = false;
Symbol 86 MovieClip Frame 100
Symbol 86 MovieClip Frame 200
Symbol 86 MovieClip Frame 261
stop();
Symbol 88 MovieClip [JosMousePointerSymbol] Frame 1
#initclip 13
function JosMousePointerClass() {
Jos.addToGroup(this.group_param, this);
ASBroadcaster.initialize(this);
this.init();
}
JosMousePointerClass.prototype = new JosMovieClip();
JosMousePointerClass.prototype.init = function () {
super.init();
this.middle = 354;
this.showText = 0;
this.slowLimit = 0;
this.fastLimit = 236;
this.mover = this._parent.mover;
this._locked = false;
this.gotoAndStop(1);
this.hide();
this.enable();
};
JosMousePointerClass.prototype.hideText = function () {
this.showText = 4;
};
JosMousePointerClass.prototype.enable = function () {
super.enable();
};
JosMousePointerClass.prototype.disable = function () {
super.disable();
this.deactivate();
};
JosMousePointerClass.prototype.big = function () {
this.setTo({_xscale:95, _yscale:95});
};
JosMousePointerClass.prototype.small = function () {
this.setTo({_xscale:75, _yscale:75});
};
JosMousePointerClass.prototype.activate = function () {
if (!this._enabled) {
return(false);
}
super.activate();
this.show();
Mouse.hide();
this.onEnterFrame = function () {
if (this._locked) {
return(false);
}
var _local3 = _root._xmouse;
var _local4 = _root._ymouse;
this.setTo({_x:_local3, _y:_local4});
if ((_local3 > (this.middle + this.fastLimit)) && (this.mover.turbo)) {
this.gotoAndStop(3 + this.showText);
} else if (_local3 > (this.middle + this.slowLimit)) {
this.gotoAndStop(1 + this.showText);
} else if ((_local3 < (this.middle - this.fastLimit)) && (this.mover.turbo)) {
this.gotoAndStop(4 + this.showText);
} else if (_local3 < (this.middle - this.slowLimit)) {
this.gotoAndStop(2 + this.showText);
}
if (this._parent.mover.hitTest(_root._xmouse, _root._ymouse, false)) {
Mouse.hide();
}
};
this.broadcastMessage("onActivate", this);
};
JosMousePointerClass.prototype.deactivate = function () {
super.deactivate();
this.hide();
Mouse.show();
delete this.onEnterFrame;
this.gotoAndStop(9);
this.broadcastMessage("onDeactivate", this);
};
JosMousePointerClass.prototype.lock = function () {
this._locked = true;
this.gotoAndStop(9);
};
JosMousePointerClass.prototype.unlock = function () {
this._locked = false;
};
JosMousePointerClass.prototype.draw = function () {
};
Object.registerClass("JosMousePointerSymbol", JosMousePointerClass);
#endinitclip
Symbol 90 MovieClip [JosButtonTextSymbol] Frame 1
#initclip 12
function JosButtonTextClass() {
ASBroadcaster.initialize(this);
this.addListener(this);
Jos.addToGroup(this.group_param, this);
this.initColorMethods();
this.init();
}
JosButtonTextClass.prototype = new JosDynamicButtonClass();
JosButtonTextClass.prototype.init = function () {
super.init();
this.label._width = this.width;
this.label._height = this.height;
this.box._visible = false;
this.label_y = this.label._y;
this.setLabel(this.label_param, this.labelActive_param);
this.label.textColor = 0;
var _local3 = new TextFormat();
_local3.align = this.autoSize_param;
this.setStyle(_local3);
this.addProperty("normalColor", this.get_normal_color, this.set_normal_color);
this.enable();
this.draw();
};
JosButtonTextClass.prototype.draw = function (val) {
if (val != undefined) {
this.state_param = val;
}
switch (this.state_param) {
case "normal" :
case undefined :
this.drawLabel(this.label_param);
this.drawTextColor(this.normal_color);
break;
case "hilite" :
this.drawTextColor(this.hilite_color);
break;
case "active" :
this.drawLabel(this.labelActive_param);
this.drawTextColor(this.active_color);
}
this.label.setNewTextFormat(this._style);
this.label.setTextFormat(this._style);
};
JosButtonTextClass.prototype.setAutoSize = function (value) {
this.label.autoSize = value;
if (value == "none") {
this.label._width = this.width;
}
};
JosButtonTextClass.prototype.setLabel = function (label_param, labelActive_param) {
this.label_param = label_param;
this.labelActive_param = (labelActive_param.length ? (labelActive_param) : (label_param));
this.draw();
};
JosButtonTextClass.prototype.drawLabel = function (val) {
this.label.text = val;
};
JosButtonTextClass.prototype.drawTextColor = function (col) {
var _local2 = Color.hexToRGB(col);
this.moveTo({red:_local2.red}, 14, Math.curve.fade_over);
this.moveTo({green:_local2.green, blue:_local2.blue}, 14, Math.curve.ease);
};
JosButtonTextClass.prototype.setStyle = function (style) {
this._style = style;
};
JosButtonTextClass.prototype.activate = function () {
super.activate();
};
JosButtonTextClass.prototype.deactivate = function () {
super.deactivate();
};
JosButtonTextClass.prototype.set_normal_color = function (c) {
this.normal_color = c;
this.draw();
};
JosButtonTextClass.prototype.get_normal_color = function () {
return(this.normal_color);
};
Object.registerClass("JosButtonTextSymbol", JosButtonTextClass);
#endinitclip
Symbol 117 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
gotoAndStop(_parent.currentKitchen);
Symbol 132 MovieClip Frame 3
passion_mc.extend(_root.JosMovieClip);
passion_mc.moveTo({_y:-270}, 100, Math.curve.ease_out);
passion_mc.onMoveDone = function () {
this.activate = function () {
this.onEnterFrame = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if ((_local4 > 0) && (_local4 < 708)) {
if ((((_local3 > 388) && (_local3 < 488)) && (_local4 < 550)) && (this._y > (448 - this._height))) {
this._y = this._y - 2;
Mouse.hide();
this._parent.upDownMouse.gotoAndStop(3);
} else if (((_local3 < 140) && (_local3 > 40)) && (this._y < 0)) {
this._y = this._y + 2;
Mouse.hide();
this._parent.upDownMouse.gotoAndStop(2);
} else {
Mouse.show();
this._parent.upDownMouse.gotoAndStop(1);
}
}
};
this.onMouseMove = function () {
this._parent.upDownMouse._x = this._parent._xmouse;
this._parent.upDownMouse._y = this._parent._ymouse;
};
};
this.deactivate = function () {
Mouse.show();
this._parent.upDownMouse.gotoAndStop(1);
delete this.onEnterFrame;
delete this.onMouseMove;
};
this.activate();
};
passion_mc.onUnload = function () {
delete this.onEnterFrame;
delete this.onMoveDone;
delete this.onMouseMove;
Mouse.show();
};
Symbol 136 MovieClip Frame 1
this.extend(_root.JosMovieClip);
this.show = function () {
this.stopAllMoves();
this.moveTo({_alpha:100}, 28, Math.curve.fade_over);
};
this.hide = function () {
this.stopAllMoves();
this.moveTo({_alpha:0}, 14, Math.curve.ease_out);
};
Symbol 143 MovieClip Frame 42
stop();
Symbol 144 Button
on (release) {
this._parent.subpage2_menu.activate();
}
Symbol 147 MovieClip Frame 1
this.extend(_root.JosMovieClip);
this.useHandCursor = false;
this.setTo({_xscale:1, _yscale:1});
this.moveTo({_xscale:85, _yscale:85}, 28, Math.curve.fade_over);
this.show = function () {
this.stopAllMoves();
this.moveTo({_xscale:105, _yscale:105}, 20, Math.curve.fade_over);
this._parent.offer_text.show();
};
this.hide = function () {
this.stopAllMoves();
this.moveTo({_xscale:85, _yscale:85}, 10, Math.curve.ease_out);
this._parent.offer_text.hide();
};
this.onRollOver = function () {
this.show();
};
this.onRollOut = function () {
this.hide();
};
Symbol 148 MovieClip Frame 1
this.extend(_root.JosMovieClip);
this.show = function (k) {
this._activated = true;
this.currentKitchen = k + 1;
this.playTo(25);
};
this.hide = function () {
this._activated = false;
this.playTo(1);
};
delete this._parent.lastVisit;
stop();
Symbol 148 MovieClip Frame 25
kh_button.extend(_root.JosMovieClip);
kh_button.setTo({_xscale:0, _yscale:0});
kh_button.moveTo({_xscale:100, _yscale:100}, 28, Math.curve.fade_over, 50);
Symbol 155 MovieClip Frame 1
this.extend(_root.JosMovieClip);
this.loaded = false;
this.show = function (file) {
this.file = file;
this._show = true;
gotoAndPlay (2);
};
this.hide = function () {
this._show = false;
playTo(2);
};
stop();
Symbol 155 MovieClip Frame 10
content.hidePage();
if (!this.loaded) {
content.loadMovie(this.file);
}
this.loaded = true;
Symbol 155 MovieClip Frame 12
if ((content._framesloaded > 1) && (this._show)) {
content.showPage();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 155 MovieClip Frame 25
stop();
Symbol 161 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.ikea.se");
};