Frame 1
fscommand ("allowscale", "false");
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (load) {
total = _parent.getBytesTotal();
_parent.stop();
barra._xscale = 0;
}
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
pct = Math.floor((loaded / total) * 100);
barra._xscale = pct;
if (pct == 100) {
_parent.nextFrame();
}
}
Frame 2
stop();
Frame 1902
stop();
Symbol 11 Button
on (release) {
gotoAndPlay (3);
}
Symbol 27 MovieClip Frame 1
function setParallax(clip, percentSpeed) {
percentSpeed = (100 - percentSpeed) / 100;
clipList.push({name:clip, val:percentSpeed});
this.onEnterFrame = parallaxCamControl;
}
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local3 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local3);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local3;
_parent._yscale = 100 * _local4;
}
function parallaxCamControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local5 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local5);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local5;
camSpeedX = this._x - lastXPos;
camSpeedY = this._y - lastYPos;
lastXPos = this._x;
lastYPos = this._y;
var _local3 = 0;
while (_local3 < clipList.length) {
clipList[_local3].name._x = clipList[_local3].name._x + (camSpeedX * clipList[_local3].val);
clipList[_local3].name._y = clipList[_local3].name._y + (camSpeedY * clipList[_local3].val);
trace(clipList[_local3].val);
_local3++;
}
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
var clipList = new Array();
var camSpeedX = 0;
var camSpeedY = 0;
var lastXPos = this._x;
var lastYPos = this._y;
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 38 Button
on (release) {
gotoAndPlay (3);
}