Combined Code
frame 1 {
stop();
_quality = 'BEST';
Stage.scaleMode = 'noScale';
onEnterFrame = function () {
LB = getBytesLoaded();
TB = getBytesTotal();
PC = (LB / TB) * 100;
loaderbar.setbar(PC);
if (TB > 4 && PC == 100) {
delete onEnterFrame;
gotoAndPlay('initialize');
}
};
}
movieClip 2 {
}
movieClip 4 {
}
movieClip 5 {
}
movieClip 6 {
frame 1 {
function setbar(PC) {
if (PC <= 50) {
s2.mask._rotation = 0;
s1.mask._rotation = 180 * (PC / 50);
} else {
s1.mask._rotation = 180;
s2.mask._rotation = 180 * ((PC - 50) / 50);
}
}
}
}
frame 2 {
stop();
this.onEnterFrame = function () {
xray_mc._x = _root._xmouse;
xray_mc._y = _root._ymouse;
mask1_mc._x = _root._xmouse;
mask1_mc._y = _root._ymouse;
mask2_mc._x = _root._xmouse;
mask2_mc._y = _root._ymouse;
mask3_mc._x = _root._xmouse;
mask3_mc._y = _root._ymouse;
mask4_mc._x = _root._xmouse;
mask4_mc._y = _root._ymouse;
};
}
movieClip 11 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 23 {
on (release) {
this.gotoAndStop('xray1');
_root.mask1_mc.gotoAndStop('show');
_root.mask2_mc.gotoAndStop('hide');
_root.mask3_mc.gotoAndStop('hide');
_root.mask4_mc.gotoAndStop('hide');
}
}
button 24 {
on (release) {
this.gotoAndStop('xray2');
_root.mask1_mc.gotoAndStop('hide');
_root.mask2_mc.gotoAndStop('show');
_root.mask3_mc.gotoAndStop('hide');
_root.mask4_mc.gotoAndStop('hide');
}
}
button 25 {
on (release) {
this.gotoAndStop('xray3');
_root.mask1_mc.gotoAndStop('hide');
_root.mask2_mc.gotoAndStop('hide');
_root.mask3_mc.gotoAndStop('show');
_root.mask4_mc.gotoAndStop('hide');
}
}
button 26 {
on (release) {
this.gotoAndStop('xray4');
_root.mask1_mc.gotoAndStop('hide');
_root.mask2_mc.gotoAndStop('hide');
_root.mask3_mc.gotoAndStop('hide');
_root.mask4_mc.gotoAndStop('show');
}
}
movieClip 32 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 34 {
}