STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/27883617?noj=FRM27883617-22DC" width="1" height="1"></div>

Zangief vs Naruto.swf

This is the info page for
Flash #94833

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Frame 1
function onResize() { m_flvPlayer.setSize(Stage.width, Stage.height); } function checkProtocol(url, serverDomain) { var _local2 = url.indexOf(":"); if (_local2 < 0) { return(true); } var _local4 = url.substring(0, _local2); switch (_local4) { case "http" : if ((serverDomain != "localhost") && (url.indexOf(("http://" + serverDomain) + "/") != 0)) { return(false); } return(true); case "https" : if ((serverDomain != "localhost") && (url.indexOf(("https://" + serverDomain) + "/") != 0)) { return(false); } return(true); case "file" : return(true); } return(false); } attachMovie("FLVPlayer", "m_flvPlayer", 0); var argsObj = new Object(); argsObj.skinName = _root.skinName; argsObj.streamName = _root.streamName; argsObj.autoPlay = _root.autoPlay; argsObj.autoRewind = _root.autoRewind; var ncm = m_flvPlayer.addPlugin(new plugins.NCManager(), "NCManager"); Stage.align = "TL"; Stage.scaleMode = "noScale"; Stage.addListener(this); onResize(); var my_lc = new LocalConnection(); var thisDomain = my_lc.domain(); if ((argsObj.skinName && (checkProtocol(argsObj.skinName, thisDomain))) && (argsObj.streamName && (checkProtocol(argsObj.streamName, thisDomain)))) { m_flvPlayer.setUp(argsObj); }
Symbol 3 MovieClip [UIManager] Frame 1
#initclip 10 Object.registerClass("UIManager", UIManager); #endinitclip
Symbol 6 MovieClip [FLVPlayer] Frame 1
#initclip 9 Object.registerClass("FLVPlayer", FLVPlayer); #endinitclip stop();
Symbol 7 MovieClip [__Packages.IEDObject] Frame 0
class IEDObject extends Object { function IEDObject (Void) { super(); init(); } function init(Void) { mx.events.EventDispatcher.initialize(this); } }
Symbol 8 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 9 MovieClip [__Packages.plugins.Plugin] Frame 0
class plugins.Plugin extends IEDObject { var init, _player, _manager, name; function Plugin (Void) { super(); init(); _player = null; _manager = null; name = ""; } function set player(p) { _player = p; //return(player); } function get player() { return(_player); } function set manager(m) { _manager = m; //return(manager); } function get manager() { return(_manager); } function setUp(evt) { } function argsReady(evt) { _manager.setPluginReady(name); } }
Symbol 10 MovieClip [__Packages.FLVPlayer] Frame 0
class FLVPlayer extends MovieClip { var m_state, attachMovie, m_rollHandler, m_activelySeeking, m_showingUI, m_pluginsReady, m_pluginManager, m_args, dispatchEvent, m_uiManager, m_skinLoaded, m_hasSeekBar, m_nc, m_nsManager, m_hideUIInterval, m_videoW, m_videoH, m_w, m_h, _parent; function FLVPlayer (Void) { super(); mx.events.EventDispatcher.initialize(this); m_state = k_STOPPED; attachMovie("RollHandler", "m_rollHandler", 0); m_rollHandler._alpha = 0; m_activelySeeking = false; m_showingUI = true; m_pluginsReady = false; m_pluginManager = new PluginManager(this); } function pluginsReady(evt) { m_pluginsReady = true; setUpStream(); } function setUp(p_args) { m_args = p_args; dispatchEvent({type:"setUp", target:this, args:m_args}); argsReady(); } function argsReady(Void) { m_args.autoPlay = m_args.autoPlay.toLowerCase() == "true"; m_args.autoRewind = m_args.autoRewind.toLowerCase() == "true"; m_args.isFullScreen = m_args.isFullScreen.toLowerCase() == "true"; m_args.divName = m_args.divName; if (m_args.skinName != null) { attachMovie("UIManager", "m_uiManager", 1); var _local2 = new Object(); _local2.mc = this; _local2.play = function (p_event) { this.mc.uiPlay(); }; _local2.pause = function (p_event) { this.mc.uiPause(); }; _local2.stop = function (p_event) { this.mc.uiStop(); }; _local2.seek = function (p_event) { this.mc.uiSeek(p_event.position); }; _local2.seekStart = function (p_event) { this.mc.uiSeekStart(); }; _local2.rollOver = function (p_event) { this.mc.uiRollOver(); }; _local2.onVideoSize = function (p_event) { this.mc.uiVideoSize(p_event.w, p_event.h); }; m_uiManager.addEventListener("skinLoaded", this); m_uiManager.addEventListener("play", _local2); m_uiManager.addEventListener("pause", _local2); m_uiManager.addEventListener("stop", _local2); m_uiManager.addEventListener("seek", _local2); m_uiManager.addEventListener("seekStart", _local2); m_uiManager.addEventListener("rollOver", _local2); m_uiManager.addEventListener("onVideoSize", _local2); m_uiManager.loadSkin(m_args.skinName, m_args.isLive, m_args.isFullScreen); } else { error("Missing parameter: skinName"); } dispatchEvent({type:"argsReady", target:this, args:m_args}); } function addPlugin(p, pName) { return(m_pluginManager.addPlugin(p, pName)); } function getPlugin(pName) { return(m_pluginManager.getPlugin(pName)); } function removePlugin(pName) { m_pluginManager.removePlugin(pName); } function skinLoaded(p_event) { m_skinLoaded = true; m_uiManager.setState(m_state); m_hasSeekBar = p_event.hasSeekBar; if (p_event.autoHide) { m_rollHandler.useHandCursor = false; m_rollHandler.onRollOver = doRollOver; m_rollHandler.onRollOut = doRollOut; } m_uiManager.setSeekPosition(0); setUpStream(); } function uiPlay(Void) { if (m_nc.isConnected) { if (m_state == k_STOPPED) { m_nsManager.play(); } else { m_nsManager.pause(false); } m_state = k_PLAYING; m_uiManager.setState(m_state); } else { dispatchEvent({type:"reconnect", target:this}); } } function uiPause(Void) { m_nsManager.pause(true); m_state = k_PAUSED; m_uiManager.setState(m_state); } function uiStop(Void) { if (m_args.autoRewind) { m_nsManager.stop(); } else { m_nsManager.playLastFrame(); } m_state = k_STOPPED; m_uiManager.showBuffering(false); m_uiManager.setState(m_state); } function uiSeekStart(Void) { m_activelySeeking = true; } function uiSeek(p_position) { m_activelySeeking = false; m_nsManager.seek(p_position, m_state); } function uiRollOver(Void) { clearInterval(m_hideUIInterval); } function uiVideoSize(p_w, p_h) { m_videoW = p_w; m_videoH = p_h; m_uiManager.setSize(m_w, m_h, m_videoW, m_videoH); m_uiManager.showSkin(true); var _local2 = m_uiManager.getPadding(); dispatchEvent({type:"videoSize", w:m_videoW + _local2.w, h:m_videoH + _local2.h}); } function doRollOver(Void) { var _local2 = _parent; clearInterval(_local2.m_hideUIInterval); if (!_local2.m_showingUI) { _local2.m_showingUI = true; _local2.m_uiManager.showUI(_local2.m_showingUI); } } function doRollOut(Void) { var _local2 = _parent; _local2.m_hideUIInterval = setInterval(_local2, "hideUI", 200); } function hideUI(Void) { clearInterval(m_hideUIInterval); m_showingUI = false; m_uiManager.showUI(m_showingUI); } function ncConnected(evt) { if (evt.nc == null) { return(undefined); } m_nc = evt.nc; m_args.streamName = stripChar(m_args.streamName, " "); setUpStream(); } function setUpStream(Void) { if ((!m_pluginsReady) || (!m_skinLoaded)) { return(undefined); } if (m_args.streamName != null) { m_nsManager = new PDManager(m_nc); var _local2 = new Object(); _local2.mc = this; _local2.ready = function (p_event) { this.mc.nsStreamReady(p_event.ns); }; _local2.streamTimeUpdate = function (p_event) { this.mc.nsTimeUpdate(p_event.percentage, p_event.time); }; _local2.playbackDone = function (p_event) { this.mc.nsDone(p_event.percentage); }; _local2.streamNotFound = function (p_event) { this.mc.nsNotFound(); }; _local2.buffering = function (p_event) { this.mc.nsBuffering(p_event.value); }; m_nsManager.addEventListener("ready", _local2); m_nsManager.addEventListener("streamTimeUpdate", _local2); m_nsManager.addEventListener("playbackDone", _local2); m_nsManager.addEventListener("streamNotFound", _local2); m_nsManager.addEventListener("buffering", _local2); m_nsManager.setUp(m_args.streamName, m_args.isLive, m_hasSeekBar || (m_args.queuePointsFile != undefined), m_args.bufferTime); } else { error("Missing parameter: streamName"); } } function nsStreamReady(p_ns) { m_uiManager.attachStream(p_ns); if (m_args.autoPlay) { uiPlay(); } else { m_nsManager.playFirstFrame(); m_uiManager.setSeekPosition(0); } m_uiManager.adjustVideoSize(); dispatchEvent({type:"nsStreamReady", target:this}); } function nsTimeUpdate(p_percentage, p_seconds) { if (!m_activelySeeking) { m_uiManager.setSeekPosition(p_percentage); } dispatchEvent({type:"nsTimeUpdate", target:this, seconds:p_seconds, percentage:p_percentage}); } function nsDone(Void) { uiStop(); if (m_args.autoRewind) { m_uiManager.setSeekPosition(0); m_nsManager.playFirstFrame(); } dispatchEvent({type:"done"}); } function nsNotFound(Void) { uiStop(); m_uiManager.stopAdjustVideoSize(); dispatchEvent({type:"nsNotFound", target:this}); dispatchEvent({type:"tryFallBack", target:this}); } function nsBuffering(p_show) { m_uiManager.showBuffering(p_show); dispatchEvent({type:"nsBuffering", target:this}); } function setSize(p_w, p_h) { m_w = p_w; m_h = p_h; m_rollHandler._width = m_w; m_rollHandler._height = m_h; m_uiManager.setSize(m_w, m_h, m_videoW, m_videoH); } function error(p_msg) { trace("ERROR:" + p_msg); } function stripChar(p_str, p_char) { return(p_str.split(p_char).join("")); } var k_STOPPED = 0; var k_PLAYING = 1; var k_PAUSED = 2; }
Symbol 11 MovieClip [__Packages.PDManager] Frame 0
class PDManager extends Object { var m_nc, m_ns, m_currentPos, m_streamName, m_throwTimeEvents, dispatchEvent, m_timeInterval, m_checkDuration, m_oldTime, m_streamFound, m_streamLength, m_stopping; function PDManager (p_nc) { super(); mx.events.EventDispatcher.initialize(this); createStream(p_nc); } function createStream(p_nc) { m_nc = p_nc; m_ns = new NetStream(m_nc); m_ns.setBufferTime(5); MDReceived = false; m_ns.parent = this; m_ns.onMetaData = function (mds) { this.parent.MDReceived = true; this.parent.m_streamLength = mds.duration; this.parent.dispatchEvent({type:"streamTimeUpdate", percentage:0}); this.parent.dispatchEvent({type:"ready", ns:this}); if (this.parent.queuedMD) { this.parent.queuedMD = false; this.parent.play(); } this.onMetaData = null; }; m_currentPos = 0; return(m_ns); } function setUp(p_streamName, p_isLive, p_throwTimeEvents, p_bufferTime) { m_streamName = addExtension(p_streamName); m_throwTimeEvents = p_throwTimeEvents; dispatchEvent({type:"ready", ns:this}); } function play(Void) { if (MDReceived) { if (m_throwTimeEvents) { m_timeInterval = setInterval(this, "doUpdateTime", 250); } m_checkDuration = setInterval(this, "checkDuration", 100); m_oldTime = -1; m_ns.seek(m_currentPos); m_ns.pause(false); } else { m_streamFound = setInterval(this, "streamFound", 250, 0); playFirstFrame(); queuedMD = true; } } function lastOrEnd(isLast) { clearInterval(m_timeInterval); clearInterval(m_checkDuration); dispatchEvent({type:"buffering", value:false}); m_currentPos = 0; if (!isLast) { if (!m_playCommandIssued) { m_ns.play(m_streamName); m_playCommandIssued = true; } else { m_ns.seek(0); } } m_ns.seek((isLast ? (m_streamLength) : 0)); m_ns.pause(true); } function playFirstFrame(Void) { lastOrEnd(false); } function playLastFrame(Void) { lastOrEnd(true); } function pause(p_pause) { m_ns.pause(); } function stop(Void) { playFirstFrame(); } function seek(p_percentage, p_state) { var _local2 = (p_percentage / 100) * m_streamLength; m_stopping = false; m_currentPos = _local2; m_ns.seek(m_currentPos); } function doUpdateTime(Void) { dispatchEvent({type:"streamTimeUpdate", percentage:m_ns.time / m_streamLength, time:m_ns.time}); } function checkDuration(Void) { if (((((m_ns.time > 0) && (m_ns.time != undefined)) && (m_streamLength > 0)) && (m_streamLength != undefined)) && ((m_streamLength - m_ns.time) <= 1)) { if (m_oldTime == m_ns.time) { m_oldTime = -1; dispatchEvent({type:"playbackDone"}); } } m_oldTime = m_ns.time; } function streamFound(turn) { clearInterval(m_streamFound); if (turn == 3) { dispatchEvent({type:"streamNotFound"}); } else if (!m_ns.bytesTotal) { turn++; m_streamFound = setInterval(this, "streamFound", 250, turn); } } function addExtension(n) { if (n.substr(n.length - 4) == ".flv") { return(n); } return(n + ".flv"); } var isPaused = false; var playedStream = false; var m_playCommandIssued = false; var MDReceived = false; var queuedMD = false; var isBuffering = false; var k_STOPPED = 0; var k_PLAYING = 1; var k_PAUSED = 2; }
Symbol 12 MovieClip [__Packages.PluginManager] Frame 0
class PluginManager extends IEDObject { var init, _player, addEventListener, _plugins, dispatchEvent; function PluginManager (player) { super(); init(); _player = player; addEventListener("pluginsReady", _player); _plugins = {}; } function addPlugin(plugin, pName) { var _local2 = plugin; _plugins[pName] = {plugin:_local2, ready:false}; _local2.player = _player; _local2.manager = this; _local2.name = pName; _player.addEventListener("setUp", _local2); _player.addEventListener("argsReady", _local2); _player.addEventListener("videoSize", _local2); _player.addEventListener("nsDone", _local2); _player.addEventListener("fullscreen", _local2); _player.addEventListener("reconnect", _local2); _player.addEventListener("tryFallBack", _local2); _player.addEventListener("nsNotFound", _local2); _player.addEventListener("nsStreamReady", _local2); _player.addEventListener("nsBuffering", _local2); _player.addEventListener("nsTimeUpdate", _local2); return(_plugins[pName]); } function removePlugin(pName) { var _local2 = _plugins[pName].plugin; _player.removeEventListener("setUp", _local2); _player.removeEventListener("argsReady", _local2); _player.removeEventListener("videoSize", _local2); _player.removeEventListener("nsDone", _local2); _player.removeEventListener("fullscreen", _local2); _player.removeEventListener("reconnect", _local2); _player.removeEventListener("tryFallBack", _local2); _player.removeEventListener("nsNotFound", _local2); _player.removeEventListener("nsStreamReady", _local2); _player.removeEventListener("nsBuffering", _local2); _player.removeEventListener("nsTimeUpdate", _local2); delete _plugins[pName]; } function getPlugin(pName) { return(_plugins[pName].plugin); } function setPluginReady(pName) { _plugins[pName].ready = true; for (var _local2 in _plugins) { if (_plugins[_local2].ready != true) { return(undefined); } } dispatchEvent({type:"pluginsReady"}); } }
Symbol 13 MovieClip [__Packages.UIManager] Frame 0
class UIManager extends MovieClip { var m_isMuted, m_sound, m_soundLevel, m_showBuffering, m_showUI, currentSkinMovie, m_isLive, createEmptyMovieClip, m_skin, m_counter, m_mustLoadSkin, onEnterFrame, m_v, m_mustCheckVideoSize, dispatchEvent, m_skinInfo, m_isFullScreen, m_state, m_w, m_h, m_videoW, m_videoH, up_mc, over_mc, mc, down_mc, m_id, disabled_mc, onRollOver, onRollOut, onPress, onRelease, onReleaseOutside, _parent, m_cachedSoundLevel, m_percentage, m_ns, attachAudio; function UIManager (Void) { super(); mx.events.EventDispatcher.initialize(this); m_isMuted = false; m_sound = new Sound(this); m_soundLevel = 50; m_showBuffering = false; m_showUI = true; } function loadSkin(p_skin, p_isLive) { currentSkinMovie = p_skin; m_isLive = p_isLive; createEmptyMovieClip("m_skin", 0); m_skin.loadMovie(p_skin + ".swf"); m_counter = 0; m_mustLoadSkin = true; onEnterFrame = doEnterFrame; } function doEnterFrame(Void) { if (m_mustLoadSkin) { m_counter++; var _local2 = m_skin.getBytesLoaded() / m_skin.getBytesTotal(); if (_local2 == 1) { m_mustLoadSkin = false; onSkinLoaded(); } else if ((_local2 == 0) && (m_counter == 50)) { m_skin.loadMovie(currentSkinMovie + ".swf"); m_counter = 0; } } else { var _local4 = m_v.width; var _local3 = m_v.height; if (_local4 != 0) { m_mustCheckVideoSize = false; dispatchEvent({type:"onVideoSize", w:_local4, h:_local3}); } } if ((!m_mustLoadSkin) && (!m_mustCheckVideoSize)) { delete onEnterFrame; } } function onSkinLoaded(Void) { m_skinInfo = m_skin.getSkinInfo(); m_skin._visible = false; if (!m_isLive) { if (m_skin.play_mc) { fixUp("play_mc"); } else { myTrace("BROKEN SKIN: no play button"); } if (m_skin.pause_mc) { fixUp("pause_mc"); } else { myTrace("BROKEN SKIN: no pause button"); } if (m_skinInfo.mode == undefined) { m_skinInfo.mode = "hide"; } if (m_skin.seekBar_mc) { var _local9 = m_skin.seekBar_mc; _local9.left_mc._x = (_local9.left_mc._y = 0); _local9.middle_mc._x = (_local9.middle_mc._y = 0); _local9.right_mc._x = (_local9.right_mc._y = 0); var _local4 = _local9.handle_mc; _local4._x = (_local4._y = 0); _local9 = _local4.up_mc; _local9._x = (_local9._y = 0); _local9 = _local4.over_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local4.down_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local4.mc = this; _local4.onRollOver = function () { this.up_mc._visible = false; this.over_mc._visible = true; this.down_mc._visible = false; if (this.mc.m_skinInfo.autoHide) { this.mc.dispatchEvent({type:"rollOver"}); } }; _local4.onRollOut = function () { this.up_mc._visible = true; this.over_mc._visible = false; this.down_mc._visible = false; delete this.onMouseMove; }; _local4.onPress = function () { this.up_mc._visible = false; this.over_mc._visible = false; this.down_mc._visible = true; this.mc.dispatchEvent({type:"seekStart"}); this.startX = this._parent._x; this.onMouseMove = function () { this._x = Math.round((_root._xmouse - this.startX) - (this._width / 2)); var _local3 = Math.round(this._parent.middle_mc._x - (this._width / 2)); if (this._x < _local3) { this._x = _local3; } _local3 = Math.round(this._parent.right_mc._x - (this._width / 2)); if (this._x > _local3) { this._x = _local3; } }; }; _local4.onRelease = function () { this.up_mc._visible = false; this.over_mc._visible = true; this.down_mc._visible = false; delete this.onMouseMove; var _local2 = Math.round(((this._x - (this._parent.middle_mc._x - (this._width / 2))) * 100) / this._parent.middle_mc._width); this.mc.dispatchEvent({type:"seek", position:_local2}); }; _local4.onReleaseOutside = function () { this.up_mc._visible = true; this.over_mc._visible = false; this.down_mc._visible = false; delete this.onMouseMove; var _local2 = Math.round(((this._x - (this._parent.middle_mc._x - (this._width / 2))) * 100) / this._parent.middle_mc._width); this.mc.dispatchEvent({type:"seek", position:_local2}); }; } if (m_skin.stop_mc) { fixUp("stop_mc"); } } else { m_skin.play_mc._visible = false; m_skin.pause_mc._visible = false; m_skin.seekBar_mc._visible = false; m_skin.stop_mc._visible = false; } if (m_skin.cover_mc) { var _local9 = m_skin.cover_mc; _local9._x = (_local9._y = 0); } if (m_skin.volumeBar_mc) { var _local9 = m_skin.volumeBar_mc; var _local7 = m_skinInfo.volumeBar; var _local4 = _local9.handle_mc; _local4._x = (_local4._y = 0); _local9 = _local4.up_mc; _local9._x = (_local9._y = 0); _local9 = _local4.over_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local4.down_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local4.mc = this; _local4.type = _local7.type; _local4.onRollOver = function () { this.up_mc._visible = false; this.over_mc._visible = true; this.down_mc._visible = false; if (this.mc.m_skinInfo.autoHide) { this.mc.dispatchEvent({type:"rollOver"}); } }; _local4.onRollOut = function () { this.up_mc._visible = true; this.over_mc._visible = false; this.down_mc._visible = false; delete this.onMouseMove; }; _local4.onPress = function () { trace("onPress!"); this.up_mc._visible = false; this.over_mc._visible = false; this.down_mc._visible = true; this.startX = this._parent._x; this.startY = this._parent._y; this.mc.setMuteStatus(false); this.onMouseMove = function () { if (this.type == "horizontal") { this._x = Math.round((_root._xmouse - this.startX) - (this._width / 2)); var _local3 = Math.round(this._parent.bar_mc._x - (this._width / 2)); if (this._x < _local3) { this._x = _local3; } _local3 = Math.round(this._parent.bar_mc._width - (this._width / 2)); if (this._x > _local3) { this._x = _local3; } var _local4 = Math.round((((this._x + (this._width / 2)) - this._parent.bar_mc._x) * 100) / this._parent.bar_mc._width); } else { this._y = Math.round((_root._ymouse - this.startY) - (this._height / 2)); var _local3 = Math.round(this._parent.bar_mc._y + (this.height / 2)); if (this._y < _local3) { this._y = _local3; } _local3 = Math.round(this._parent.bar_mc._height - (this._height / 2)); if (this._y > _local3) { this._y = _local3; } var _local4 = 100 - Math.round(((this._y - this._parent.bar_mc._y) * 100) / (this._parent.bar_mc._height - this._height)); } this.mc.setSoundLevel(_local4); }; }; _local4.onRelease = function () { this.up_mc._visible = false; this.over_mc._visible = true; this.down_mc._visible = false; delete this.onMouseMove; }; _local4.onReleaseOutside = function () { this.up_mc._visible = true; this.over_mc._visible = false; this.down_mc._visible = false; delete this.onMouseMove; }; setSoundLevel(m_soundLevel); } if (m_skin.volumeMute_mc) { var _local10 = m_skin.volumeMute_mc; var _local5 = _local10.on_mc; _local5._x = (_local5._y = 0); var _local3 = _local10.off_mc; _local3._x = (_local3._y = 0); var _local9 = _local5.up_mc; _local9._x = (_local9._y = 0); _local9._visible = true; _local9 = _local5.over_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local5.down_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local3.up_mc; _local9._x = (_local9._y = 0); _local9._visible = true; _local9 = _local3.over_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local3.down_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local5._visible = !m_isMuted; _local5.mc = this; _local5.onRollOver = doRollOver; _local5.onRollOut = doRollOut; _local5.onPress = doPress; _local5.onRelease = doReleaseVolumeMute; _local5.onReleaseOutside = doRollOut; _local3._visible = m_isMuted; _local3.mc = this; _local3.onRollOver = doRollOver; _local3.onRollOut = doRollOut; _local3.onPress = doPress; _local3.onRelease = doReleaseVolumeMute; _local3.onReleaseOutside = doRollOut; } if (m_skin.fullScreen_mc) { var _local10 = m_skin.fullScreen_mc; var _local6 = _local10.minimize_mc; _local6._x = (_local6._y = 0); var _local8 = _local10.maximize_mc; _local8._x = (_local8._y = 0); var _local9 = _local6.up_mc; _local9._x = (_local9._y = 0); _local9._visible = true; _local9 = _local6.over_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local6.down_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local8.up_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local8.over_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local9 = _local8.down_mc; _local9._x = (_local9._y = 0); _local9._visible = false; _local6._visible = m_isFullScreen; _local6.mc = this; } if (m_skin.buffering_mc) { var _local9 = m_skin.buffering_mc; _local9._x = (_local9._y = 0); _local9._visible = false; } setState(m_state); setSize(m_w, m_h, m_videoW, m_videoH); dispatchEvent({type:"skinLoaded", hasSeekBar:m_skin.seekBar_mc != undefined, autoHide:m_skinInfo.autoHide == true}); } function showSkin(p_show) { m_skin._visible = p_show; } function fixUp(p_mc) { var _local2 = m_skin[p_mc].up_mc; _local2._x = (_local2._y = 0); _local2._visible = true; _local2 = m_skin[p_mc].over_mc; _local2._x = (_local2._y = 0); _local2._visible = false; _local2 = m_skin[p_mc].down_mc; _local2._x = (_local2._y = 0); _local2._visible = false; _local2 = m_skin[p_mc].disabled_mc; _local2._x = (_local2._y = 0); _local2._visible = false; _local2 = m_skin[p_mc]; _local2.m_id = p_mc; _local2.mc = this; _local2.onRollOver = doRollOver; _local2.onRollOut = doRollOut; _local2.onPress = doPress; _local2.onRelease = doRelease; _local2.onReleaseOutside = doRollOut; _local2.setEnabled = doSetEnabled; } function showUI(p_show) { m_showUI = p_show; setState(m_state); } function setBgColor(p_bgColor) { } function adjustVideoSize(Void) { m_mustCheckVideoSize = true; onEnterFrame = doEnterFrame; } function stopAdjustVideoSize(Void) { delete onEnterFrame; } function doRollOver(Void) { up_mc._visible = false; over_mc._visible = true; if (mc.m_skinInfo.autoHide) { mc.dispatchEvent({type:"rollOver"}); } } function doRollOut(Void) { over_mc._visible = false; down_mc._visible = false; up_mc._visible = true; } function doPress(Void) { over_mc._visible = false; down_mc._visible = true; } function doRelease(Void) { down_mc._visible = false; over_mc._visible = true; var _local2 = mc; switch (m_id) { case "play_mc" : _local2.dispatchEvent({type:"play"}); break; case "pause_mc" : _local2.showBuffering(false); _local2.dispatchEvent({type:"pause"}); break; case "stop_mc" : _local2.showBuffering(false); _local2.setSeekPosition(0); _local2.dispatchEvent({type:"stop"}); } } function doSetEnabled(p_enabled) { if (p_enabled) { up_mc._visible = true; down_mc._visible = false; over_mc._visible = false; disabled_mc._visible = false; var _local2 = mc; onRollOver = _local2.doRollOver; onRollOut = _local2.doRollOut; onPress = _local2.doPress; onRelease = _local2.doRelease; onReleaseOutside = _local2.doRollOut; } else { up_mc._visible = false; down_mc._visible = false; over_mc._visible = false; disabled_mc._visible = true; delete onRollOver; delete onRollOut; delete onPress; delete onRelease; delete onReleaseOutside; } } function doReleaseVolumeMute(Void) { down_mc._visible = false; over_mc._visible = true; var _local2 = _parent._parent._parent; _local2.toggleMuted(); } function toggleMuted(Void) { setMuteStatus(!m_isMuted); if (m_isMuted) { m_cachedSoundLevel = m_soundLevel; setSoundLevel(0); } else { setSoundLevel(m_cachedSoundLevel); } } function setMuteStatus(p_muted) { m_isMuted = p_muted; myTrace((("toggleMuted:" + m_isMuted) + "/") + m_soundLevel); var _local2 = m_skin.volumeMute_mc; var _local4 = _local2.on_mc; var _local3 = _local2.off_mc; _local4._visible = !m_isMuted; _local3._visible = m_isMuted; m_sound.setVolume((m_isMuted ? 0 : (m_soundLevel))); } function doReleaseFullScreen(Void) { down_mc._visible = false; var _local2 = _parent._parent._parent; _local2.m_isFullScreen = !_local2.m_isFullScreen; _local2.dispatchEvent({type:"fullScreen", goToFullScreen:_local2.m_isFullScreen}); _local2.m_skin.fullScreen_mc.minimize_mc._visible = false; _local2.m_skin.fullScreen_mc.maximize_mc._visible = false; var _local3 = (_local2.m_isFullScreen ? (_local2.m_skin.fullScreen_mc.minimize_mc) : (_local2.m_skin.fullScreen_mc.maximize_mc)); _local3._visible = true; _local3.up_mc._visible = false; _local3.down_mc._visible = false; _local3.over_mc._visible = true; } function setSeekPosition(p_percentage) { m_percentage = p_percentage; if (m_isLive || (!m_skin.seekBar_mc)) { return(undefined); } var _local2 = m_skin.seekBar_mc; _local2.handle_mc._x = Math.round((_local2.middle_mc._x + (_local2.middle_mc._width * p_percentage)) - (_local2.handle_mc._width / 2)); } function setSoundLevel(p_percentage) { if (!m_skin.volumeBar_mc) { return(undefined); } var _local2 = m_skin.volumeBar_mc; var _local4 = m_skinInfo.volumeBar; m_soundLevel = p_percentage; m_sound.setVolume((m_isMuted ? 0 : (p_percentage))); setMuteStatus(p_percentage == 0); if (_local4.type == "horizontal") { _local2.handle_mc._x = Math.round((_local2.bar_mc._x - (_local2.handle_mc._width / 2)) + ((_local2.bar_mc._width * p_percentage) / 100)); } else { _local2.handle_mc._y = Math.round((_local2.bar_mc._y - (_local2.handle_mc._height / 2)) + ((_local2.bar_mc._height * (100 - p_percentage)) / 100)); } } function getPadding(Void) { if (m_skin.cover_mc) { var _local2 = m_skin.cover_mc; return({w:Math.round(_local2.w_mc._width + _local2.e_mc._width), h:Math.round(_local2.n_mc._height + _local2.s_mc._height)}); } return({w:0, h:0}); } function setState(p_state) { m_state = p_state; if (!m_isLive) { if (m_skinInfo.mode == "hide") { m_skin.play_mc._visible = (m_state == k_STOPPED) || (m_state == k_PAUSED); m_skin.pause_mc._visible = m_state == k_PLAYING; m_skin.stop_mc._visible = ((m_state == k_PLAYING) || (m_state == k_PAUSED)) && (!m_skin.seekBar_mc); } else { m_skin.play_mc._visible = true; m_skin.play_mc.setEnabled((m_state == k_STOPPED) || (m_state == k_PAUSED)); m_skin.pause_mc._visible = true; m_skin.pause_mc.setEnabled(m_state == k_PLAYING); m_skin.stop_mc._visible = true; m_skin.stop_mc.setEnabled((m_state == k_PLAYING) || (m_state == k_PAUSED)); } m_skin.play_mc._visible = m_skin.play_mc._visible && (m_showUI); m_skin.pause_mc._visible = m_skin.pause_mc._visible && (m_showUI); m_skin.stop_mc._visible = m_skin.stop_mc._visible && (m_showUI); m_skin.seekBar_mc._visible = m_showUI; } m_skin.volumeMute_mc._visible = m_showUI; m_skin.volumeBar_mc._visible = m_showUI; m_skin.buffering_mc._visible = m_showBuffering && (m_showUI); m_skin.fullScreen_mc._visible = m_showUI; } function attachStream(p_ns) { m_ns = p_ns; m_v.attachVideo(p_ns); attachAudio(m_ns); m_sound.setVolume((m_isMuted ? 0 : (m_soundLevel))); } function showBuffering(p_show) { if (m_skin.buffering_mc) { m_showBuffering = p_show; } else { m_showBuffering = false; } m_skin.buffering_mc._visible = m_showBuffering && (m_showUI); } function setSize(p_w, p_h, p_videoW, p_videoH) { if (p_videoW == undefined) { return(undefined); } m_w = p_w; m_h = p_h; m_videoW = p_videoW; m_videoH = p_videoH; var _local5 = 0; var _local4 = 0; var _local2 = Math.round(m_w); var _local3 = Math.round(m_h); if (m_skinInfo.uiMode == "center") { _local5 = (m_w - m_videoW) / 2; _local4 = (m_h - m_videoH) / 2; _local2 = m_videoW; _local3 = m_videoH; } else if (m_skinInfo.uiMode == "TL") { _local2 = m_videoW; _local3 = m_videoH; } else { var _local7 = getPadding(); var _local21 = (m_videoW + _local7.w) / (m_videoH + _local7.h); if ((m_w / m_h) > _local21) { _local3 = m_h; _local2 = _local3 * _local21; _local5 = (m_w - _local2) / 2; _local4 = 0; } else { _local2 = m_w; _local3 = _local2 / _local21; _local5 = 0; _local4 = (m_h - _local3) / 2; } } if (m_skinInfo.video) { var _local19 = m_skinInfo.video; m_v._x = Math.round(((_local19.x >= 0) ? (_local19.x) : (_local2 + _local19.w)) + _local5); m_v._y = Math.round(((_local19.y >= 0) ? (_local19.y) : (_local3 + _local19.h)) + _local4); m_v._width = Math.round(((_local19.w > 0) ? (_local19.w) : (_local2 + _local19.w))); m_v._height = Math.round(((_local19.h > 0) ? (_local19.h) : (_local3 + _local19.h))); } else { m_v._x = Math.round(_local5); m_v._y = Math.round(_local4); m_v._width = Math.round(_local2); m_v._height = Math.round(_local3); } m_skin._width = Math.round(m_w); m_skin._height = Math.round(m_h); m_skin._xscale = 100; m_skin._yscale = 100; var _local15; _local15 = m_skinInfo.playBtn.x; m_skin.play_mc._x = Math.round(((_local15 >= 0) ? (_local15) : (_local2 + _local15)) + _local5); _local15 = m_skinInfo.playBtn.y; m_skin.play_mc._y = Math.round(((_local15 >= 0) ? (_local15) : (_local3 + _local15)) + _local4); _local15 = m_skinInfo.pauseBtn.x; m_skin.pause_mc._x = Math.round(((_local15 >= 0) ? (_local15) : (_local2 + _local15)) + _local5); _local15 = m_skinInfo.pauseBtn.y; m_skin.pause_mc._y = Math.round(((_local15 >= 0) ? (_local15) : (_local3 + _local15)) + _local4); if (m_skin.stop_mc) { _local15 = m_skinInfo.stopBtn.x; m_skin.stop_mc._x = Math.round(((_local15 >= 0) ? (_local15) : (_local2 + _local15)) + _local5); _local15 = m_skinInfo.stopBtn.y; m_skin.stop_mc._y = Math.round(((_local15 >= 0) ? (_local15) : (_local3 + _local15)) + _local4); } if (m_skin.volumeMute_mc) { _local15 = m_skinInfo.volumeMute.x; m_skin.volumeMute_mc._x = Math.round(((_local15 >= 0) ? (_local15) : (_local2 + _local15)) + _local5); _local15 = m_skinInfo.volumeMute.y; m_skin.volumeMute_mc._y = Math.round(((_local15 >= 0) ? (_local15) : (_local3 + _local15)) + _local4); } if (m_skin.fullScreen_mc) { _local15 = m_skinInfo.fullScreenBtn.x; m_skin.fullScreen_mc._x = Math.round(((_local15 >= 0) ? (_local15) : (_local2 + _local15)) + _local5); _local15 = m_skinInfo.fullScreenBtn.y; m_skin.fullScreen_mc._y = Math.round(((_local15 >= 0) ? (_local15) : (_local3 + _local15)) + _local4); } if (m_skin.cover_mc) { var _local7 = m_skin.cover_mc; var _local12 = _local7.nw_mc; var _local20 = _local7.n_mc; var _local10 = _local7.ne_mc; var _local16 = _local7.e_mc; var _local11 = _local7.se_mc; var _local17 = _local7.s_mc; var _local9 = _local7.sw_mc; var _local22 = _local7.w_mc; _local12._x = Math.round(_local5); _local12._y = Math.round(_local4); _local20._x = Math.round(_local12._width + _local5); _local20._y = Math.round(_local4); _local20._width = Math.round((_local2 - _local12._width) - _local10._width); _local10._x = Math.round((_local2 - _local10._width) + _local5); _local10._y = Math.round(_local4); _local16._x = Math.round((_local2 - _local16._width) + _local5); _local16._y = Math.round(_local10._height + _local4); _local16._height = Math.round((_local3 - _local10._height) - _local11._height); _local11._x = Math.round((_local2 - _local11._width) + _local5); _local11._y = Math.round((_local3 - _local11._height) + _local4); _local17._x = Math.round(_local9._width + _local5); _local17._y = Math.round((_local3 - _local17._height) + _local4); _local17._width = Math.round((_local2 - _local9._width) - _local11._width); _local9._x = Math.round(_local5); _local9._y = Math.round((_local3 - _local9._height) + _local4); _local22._x = Math.round(_local5); _local22._y = Math.round(_local12._height + _local4); _local22._height = Math.round((_local3 - _local12._height) - _local9._height); } if (m_skin.volumeBar_mc) { var _local19 = m_skin.volumeBar_mc; var _local14 = _local19.handle_mc; var _local8 = _local19.bar_mc; _local15 = m_skinInfo.volumeBar; _local19._x = Math.round(((_local15.x >= 0) ? (_local15.x) : (_local2 + _local15.x)) + _local5); _local19._y = Math.round(((_local15.y >= 0) ? (_local15.y) : (_local3 + _local15.y)) + _local4); if (_local15.type == "horizontal") { _local8._width = Math.round(((_local15.l > 0) ? (_local15.l) : (_local2 + _local15.l))); _local8._x = 0; _local8._y = Math.round((_local14._height - _local8._height) / 2); _local14._y = 0; } else { _local8._height = Math.round(((_local15.l > 0) ? (_local15.l) : (_local3 + _local15.l))); _local8._x = Math.round((_local14._width - _local8._width) / 2); _local8._y = 0; _local14._x = 0; } } if (m_skin.seekBar_mc) { var _local19 = m_skin.seekBar_mc; var _local13 = _local19.left_mc; var _local6 = _local19.middle_mc; var _local18 = _local19.right_mc; var _local14 = _local19.handle_mc; _local15 = m_skinInfo.seekBar.x; _local19._x = Math.round(((_local15 >= 0) ? (_local15) : (_local2 + _local15)) + _local5); _local15 = m_skinInfo.seekBar.y; _local19._y = Math.round(((_local15 >= 0) ? (_local15) : (_local3 + _local15)) + _local4); if (_local14._height > _local6._height) { _local14._y = 0; _local6._y = Math.round((_local14._height - _local6._height) / 2); } else { _local6._y = 0; _local14._y = Math.round((_local6._height - _local14._height) / 2); } _local13._x = 0; _local13._y = Math.round(_local6._y); _local6._x = Math.round(_local13._x + _local13._width); _local15 = m_skinInfo.seekBar.w; _local6._width = Math.round((((_local15 > 0) ? (_local15) : (_local2 + _local15)) - _local13._width) - _local18._width); _local18._x = Math.round(_local6._x + _local6._width); _local18._y = Math.round(_local6._y); setSeekPosition(m_percentage); } if (m_skin.buffering_mc) { var _local19 = m_skin.buffering_mc; _local15 = m_skinInfo.buffering.x; _local19._x = Math.round(((_local15 >= 0) ? (_local15) : (_local2 + _local15)) + _local5); _local15 = m_skinInfo.buffering.y; _local19._y = Math.round(((_local15 >= 0) ? (_local15) : (_local3 + _local15)) + _local4); _local15 = m_skinInfo.buffering.w; if (_local15) { _local19._width = Math.round(((_local15 > 0) ? (_local15) : (_local2 + _local15))); } } } function myTrace(p_msg) { trace("#UIManager# " + p_msg); } var k_STOPPED = 0; var k_PLAYING = 1; var k_PAUSED = 2; }
Symbol 14 MovieClip [__Packages.plugins.NCManager] Frame 0
class plugins.NCManager extends plugins.Plugin { var init, addEventListener; function NCManager (Void) { super(); init(); } function setUp(evt) { var _local2 = evt.target; addEventListener("ncConnected", _local2); } function argsReady(evt) { if (evt.args.streamName == null) { return(undefined); } connect(evt); } function connect(evt) { var _local2 = new NetConnection(); _local2.parent = this; _local2.onStatus = function (info) { if (info.code == "NetConnection.Connect.Success") { this.parent.dispatchEvent({type:"ncConnected", nc:this}); this.parent._manager.setPluginReady(this.parent.name); } }; _local2.connect(null); } }

Library Items

Symbol 1 MovieClipUsed by:3
Symbol 2 VideoUsed by:3
Symbol 3 MovieClip [UIManager]Uses:1 2Used by:6
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClip [RollHandler]Uses:4Used by:6
Symbol 6 MovieClip [FLVPlayer]Uses:3 5
Symbol 7 MovieClip [__Packages.IEDObject]
Symbol 8 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 9 MovieClip [__Packages.plugins.Plugin]
Symbol 10 MovieClip [__Packages.FLVPlayer]
Symbol 11 MovieClip [__Packages.PDManager]
Symbol 12 MovieClip [__Packages.PluginManager]
Symbol 13 MovieClip [__Packages.UIManager]
Symbol 14 MovieClip [__Packages.plugins.NCManager]

Instance Names

"m_v"Symbol 3 MovieClip [UIManager] Frame 1Symbol 2 Video

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 3 as "UIManager"
ExportAssets (56)Timeline Frame 1Symbol 5 as "RollHandler"
ExportAssets (56)Timeline Frame 1Symbol 6 as "FLVPlayer"
ExportAssets (56)Timeline Frame 1Symbol 7 as "__Packages.IEDObject"
ExportAssets (56)Timeline Frame 1Symbol 8 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 9 as "__Packages.plugins.Plugin"
ExportAssets (56)Timeline Frame 1Symbol 10 as "__Packages.FLVPlayer"
ExportAssets (56)Timeline Frame 1Symbol 11 as "__Packages.PDManager"
ExportAssets (56)Timeline Frame 1Symbol 12 as "__Packages.PluginManager"
ExportAssets (56)Timeline Frame 1Symbol 13 as "__Packages.UIManager"
ExportAssets (56)Timeline Frame 1Symbol 14 as "__Packages.plugins.NCManager"




http://swfchan.com/19/94833/info.shtml
Created: 25/3 -2019 20:42:49 Last modified: 25/3 -2019 20:42:49 Server time: 22/12 -2024 08:09:35