Frame 1
function slidermove() {
var t = 20;
_root.control.slider.btn.onEnterFrame = function () {
if (t < 0) {
this._x = (249 - (this._width / 2)) * (ns.time / ns.timetotal);
}
t = t - 1;
};
}
function init() {
if (_root._url.indexOf("/special/ffv13_01/", -1) != -1) {
ns.play("b11Cf7nF.flv");
}
_root.control.slider.bar._xscale = 0;
_root.screen.play._visible = false;
_root.screen.play._alpha = 0;
_root.screen.replay._visible = false;
_root.screen.replay._alpha = 0;
}
util.HideContextMenu.hide();
_root.debug = _root._url;
var nc = new NetConnection();
nc.connect(null);
var ns = new NetStream(nc);
ns.setBufferTime(15);
ns.firstplay = true;
ns.onStatus = function (obj) {
switch (obj.code) {
case "NetStream.Play.Stop" :
bc.broadcastMessage("showscreen");
bc.broadcastMessage("movieend");
break;
case "NetStream.Buffer.Full" :
if (ns.firstplay) {
bc.broadcastMessage("moviepause", true);
bc.broadcastMessage("firstbufferfull");
slidermove();
ns.firstplay = false;
}
break;
case "NetStream.Buffer.Empty" :
}
};
ns.onMetaData = function (obj) {
ns.timetotal = obj.duration;
};
movie.video.attachVideo(ns);
var isplay = true;
_root.control.hit1.onRelease = function () {
bc.broadcastMessage("moviepause");
isplay = !isplay;
bc.broadcastMessage("switchplaybutton", isplay);
};
_root.control.hit2.onRelease = function () {
bc.broadcastMessage("soundmute");
};
_root.control.slider.btn.onPress = function () {
bc.broadcastMessage("moviepause", true);
bc.broadcastMessage("sliderpress");
};
_root.control.slider.btn.onRelease = function () {
bc.broadcastMessage("moviepause", false);
bc.broadcastMessage("sliderrelease");
bc.broadcastMessage("moviestep");
isplay = true;
bc.broadcastMessage("switchplaybutton", isplay);
};
_root.control.slider.btn.onReleaseOutside = function () {
bc.broadcastMessage("moviepause", false);
bc.broadcastMessage("sliderrelease");
bc.broadcastMessage("moviestep");
};
var nslis = _root.createEmptyMovieClip("nslis", _root.getNextHighestDepth());
nslis.moviepause = function (b) {
ns.pause(b);
};
nslis.moviestep = function () {
var _local2 = _root.control.slider;
ns.seek((ns.timetotal * _local2.btn._x) / (249 - _local2.btn._width));
};
nslis.moviereplay = function () {
ns.seek(0);
slidermove();
isplay = true;
bc.broadcastMessage("switchplaybutton", isplay);
};
_root.control.slider.btn.sliderpress = function () {
startDrag (this, false, 0, 0, _root.control.slider.bar._width - this._width, 0);
};
_root.control.slider.btn.sliderrelease = function () {
stopDrag();
};
_root.control.slider.btn.moviepause = function (b) {
if (b) {
delete this.onEnterFrame;
} else {
slidermove();
}
};
_root.control.slider.btn.movieend = function () {
delete this.onEnterFrame;
this._x = 0;
};
_root.control.slider.bar.onEnterFrame = function () {
this._xscale = ((this._xscale >= 100) ? 100 : (Math.round((ns.bytesLoaded / ns.bytesTotal) * 100)));
if (this._xscale >= 100) {
delete this.onEnterFrame;
}
};
_root.control.hit1.switchplaybutton = function (b) {
if (b) {
this.gotoAndStop("pause");
} else {
this.gotoAndStop("play");
}
};
_root.control.hit2.switchmutebutton = function (n) {
if (n == 100) {
this.gotoAndStop("off");
} else {
this.gotoAndStop("on");
}
};
_root.screen.erasescreen = function () {
this.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 40;
} else {
this.gotoAndStop("replay");
this._visible = false;
this.play._visible = false;
delete this.onEnterFrame;
}
};
};
_root.screen.showscreen = function () {
this._visible = true;
this._alpha = 0;
this.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 40;
} else {
delete this.onEnterFrame;
}
};
};
_root.screen.play.firstbufferfull = function () {
this._visible = true;
this.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 40;
} else {
delete this.onEnterFrame;
}
};
};
_root.screen.replay.showscreen = function () {
this._visible = true;
this._alpha = 100;
};
_root.screen.play.onRelease = function () {
bc.broadcastMessage("moviepause", false);
bc.broadcastMessage("erasescreen");
};
_root.screen.replay.onRelease = function () {
bc.broadcastMessage("moviereplay");
bc.broadcastMessage("erasescreen");
};
var sdlis = _root.createEmptyMovieClip("sdlis", _root.getNextHighestDepth());
var s = _root.createEmptyMovieClip("s", _root.getNextHighestDepth());
s.attachAudio(ns);
var sc = new Sound(s);
sdlis.soundmute = function () {
sc.setVolume(((sc.getVolume() == 100) ? 0 : 100));
bc.broadcastMessage("switchmutebutton", sc.getVolume());
};
var bc = new Object();
AsBroadcaster.initialize(bc);
bc.addListener(nslis);
bc.addListener(sdlis);
bc.addListener(_root.control.slider.btn);
bc.addListener(_root.control.hit1);
bc.addListener(_root.control.hit2);
bc.addListener(_root.screen);
bc.addListener(_root.screen.play);
bc.addListener(_root.screen.replay);
init();
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 2
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 1
this.useHandCursor = false;
this.onRelease = function () {
};
Symbol 36 MovieClip [__Packages.util.HideContextMenu] Frame 0
class util.HideContextMenu
{
static var c;
function HideContextMenu () {
}
static function hide() {
c = new ContextMenu();
c.hideBuiltInItems();
_root.menu = c;
}
}