Instance of Symbol 7 MovieClip [Loader] in Frame 1
//component parameters
onClipEvent (initialize) {
SlideWidth = 130;
SlideHeight = 10;
scolor = 0;
bcolor = 0;
fname = "Arial";
fsize = 10;
}
Frame 2
function clear_intervals() {
clearInterval(repos_int_green);
clearInterval(repos_int_blue);
clearInterval(repos_int_green);
clearInterval(up_int_red);
clearInterval(up_int_blue);
clearInterval(up_int_green);
}
mySound.stop();
clear_intervals();
stop();
Frame 3
function go_up(asd) {
asd._y = asd._y - 1;
}
function reposition(zxc) {
var _local1 = zxc;
_local1._visible = true;
total_balls = ++total_balls;
_local1._y = random(370) + 70;
_local1._x = random(550) + 50;
_local1.gotoAndPlay(1);
}
function goodshot() {
if (this._currentframe < 10) {
_root.score = ++score;
this.gotoAndPlay("blow");
mySound = new Sound();
mySound.attachSound("fuck.mp3");
mySound.start();
}
}
stop();
clear_intervals();
blue_ball._visible = false;
green_ball._visible = false;
red_ball._visible = false;
clearInterval(repos_int);
clearInterval(up_int);
up_int = setInterval(go_up, 5, balon);
repos_int_red = setInterval(reposition, 2400, red_ball);
repos_int_blue = setInterval(reposition, 2700, blue_ball);
repos_int_green = setInterval(reposition, 3100, green_ball);
up_int_red = setInterval(go_up, 2, red_ball);
up_int_blue = setInterval(go_up, 2, blue_ball);
up_int_green = setInterval(go_up, 2, green_ball);
red_ball.onPress = goodshot;
blue_ball.onPress = goodshot;
green_ball.onPress = goodshot;
Symbol 7 MovieClip [Loader] Frame 1
#initclip 1
function LoaderClass() {
var _local1 = this;
_local1.slideColor = new Color(_local1.slide);
_local1.bordColor = new Color(_local1.bord);
_local1.update();
}
LoaderClass.prototype = new MovieClip();
LoaderClass.prototype.update = function () {
var _local1 = this;
_local1.slideColor.setRGB(_local1.scolor);
_local1.bordColor.setRGB(_local1.bcolor);
_local1.bord._width = _local1.SlideWidth + 4;
_local1.slide._width = _local1.SlideWidth;
_local1.bord._height = _local1.SlideHeight + 4;
_local1.slide._height = _local1.SlideHeight;
_local1.createTextField("mytext", 1, _local1.bord._x, _local1.bord._y, 300, 40);
delete _local1.mtextFormat;
_local1.mtextFormat = new TextFormat(_local1);
_local1.mTextFormat.font = _local1.fname;
_local1.mTextFormat.color = _local1.bcolor;
_local1.mTextFormat.size = _local1.fsize;
_local1.mytext.text = "";
_local1.mytext.setTextFormat(_local1.mtextFormat);
};
LoaderClass.prototype.setSlideWidth = function (b) {
this.SlideWidth = b;
this.update();
};
LoaderClass.prototype.getSlideWidth = function () {
return(this.SlideWidth);
};
LoaderClass.prototype.setSlideHeight = function (h) {
this.SlideHeight = h;
this.update();
};
LoaderClass.prototype.getSlideHeight = function () {
return(this.SlideHeight);
};
LoaderClass.prototype.setTintColor = function (c) {
this.tcolor = c;
this.update();
};
LoaderClass.prototype.turnOnTint = function () {
this.applyTint = true;
this.update();
};
Object.registerClass("Loader", LoaderClass);
#endinitclip
Instance of Symbol 4 MovieClip "slide" in Symbol 7 MovieClip [Loader] Frame 1
onClipEvent (load) {
_root.stop();
this.topScale = this._width;
this._xscale = 0;
ft = int(_root.getBytesTotal() / 1024);
}
onClipEvent (enterFrame) {
fl = int(_root.getBytesLoaded() / 1024);
this._xscale = (fl / ft) * this.topScale;
_parent.mytext.text = ((("LOADING " + fl) + " KB OF ") + ft) + " KB";
_parent.mytext.setTextFormat(_parent.mtextFormat);
if (fl == ft) {
_root.gotoAndPlay(_currentframe + 1);
play();
}
}
Symbol 17 Button
on (release) {
gotoAndPlay (3);
}
Symbol 46 MovieClip Frame 9
stop();
Symbol 46 MovieClip Frame 16
stop();
Symbol 51 Button
on (release) {
gotoAndPlay (2);
}
Symbol 58 MovieClip Frame 1
top = volFader._y;
bottom = volfader._y;
left = volFader._width / 2;
right = volSlider._width - (volFader._width / 2);
volFader.onPress = function () {
startDrag (volFader, true, left, top, right, bottom);
};
volFader.onRelease = function () {
stopDrag();
};
this.onEnterFrame = function () {
_parent.mySound.setVolume(Math.round((volFader._x / volSlider._width) * 100));
volSlider.volMask._width = volFader._x;
};