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

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM47339155-5DC&rnd=47339155" width="1" height="1"></div>

estanho50sn04.swf

This is the info page for
Flash #262013

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 174 // unknown tag 88 length 174 movieClip 50 { } movieClip 52 { } movieClip 53 LiveTVPlayer { #initclip Object.registerClass('LiveTVPlayer', com.liveuniverse.livetv.liveTVPlayerComponent); #endinitclip } frame 1 { var logger = new runeimp.utils.Logger(runeimp.utils.Logger.__get__DEBUG(), '[receiver.swf]'); _root.fmsHost = _root.host; _root.fmsApp = _root.app; _root.fmsToken = _root.token; _root.fmsRole = _root.role; _root.fmsInstance = _root.channelId; this.player.controlbar_mc._alpha = (_root.minimal == 'true') ? 0 : 100; this.poll._visible = false; this.player.wait_ind._visible = false; this.player.lowBWInd._visible = false; this.onFMSConnect = function () { this.player.isConnected = true; this.player.init(this.FMSManager.nc, this); this.poll.init(this.FMSManager.nc, this, 'pollButton'); }; this.onConnect = function () { this.player.connecting_mc._visible = true; this._parent.logger.debug('[connect_mc][onConnect]'); this.connected = true; this.player.offair_mc._visible = false; this.FMSManager = new com.liveuniverse.livetv.fmsManager(); this.FMSManager.init(this, this.fmsHost, this.fmsApp, this.fmsInstance, this.fmsToken, this.fmsUserId, this.fmsUserName, this.fmsRole); }; this.onFMSClosed = function () { _root.autoreconnect = '1' && this.noReconnect != true; if (_root.autoreconnect) { onConnect(); } this.player.isConnected = false; if (this.noReconnect != true) { this.connect_mc._visible = true; } }; this.recycleProgamStream = function () { this.player.resetStream(); trace('RECYCLING PROGRAM STREAM'); }; this.onBroadcastOver = function () { this.noReconnect = true; this.player.offair_mc._visible = true; }; if (_root.autoconnect == '1') { this.tile_mc._visible = false; this.connect_mc.gotoAndPlay('play'); this.connect_mc._visible = false; this.onConnect(); } else { if (_root.autoconnect == '2') { this.tile_mc._visible = false; this.connect_mc._visible = false; this.player.offair_mc._visible = true; this.player.connecting_mc._visible = false; } else { if (_root.autoconnect == '0') { this.tile_mc._visible = true; this.connect_mc._visible = true; this.player.offair_mc._visible = false; this.player.connecting_mc._visible = false; } } } this.onUnload = function () { this.player.nc.close(); }; if (_root.minimal == 'true') { var lastMouseMove = 0; var lastMouseMoveCounter = 0; var lastMouseMoveDelay = 3000; var lastRollOut = 0; var lastRollOutDelay = 1000; Mouse.addListener(this); this.onMouseMove = function () { if (this._xmouse > 0 && this._xmouse < this._width) { if (this._ymouse > 0 && this._ymouse < this._height - 20) { if (this.lastRollOut + this.lastRollOutDelay < getTimer()) { this.connect_mc._visible = true; this.lastMouseMove = getTimer(); } } } }; this.onEnterFrame = function () { if (this.connected && this.connect_mc._visible && this.lastMouseMove + this.lastMouseMoveDelay < getTimer()) { this.connect_mc._visible = false; } }; } this.connect_mc.onRelease = function () { this._parent.tile_mc._visible = false; this._parent.logger.debug('[connect_mc][onRelease] this.action: ' + this.action + ' :: this._parent.connected: ' + this._parent.connected); if (_root.minimal == 'true') { if (this.action == 'play') { if (this.connected && _root.minimal == 'true') { this._parent.player.ns.receiveAudio(true); this._parent.player.ns.receiveVideo(true); this._parent.player.isPaused = false; } else { this._parent.onConnect(); } } else { if (_root.minimal == 'true') { this._parent.player.ns.receiveAudio(false); this._parent.player.ns.receiveVideo(false); this._parent.player.isPaused = true; } } this._parent.player.controlbar_mc.play_mc.btn_status = this.action; this._parent.player.controlbar_mc.play_mc.gotoAndStop(this.action); this.gotoAndPlay(this.action); } else { this._parent.onConnect(); this._parent.player.offair_mc._visible = false; this._visible = false; } }; this.connect_mc.onRollOut = function () { this._parent.lastRollOut = getTimer(); }; } movieClip 54 { } movieClip 58 { frame 1 { stop(); this.action = 'play'; } frame 7 { stop(); this.action = 'pause'; } } movieClip 59 __Packages.com.liveuniverse.livetv.fmsManager { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.liveuniverse) { _global.com.liveuniverse = new Object(); } if (!_global.com.liveuniverse.livetv) { _global.com.liveuniverse.livetv = new Object(); } if (!_global.com.liveuniverse.livetv.fmsManager) { var v1 = function () { super(); trace('FMS manager class loaded ' + owner); }; com.liveuniverse.livetv.fmsManager = v1; com.liveuniverse.livetv.fmsManager extends Object; var v2 = v1.prototype; v2.init = function (owner, fmsHost, fmsApp, fmsInstance, fmsToken, fmsUserId, fmsUserName, fmsRole, fmsPass, gatewayPass, isSimpleProducer) { this.owner = owner; this.fmsHost = fmsHost; this.fmsApp = fmsApp; if (fmsRole == 'viewer') { this.isViewer = true; this.replicatorInstance = fmsInstance + '_replicator'; } else {} this.fmsInstance = fmsInstance + '_publisher'; this.fmsToken = fmsToken; this.fmsUserId = fmsUserId; this.fmsUserName = fmsUserName; this.fmsRole = fmsRole; this.fmsPass = fmsPass; this.gatewayPass = gatewayPass; this.isSimpleProducer = isSimpleProducer; this.nc = new NetConnection(); this.nc.owner = this; this.broadcast_stream = new NetStream(); this.publish_stream = new NetStream(); this.gatekeeper = new com.liveuniverse.livetv.gatekeeperConnector(); trace('Connecting to gatekeeper...'); this.gatekeeper.init(this, this.fmsHost, this.fmsApp, this.fmsInstance, this.fmsRole, this.gatewayPass); }; v2.reconnect = function () { this.gatekeeper.init(this, this.fmsHost, this.fmsApp, this.fmsInstance, this.fmsRole, this.gatewayPass); }; v2.onGatekeeper = function (host, port, protocol) { trace('onGatekeeper ' + protocol + '://' + host + ':' + port); this.fmsSessionHost = host; this.fmsPort = port; this.fmsProtocol = protocol; this.connectSession(); }; v2.onGatekeeperError = function () { trace('Could not connect to gatekeeper...aborting session'); this.owner.onGatekeeperError(); }; v2.connectSession = function () { this.syncIsConfirmed = false; trace('Connecting to channel...'); this.nc.onStatus = function (info) { if (info.code == 'NetConnection.Connect.Success') { this.owner.owner.onFMSConnect(); this.owner.updateInt = setInterval(this.owner, 'updateTimestamp', 1000); } else { if (info.code == 'NetConnection.Connect.Rejected') { this.owner.onGatekeeperError(); } else { if (info.code == 'NetConnection.Connect.Failed') { this.owner.onGatekeeperError(); } else { if (info.code == 'NetConnection.Connect.Closed') { this.owner.owner.onFMSClosed(); } else {} } } } }; this.nc.onBroadcastOver = function () { this.owner.owner.onBroadcastOver(); }; this.nc.onAuthenticated = function (val, dataObj) { trace('NC OnAuthenticated ' + val); this.owner.onFMSAuth(val, dataObj); }; this.nc.onCameraConnected = function (bw) { this.owner.owner.onConnected(this.owner.nc, bw); }; this.nc.onViewerConnected = function () { this.owner.owner.onConnected(this.owner.nc); }; this.nc.onResyncStream = function () { this.owner.recycleProgamStream(); this.owner.owner.recycleProgamStream(); }; this.nc.onInsufficientBW = function () { trace('Insufficient bandwidth... dropping to 2fps'); this.owner.recycleProgamStream(true); this.owner.owner.owner.lowBWInd._visible = true; }; this.nc.onBroadcastViewerCount = function (vObj) { this.owner.owner.owner.viewerCount_mc.members_txt.htmlText = vObj.members; this.owner.owner.owner.viewerCount_mc.guests_txt.htmlText = vObj.guests; this.owner.owner.owner.viewerCount_mc.count_txt.htmlText = vObj.total; this.owner.owner.owner.viewerCount_mc.full_txt.htmlText = vObj.total + ' viewers (' + vObj.members + ' members + ' + vObj.guests + ' guests)'; this.owner.owner.owner.viewerCount_mc.full_txtMultiline.htmlText = vObj.total + ' viewers<br>(' + vObj.members + ' members + ' + vObj.guests + ' guests)'; }; this.nc.receiveHistory = function (hist) { this.owner.owner.owner.chat.sta.htmlText = hist; }; this.nc.receiveMessage = function (msg, txtcolor, fromWho, replicatorBanLink) { trace('--- receiveMessage called'); if (this.owner.owner.isModerator == true && replicatorBanLink != undefined) { var v6 = replicatorBanLink; } else { var v6 = ''; } var v2 = '<font color="' + txtcolor + '">' + fromWho + ': ' + msg + '</font>'; if (fromWho == undefined || fromWho == '') { v2 = '<font color="' + txtcolor + '">' + msg + '</font>'; } this.owner.owner.owner.chat.receiveMessage(v2); }; this.nc.receivePrivateMessage = function (msg, txtcolor, fromWho) { var v2 = this.owner.checkIgnoredUsers(fromWho); if (v2 == true) { } else { var v4 = '<font color="#0000FF"><a href="asfunction:_root.application.ignoreUser,true|||' + fromWho + '">(ignore) </a></font><font color="' + txtcolor + '"><i>' + fromWho + ' whispers: </i>' + msg + '</font>'; this.owner.owner.chat.receiveMessage(v4); } }; if (this.isViewer == true) { this.fmsInstance = this.replicatorInstance; } var v2 = this.fmsProtocol + '://' + this.fmsSessionHost + ':' + this.fmsPort + '/' + this.fmsApp + '/' + this.fmsInstance; trace('Connecting to : ' + v2); this.nc.connect(v2, this.fmsRole, this.fmsUserName, this.fmsToken, this.fmsUserId, this.fmsPass, this.gatewayPass); }; v2.onFMSAuth = function (val, obj) { this.owner.onFMSAuth(val, obj); }; v2.initSharedObjects = function () { trace('Connecting shared objects'); this.autolist_so = SharedObject.getRemote('autoList', this.nc.uri, false); this.autolist_so.isFirstSync = false; this.autolist_so.owner = this; this.autolist_so.onSync = function (list) { trace('Playlist sync with FMS'); this.owner.owner.onAutoListSync(this); }; this.autolist_so.connect(this.nc); this.chatusers_so = SharedObject.getRemote('userList', this.nc.uri, false); this.chatusers_so.isFirstSync = false; this.chatusers_so.owner = this; this.chatusers_so.onSync = function (list) { trace('Playlist sync with FMS'); this.owner.owner.onChatUserListSync(this); }; this.chatusers_so.connect(this.nc); this.viewerlist_so = SharedObject.getRemote('viewerList', this.nc.uri, false); this.viewerlist_so.isFirstSync = false; this.viewerlist_so.owner = this; this.viewerlist_so.onSync = function (list) { trace('Viewer List sync with FMS'); this.owner.owner.onViewerListSync(this); }; this.viewerlist_so.connect(this.nc); this.playlists_so = SharedObject.getRemote('playLists', this.nc.uri, false); this.playlists_so.isFirstSync = false; this.playlists_so.owner = this; this.playlists_so.onSync = function (list) { if (this.isFirstSync != true) { this.isFirstSync = true; this.owner.confirmSOSync(); this.owner.channelSettings_so.connect(this.owner.nc); } trace('Playlist sync with FMS'); this.owner.owner.onPlaylistSync(this); }; this.playlists_so.connect(this.nc); this.camList_so = SharedObject.getRemote('camList', this.nc.uri, false); this.camList_so.owner = this; this.camList_so.isFirstSync = false; this.camList_so.onSync = function (list) { if (this.isFirstSync != true) { this.isFirstSync = true; this.owner.confirmSOSync(); } trace('Playlist sync with FMS'); this.owner.owner.onCamListSync(this); }; this.camList_so.connect(this.nc); this.channelSettings_so = SharedObject.getRemote('channelSettings', this.nc.uri, false); this.channelSettings_so.owner = this; this.channelSettings_so.isFirstSync = false; this.channelSettings_so.onSync = function (list) { if (this.isFirstSync != true) { this.isFirstSync = true; this.owner.owner.camBWLimit = this.data.channelCameraBandwidthLimit; this.owner.owner.onChannelSettingsSync(this); this.owner.confirmSOSync(); } this.owner.onChannelSettingsSync(this); }; }; v2.confirmSOSync = function () { if (this.syncIsConfirmed != true) { if (this.playlists_so.isFirstSync == true && this.camList_so.isFirstSync == true && this.channelSettings_so.isFirstSync == true) { this.syncIsConfirmed = true; if (this.isSimpleProducer != true) { this.initStreams(); } } } }; v2.initStreams = function () { this.broadcast_stream = new NetStream(this.nc); this.broadcast_stream.owner = this; this.broadcast_stream.setBufferTime(1); this.broadcast_stream.onStatus = function (info) { trace(info.code); this.owner.manageBroadcastBuffer(info); }; this.broadcast_stream.onMetaData = function (data) { this.owner.owner.onBroadcastMetaData(data); trace('Video Width is ' + data.width); }; this.broadcast_stream.onStreamInfo = function (obj) { this.owner.owner.onBroadcastStreamData(obj); }; this.broadcast_stream.onStrap = function (dataObj) { this.owner.owner.onStrap(dataObj.vis, dataObj.line1, dataObj.line2); }; this.publish_stream = new NetStream(this.nc); this.broadcast_stream.play('broadcast', -1, -1); this.owner.onStreams(); }; v2.killStreams = function () { this.broadcast_stream.play(false); this.broadcast_stream.close(); this.publish_stream.close(); this.nc.onResyncStream = undefined; }; v2.manageBroadcastBuffer = function (info) { this.owner.debugNetstream(info.code + '\n'); trace(info.code); var v3 = this.program_stream.bufferTime; if (info.code == 'NetStream.Buffer.Full') { } else { if (info.code == 'NetStream.Buffer.Empty') { } } trace('Current broadcast buffer is ' + this.broadcast_stream.bufferTime); }; v2.recycleProgamStream = function (lowBW) { this.owner.owner.lowBWInd._visible = false; this.broadcast_stream.play(false); if (lowBW == true) { this.broadcast_stream.receiveVideo(1); this.owner.owner.lowBWInd._visible = true; this.owner.onRecycleProgramStream(true); } else { this.broadcast_stream.receiveVideo(true); this.owner.owner.lowBWInd._visible = false; this.owner.onRecycleProgramStream(false); } this.broadcast_stream.play('broadcast', -1, -1, true); }; v2.toggleCamera = function (val) { this.nc.call('toggleCamera', null, val); if (val == true) { trace('PUBLISHING VIDEO! ' + this.owner.fmsClientObj.streamName); this.publish_stream.attachVideo(this.owner.cam); this.publish_stream.attachAudio(this.owner.mic); this.publish_stream.publish(this.owner.fmsClientObj.streamName, 'live'); } else { this.publish_stream.publish(false); } }; v2.toggleMic = function (val) { if (val == true) { this.publish_stream.attachAudio(this.owner.mic); } else { this.publish_stream.attachAudio(null); } }; v2.setStrap = function (vis, v1, v2) { var v2 = new Object(); v2.vis = vis; v2.line1 = v1; v2.line2 = v2; this.nc.call('sendStreamEvent', null, 'onStrap', v2); }; v2.onChannelSettingsChanged = function (channelName, channelState, channelCameraPassword, channelCurrentPlaylist) { trace('Setting channel details shared object' + channelCurrentPlaylist); this.channelSettings_so.data.channelName = channelName; this.channelSettings_so.data.channelState = channelState; this.channelSettings_so.data.channelCameraPassword = channelCameraPassword; this.channelSettings_so.data.channelCurrentPlaylist = channelCurrentPlaylist; }; v2.setPlaylistLoop = function (val) { this.autolist_so.data.loop = val; }; v2.updateTimestamp = function () { this.nc.call('updateTimestamp', null); }; v2.onMuteProgramStream = function (val) { trace('Setting program mute to ' + val); this.broadcast_stream.receiveAudio(val); }; v2.onRefreshClipList = function () { this.nc.call('refreshClipList', null); }; v2.setModerator = function (modtype) { this.isModerator = true; this.owner.adminControls._visible = true; if (modtype == 'supermod') { this.isSuperModerator = true; } }; v2.adminKickUser = function (id, user) { var v2 = '<font color="#FF0000"><b>Kicking ' + user + ' out of the room</b></font>'; this.owner.owner.chat.receiveMessage(v2); this.nc.call('kickUser', null, id); }; v2.adminBanUser = function (id, user) { this.nc.call('banUser', null, id, false); }; v2.adminBanUserByIP = function (id, user) { this.nc.call('banUser', null, id, true); }; v2.flagUser = function (id) { this.owner.flagUser_mc.confirm(id); }; v2.onFlagConfirm = function (id) { this.nc.call('flagUser', null, id); }; v2.clearTextChat = function () { this.nc.call('clearChatHistory', null); }; v2.promoteGuestToModerator = function (id, aspID) { this.nc.call('promoteGuestToModerator', null, id, aspID); }; ASSetPropFlags(com.liveuniverse.livetv.fmsManager.prototype, null, 1); } #endinitclip } movieClip 60 __Packages.com.liveuniverse.livetv.gatekeeperConnector { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.liveuniverse) { _global.com.liveuniverse = new Object(); } if (!_global.com.liveuniverse.livetv) { _global.com.liveuniverse.livetv = new Object(); } if (!_global.com.liveuniverse.livetv.gatekeeperConnector) { var v1 = function () {}; com.liveuniverse.livetv.gatekeeperConnector = v1; var v2 = v1.prototype; v2.init = function (owner, host, app, instance, role, gatewayPass) { this.owner = owner; trace('Gatekeeper connect ' + host + ' : ' + app + ' : ' + instance); this.host = host; this.app = app; this.role = role; this.instance = instance; this.gatewayPass = gatewayPass; this.port = '1935'; this.protocol = 'rtmp'; this.nc = new NetConnection(); this.attempt = 1; this.findConnectionPort(this.attempt); }; v2.findConnectionPort = function () { if (this.attempt < 5) { switch (this.attempt) { case 1: var v2 = 'rtmp://' + this.host + '/' + this.app; break; case 2: var v2 = 'rtmpt://' + this.host + '/' + this.app; this.protocol = 'rtmpt'; break; case 3: var v2 = 'rtmp://' + this.host + ':80/' + this.app; this.protocol = 'rtmp'; this.port = '80'; break; case 4: var v2 = 'rtmpt://' + this.host + ':80/' + this.app; this.protocol = 'rtmpt'; } clearTimeout(this.connTimer); this.nc.close(); delete this.nc; this.tryConnection(storedv2); this.connTimer = setTimeout(this, 'cancelAttempt', 5000); ++this.attempt; } else { trace('Gatekeeper could not connect to the server'); this.owner.onGatekeeperError(); } }; v2.tryConnection = function (connStr) { this.nc = new NetConnection(); this.nc.owner = this; this.nc.onStatus = function (info) { trace('Gateway attempt: ' + info.code); switch (info.code) { case 'NetConnection.Connect.Success': clearTimeout(this.owner.connTimer); break; case 'NetConnection.Connect.Rejected': this.owner.findConnectionPort(); break; case 'NetConnection.Connect.Failed': this.owner.findConnectionPort(); } }; this.nc.receiveSessionInfo = function (sessionHost) { trace(sessionHost); this.close(); this.owner.owner.onGatekeeper(sessionHost, this.owner.port, this.owner.protocol); }; this.nc.connect(connStr, this.instance, this.role, this.gatewayPass); }; v2.cancelAttempt = function () { this.nc.close(); this.findConnectionPort(); }; v2.getServerDetails = function () {}; ASSetPropFlags(com.liveuniverse.livetv.gatekeeperConnector.prototype, null, 1); } #endinitclip } movieClip 61 __Packages.runeimp.utils.Logger { #initclip if (!_global.runeimp) { _global.runeimp = new Object(); } if (!_global.runeimp.utils) { _global.runeimp.utils = new Object(); } if (!_global.runeimp.utils.Logger) { var v1 = function (newLevel, classTag) { if (newLevel != undefined) { this.__set__level(newLevel); } if (classTag != undefined) { this.cTag = classTag; } }; runeimp.utils.Logger = v1; var v2 = v1.prototype; v2.alert = function (value) { if (com.liveuniverse.utils.PlayerInfo.inBrowser()) { getURL('javascript: alert(\'' + value + '\');', ''); } else { this.echo('ALERT', value); } }; v2.connectToInterface = function () { if (runeimp.utils.Logger.remoteInterface == undefined && runeimp.utils.Logger.useLocalConnection) { runeimp.utils.Logger.remoteInterface = new LocalConnection(); } runeimp.utils.Logger.isConnected = runeimp.utils.Logger.remoteInterface.connect('_xray_view_remote_conn'); ++this.count; if (this.count < 50) { } return runeimp.utils.Logger.isConnected; }; v1.__get__DEBUG = function () { return 4; }; v2.debug = function (value) { if (this._level > 3) { this.echo('DEBUG', value); } }; v2.echo = function (level, value) { if (runeimp.utils.Logger.useLocalConnection && runeimp.utils.Logger.isConnected != true) { this.connectToInterface(); } else { this.count = 0; } if (this.cTag != undefined) { value = this.cTag + value; } var v5 = this.__get__tTag() + ' ' + level; var v7 = (level == 'INFO' || level == 'WARN' || level == 'LOG') ? '\t\t' : '\t'; trace(v5 + v7 + value); var v6 = v5 + '\t' + value; if (runeimp.utils.Logger.useLocalConnection) { var v4 = {'info': v6, 'last': true}; var v9 = runeimp.utils.Logger.remoteInterface.send('_xray_view_conn', 'setViewInfo', v4.info, v4.last); } }; v1.__get__ERROR = function () { return 1; }; v2.error = function (value) { if (this._level > 0) { this.echo('ERROR', value); } }; v1.__get__FATAL = function () { return 0; }; v2.fatal = function (value) { this.echo('FATAL', value); }; v2.__get__level = function () { return this._level; }; v2.__set__level = function (value) { if (value > -1 && value < 5) { this._level = value; } else { this._level = 0; } return this.__get__level(); }; v2.log = function (value) { this.echo('LOG', value); }; v1.__get__INFO = function () { return 3; }; v2.info = function (value) { if (this._level > 2) { this.echo('INFO', value); } }; v2.toString = function () { return '[' + runeimp.utils.Logger.classFQN + ']'; }; v2.__get__tTag = function () { var v1 = String(getTimer()); while (v1.length < 7) { v1 = '0' + v1; } return '(' + v1 + ')'; }; v1.__get__WARN = function () { return 2; }; v2.warn = function (value) { if (this._level > 1) { this.echo('WARN', value); } }; v1.className = 'Logger'; v1.classPackage = 'runeimp.utils'; v1.classVersion = '1.3.1'; v1.classFQN = runeimp.utils.Logger.classPackage + '.' + runeimp.utils.Logger.className; v2.count = 0; v2.cTag = ''; v2._level = 0; v1.useLocalConnection = true; v1.addProperty('DEBUG', v1.__get__DEBUG, function () {}); v1.addProperty('ERROR', v1.__get__ERROR, function () {}); v1.addProperty('FATAL', v1.__get__FATAL, function () {}); v1.addProperty('INFO', v1.__get__INFO, function () {}); v1.addProperty('WARN', v1.__get__WARN, function () {}); v2.addProperty('level', v2.__get__level, v2.__set__level); v2.addProperty('tTag', v2.__get__tTag, function () {}); ASSetPropFlags(runeimp.utils.Logger.prototype, null, 1); } #endinitclip } movieClip 62 __Packages.com.liveuniverse.utils.PlayerInfo { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.liveuniverse) { _global.com.liveuniverse = new Object(); } if (!_global.com.liveuniverse.utils) { _global.com.liveuniverse.utils = new Object(); } if (!_global.com.liveuniverse.utils.PlayerInfo) { var v1 = function () {}; com.liveuniverse.utils.PlayerInfo = v1; var v2 = v1.prototype; v1.initLogger = function () { if (com.liveuniverse.utils.PlayerInfo.logger == undefined) { runeimp.utils.Logger.useLocalConnection = false; com.liveuniverse.utils.PlayerInfo.logger = new runeimp.utils.Logger(runeimp.utils.Logger.__get__INFO(), '[' + com.liveuniverse.utils.PlayerInfo.className + ']'); com.liveuniverse.utils.PlayerInfo.logger.debug('[initLogger] version: ' + com.liveuniverse.utils.PlayerInfo.classVersion); } }; v1.inBrowser = function () { if (com.liveuniverse.utils.PlayerInfo._inBrowser == undefined) { switch (System.capabilities.playerType) { if (System.capabilities.playerType !== 'StandAlone') { } else { case 'External': com.liveuniverse.utils.PlayerInfo._inBrowser = false; return com.liveuniverse.utils.PlayerInfo._inBrowser; } } com.liveuniverse.utils.PlayerInfo._inBrowser = true; } return com.liveuniverse.utils.PlayerInfo._inBrowser; }; v1.isDebugger = function () { return System.capabilities.isDebugger; }; v1.os = function () { com.liveuniverse.utils.PlayerInfo.initLogger(); if (com.liveuniverse.utils.PlayerInfo._playerType == undefined) { com.liveuniverse.utils.PlayerInfo._os = System.capabilities.os; } com.liveuniverse.utils.PlayerInfo.logger.debug('[os]: ' + com.liveuniverse.utils.PlayerInfo._os); return com.liveuniverse.utils.PlayerInfo._os; }; v1.playerType = function () { com.liveuniverse.utils.PlayerInfo.initLogger(); if (com.liveuniverse.utils.PlayerInfo._playerType == undefined) { com.liveuniverse.utils.PlayerInfo._playerType = System.capabilities.playerType; } com.liveuniverse.utils.PlayerInfo.logger.debug('[playerType]: ' + com.liveuniverse.utils.PlayerInfo._playerType); return com.liveuniverse.utils.PlayerInfo._playerType; }; v1.release = function () { com.liveuniverse.utils.PlayerInfo.initLogger(); if (com.liveuniverse.utils.PlayerInfo._release == undefined) { var v1 = System.capabilities.version; var v2 = v1.split(','); com.liveuniverse.utils.PlayerInfo._release = Number(v2[2]); } com.liveuniverse.utils.PlayerInfo.logger.debug('[release]: ' + com.liveuniverse.utils.PlayerInfo._release); return com.liveuniverse.utils.PlayerInfo._release; }; v1.version = function () { com.liveuniverse.utils.PlayerInfo.initLogger(); if (com.liveuniverse.utils.PlayerInfo._version == undefined) { var v5 = System.capabilities.version; var v4 = v5.split(','); var v2 = v4[0]; com.liveuniverse.utils.PlayerInfo._release = Number(v4[2]); var v3 = ''; var v1 = 0; while (v1 < v2.length) { if (isNaN(v2.charAt(v1)) == false) { v3 += v2.charAt(v1); } ++v1; } com.liveuniverse.utils.PlayerInfo._version = Number(v3); com.liveuniverse.utils.PlayerInfo.logger.debug('[version]: ' + com.liveuniverse.utils.PlayerInfo._version); } return com.liveuniverse.utils.PlayerInfo._version; }; v1.toString = function () { com.liveuniverse.utils.PlayerInfo.initLogger(); com.liveuniverse.utils.PlayerInfo.logger.debug('[toString]'); return '[' + com.liveuniverse.utils.PlayerInfo.classFQN + ']'; }; v1.className = 'PlayerInfo'; v1.classPackage = 'com.liveuniverse.utils'; v1.classFQN = com.liveuniverse.utils.PlayerInfo.classPackage + '.' + com.liveuniverse.utils.PlayerInfo.className; v1.classVersion = '1.1.0'; ASSetPropFlags(com.liveuniverse.utils.PlayerInfo.prototype, null, 1); } #endinitclip } movieClip 63 __Packages.mx.utils.Delegate { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.utils) { _global.mx.utils = new Object(); } if (!_global.mx.utils.Delegate) { var v1 = function (f) { super(); this.func = f; }; mx.utils.Delegate = v1; mx.utils.Delegate extends Object; var v2 = v1.prototype; v1.create = function (obj, func) { var v2 = function () { var v2 = arguments.callee.target; var v3 = arguments.callee.func; return v3.apply(v2, arguments); }; v2.target = obj; v2.func = func; return v2; }; v2.createDelegate = function (obj) { return mx.utils.Delegate.create(obj, this.func); }; ASSetPropFlags(mx.utils.Delegate.prototype, null, 1); } #endinitclip } movieClip 64 __Packages.com.liveuniverse.livetv.strap { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.liveuniverse) { _global.com.liveuniverse = new Object(); } if (!_global.com.liveuniverse.livetv) { _global.com.liveuniverse.livetv = new Object(); } if (!_global.com.liveuniverse.livetv.strap) { var v1 = function () { super(); this.onLoaded(); }; com.liveuniverse.livetv.strap = v1; com.liveuniverse.livetv.strap extends MovieClip; var v2 = v1.prototype; v2.onLoaded = function () { this._visible = false; }; v2.onStrap = function (vis, l1, l2) { this._visible = vis; this.text1.text = l1; this.text2.text = l2; }; ASSetPropFlags(com.liveuniverse.livetv.strap.prototype, null, 1); } #endinitclip } movieClip 65 __Packages.com.liveuniverse.livetv.liveTVPlayerComponent { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.liveuniverse) { _global.com.liveuniverse = new Object(); } if (!_global.com.liveuniverse.livetv) { _global.com.liveuniverse.livetv = new Object(); } if (!_global.com.liveuniverse.livetv.liveTVPlayerComponent) { var v1 = function () { super(); trace('LiveTV player component class loaded'); this.offair_mc._visible = false; this.connecting_mc._visible = true; }; com.liveuniverse.livetv.liveTVPlayerComponent = v1; com.liveuniverse.livetv.liveTVPlayerComponent extends MovieClip; var v2 = v1.prototype; v2.init = function (nc, owner, isHelper) { this.owner = owner; this.nc = nc; if (isHelper == true) { this.isHelper = true; } this.nc.liveTVOwner = this; this.nc.liveTVReset = function () { this.liveTVOwner.resetStream(); }; this.ns = new NetStream(this.nc); this.ns.owner = this; this.ns.resetStream = function () { this.owner.resetStream(); }; this.ns.onStreamInfo = function (obj) { this.owner.owner.onBroadcastStreamData(obj); this.owner.onBroadcastStreamData(obj); }; this.ns.onStatus = function (info) { if (info.code == 'NetStream.buffer.Full' && this.bufferTime <= 5) { this.setBufferTime(5); } else { if (info.code == 'NetStream.buffer.Empty') { this.setBufferTime(1); } else { if (info.code == 'NetStream.Play.Start') { this.owner.owner.onStreamConnected(); } } } }; var v3 = new Sound(); this.controlbar_mc.sound = v3; this.controlbar_mc.volume_mc.scrub._x = this.controlbar_mc.volume_mc.loadbar._width * 0.2; var v2 = Math.floor((this.controlbar_mc.volume_mc.scrub._x / this.controlbar_mc.volume_mc.loadbar._width) * 100); this.controlbar_mc.sound.setVolume(v2); this.controlbar_mc.play_mc.btn_status = 'pause'; this.wait_ind._visible = false; this.lowBWInd._visible = false; this.controlbar_mc.mute.onRollOver = function () { this.gotoAndStop(2); }; this.controlbar_mc.mute.onRelease = function () { if (this.isMuted == true) { this.isMuted = false; this.gotoAndStop(1); this._parent.sound.setVolume(this._parent.muteRecoveryVolume); } else { this.isMuted = true; this._parent.muteRecoveryVolume = this._parent.sound.getVolume(); this._parent.sound.setVolume(0); this.gotoAndStop(3); } }; this.controlbar_mc.mute.onReleaseOutside = function () { if (this.isMuted != true) { this.gotoAndStop(1); } else { this.gotoAndStop(3); } }; this.controlbar_mc.mute.onDragOut = this.controlbar_mc.mute.onReleaseOutside; this.controlbar_mc.mute.onRollOut = this.controlbar_mc.mute.onReleaseOutside; this.controlbar_mc.volume_mc.scrub.onPress = function () { this._parent._parent.mute.isMuted = false; this._parent._parent.mute.gotoAndStop(1); this.startDrag(false, 0, this._y, this._parent.loadbar._width, this._y); this.onEnterFrame = function () { newVol = Math.floor((this._x / this._parent.loadbar._width) * 100); trace('Feature volume is set to ' + newVol); this._parent._parent.sound.setVolume(newVol); }; }; this.controlbar_mc.volume_mc.scrub.onReleaseOutside = function () { this.stopDrag(); newVol = Math.floor((this._x / this._parent.loadbar._width) * 100); trace('Feature volume is set to ' + newVol); this._parent._parent.sound.setVolume(newVol); delete this.onEnterFrame; }; this.controlbar_mc.volume_mc.scrub.onRelease = this.controlbar_mc.volume_mc.scrub.onReleaseOutside; this.controlbar_mc.play_mc.onRelease = function () { trace('connected= ' + this._parent._parent.connected + ' : btn status=' + this.btn_status); if (this.btn_status == 'play') { trace('press play'); this._parent._parent.ns.receiveAudio(true); this._parent._parent.ns.receiveVideo(true); this._parent._parent.isPaused = false; this.btn_status = 'pause'; this.gotoAndStop('pause'); } else { if (this.btn_status == 'pause') { trace('press pause'); this._parent._parent.ns.receiveAudio(false); this._parent._parent.ns.receiveVideo(false); this.gotoAndStop('play'); this.btn_status = 'play'; this._parent._parent.isPaused = true; } } }; this.connecting_mc._visible = false; this.connectStream(); }; v2.resetStream = function () { if (this.isSuspended != true) { this.ns.play(false); this.ns.receiveVideo(true); this.ns.receiveAudio(true); this.ns.setBufferTime(0); this.ns.play('broadcast', -1, -1, true); this.lowBWInd._visible = false; } }; v2.connectStream = function () { clearTimeout(this.recycleTimeout); clearInterval(this.fpInt); trace('conecting to stream to play'); this.ns.owner = this; this.ns.onStreamInfo = function (obj) { this.owner.onBroadcastStreamData(obj); this.owner.onBroadcastStreamData(obj); }; this.ns.onStrap = function (dataObj) { this.owner.strap.onStrap(dataObj.vis, dataObj.line1, dataObj.line2); }; this.ns.onChannelOffair = function (obj) { this.owner.isOffAir = obj.val; this.owner.offair_mc._visible = obj.val; }; this.ns.setBufferTime(2); if (this.isHelper == true) { this.owner.onPlayerReady(); } this.ns.play('broadcast', -1, -1); this.vid.attachVideo(this.ns); this.controlbar_mc.sound.attachAudio(this.ns); if (_root.audioState == 'mute') { this.controlbar_mc.sound.setVolume(0); } this.fpInt = setInterval(this, 'checkFPS', 1000); }; v2.checkFPS = function () { if (this.ns.currentFps < 1 && this.isPaused != true && this.isConnected == true) { this.wait_ind._visible = true; } else { this.wait_ind._visible = false; } if (this.ns.liveDelay > 2) { } }; v2.onBroadcastStreamData = function (obj) { this.title_txt.text = obj.title; this.owner.onBroadcastStreamData(obj); }; v2.recycleProgamStream = function (lowBW) { clearTimeout(this.recycleTimeout); this.lowBWInd._visible = false; if (lowBW == true) { this.ns.receiveVideo(false); this.ns.receiveAudio(false); this.lowBWInd._visible = lowBW; this.recycleTimeout = setTimeout(this, 'resetStream', 6000); } else { this.ns.receiveVideo(true); } }; v2.suspend = function (val) { this.isSuspended = val; if (val == true) { this.ns.play(false); } else { this.resetStream(); } }; ASSetPropFlags(com.liveuniverse.livetv.liveTVPlayerComponent.prototype, null, 1); } #endinitclip } movieClip 66 __Packages.com.liveuniverse.livetv.liveTVPoll { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.liveuniverse) { _global.com.liveuniverse = new Object(); } if (!_global.com.liveuniverse.livetv) { _global.com.liveuniverse.livetv = new Object(); } if (!_global.com.liveuniverse.livetv.liveTVPoll) { var v1 = function () { super(); }; com.liveuniverse.livetv.liveTVPoll = v1; com.liveuniverse.livetv.liveTVPoll extends MovieClip; var v2 = v1.prototype; v2.init = function (nc, owner, userMode) { if (this.isInited != true) { this.isInited = true; this._visible = false; this.owner = owner; this.r_mc._visible = false; this.bg.useHandCursor = false; this.bg.onPress = function () { this._parent.startDrag(); }; this.bg.onReleaseOutside = function () { this.stopDrag(); }; this.bg.onRelease = this.bg.onReleaseOutside; this.closepoll_btn.onRelease = function () { this._parent._visible = false; }; this.votenow_btn.onRelease = function () { this._parent.getURL(this._parent.owner.pollRedirect, '_blank'); }; this.nc = nc; this.nc.pollOwner = this; this.nc.onPresentPoll = function (id, question, answerArray) { this.pollOwner.onPresentPoll(id, question, answerArray); }; this.userMode = userMode; this.start_btn.addEventListener('click', mx.utils.Delegate.create(this, this.startPoll)); this.close_btn.addEventListener('click', mx.utils.Delegate.create(this, this.closePoll)); this.end_btn.addEventListener('click', mx.utils.Delegate.create(this, this.endPoll)); this.cancel_btn.addEventListener('click', mx.utils.Delegate.create(this, this.cancel)); this.q_mc.vote_btn.onRelease = mx.utils.Delegate.create(this, this.castVote); this.readyMessage = 'Enter your poll question and answers, and press the "Start Poll" button to present the poll to your audience. Once you start the poll, you cannot change your question or answers.'; this.status_txt.text = this.readyMessage; var v2 = 0; while (v2 < 4) { this['bar' + v2].setValue(0); ++v2; } this.setEnabledStates('ready'); this.onStartPoll = new Object(); this.onStartPoll.owner = this; this.onStartPoll.onResult = function () { this.owner.onStartPollEvent(); }; this.owner.openpoll_btn.onRelease = function () { this._parent.poll.setVisible(true); }; this.connectPoll(); } }; v2.setVisible = function (val) { this._visible = val; }; v2.connectPoll = function () { if (this.userMode == 'pollReplicator') { this.poll_so = SharedObject.getRemote('pollReplicatorSync', this.nc.uri, false); } else { this.poll_so = SharedObject.getRemote('pollSync', this.nc.uri, false); } this.poll_so.owner = this; this.currentPollID = 0; this.poll_so.onSync = function () { this.owner.onPollSync(); }; this.poll_so.connect(this.nc); }; v2.onPollSync = function () { var v2 = this.poll_so.data; if (this.currentPollID != v2.currentPoll) { var v3 = 0; while (v3 < 4) { this.q_mc['a' + v3]._visible = false; this.q_mc['a' + v3].label = ''; this.r_mc['r' + v3 + '_txt']._visible = false; this.r_mc['bar' + v3]._visible = false; this.r_mc['bar' + v3].setValue(0); ++v3; } } this.q_mc.q_txt.text = v2.currentPollQuestion; this.r_mc.total_txt.text = 'Total Votes: ' + v2.votesCounted; this.total_txt.text = 'Total Votes: ' + v2.votesCounted; v3 = 0; while (v3 < v2.currentPollAnswers.length) { this['bar' + v3].setValue(v2.votesByPercent[v3]); this['p' + v3].text = v2.votesByPercent[v3] + '% (' + v2.votesByCount[v3] + ' votes)'; this.q_mc['a' + v3].label = v2.currentPollAnswers[v3]; this.r_mc['r' + v3 + '_txt'].text = v2.currentPollAnswers[v3] + ' ' + v2.votesByPercent[v3] + '% (' + v2.votesByCount[v3] + ' votes)'; this.r_mc['bar' + v3].setValue(v2.votesByPercent[v3]); this.q_mc['a' + v3]._visible = true; this.r_mc['r' + v3 + '_txt']._visible = true; this.r_mc['bar' + v3]._visible = true; ++v3; } var v4 = v3; while (v4 < 4) { this.q_mc['a' + v4]._visible = false; this.q_mc['a' + v4].label = ''; this.r_mc['r' + v4 + '_txt']._visible = false; this.r_mc['bar' + v4]._visible = false; this.r_mc['bar' + v4].setValue(0); ++v4; } if (v2.showResults == true) { } if (this.currentPollID != v2.currentPoll && v2.status == true) { this.currentPollID = v2.currentPoll; v3 = 0; while (v3 < 4) { this.q_mc['a' + v3].enabled = true; ++v3; } this.q_mc.vote_btn._visible = true; this.r_mc._visible = false; this.setVisible(true); v3 = 0; while (v3 < 4) { this.q_mc['a' + v3].selected = false; ++v3; } if (this.userMode != 'producer' && this.userMode != 'simpleChat' && this.userMode != 'pollButton') { this._x = 80; this._y = 55; } if (this.userMode == 'pollReplicator') { this._x = 300; this._y = 110; } if (this.owner.aspUserID > 0) { } else { v4 = 0; while (v4 < 4) { ++v4; } this.r_mc._visible = true; } this.owner.openpoll_btn._visible = true; } if (v2.status == false && this.currentPollID == v2.currentPoll) { this.setVisible(false); this.owner.openpoll_btn._visible = false; } if (v2.allowVoting == false) { v3 = 0; while (v3 < 4) { this.q_mc['a' + v3].enabled = false; ++v3; } this.q_mc.vote_btn._visible = false; this.r_mc._visible = true; } }; v2.startPoll = function () { this.setEnabledStates('polling'); var v4 = this.question_txt.text; var v3 = new Array(); var v2 = 0; while (v2 < 4) { if (this['a' + v2].text != '') { v3.push(this['a' + v2].text); } this['bar' + v2].setValue(0); ++v2; } if (v4 == '') { this.onFormError(1); return undefined; } else { if (v3.length < 2) { this.onFormError(2); return undefined; } else { this.onSubmitPoll(); this.nc.call('startPoll', this.onStartPoll, v4, v3); } } }; v2.onStartPollEvent = function () { this.status_txt.text = 'Your poll has been presented to the audience. Results will be shown in real time below. Press "Close Voting" to stop taking new votes. Press "End Poll" to end the polling session and close this window.'; }; v2.closePoll = function () { this.nc.call('closePoll'); this.close_btn._visible = false; this.status_txt.text = 'Your poll has been closed. The audience can still see the results, but no new votes will be taken. Press "End Poll" to close this window.'; }; v2.endPoll = function () { this.nc.call('endPoll'); this.cancel(); }; v2.onSubmitPoll = function () { this.status_txt.text = 'Preparing poll... one moment please.'; }; v2.onFormError = function (code) { this.setEnabledStates('ready'); switch (code) { case 1: this.status_txt.text = 'You did not enter a question for the poll. Please enter your question now.'; break; case 2: this.status_txt.text = 'You have entered fewer than 2 answers for this poll. Please enter your answers now.'; } }; v2.setEnabledStates = function (val) { if (val == 'ready') { this.question_txt.enabled = true; this.start_btn._visible = true; this.cancel_btn._visible = true; this.close_btn._visible = false; this.end_btn._visible = false; var v2 = 0; while (v2 < 4) { this['a' + v2].enabled = true; ++v2; } } else { this.question_txt.enabled = false; this.start_btn._visible = false; this.cancel_btn._visible = false; this.close_btn._visible = true; this.end_btn._visible = true; var v2 = 0; while (v2 < 4) { this['a' + v2].enabled = false; ++v2; } } }; v2.cancel = function () { this._visible = false; this.setEnabledStates('ready'); this.status_txt.text = this.readyMessage; this.question_txt.text = ''; var v2 = 0; while (v2 < 4) { this['a' + v2].text = ''; ++v2; } v2 = 0; while (v2 < 4) { this['bar' + v2].setValue(0); ++v2; } }; v2.onPresentPoll = function (question, answerArray) { var v3 = 0; while (v3 < 4) { this.q_mc['a' + v3]._visible = false; this.r_mc['r' + v3 + '_txt']._visible = false; this.r_mc['bar' + v3]._visible = false; this.r_mc['bar' + v3].setValue(0); ++v3; } this.q_mc.q_txt.text = question; var v2 = 0; while (v2 < answerArray.length) { this.q_mc['a' + v2]._visible = true; this.q_mc['a' + v2].label = answerArray[v2]; this.r_mc['r' + v2 + '_txt']._visible = true; this.r_mc['bar' + v2]._visible = true; this.r_mc['bar' + v2].setValue(0); ++v2; } }; v2.castVote = function () { if (this.owner.aspUserID > 0) { var v2 = 0; while (v2 < 4) { this.q_mc['a' + v2].enabled = false; ++v2; } this.q_mc.vote_btn._visible = false; this.onCastVote = new Object(); this.onCastVote.owner = this; this.onCastVote.onResult = function () { this.owner.castVoteComplete(); }; this.nc.call('castVote', this.onCastVote, this.currentPollID, this.q_mc.vote_rg.selectedData, this.owner.aspUserID); } else { this.owner.onLoginAlert(); } }; v2.castVoteComplete = function () { this.r_mc._visible = true; }; ASSetPropFlags(com.liveuniverse.livetv.liveTVPoll.prototype, null, 1); } #endinitclip }




http://swfchan.com/53/262013/info.shtml
Created: 13/10 -2025 23:51:06 Last modified: 13/10 -2025 23:51:06 Server time: 05/12 -2025 07:50:53