Frame 2
function onDoubleClick() {
if (clickN == 0) {
intervalId = setInterval(_root, "_countClick", duration);
}
clickN = clickN + 1;
}
function _countClick() {
if (clickN == 2) {
}
clearInterval(intervalId);
clickN = 0;
}
var _LANG_MODE = "en";
var _GUI_SCALE = 100;
if (_LANG_MODE != "ja") {
var _APP_NAME = "Universal Player Flash";
var _APP_AUTHOR = "Developed by aonan.";
var _APP_COPYRIGHT = "Copyright(C)Since 2013 aonan All rights reserved.";
} else {
var _APP_NAME = "Universal Player Flash";
var _APP_AUTHOR = "Developed by aonan.";
var _APP_COPYRIGHT = "Copyright(C)Since 2013 aonan All rights reserved.";
}
var _APP_MAJOR_VER = 1;
var _APP_MINOR_VER = 0;
var _APP_REVISION_VER = 0;
var _APP_VERSION = ((_APP_MAJOR_VER + ".") + _APP_MINOR_VER);
var isInitialized = false;
var isPlaying = false;
var player_sndobj = new Sound();
var duration = 300;
var clickN = 0;
var intervalId = 0;
var __mouse_obj = new Object();
var mouseX = 0;
var mouseY = 0;
_root.onEnterFrame = function () {
if (!isInitialized) {
_root.player._visible = true;
_root.volume_slider._visible = true;
} else {
mouseX = _root._xmouse;
mouseY = _root._ymouse;
if (!((((mouseX >= 0) && (Stage.width >= mouseX)) && (mouseY >= _root.player._y)) && (Stage.height >= mouseY))) {
_root.player._visible = false;
_root.volume_slider._visible = false;
} else {
_root.player._visible = true;
_root.volume_slider._visible = true;
}
}
};
__mouse_obj.onMouseWheel = function (delta, scrollTarget) {
if (isInitialized) {
if (0 >= delta) {
if (delta < 0) {
}
}
}
};
Mouse.addListener(__mouse_obj);
var menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = true;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.zoom = false;
var menu_item_1 = new ContextMenuItem();
menu_item_1.caption = (_APP_NAME + " ") + _APP_VERSION;
menu_item_1.enabled = false;
menu_item_1.separatorBefore = true;
menu_item_1.visible = true;
menu_item_1.onSelect = function () {
};
var menu_item_2 = new ContextMenuItem();
menu_item_2.caption = _APP_AUTHOR;
menu_item_2.enabled = false;
menu_item_2.separatorBefore = false;
menu_item_2.visible = true;
menu_item_2.onSelect = function () {
};
var menu_item_3 = new ContextMenuItem();
menu_item_3.caption = _APP_COPYRIGHT;
menu_item_3.enabled = false;
menu_item_3.separatorBefore = false;
menu_item_3.visible = true;
menu_item_3.onSelect = function () {
};
menu_cm.customItems = [menu_item_1, menu_item_2, menu_item_3];
_root.menu = menu_cm;
Instance of Symbol 19992 MovieClip [player_gui] "player" in Frame 3
onClipEvent (load) {
this._xscale = parseInt(_root._GUI_SCALE);
this._yscale = parseInt(_root._GUI_SCALE);
this._x = 0;
this._y = Stage.height - _root.player._height;
_root.volume_slider._xscale = parseInt(_root._GUI_SCALE);
_root.volume_slider._yscale = parseInt(_root._GUI_SCALE);
_root.volume_slider._x = parseInt(96 * (_root.volume_slider._xscale / 100)) + parseInt(8 * (_root.volume_slider._xscale / 100));
_root.volume_slider._y = parseInt(Stage.height - _root.player._height) + parseInt(4 * (_root.volume_slider._yscale / 100));
}
Instance of Symbol 19994 MovieClip [player_handle] "volume_slider" in Frame 3
onClipEvent (load) {
var _sx = (parseInt(96 * (_root.volume_slider._xscale / 100)) + parseInt(8 * (_root.volume_slider._xscale / 100)));
this._x = this._x + parseInt((112 / 2) * (_root.volume_slider._xscale / 100));
var _value = parseInt((parseInt((this._x - _sx) / (_root.volume_slider._xscale / 100)) / 112) * 100);
_root.player_sndobj.setVolume(_value);
}
onClipEvent (enterFrame) {
var _sx = (parseInt(96 * (_root.volume_slider._xscale / 100)) + parseInt(8 * (_root.volume_slider._xscale / 100)));
var _value = parseInt((parseInt((this._x - _sx) / (_root.volume_slider._xscale / 100)) / 112) * 100);
_root.player_sndobj.setVolume(_value);
}
onClipEvent (mouseMove) {
updateAfterEvent();
}
onClipEvent (mouseUp) {
this.stopDrag();
}
on (press) {
var _sx = (parseInt(96 * (_root.volume_slider._xscale / 100)) + parseInt(8 * (_root.volume_slider._xscale / 100)));
var _ex = (parseInt(120 * (_root.volume_slider._yscale / 100)) - parseInt(8 * (_root.volume_slider._yscale / 100)));
var _sy = (parseInt(Stage.height - _root.player._height) + parseInt(4 * (_root.volume_slider._yscale / 100)));
this.startDrag(false, _sx, _sy, _sx + _ex, _sy);
}
on (release, releaseOutside) {
this.stopDrag();
}
Frame 4
stop();
Frame 5
isInitialized = true;
Frame 6
Frame 1496
Frame 1497
_root.gotoAndStop(4);
_root.isPlaying = false;
_root.isInitialized = false;
Symbol 19998 MovieClip [loader] Frame 1
var _GUI_LOADERMSG_WIDTH = 110;
var _GUI_LOADERMSG_HEIGHT = 24;
this.createTextField("lblLoaderMsg", 0, 0, 0, Stage.width, Stage.height);
this.lblLoaderMsg.selectable = false;
var text_format = new TextFormat();
text_format.align = "center";
text_format.font = "_sans";
text_format.size = 32;
text_format.color = 16777215 /* 0xFFFFFF */;
this.lblLoaderMsg.setNewTextFormat(text_format);
this.lblLoaderMsg.text = "";
testmode = true;
if (_url.indexOf("file://") != -1) {
testmode = true;
}
total = _root.getBytesTotal();
if (testmode) {
total = 1000000 /* 0x0F4240 */;
}
Symbol 19998 MovieClip [loader] Frame 2
if (!testmode) {
loaded = _root.getBytesLoaded();
} else {
loaded = loaded + 8888;
if (loaded >= total) {
loaded = 0;
}
}
sindo = int((loaded / total) * 100);
this.lblLoaderMsg.text = ((((("\nNow Loading... \n\n" + int(loaded / 1000)) + "KB / ") + int(total / 1000)) + "KB (") + sindo) + "%)";
Symbol 19998 MovieClip [loader] Frame 3
gotoAndPlay("refresh_loop");
Symbol 20000 Button
on (press) {
if (_root.isPlaying != false) {
_root.stop();
_root.isPlaying = false;
} else {
_root.play();
_root.isPlaying = true;
}
}
on () {
}
Symbol 20001 Button
on (press) {
_root.gotoAndStop(4);
_root.isPlaying = false;
_root.isInitialized = false;
}
on () {
}