Frame 1
function checkBytesLoaded(my_ns) {
var _local1 = Math.round((my_ns.bytesLoaded / my_ns.bytesTotal) * 100);
loaded_txt.text = ((((Math.round(my_ns.bytesLoaded / 1000) + " of ") + Math.round(my_ns.bytesTotal / 1000)) + " KB loaded (") + _local1) + "%)";
progressBar_mc.bar_mc._xscale = _local1;
if (_local1 >= 100) {
clearInterval(loaded_interval);
loaded_txt.removeTextField();
stopAllSounds();
gotoAndPlay (2);
}
}
var connection_nc = new NetConnection();
connection_nc.connect(null);
var stream_ns = new NetStream(connection_nc);
stream_ns.play("flv.php?f=Anpu1.flv");
this.createTextField("loaded_txt", this.getNextHighestDepth(), 10, 10, 160, 22);
var loaded_interval = setInterval(checkBytesLoaded, 100, stream_ns);
stop();
Frame 2
function checkBytesLoaded(my_ns) {
var _local1 = Math.round((my_ns.bytesLoaded / my_ns.bytesTotal) * 100);
loaded_txt.text = ((((Math.round(my_ns.bytesLoaded / 1000) + " of ") + Math.round(my_ns.bytesTotal / 1000)) + " KB loaded (") + _local1) + "%)";
progressBar_mc.bar_mc._xscale = _local1;
if (_local1 >= 100) {
clearInterval(loaded_interval);
loaded_txt.removeTextField();
stopAllSounds();
gotoAndPlay (3);
}
}
var connection_nc = new NetConnection();
connection_nc.connect(null);
var stream_nns = new NetStream(connection_nc);
stream_nns.play("flv.php?f=Anpu2.flv");
this.createTextField("loaded_txt", this.getNextHighestDepth(), 10, 10, 160, 22);
var loaded_interval = setInterval(checkBytesLoaded, 100, stream_nns);
stop();
Frame 3
function checkBytesLoaded(my_ns) {
var _local1 = Math.round((my_ns.bytesLoaded / my_ns.bytesTotal) * 100);
loaded_txt.text = ((((Math.round(my_ns.bytesLoaded / 1000) + " of ") + Math.round(my_ns.bytesTotal / 1000)) + " KB loaded (") + _local1) + "%)";
progressBar_mc.bar_mc._xscale = _local1;
if (_local1 >= 100) {
clearInterval(loaded_interval);
loaded_txt.removeTextField();
stopAllSounds();
gotoAndPlay (4);
}
}
var connection_nc = new NetConnection();
connection_nc.connect(null);
var stream_nnns = new NetStream(connection_nc);
stream_nnns.play("flv.php?f=ValiKasi.flv");
this.createTextField("loaded_txt", this.getNextHighestDepth(), 10, 10, 160, 22);
var loaded_interval = setInterval(checkBytesLoaded, 100, stream_nnns);
stop();
Frame 4
tealcSound = new Sound(this);
tealcSound.attachSound("mega");
tealcSound.start(0, 999999);
var ncConection = new NetConnection();
ncConection.connect(null);
var nsStream = new NetStream(ncConection);
nsStream.onStatus = function (oInfo) {
if (oInfo.code == "NetStream.Play.Stop") {
nsStream.seek(0);
nsStream.play();
}
};
vMavideo.attachVideo(nsStream);
nsStream.play("flv.php?f=/Anpu1.flv");
stop();
Frame 5
function wait() {
stop();
var myInterval = setInterval(function () {
gotoAndStop (6);
clearInterval(myInterval);
}, 2500);
}
var ncConection = new NetConnection();
ncConection.connect(null);
var nsStream = new NetStream(ncConection);
nsStream.onStatus = function (oInfo) {
if (oInfo.code == "NetStream.Play.Stop") {
nsStream.seek(0);
nsStream.play();
}
};
vMavideo.attachVideo(nsStream);
nsStream.play("flv.php?f=ValiKasi.flv");
stop();
wait();
Frame 6
tealcSound.stop();
tealccSound = new Sound(this);
tealccSound.attachSound("pauke");
tealccSound.start(0, 999999);
var ncConection = new NetConnection();
ncConection.connect(null);
var nsStream = new NetStream(ncConection);
nsStream.onStatus = function (oInfo) {
if (oInfo.code == "NetStream.Play.Stop") {
nsStream.seek(0);
nsStream.play();
}
};
vMavideo.attachVideo(nsStream);
nsStream.play("flv.php?f=Anpu2.flv");
stop();
Symbol 8 Button
on (release) {
gotoAndStop (5);
}
Symbol 9 Button
on (release) {
tealccSound.stop();
gotoAndStop (4);
}