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

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

Thrash Anthems III.swf

This is the info page for
Flash #74648

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


ActionScript [AS1/AS2]
Combined Code
movieClip 2 Cursor { } movieClip 8 { } movieClip 10 { } movieClip 12 { } movieClip 17 MaximizeButton { #initclip Object.registerClass('MaximizeButton', mx.controls.streamingmedia.FullScreenToggleControl); #endinitclip frame 1 { stop(); } } movieClip 19 MinimizeButton { #initclip Object.registerClass('MinimizeButton', mx.controls.streamingmedia.FullScreenToggleControl); #endinitclip frame 1 { stop(); } } movieClip 20 FullScreenToggle { #initclip Object.registerClass('FullScreenToggle', mx.controls.streamingmedia.FullScreenToggle); #endinitclip frame 1 { stop(); } } movieClip 21 Chrome { #initclip Object.registerClass('Chrome', mx.controls.streamingmedia.Chrome); #endinitclip } movieClip 25 { } movieClip 26 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 27 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 28 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 31 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 33 BoundingBox { } movieClip 34 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 35 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 36 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 37 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 39 { } movieClip 41 { } movieClip 42 MediaDisplay { #initclip Object.registerClass('MediaDisplay', mx.controls.MediaDisplay); #endinitclip frame 1 { stop(); } } movieClip 44 { } movieClip 45 { } movieClip 46 { } movieClip 48 { } movieClip 49 HLoadBar { #initclip Object.registerClass('HLoadBar', mx.controls.streamingmedia.LoadBar); #endinitclip } movieClip 54 { } movieClip 55 { } movieClip 56 { } movieClip 57 HMiniPlayBarTray { #initclip Object.registerClass('HMiniPlayBarTray', mx.controls.streamingmedia.HMiniPlayBarTray); #endinitclip } movieClip 59 { } movieClip 60 { } movieClip 61 HMiniPlayBar { #initclip Object.registerClass('HMiniPlayBar', mx.controls.streamingmedia.MiniPlayBar); #endinitclip frame 1 { _tray.setWidth(this.getWidth()); } } movieClip 62 { } movieClip 63 { } movieClip 64 { } movieClip 65 PlayBarTray { #initclip Object.registerClass('PlayBarTray', mx.controls.streamingmedia.HPlayBarTray); #endinitclip } movieClip 66 { } // unknown tag 88 length 79 // unknown tag 88 length 79 movieClip 72 { } movieClip 74 { } movieClip 76 { } movieClip 77 PlayBarThumb { #initclip Object.registerClass('PlayBarThumb', mx.controls.streamingmedia.PlayBarThumb); #endinitclip frame 1 { stop(); } } movieClip 78 HPlayBar { #initclip Object.registerClass('HPlayBar', mx.controls.streamingmedia.PlayBar); #endinitclip frame 1 { _tray.setWidth(this.getWidth()); } } movieClip 80 Capsule Button - active { } movieClip 82 icon.skip { } movieClip 83 ToStart-False-Up { } movieClip 84 ToEnd-False-Up { } movieClip 87 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 89 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 90 SimpleButtonDown { } movieClip 92 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 93 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 94 SimpleButtonIn { } movieClip 95 SimpleButtonUp { } movieClip 96 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 97 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 98 RectBorder { #initclip mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass('RectBorder', mx.skins.halo.RectBorder); #endinitclip frame 1 { stop(); } } movieClip 99 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 100 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 96 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 102 icon.pause { } movieClip 103 icon.pause-disabled { } movieClip 105 icon.play { } movieClip 106 icon.play-disabled { } movieClip 107 HPlayPauseButton { #initclip Object.registerClass('HPlayPauseButton', mx.controls.streamingmedia.PlayPauseButton); #endinitclip frame 1 { stop(); } instance of movieClip 100 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 109 Capsule Button - press { } movieClip 110 ToStart-False-Down { } movieClip 112 Capsule Button - over { } movieClip 113 ToStart-False-Over { } movieClip 114 ToStart-False-Disabled { } movieClip 115 HToStartButton { #initclip Object.registerClass('HToStartButton', mx.controls.streamingmedia.ToStartButton); #endinitclip frame 1 { stop(); } instance of movieClip 96 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 116 ToEnd-False-Down { } movieClip 117 ToEnd-False-Over { } movieClip 118 ToEnd-False-Disabled { } movieClip 119 HToEndButton { #initclip Object.registerClass('HToEndButton', mx.controls.streamingmedia.ToEndButton); #endinitclip frame 1 { stop(); } instance of movieClip 96 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 120 HButtons { frame 1 { this.tabEnabled = false; this.tabChildren = true; } } movieClip 121 { } movieClip 122 VolumeControlHandle { #initclip Object.registerClass('VolumeControlHandle', mx.controls.streamingmedia.VolumeControlHandle); #endinitclip frame 1 { stop(); } } movieClip 124 Mute-False-Up { } movieClip 126 Loud-False-Up { } movieClip 128 Mute-False-Down { } movieClip 130 Mute-False-Over { } movieClip 131 Mute-False-Disabled { } movieClip 132 MuteButton { #initclip Object.registerClass('MuteButton', mx.controls.streamingmedia.MuteButton); #endinitclip frame 1 { stop(); } instance of movieClip 96 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 134 Loud-False-Down { } movieClip 136 Loud-False-Over { } movieClip 137 Loud-False-Disabled { } movieClip 138 LoudButton { #initclip Object.registerClass('LoudButton', mx.controls.streamingmedia.LoudButton); #endinitclip frame 1 { stop(); } instance of movieClip 96 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 140 HVolumeControl { #initclip Object.registerClass('HVolumeControl', mx.controls.streamingmedia.VolumeControl); #endinitclip } movieClip 141 { } movieClip 142 { } movieClip 143 VLoadBar { #initclip Object.registerClass('VLoadBar', mx.controls.streamingmedia.LoadBar); #endinitclip } movieClip 144 { } movieClip 145 { } movieClip 146 { } movieClip 147 VMiniPlayBarTray { #initclip Object.registerClass('VMiniPlayBarTray', mx.controls.streamingmedia.VMiniPlayBarTray); #endinitclip } movieClip 148 { } movieClip 149 { } movieClip 150 VMiniPlayBar { #initclip Object.registerClass('VMiniPlayBar', mx.controls.streamingmedia.MiniPlayBar); #endinitclip frame 1 { _tray.setHeight(this.getHeight()); } } movieClip 151 { } movieClip 152 { } movieClip 153 { } movieClip 154 VPlayBarTray { #initclip Object.registerClass('VPlayBarTray', mx.controls.streamingmedia.VPlayBarTray); #endinitclip } movieClip 155 { } // unknown tag 88 length 79 movieClip 158 { } movieClip 160 { } movieClip 162 { } movieClip 163 VPlayBarThumb { #initclip Object.registerClass('VPlayBarThumb', mx.controls.streamingmedia.PlayBarThumb); #endinitclip frame 1 { stop(); } } movieClip 164 VPlayBar { #initclip Object.registerClass('VPlayBar', mx.controls.streamingmedia.PlayBar); #endinitclip frame 1 { _tray.setHeight(this.getHeight()); } } movieClip 165 VButtons { frame 1 { this.tabEnabled = false; this.tabChildren = true; } } movieClip 166 { } movieClip 168 VVolumeControl { #initclip Object.registerClass('VVolumeControl', mx.controls.streamingmedia.VolumeControl); #endinitclip } movieClip 170 { } // unknown tag 88 length 79 movieClip 172 MediaController { #initclip Object.registerClass('MediaController', mx.controls.MediaController); #endinitclip frame 2 { _miniPlayBar.setCompletionPercentage(_playPercent); } frame 3 { _playBar.setCompletionPercentage(_playPercent); } frame 4 { _miniPlayBar.setCompletionPercentage(_playPercent); } frame 5 { _playBar.setCompletionPercentage(_playPercent); } } movieClip 173 MediaPlayback { #initclip Object.registerClass('MediaPlayback', mx.controls.MediaPlayback); #endinitclip frame 1 { stop(); } instance _display of movieClip 42 MediaDisplay { onClipEvent (initialize) { aspectRatio = true; autoPlay = true; autoSize = true; contentPath = ''; fps = 30; mediaType = 'FLV'; totalTime = 0; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance _controller of movieClip 172 MediaController { onClipEvent (initialize) { activePlayControl = 'play'; backgroundStyle = 'default'; controllerPolicy = 'auto'; horizontal = true; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 238 { } movieClip 239 VideoPlayer { #initclip Object.registerClass('VideoPlayer', mx.video.VideoPlayer); #endinitclip } movieClip 242 Icon { } movieClip 243 FLVPlayback { #initclip Object.registerClass('FLVPlayback', mx.video.FLVPlayback); #endinitclip frame 1 { stop(); } } movieClip 255 TextInput { #initclip Object.registerClass('TextInput', mx.controls.TextInput); #endinitclip frame 1 { stop(); } } frame 1 { stop(); } frame 1 { MochiAd.showPreGameAd({'id': '81f2031fba08e0e5', 'res': '600x900'}); } movieClip 1109 __Packages.MochiAd { #initclip if (!_global.MochiAd) { var v1 = function () {}; _global.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return '2.7'; }; v1.showPreGameAd = function (options) { var v26 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = MochiAd._parseOptions(options, v26); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v22 = 11000; var v25 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v14 = MochiAd._getRes(options); var v4 = v14[0]; var v13 = v14[1]; mc._x = v4 * 0.5; mc._y = v13 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v4 * -0.5; chk._y = v13 * -0.5; var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v6._visible = false; delete options.no_progress_bar; } else { v6._x = 10; v6._y = v13 - 20; } var v21 = options.color; delete options.color; var v19 = options.background; delete options.background; var v23 = options.outline; delete options.outline; var v5 = v6.createEmptyMovieClip('_outline', 1); v5.beginFill(v19); v5.moveTo(0, 0); v5.lineTo(v4 - 20, 0); v5.lineTo(v4 - 20, 10); v5.lineTo(0, 10); v5.lineTo(0, 0); v5.endFill(); var v3 = v6.createEmptyMovieClip('_inside', 2); v3.beginFill(v21); v3.moveTo(0, 0); v3.lineTo(v4 - 20, 0); v3.lineTo(v4 - 20, 10); v3.lineTo(0, 10); v3.lineTo(0, 0); v3.endFill(); v3._xscale = 0; var v7 = v6.createEmptyMovieClip('_outline', 3); v7.lineStyle(0, v23, 100); v7.moveTo(0, 0); v7.lineTo(v4 - 20, 0); v7.lineTo(v4 - 20, 10); v7.lineTo(0, 10); v7.lineTo(0, 0); chk.ad_msec = v22; chk.ad_timeout = v25; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v6 = this._parent._parent; var v11 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; var v4 = v6.getBytesTotal(); var v8 = v6.getBytesLoaded(); var v2 = 100 * v8 / v4; var v10 = 100 * v5 / chk.ad_msec; var v9 = this._mochiad_bar._inside; var v13 = Math.min(100, Math.min(v2 || 0, v10)); v13 = Math.max(this.last_pcnt, v13); this.last_pcnt = v13; v9._xscale = v13; options.ad_progress(v13); if (sendHostProgress) { clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'hostLoadPcnt', 'pcnt': v2}); if (v2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v7 = v11.getBytesTotal(); if (v7 > 0 || typeof v7 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout && v2 == 100) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { v3 = true; } if (v4 > 0 && v8 >= v4 && v3) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v9 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_skipped': function () {}}; options = MochiAd._parseOptions(options, v9); var clip = options.clip; var v8 = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v4 = MochiAd._getRes(options); var v10 = v4[0]; var v7 = v4[1]; mc._x = v10 * 0.5; mc._y = v7 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { v2 = true; chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v2) { delete this.onEnterFrame; } }; }; v1.showInterLevelAd = function (options) { var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}}; options = MochiAd._parseOptions(options, v13); var clip = options.clip; var v10 = 11000; var v12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v5 = MochiAd._getRes(options); var v14 = v5[0]; var v11 = v5[1]; mc._x = v14 * 0.5; mc._y = v11 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v10; chk.ad_timeout = v12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); MochiAd.showInterLevelAd(options); }; v1._allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.load = function (options) { var v13 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = MochiAd._parseOptions(options, v13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = MochiAd.getVersion(); var v9 = options.clip; if (!MochiAd._isNetworkAvailable()) { return null; } if (v9._mochiad_loaded) { return null; } var v12 = options.depth; delete options.depth; var v6 = v9.createEmptyMovieClip('_mochiad', v12); var v11 = MochiAd._getRes(options); options.res = v11[0] + 'x' + v11[1]; options.server += options.id; delete options.id; v9._mochiad_loaded = true; var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1); for (var v7 in options) { v4[v7] = options[v7]; } var v10 = v4.server; delete v4.server; var v14 = MochiAd._allowDomains(v10); v6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var v5 = new LocalConnection(); var v8 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = v6; v5.name = v8; v5.hostname = v14; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v8); v6.lc = v5; v4.lc = v8; v4.st = getTimer(); v4.loadMovie(v10 + '.swf', 'POST'); return v6; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } if (clip._mochiad._containerLCName != undefined) { clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'unload'}); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; v1._isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1._getRes = function (options) { var v3 = options.clip.getBounds(); var v2 = 0; var v1 = 0; if (typeof options.res != 'undefined') { var v4 = options.res.split('x'); v2 = parseFloat(v4[0]); v1 = parseFloat(v4[1]); } else { v2 = v3.xMax - v3.xMin; v1 = v3.yMax - v3.yMin; } if (v2 == 0 || v1 == 0) { v2 = Stage.width; v1 = Stage.height; } return [v2, v1]; }; v1._parseOptions = function (options, defaults) { var v4 = {}; for (var v8 in defaults) { v4[v8] = defaults[v8]; } if (options) { for (v8 in options) { v4[v8] = options[v8]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v5.length) { var v3 = v5[v2].split('='); v4[unescape(v3[0])] = unescape(v3[1]); ++v2; } } if (v4.id == 'test') { trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!'); } return v4; }; v1.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = MochiAd.getValue(clip, arg.objectName); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v4); break; case 'runMethod': var v3 = MochiAd.runMethod(clip, arg.method, arg.args); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v3); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; v1.setValue = function (base, objectName, value) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } base[v2[v1]] = value; }; v1.getValue = function (base, objectName) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } return base[v2[v1]]; }; v1.runMethod = function (base, methodName, argsArray) { var v2 = methodName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } if (typeof base[v2[v1]] == 'function') { return base[v2[v1]].apply(base, argsArray); } else { return undefined; } }; ASSetPropFlags(_global.MochiAd.prototype, null, 1); } #endinitclip } movieClip 3 __Packages.mx.core.UIObject { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIObject) { var v1 = function () { super(); this.constructObject(); }; mx.core.UIObject = v1; var v2 = new MovieClip(); mx.core.UIObject.prototype = v2; v2.__get__width = function () { return this._width; }; v2.__get__height = function () { return this._height; }; v2.__get__left = function () { return this._x; }; v2.__get__x = function () { return this._x; }; v2.__get__top = function () { return this._y; }; v2.__get__y = function () { return this._y; }; v2.__get__right = function () { return this._parent.width - (this._x + this.__get__width()); }; v2.__get__bottom = function () { return this._parent.height - (this._y + this.__get__height()); }; v2.getMinHeight = function (Void) { return this._minHeight; }; v2.setMinHeight = function (h) { this._minHeight = h; }; v2.__get__minHeight = function () { return this.getMinHeight(); }; v2.__set__minHeight = function (h) { this.setMinHeight(h); return this.__get__minHeight(); }; v2.getMinWidth = function (Void) { return this._minWidth; }; v2.setMinWidth = function (w) { this._minWidth = w; }; v2.__get__minWidth = function () { return this.getMinWidth(); }; v2.__set__minWidth = function (w) { this.setMinWidth(w); return this.__get__minWidth(); }; v2.setVisible = function (x, noEvent) { if (x != this._visible) { this._visible = x; if (noEvent != true) { this.dispatchEvent({'type': x ? 'reveal' : 'hide'}); } } }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (x) { this.setVisible(x, false); return this.__get__visible(); }; v2.__get__scaleX = function () { return this._xscale; }; v2.__set__scaleX = function (x) { this._xscale = x; return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._yscale; }; v2.__set__scaleY = function (y) { this._yscale = y; return this.__get__scaleY(); }; v2.doLater = function (obj, fn) { if (this.methodTable == undefined) { this.methodTable = new Array(); } this.methodTable.push({'obj': obj, 'fn': fn}); this.onEnterFrame = this.doLaterDispatcher; }; v2.doLaterDispatcher = function (Void) { delete this.onEnterFrame; if (this.invalidateFlag) { this.redraw(); } var v3 = this.methodTable; this.methodTable = new Array(); if (v3.length > 0) { var v2; v2 = v3.shift(); while (v2 != undefined) { v2.obj[v2.fn](); } } }; v2.cancelAllDoLaters = function (Void) { delete this.onEnterFrame; this.methodTable = new Array(); }; v2.invalidate = function (Void) { this.invalidateFlag = true; this.onEnterFrame = this.doLaterDispatcher; }; v2.invalidateStyle = function (Void) { this.invalidate(); }; v2.redraw = function (bAlways) { if (this.invalidateFlag || bAlways) { this.invalidateFlag = false; var v2; for (v2 in this.tfList) { this.tfList[v2].draw(); } this.draw(); this.dispatchEvent({'type': 'draw'}); } }; v2.draw = function (Void) {}; v2.move = function (x, y, noEvent) { var v3 = this._x; var v2 = this._y; this._x = x; this._y = y; if (noEvent != true) { this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2}); } }; v2.setSize = function (w, h, noEvent) { var v2 = this.__width; var v3 = this.__height; this.__width = w; this.__height = h; this.size(); if (noEvent != true) { this.dispatchEvent({'type': 'resize', 'oldWidth': v2, 'oldHeight': v3}); } }; v2.size = function (Void) { this._width = this.__width; this._height = this.__height; }; v2.drawRect = function (x1, y1, x2, y2) { this.moveTo(x1, y1); this.lineTo(x2, y1); this.lineTo(x2, y2); this.lineTo(x1, y2); this.lineTo(x1, y1); }; v2.createLabel = function (name, depth, text) { this.createTextField(name, depth, 0, 0, 0, 0); var v2 = this[name]; v2._color = mx.core.UIObject.textColorList; v2._visible = false; v2.__text = text; if (this.tfList == undefined) { this.tfList = new Object(); } this.tfList[name] = v2; v2.invalidateStyle(); this.invalidate(); v2.styleName = this; return v2; }; v2.createObject = function (linkageName, id, depth, initobj) { return this.attachMovie(linkageName, id, depth, initobj); }; v2.createClassObject = function (className, id, depth, initobj) { var v3 = className.symbolName == undefined; if (v3) { Object.registerClass(className.symbolOwner.symbolName, className); } var v4 = this.createObject(className.symbolOwner.symbolName, id, depth, initobj); if (v3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return v4; }; v2.createEmptyObject = function (id, depth) { return this.createClassObject(mx.core.UIObject, id, depth); }; v2.destroyObject = function (id) { var v2 = this[id]; if (v2.getDepth() < 0) { var v4 = this.buildDepthTable(); var v5 = this.findNextAvailableDepth(0, v4, 'up'); var v3 = v5; v2.swapDepths(v3); } v2.removeMovieClip(); delete this[id]; }; v2.getSkinIDName = function (tag) { return this.idNames[tag]; }; v2.setSkin = function (tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj); }; v2.createSkin = function (tag) { var v2 = this.getSkinIDName(tag); this.createEmptyObject(v2, tag); return this[v2]; }; v2.createChildren = function (Void) {}; v2._createChildren = function (Void) { this.createChildren(); this.childrenCreated = true; }; v2.constructObject = function (Void) { if (this._name == undefined) { return undefined; } this.init(); this._createChildren(); this.createAccessibilityImplementation(); this._endInit(); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.initFromClipParameters = function (Void) { var v4 = false; var v2; for (v2 in this.clipParameters) { if (this.hasOwnProperty(v2)) { v4 = true; this['def_' + v2] = this[v2]; delete this[v2]; } } if (v4) { for (v2 in this.clipParameters) { var v3 = this['def_' + v2]; if (v3 != undefined) { this[v2] = v3; } } } }; v2.init = function (Void) { this.__width = this._width; this.__height = this._height; if (this.initProperties == undefined) { this.initFromClipParameters(); } else { this.initProperties(); } if (_global.cascadingStyles == true) { this.stylecache = new Object(); } }; v2.getClassStyleDeclaration = function (Void) { var v4 = this; var v3 = this.className; while (v3 != undefined) { if (this.ignoreClassStyleDeclaration[v3] == undefined) { if (_global.styles[v3] != undefined) { return _global.styles[v3]; } } v4 = v4.__proto__; v3 = v4.className; } }; v2.setColor = function (color) {}; v2.__getTextFormat = function (tf, bAll) { var v8 = this.stylecache.tf; if (v8 != undefined) { var v3; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { tf[v3] = v8[v3]; } } } return false; } var v6 = false; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { var v5 = this._tf[v3]; if (v5 != undefined) { tf[v3] = v5; } else { if (v3 == 'font' && this.fontFamily != undefined) { tf[v3] = this.fontFamily; } else { if (v3 == 'size' && this.fontSize != undefined) { tf[v3] = this.fontSize; } else { if (v3 == 'color' && this.color != undefined) { tf[v3] = this.color; } else { if (v3 == 'leftMargin' && this.marginLeft != undefined) { tf[v3] = this.marginLeft; } else { if (v3 == 'rightMargin' && this.marginRight != undefined) { tf[v3] = this.marginRight; } else { if (v3 == 'italic' && this.fontStyle != undefined) { tf[v3] = this.fontStyle == v3; } else { if (v3 == 'bold' && this.fontWeight != undefined) { tf[v3] = this.fontWeight == v3; } else { if (v3 == 'align' && this.textAlign != undefined) { tf[v3] = this.textAlign; } else { if (v3 == 'indent' && this.textIndent != undefined) { tf[v3] = this.textIndent; } else { if (v3 == 'underline' && this.textDecoration != undefined) { tf[v3] = this.textDecoration == v3; } else { if (v3 == 'embedFonts' && this.embedFonts != undefined) { tf[v3] = this.embedFonts; } else { v6 = true; } } } } } } } } } } } } } } } if (v6) { var v9 = this.styleName; if (v9 != undefined) { if (typeof v9 != 'string') { v6 = v9.__getTextFormat(tf, true, this); } else { if (_global.styles[v9] != undefined) { v6 = _global.styles[v9].__getTextFormat(tf, true, this); } } } } if (v6) { var v10 = this.getClassStyleDeclaration(); if (v10 != undefined) { v6 = v10.__getTextFormat(tf, true, this); } } if (v6) { if (_global.cascadingStyles) { if (this._parent != undefined) { v6 = this._parent.__getTextFormat(tf, false); } } } if (v6) { v6 = _global.style.__getTextFormat(tf, true, this); } return v6; }; v2._getTextFormat = function (Void) { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2, true); this.stylecache.tf = v2; if (this.enabled == false) { var v3 = this.getStyle('disabledColor'); v2.color = v3; } return v2; }; v2.getStyleName = function (Void) { var v2 = this.styleName; if (v2 != undefined) { if (typeof v2 != 'string') { return v2.getStyleName(); } else { return v2; } } if (this._parent != undefined) { return this._parent.getStyleName(); } else { return undefined; } }; v2.getStyle = function (styleProp) { var v3; ++_global.getStyleCounter; if (this[styleProp] != undefined) { return this[styleProp]; } var v6 = this.styleName; if (v6 != undefined) { if (typeof v6 != 'string') { v3 = v6.getStyle(styleProp); } else { var v7 = _global.styles[v6]; v3 = v7.getStyle(styleProp); } } if (v3 != undefined) { return v3; } v7 = this.getClassStyleDeclaration(); if (v7 != undefined) { v3 = v7[styleProp]; } if (v3 != undefined) { return v3; } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) { var v5 = this.stylecache; if (v5 != undefined) { if (v5[styleProp] != undefined) { return v5[styleProp]; } } if (this._parent != undefined) { v3 = this._parent.getStyle(styleProp); } else { v3 = _global.style[styleProp]; } if (v5 != undefined) { v5[styleProp] = v3; } return v3; } } if (v3 == undefined) { v3 = _global.style[styleProp]; } return v3; }; v1.mergeClipParameters = function (o, p) { for (var v3 in p) { o[v3] = p[v3]; } return true; }; v1.symbolName = 'UIObject'; v1.symbolOwner = mx.core.UIObject; v1.version = '2.0.2.127'; v1.textColorList = {'color': 1, 'disabledColor': 1}; v2.invalidateFlag = false; v2.lineWidth = 1; v2.lineColor = 0; v2.tabEnabled = false; v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1}; v2.addProperty('bottom', v2.__get__bottom, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('left', v2.__get__left, function () {}); v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight); v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth); v2.addProperty('right', v2.__get__right, function () {}); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('top', v2.__get__top, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('width', v2.__get__width, function () {}); v2.addProperty('x', v2.__get__x, function () {}); v2.addProperty('y', v2.__get__y, function () {}); ASSetPropFlags(mx.core.UIObject.prototype, null, 1); } #endinitclip } movieClip 4 __Packages.mx.core.UIComponent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIComponent) { var v1 = function () { super(); }; mx.core.UIComponent = v1; var v2 = new mx.core.UIObject(); mx.core.UIComponent.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); }; v2.enabledChanged = function (id, oldValue, newValue) { this.setEnabled(newValue); this.invalidate(); delete this.stylecache.tf; return newValue; }; v2.setEnabled = function (enabled) { this.invalidate(); }; v2.getFocus = function () { var selFocus = Selection.getFocus(); return (selFocus === null) ? null : eval(selFocus); }; v2.setFocus = function () { Selection.setFocus(this); }; v2.getFocusManager = function () { var v2 = this; while (v2 != undefined) { if (v2.focusManager != undefined) { return v2.focusManager; } v2 = v2._parent; } return undefined; }; v2.onKillFocus = function (newFocus) { this.removeEventListener('keyDown', this); this.removeEventListener('keyUp', this); this.dispatchEvent({'type': 'focusOut'}); this.drawFocus(false); }; v2.onSetFocus = function (oldFocus) { this.addEventListener('keyDown', this); this.addEventListener('keyUp', this); this.dispatchEvent({'type': 'focusIn'}); if ((this.getFocusManager()).bDrawFocus != false) { this.drawFocus(true); } }; v2.findFocusInChildren = function (o) { if (o.focusTextField != undefined) { return o.focusTextField; } if (o.tabEnabled == true) { return o; } return undefined; }; v2.findFocusFromObject = function (o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return undefined; } if (o._parent.tabEnabled == true) { o = o._parent; return o; } if (o._parent.tabChildren) { o = this.findFocusInChildren(o._parent); return o; } o = this.findFocusFromObject(o._parent); } return o; }; v2.pressFocus = function () { var v3 = this.findFocusFromObject(this); var v2 = this.getFocus(); if (v3 != v2) { v2.drawFocus(false); if ((this.getFocusManager()).bDrawFocus != false) { v3.drawFocus(true); } } }; v2.releaseFocus = function () { var v2 = this.findFocusFromObject(this); if (v2 != this.getFocus()) { v2.setFocus(); } }; v2.isParent = function (o) { while (o != undefined) { if (o == this) { return true; } o = o._parent; } return false; }; v2.size = function () {}; v2.init = function () { super.init(); this._xscale = 100; this._yscale = 100; this._focusrect = _global.useFocusRect == false; this.watch('enabled', this.enabledChanged); if (this.enabled == false) { this.setEnabled(false); } }; v2.dispatchValueChangedEvent = function (value) { this.dispatchEvent({'type': 'valueChanged', 'value': value}); }; v1.symbolName = 'UIComponent'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v1.kStretch = 5000; v2.focusEnabled = true; v2.tabEnabled = true; v2.origBorderStyles = {'themeColor': 16711680}; v2.clipParameters = {}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.core.UIComponent.prototype, null, 1); } #endinitclip } movieClip 5 __Packages.mx.controls.streamingmedia.ICuePointHolder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.ICuePointHolder) { } #endinitclip } movieClip 6 __Packages.mx.controls.MediaPlayback { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.MediaPlayback) { var v1 = function () { super(); }; mx.controls.MediaPlayback = v1; var v2 = new mx.core.UIComponent(); mx.controls.MediaPlayback.prototype = v2; v2.init = function (Void) { this.initializeParameters(); var v5 = this._width; var v8 = this._height; this._deadPreview._visible = false; super.init(); var v3 = {'contentPath': this._contentPath, 'mediaType': this._mediaType, 'autoPlay': this._autoPlay, 'autoSize': this._autoSize, 'aspectRatio': this._aspectRatio, 'totalTime': this._totalTime, 'initCuePointNames': this.initCuePointNames, 'initCuePointTimes': this.initCuePointTimes}; this.attachMovie('MediaDisplay', '_display', 1, v3); var v4 = this._autoPlay ? mx.controls.streamingmedia.StreamingMediaConstants.PAUSE_PLAY_CONTROL : mx.controls.streamingmedia.StreamingMediaConstants.PLAY_PLAY_CONTROL; var v6 = (this._mediaType == 'MP3') ? 'default' : 'none'; var v7 = this.__get__controlPlacement() == 'top' || this.__get__controlPlacement() == 'bottom'; v3 = {'horizontal': v7, 'controllerPolicy': this._controllerPolicy, 'backgroundStyle': v6, 'activePlayControl': v4}; this.attachMovie('MediaController', '_controller', 2, v3); this.setSize(v5, v8, true); this._display.associateController(this._controller); this._controller.addEventListener('click', this); this._controller.addEventListener('playheadChange', this); this._controller.addEventListener('volume', this); this._controller.addEventListener('scrubbing', this); this._display.addEventListener('change', this); this._display.addEventListener('progress', this); this._display.addEventListener('start', this); this._display.addEventListener('resizeVideo', this); this._display.addEventListener('cuePoint', this); this._display.addEventListener('complete', this); this._enabled = true; this.tabEnabled = false; this.tabChildren = true; this.redraw(true); }; v2.initializeParameters = function () { if (this.__get__mediaType() == null) { this.__set__mediaType('FLV'); } if (this.__get__totalTime() == null) { this.__set__totalTime(0); } if (this.__get__contentPath() == null) { this.__set__contentPath(''); } if (this.__get__autoPlay() == null) { this.__set__autoPlay(true); } if (this.__get__autoSize() == null) { this.__set__autoSize(true); } if (this.__get__aspectRatio() == null) { this.__set__aspectRatio(true); } if (this.__get__controllerPolicy() == null) { this.__set__controllerPolicy('auto'); } if (this.__get__controlPlacement() == null) { this.__set__controlPlacement('bottom'); } }; v2.draw = function (Void) { if (this._mediaType == 'MP3') { this.drawMP3(); } else { this.drawFLV(); } }; v2.drawMP3 = function () { this._display._x = 0; this._display._y = 0; this._controller._x = 0; this._controller._y = 0; this._controller.setSize(this.__get__width(), this.__get__height(), true); this._controller.__set__backgroundStyle('default'); this._controller.setOpenUpOrLeft(false); this._controller.redraw(true); this._chrome.visible = false; this._chrome.showToggles = false; this._chrome.draw(); }; v2.drawFLV = function () { this.drawChrome(); this.drawFLVController(); this.drawFLVDisplay(); }; v2.drawChrome = function () { var v3; var v2; if (this._controller.__get__horizontal()) { v2 = this.__get__height() - this._controller.getMinimumOpenHeight() + this._controller.getMinimumClosedHeight(); v3 = this.width; } else { v3 = this.__get__width() - this._controller.getMinimumOpenWidth() + this._controller.getMinimumClosedWidth(); v2 = this.height; } var v4 = this.__get__width(); var v5 = this.__get__height(); var v8 = (this._controllerPolicy == 'on') ? v4 : v3; var v7 = (this._controllerPolicy == 'on') ? v5 : v2; var v6 = this.isTopControlPlacement() || this.isLeftControlPlacement(); this._chrome._x = 0; this._chrome._y = 0; if (this.isTopControlPlacement() && (this._controllerPolicy == 'off' || this._controllerPolicy == 'auto')) { this._chrome._y = this._controller.getMinimumOpenHeight() - this._controller.getMinimumClosedHeight(); } else { if (this.isLeftControlPlacement() && (this._controllerPolicy == 'off' || this._controllerPolicy == 'auto')) { this._chrome._x = this._controller.getMinimumOpenWidth() - this._controller.getMinimumClosedWidth(); } } this._chrome.visible = true; this._chrome.showToggles = true; this._chrome.setSize(v8, v7); this._chrome.draw(); this.addSecondChrome(this._chrome, v2, v5, v3, v4, v6); }; v2.drawFLVController = function () { if (this.isBottomControlPlacement()) { this._controller.setSize(this.__get__width(), this._controller.getMinimumOpenHeight(), true); this._controller.__set__horizontal(true); this._controller._x = 0; this._controller._y = this.__get__height() - this._controller.__get__height(); } else { if (this.isTopControlPlacement()) { this._controller.setSize(this.__get__width(), this._controller.getMinimumOpenHeight(), true); this._controller.__set__horizontal(true); this._controller.setOpenUpOrLeft(true); this._controller._x = 0; if (this._controllerPolicy == 'on') { this._controller._y = 0; } else { this._controller._y = this._controller.__get__height() - this._controller.getMinimumClosedHeight(); } } else { if (this.isRightControlPlacement()) { this._controller.setSize(this._controller.getMinimumOpenWidth(), this.__get__height(), true); this._controller.__set__horizontal(false); this._controller._x = this.__get__width() - this._controller.__get__width(); this._controller._y = 0; } else { if (this.isLeftControlPlacement()) { this._controller.setSize(this._controller.getMinimumOpenWidth(), this.__get__height(), true); this._controller.__set__horizontal(false); this._controller.setOpenUpOrLeft(true); if (this._controllerPolicy == 'on') { this._controller._x = 0; } else { this._controller._x = this._controller.__get__width() - this._controller.getMinimumClosedWidth(); } this._controller._y = 0; } } } } this._controller.__set__backgroundStyle('none'); this._controller.invalidate(); }; v2.drawFLVDisplay = function () { this.displaySetProperSize(); var v3 = 0; var v2 = 0; if (this.isTopControlPlacement()) { v2 = this._controller.height; } else { if (this.isLeftControlPlacement()) { v3 = this._controller.width; } } this._display._x = v3 + mx.controls.MediaPlayback.H_BORDER; this._display._y = v2 + mx.controls.MediaPlayback.V_BORDER; }; v2.displaySetProperSize = function () { var v2 = this.__get__width() - mx.controls.MediaPlayback.H_BORDER * 2; var v3 = this.__get__height() - mx.controls.MediaPlayback.V_BORDER * 2; if (this.isBottomControlPlacement() || this.isTopControlPlacement()) { v3 -= this._controller.height; } else { v2 -= this._controller.width; } if (this._autoSize && (this._display.__get__preferredWidth() > v2 || this._display.__get__preferredHeight() > v3)) { this._display.__set__autoSize(false); this._display.__set__aspectRatio(true); } else { this._display.__set__autoSize(this._autoSize); this._display.__set__aspectRatio(this._aspectRatio); } this._display.setSize(v2, v3, true); this._display.invalidate(); }; v2.handleEvent = function (ev) { ev.target = this; this.dispatchEvent(ev); if (ev.type == 'start') { if (this._mediaType == 'FLV') { this._display.makeVideoVisible = true; this.redraw(true); } else { if (this._mediaType == 'MP3') { this._controller.setPlaying(this._display.__get__playing()); } } } if (ev.type == 'resizeVideo') { if (this._mediaType == 'FLV') { this._display.makeVideoVisible = true; this.redraw(true); } } }; v2.toString = function () { return 'MediaPlayback: media=' + this._contentPath; }; v2.getController = function () { return this._controller; }; v2.isRtmp = function (mediaUrl) { if (this._display != null) { return this._display.isRtmp(mediaUrl); } return false; }; v2.load = function () { this._display.load(); }; v2.play = function (startingPoint) { this._display.play(startingPoint); this._controller.setPlaying(true); }; v2.pause = function () { this._display.pause(); this._controller.setPlaying(false); }; v2.stop = function () { this._display.stop(); this._controller.setPlaying(false); }; v2.__get__autoSize = function () { if (this._display != null) { this._autoSize = this._display.autoSize; } return this._autoSize; }; v2.__set__autoSize = function (flag) { this._autoSize = flag; if (this._display != null) { this.displaySetProperSize(); this.invalidate(); } return this.__get__autoSize(); }; v2.__get__aspectRatio = function () { if (this._display != null) { this._aspectRatio = this._display.aspectRatio; } return this._aspectRatio; }; v2.__set__aspectRatio = function (flag) { this._aspectRatio = flag; if (this._display != null) { this.displaySetProperSize(); this.invalidate(); } return this.__get__aspectRatio(); }; v2.__get__autoPlay = function () { if (this._display != null) { this._autoPlay = this._display.autoPlay; } return this._autoPlay; }; v2.__set__autoPlay = function (flag) { this._autoPlay = flag; if (this._display != null) { this._display.__set__autoPlay(flag); } return this.__get__autoPlay(); }; v2.__get__playheadTime = function () { return this._display.__get__playheadTime(); }; v2.__set__playheadTime = function (position) { this._display.__set__playheadTime(position); return this.__get__playheadTime(); }; v2.__get__contentPath = function () { if (this._display != null) { this._contentPath = this._display.contentPath; } return this._contentPath; }; v2.__set__contentPath = function (aUrl) { this._contentPath = aUrl; if (this._display != null) { if (!this._settingMedia) { this._display.__set__contentPath(aUrl); } this._mediaType = this._display.mediaType; } return this.__get__contentPath(); }; v2.__get__volume = function () { return this._display.__get__volume(); }; v2.__set__volume = function (aVol) { this._display.__set__volume(aVol); this._controller.__set__volume(aVol); return this.__get__volume(); }; v2.__get__playing = function () { return this._display.__get__playing(); }; v2.__get__preferredWidth = function () { return this._display.__get__preferredWidth(); }; v2.__get__preferredHeight = function () { return this._display.__get__preferredHeight(); }; v2.__get__bytesLoaded = function () { return this._display.__get__bytesLoaded(); }; v2.__get__bytesTotal = function () { return this._display.__get__bytesTotal(); }; v2.__get__mediaType = function () { if (this._display != null) { this._mediaType = this._display.mediaType; } return this._mediaType; }; v2.__set__mediaType = function (aType) { this._mediaType = aType; if (this._display != null) { this._display.__set__mediaType(aType); if (aType == 'MP3') { this._controller.__set__backgroundStyle('none'); this.removeSecondChrome(); } else { this._controller.__set__backgroundStyle('default'); this.drawChrome(); } this.invalidate(); } return this.__get__mediaType(); }; v2.setMedia = function (aUrl, aType) { this._settingMedia = true; var v5 = this._mediaType; this._display.setMedia(aUrl, aType); if (aType == null) { var v3 = aUrl.substr(-3); if (v3 == 'flv' || v3 == 'FLV') { aType = 'FLV'; } else { if (v3 == 'mp3' || v3 == 'MP3') { aType = 'MP3'; } else { aType = this._mediaType; } } } if (v5 != aType) { this.__set__mediaType(aType); } this.__set__contentPath(aUrl); this._settingMedia = false; }; v2.__get__totalTime = function () { if (this._display != null) { this._totalTime = this._display.totalTime; } return this._totalTime; }; v2.__set__totalTime = function (aTime) { this._totalTime = aTime; if (this._display != null) { this._display.__set__totalTime(this._totalTime); } return this.__get__totalTime(); }; v2.getCuePoints = function () { return this._display.getCuePoints(); }; v2.__get__cuePoints = function () { return this.getCuePoints(); }; v2.setCuePoints = function (cp) { var v2 = 0; while (v2 < cp.length) { cp[v2].playback = this; ++v2; } this._display.__set__cuePoints(cp); }; v2.__set__cuePoints = function (cp) { this.setCuePoints(cp); return this.__get__cuePoints(); }; v2.getCuePoint = function (pointName) { return this._display.getCuePoint(pointName); }; v2.addCuePoint = function (aName, aTime) { var v2 = new mx.controls.streamingmedia.CuePoint(aName, aTime); v2.playback = this; this.addCuePointObject(v2); }; v2.addCuePointObject = function (aCuePoint) { aCuePoint.playback = this; this._display.addCuePointObject(aCuePoint); }; v2.removeCuePoint = function (aCuePoint) { this._display.removeCuePoint(aCuePoint); }; v2.removeAllCuePoints = function () { this._display.removeAllCuePoints(); }; v2.__get__mostRecentCuePoint = function () { return this._display.__get__mostRecentCuePoint(); }; v2.__get__mostRecentCuePointName = function () { return this._display.__get__mostRecentCuePointName(); }; v2.__get__mostRecentCuePointTime = function () { return this._display.__get__mostRecentCuePointTime(); }; v2.__get__controllerPolicy = function () { if (this._controller != null) { this._controllerPolicy = this._controller.controllerPolicy; } return this._controllerPolicy; }; v2.__set__controllerPolicy = function (aPolicy) { this._controllerPolicy = aPolicy; if (this._controller != null) { this._controller.__set__controllerPolicy(aPolicy); } return this.__get__controllerPolicy(); }; v2.addSecondChrome = function (theChrome, closedHeight, openHeight, closedWidth, openWidth, fixedEnd) { this._controller.addSecondChrome(theChrome, closedHeight, openHeight, closedWidth, openWidth, fixedEnd); }; v2.removeSecondChrome = function () { this._controller.removeSecondChrome(); }; v2.getMinimumOpenHeight = function () { return this._controller.getMinimumOpenHeight(); }; v2.getMinimumOpenWidth = function () { return this._controller.getMinimumOpenWidth(); }; v2.getMinimumClosedHeight = function () { return this._controller.getMinimumClosedHeight(); }; v2.getMinimumClosedWidth = function () { return this._controller.getMinimumClosedWidth(); }; v2.expand = function (force) { this._controller.expand(force); }; v2.contract = function (force) { this._controller.contract(force); }; v2.__get__controlPlacement = function () { return this._controlPlacement; }; v2.__set__controlPlacement = function (aPos) { this._controlPlacement = aPos; if (this._controller != null) { var v2 = this.isTopControlPlacement() || this.isLeftControlPlacement(); this._controller.setOpenUpOrLeft(v2); var v3 = this.isTopControlPlacement() || this.isBottomControlPlacement(); this._controller.__set__horizontal(v3); this.invalidate(); } return this.__get__controlPlacement(); }; v2.isTopControlPlacement = function () { return this._controlPlacement == mx.controls.MediaPlayback.TOP_CONTROL_POSITION; }; v2.isBottomControlPlacement = function () { return this._controlPlacement == mx.controls.MediaPlayback.BOTTOM_CONTROL_POSITION; }; v2.isLeftControlPlacement = function () { return this._controlPlacement == mx.controls.MediaPlayback.LEFT_CONTROL_POSITION; }; v2.isRightControlPlacement = function () { return this._controlPlacement == mx.controls.MediaPlayback.RIGHT_CONTROL_POSITION; }; v2.displayFull = function () { var v2 = this._chrome.getOneToggle(); v2.displayFull(false); }; v2.displayNormal = function () { var v2 = this._chrome.getOneToggle(); v2.displayNormal(false); }; v2.setSize = function (w, h, noEvent) { w = Math.max(w, this._controller.getMinimumOpenWidth() + 17); h = Math.max(h, this._controller.getMinimumOpenHeight() + 17); super.setSize(w, h, noEvent); this.invalidate(); }; v2.__get__enabled = function () { return this._enabled; }; v2.__set__enabled = function (is) { this._enabled = is; this._display.__set__enabled(is); this._controller.__set__enabled(is); this._chrome.setEnabled(is); return this.__get__enabled(); }; v1.symbolName = 'MediaPlayback'; v1.symbolOwner = mx.controls.MediaPlayback; v2.className = 'MediaPlayback'; v1.version = '2.0.2.126'; v2.clipParameters = {'mediaType': 'FLV', 'contentPath': '', 'totalTime': 0, 'autoSize': true, 'autoPlay': true, 'controllerPolicy': 'auto', 'initCuePointNames': new Array(), 'initCuePointTimes': new Array(), 'controlPlacement': 'bottom', 'fps': 30}; v1.TOP_CONTROL_POSITION = 'top'; v1.BOTTOM_CONTROL_POSITION = 'bottom'; v1.LEFT_CONTROL_POSITION = 'left'; v1.RIGHT_CONTROL_POSITION = 'right'; v1.H_BORDER = 8; v1.V_BORDER = 8; v2._settingMedia = false; v2.addProperty('aspectRatio', v2.__get__aspectRatio, v2.__set__aspectRatio); v2.addProperty('autoPlay', v2.__get__autoPlay, v2.__set__autoPlay); v2.addProperty('autoSize', v2.__get__autoSize, v2.__set__autoSize); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('contentPath', v2.__get__contentPath, v2.__set__contentPath); v2.addProperty('controlPlacement', v2.__get__controlPlacement, v2.__set__controlPlacement); v2.addProperty('controllerPolicy', v2.__get__controllerPolicy, v2.__set__controllerPolicy); v2.addProperty('cuePoints', v2.__get__cuePoints, v2.__set__cuePoints); v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); v2.addProperty('mediaType', v2.__get__mediaType, v2.__set__mediaType); v2.addProperty('mostRecentCuePoint', v2.__get__mostRecentCuePoint, function () {}); v2.addProperty('mostRecentCuePointName', v2.__get__mostRecentCuePointName, function () {}); v2.addProperty('mostRecentCuePointTime', v2.__get__mostRecentCuePointTime, function () {}); v2.addProperty('playheadTime', v2.__get__playheadTime, v2.__set__playheadTime); v2.addProperty('playing', v2.__get__playing, function () {}); v2.addProperty('preferredHeight', v2.__get__preferredHeight, function () {}); v2.addProperty('preferredWidth', v2.__get__preferredWidth, function () {}); v2.addProperty('totalTime', v2.__get__totalTime, v2.__set__totalTime); v2.addProperty('volume', v2.__get__volume, v2.__set__volume); ASSetPropFlags(mx.controls.MediaPlayback.prototype, null, 1); } #endinitclip } movieClip 174 __Packages.mx.skins.SkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.SkinElement) { var v1 = function () { super(); }; mx.skins.SkinElement = v1; var v2 = new MovieClip(); mx.skins.SkinElement.prototype = v2; v1.registerElement = function (name, className) { Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className); _global.skinRegistry[name] = true; }; v2.__set__visible = function (visible) { this._visible = visible; }; v2.move = function (x, y) { this._x = x; this._y = y; }; v2.setSize = function (w, h) { this._width = w; this._height = h; }; ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1); } #endinitclip } movieClip 175 __Packages.mx.styles.CSSTextStyles { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSTextStyles) { var v1 = function () {}; mx.styles.CSSTextStyles = v1; var v2 = v1.prototype; v1.addTextStyles = function (o, bColor) { o.addProperty('textAlign', function () { return this._tf.align; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty('fontWeight', function () { return (this._tf.bold != undefined) ? (this._tf.bold ? 'bold' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == 'bold'; }); if (bColor) { o.addProperty('color', function () { return this._tf.color; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty('fontFamily', function () { return this._tf.font; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty('textIndent', function () { return this._tf.indent; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty('fontStyle', function () { return (this._tf.italic != undefined) ? (this._tf.italic ? 'italic' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == 'italic'; }); o.addProperty('marginLeft', function () { return this._tf.leftMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty('marginRight', function () { return this._tf.rightMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty('fontSize', function () { return this._tf.size; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty('textDecoration', function () { return (this._tf.underline != undefined) ? (this._tf.underline ? 'underline' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == 'underline'; }); o.addProperty('embedFonts', function () { return this._tf.embedFonts; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); }; ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1); } #endinitclip } movieClip 176 __Packages.mx.styles.StyleManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.StyleManager) { var v1 = function () {}; mx.styles.StyleManager = v1; var v2 = v1.prototype; v1.registerInheritingStyle = function (styleName) { mx.styles.StyleManager.inheritingStyles[styleName] = true; }; v1.isInheritingStyle = function (styleName) { return mx.styles.StyleManager.inheritingStyles[styleName] == true; }; v1.registerColorStyle = function (styleName) { mx.styles.StyleManager.colorStyles[styleName] = true; }; v1.isColorStyle = function (styleName) { return mx.styles.StyleManager.colorStyles[styleName] == true; }; v1.registerColorName = function (colorName, colorValue) { mx.styles.StyleManager.colorNames[colorName] = colorValue; }; v1.isColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName] != undefined; }; v1.getColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName]; }; v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true}; v1.colorStyles = {'barColor': true, 'trackColor': true, 'borderColor': true, 'buttonColor': true, 'color': true, 'dateHeaderColor': true, 'dateRollOverColor': true, 'disabledColor': true, 'fillColor': true, 'highlightColor': true, 'scrollTrackColor': true, 'selectedDateColor': true, 'shadowColor': true, 'strokeColor': true, 'symbolBackgroundColor': true, 'symbolBackgroundDisabledColor': true, 'symbolBackgroundPressedColor': true, 'symbolColor': true, 'symbolDisabledColor': true, 'themeColor': true, 'todayIndicatorColor': true, 'shadowCapColor': true, 'borderCapColor': true, 'focusColor': true}; v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344}; v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false}; v1.TextStyleMap = {'textAlign': true, 'fontWeight': true, 'color': true, 'fontFamily': true, 'textIndent': true, 'fontStyle': true, 'lineHeight': true, 'marginLeft': true, 'marginRight': true, 'fontSize': true, 'textDecoration': true, 'embedFonts': true}; ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1); } #endinitclip } movieClip 177 __Packages.mx.styles.CSSStyleDeclaration { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSStyleDeclaration) { var v1 = function () {}; mx.styles.CSSStyleDeclaration = v1; var v2 = v1.prototype; v2.__getTextFormat = function (tf, bAll) { var v5 = false; if (this._tf != undefined) { var v2; for (v2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) { if (tf[v2] == undefined) { var v3 = this._tf[v2]; if (v3 != undefined) { tf[v2] = v3; } else { v5 = true; } } } } return v5; } v5 = true; return v5; }; v2.getStyle = function (styleProp) { var v2 = this[styleProp]; var v3 = mx.styles.StyleManager.getColorName(v2); return (v3 == undefined) ? v2 : v3; }; v1.classConstruct = function () { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return true; }; v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct(); v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1); } #endinitclip } movieClip 178 __Packages.mx.controls.streamingmedia.CuePoint { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.CuePoint) { var v1 = function (aName, aTime) { this.name = aName; this.time = aTime; }; mx.controls.streamingmedia.CuePoint = v1; var v2 = v1.prototype; v2.toString = function () { return 'CuePoint: ' + this.name + ' at ' + this.time + ' seconds'; }; ASSetPropFlags(mx.controls.streamingmedia.CuePoint.prototype, null, 1); } #endinitclip } movieClip 179 __Packages.mx.controls.MediaDisplay { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.MediaDisplay) { var v1 = function () { super(); }; mx.controls.MediaDisplay = v1; var v2 = new mx.core.UIComponent(); mx.controls.MediaDisplay.prototype = v2; v2.init = function (Void) { this.initializeParameters(); var v3 = this._width; var v4 = this._height; this._deadPreview._visible = false; super.init(); this.setSize(v3, v4, true); this.initCuePoints(); this._startingTime = 0; this._playingBeforeDisabled = false; this._started = false; this._sendCompleteEvent = false; this._fullyLoaded = false; this.makeVideoVisible = false; this.tabEnabled = false; this.tabChildren = false; this._screenAccommodator = new mx.controls.streamingmedia.ScreenAccommodator(this); }; v2.initializeParameters = function () { if (this.__get__mediaType() == null) { this.__set__mediaType('FLV'); } if (this.__get__totalTime() == null) { this.__set__totalTime(0); } if (this.__get__contentPath() == null) { this.__set__contentPath(''); } if (this.__get__autoPlay() == null) { this.__set__autoPlay(true); } if (this.__get__autoSize() == null) { this.__set__autoSize(true); } if (this.__get__aspectRatio() == null) { this.__set__aspectRatio(true); } }; v2.initCuePoints = function () { this._cuePoints = new Array(); var v2 = 0; for (;;) { if (!(v2 < this.initCuePointNames.length && v2 < this.initCuePointTimes.length)) break; this.addCuePoint(this.initCuePointNames[v2], this.initCuePointTimes[v2]); ++v2; } delete this.initCuePointNames; delete this.initCuePointTimes; this._mostRecentCuePoint = undefined; }; v2.initMedia = function (switchType) { if (this.isLivePreview()) { return undefined; } var v2 = this.__get__volume(); if (switchType) { this._playerImpl.stop(); } if (this.isFLV()) { if (this.isRtmp(this._contentPath)) { this._playerImpl = new mx.controls.streamingmedia.RTMPPlayer(this._contentPath, mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE, this._videoHolder, this._totalTime); } else { this._playerImpl = new mx.controls.streamingmedia.FLVPlayer(this._contentPath, this._videoHolder, this._totalTime); } } else { if (this.isMP3()) { if (switchType) { this.releaseVideo(); } if (this.isRtmp(this._contentPath)) { this._playerImpl = new mx.controls.streamingmedia.RTMPPlayer(this._contentPath, mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE, this._videoHolder, this._totalTime); } else { this.createEmptyMovieClip('_soundHolder', 10); this._playerImpl = new mx.controls.streamingmedia.MP3Player(this._contentPath, this._soundHolder); } } else {} } if (v2 != undefined) { this.__set__volume(v2); } this.redraw(true); this._playerImpl.removeAllListeners(); this._playerImpl.addListener(this); this._started = false; if (!switchType) { if (this._autoPlay) { this.play(); } else { this.load(); } this.poll(true); if (this._pollId != null) { clearInterval(this._pollId); } this._pollId = setInterval(this, 'poll', 250); } }; v2.draw = function () { if (this.isFLV()) { if (this.makeVideoVisible) { this._videoHolder._visible = true; this.makeVideoVisible = false; } if (this._autoSize) { this.assignPreferredSize(); } else { if (this._aspectRatio) { var v4 = this.__get__preferredWidth(); var v3 = this.__get__preferredHeight(); var v2 = Math.min(this.__get__width() / v4, this.__get__height() / v3); this.setVideoDisplaySize(v2 * v4, v2 * v3); } else { this.setVideoDisplaySize(this.__get__width(), this.__get__height()); } } } }; v2.setVideoDisplaySize = function (w, h) { if (this.isFLV()) { var v2 = this._videoHolder._video; v2._width = w; v2._height = h; v2._x = (this.__get__width() - v2._width) / 2; v2._y = (this.__get__height() - v2._height) / 2; } }; v2.__get__videoWidth = function () { var v2; if (this.isMP3()) { v2 = 0; return v2; } v2 = this._videoHolder._video._width; return v2; }; v2.__get__videoHeight = function () { var v2; if (this.isMP3()) { v2 = 0; return v2; } v2 = this._videoHolder._video._height; return v2; }; v2.__get__preferredWidth = function () { var v2; if (this.isMP3()) { v2 = 0; return v2; } v2 = this._videoHolder._video.width; return v2; }; v2.__get__preferredHeight = function () { var v2; if (this.isMP3()) { v2 = 0; return v2; } v2 = this._videoHolder._video.height; return v2; }; v2.assignPreferredSize = function () { this.setVideoDisplaySize(this.__get__preferredWidth(), this.__get__preferredHeight(), true); }; v2.handlePlayer = function (player, status) { if (status == 'start' || status == 'resizeVideo') { if (this._parent instanceof mx.controls.MediaPlayback) { } else { this.makeVideoVisible = true; this.draw(); } if (this._started) { var v2 = {'target': this, 'type': 'resizeVideo'}; this.dispatchEvent(v2); } else { var v2 = {'target': this, 'type': 'start'}; this.dispatchEvent(v2); if (this.isRtmp(this._contentPath)) { v2 = {'target': this, 'type': 'progress'}; this.dispatchEvent(v2); } this._started = true; } } else { if (status == 'complete') { this._sendCompleteEvent = true; } } }; v2.toString = function () { return 'MediaDisplay: media=' + this._contentPath; }; v2.load = function () { this._playerImpl.load(); }; v2.play = function (startingPoint) { if (startingPoint != undefined) { this._startingTime = startingPoint; } if (this.__get__enabled()) { this._playerImpl.play(startingPoint); } else { this._playingBeforeDisabled = true; } }; v2.pause = function () { this._playerImpl.pause(); }; v2.stop = function () { this._playerImpl.stop(); }; v2.__get__autoSize = function () { return this._autoSize; }; v2.__set__autoSize = function (flag) { if (this._autoSize != flag) { this._autoSize = flag; this.invalidate(); } return this.__get__autoSize(); }; v2.__get__aspectRatio = function () { return this._aspectRatio; }; v2.__set__aspectRatio = function (flag) { if (this._aspectRatio != flag) { this._aspectRatio = flag; this.invalidate(); } return this.__get__aspectRatio(); }; v2.__get__autoPlay = function () { return this._autoPlay; }; v2.__set__autoPlay = function (flag) { this._autoPlay = flag; return this.__get__autoPlay(); }; v2.__get__playheadTime = function () { return this._playerImpl.getPlayheadTime(); }; v2.__set__playheadTime = function (position) { if (position != undefined) { this._startingTime = position; } this._playerImpl.setPlayheadTime(position); return this.__get__playheadTime(); }; v2.__get__contentPath = function () { return this._contentPath; }; v2.__set__contentPath = function (aUrl) { this.setMedia(aUrl); return this.__get__contentPath(); }; v2.setMedia = function (aUrl, aType) { this._fireCuePoints = false; if (aType == null) { aType = this.deduceMediaType(aUrl); } else { if (aType != mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE && aType != mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE) { } } var v5 = this._mediaType; this._mediaType = aType; var v7 = this.isRtmp(this._contentPath); var v6 = this.isRtmp(aUrl); this._contentPath = aUrl; this._fullyLoaded = false; this._startingTime = 0; if (!this.isLivePreview()) { if (this._contentPath == '') { this.releaseVideo(); } else { if (this._playerImpl == null) { this.initMedia(); } else { if (v5 != this._mediaType || v7 != v6) { var v4 = this._playerImpl.isPlaying(); this.initMedia(true); if (v4) { this._playerImpl.play(0); } else { this._playerImpl.load(); } } else { this._playerImpl.setMediaUrl(aUrl); this._started = false; } } } } }; v2.deduceMediaType = function (aUrl) { var v2 = aUrl.substr(-3); if (v2 == 'flv' || v2 == 'FLV') { return 'FLV'; } if (v2 == 'mp3' || v2 == 'MP3') { return 'MP3'; } return this._mediaType; }; v2.releaseVideo = function () { this._playerImpl.close(); this._playerImpl = null; }; v2.isLivePreview = function () { return _root.contents.obj != null; }; v2.__get__volume = function () { return this._playerImpl.getVolume(); }; v2.__set__volume = function (aVol) { this._playerImpl.setVolume(aVol); return this.__get__volume(); }; v2.__get__playing = function () { return this._playerImpl.isPlaying(); }; v2.__get__bytesLoaded = function () { return this._playerImpl.getMediaBytesLoaded(); }; v2.__get__bytesTotal = function () { return this._playerImpl.getMediaBytesTotal(); }; v2.isFLV = function () { return this._mediaType == mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE; }; v2.isMP3 = function () { return this._mediaType == mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE; }; v2.__get__mediaType = function () { return this._mediaType; }; v2.__set__mediaType = function (aType) { this._mediaType = aType; return this.__get__mediaType(); }; v2.__get__totalTime = function () { var v2; if (this._playerImpl == null) { v2 = this._totalTime; return v2; } v2 = this._playerImpl.getTotalTime(); return v2; }; v2.__set__totalTime = function (aTime) { this._totalTime = aTime; if (this._playerImpl instanceof mx.controls.streamingmedia.FLVPlayer) { this._playerImpl.setTotalTime(aTime); } else { if (this._playerImpl instanceof mx.controls.streamingmedia.RTMPPlayer) { this._playerImpl.setTotalTime(aTime); } } return this.__get__totalTime(); }; v2.getCuePoints = function () { return this._cuePoints; }; v2.__get__cuePoints = function () { return this.getCuePoints(); }; v2.setCuePoints = function (cp) { this._cuePoints = cp; var v2 = 0; while (v2 < this._cuePoints.length) { this._cuePoints[v2].display = this; ++v2; } }; v2.__set__cuePoints = function (cp) { this.setCuePoints(cp); return this.__get__cuePoints(); }; v2.getCuePoint = function (pointName) { var v3 = null; var v2 = this.getCuePointIndex(pointName); if (v2 > -1) { v3 = this._cuePoints[v2]; } return v3; }; v2.addCuePoint = function (aName, aTime) { var v2 = new mx.controls.streamingmedia.CuePoint(aName, aTime); this.addCuePointObject(v2); }; v2.addCuePointObject = function (aCuePoint) { aCuePoint.display = this; this._cuePoints.push(aCuePoint); }; v2.removeCuePoint = function (aCuePoint) { var v2 = this.getCuePointIndex(aCuePoint.name); if (v2 > -1) { this._cuePoints.splice(v2, 1); } }; v2.removeAllCuePoints = function () { this._cuePoints.length = 0; this._mostRecentCuePoint = undefined; }; v2.__get__mostRecentCuePoint = function () { return this._mostRecentCuePoint; }; v2.__get__mostRecentCuePointName = function () { return this._mostRecentCuePoint.name; }; v2.__get__mostRecentCuePointTime = function () { return this._mostRecentCuePoint.time; }; v2.handleEvent = function (ev) { if (ev.type == 'click' && ev.detail == 'play') { this.handlePlayEvent(ev); } else { if (ev.type == 'click' && ev.detail == 'pause') { this.handlePauseEvent(ev); } else { if (ev.type == 'playheadChange') { this.handlePlayheadChangeEvent(ev); } else { if (ev.type == 'volume') { this.handleVolumeEvent(ev); } else { if (ev.type == 'scrubbing') { this.handleScrubbingEvent(ev); } else { this.handleUnrecognizedEvent(ev); } } } } } }; v2.handlePlayEvent = function (ev) { this.play(); }; v2.handleStopEvent = function (ev) { this.stop(); }; v2.handlePauseEvent = function (ev) { this.pause(); }; v2.handleRewindEvent = function (ev) { this.__set__playheadTime(0); }; v2.handleFastForwardEvent = function (ev) { var v2 = this.__get__totalTime(); this.__set__playheadTime(v2); }; v2.handlePlayheadChangeEvent = function (ev) { var v3 = ev.detail; var v2 = (v3 / 100) * this.__get__totalTime(); this._fireCuePoints = this._scrubbing; this.__set__playheadTime(v2); }; v2.handleVolumeEvent = function (ev) { var v2 = ev.detail; this.__set__volume(v2); }; v2.handleScrubbingEvent = function (ev) { this._scrubbing = ev.detail; }; v2.handleUnrecognizedEvent = function (ev) {}; v2.getCuePointIndex = function (pointName) { var v3 = -1; var v2 = 0; for (;;) { if (!(v2 < this._cuePoints.length && v3 == -1)) break; if (this._cuePoints[v2].name == pointName) { v3 = v2; } ++v2; } return v3; }; v2.poll = function (first) { var v4 = this.__get__playheadTime(); var v8 = this.__get__bytesLoaded(); if (v4 != this._priorTime) { if (this._mediaType == 'MP3' && this._playerImpl.isPlaying() && !this._started) { this._playerImpl.playStarted(); var v9 = this.__get__playheadTime(); if (this._startingTime - 0.1 < v9 && v9 < this._startingTime + 0.1) { this._started = true; var v10 = {'target': this, 'type': 'start'}; this.dispatchEvent(v10); } } v10 = {'type': 'change', 'target': this}; this.dispatchEvent(v10); } var v7 = false; if (!this._fullyLoaded && this.__get__bytesLoaded() >= this.__get__bytesTotal() - 100) { this._fullyLoaded = true; this._playerImpl.mediaLoaded(); v7 = true; } else { if (first || v8 != this._priorBytesLoaded) { v7 = true; } } if (v7) { v10 = {'type': 'progress', 'target': this}; this.dispatchEvent(v10); } var v2 = null; var v3 = 0; for (;;) { if (!(this._fireCuePoints && v3 < this._cuePoints.length)) break; v2 = this._cuePoints[v3]; if (this._priorTime < v2.time && v4 >= v2.time || this._priorTime > v2.time && v4 <= v2.time) { this._mostRecentCuePoint = v2; v10 = {'type': 'cuePoint', 'target': this, 'cuePointName': v2.name, 'cuePointTime': v2.time}; this.dispatchEvent(v10); } ++v3; } this._fireCuePoints = true; if (this._sendCompleteEvent) { this._sendCompleteEvent = false; v10 = {'type': 'complete', 'target': this}; this.dispatchEvent(v10); } this._priorTime = v4; this._priorBytesLoaded = v8; }; v2.isRtmp = function (mediaUrl) { if (mediaUrl != null) { var v1; v1 = mediaUrl.toLowerCase(); return v1.indexOf('rtmp') == 0; } return false; }; v2.associateController = function (c) { c.addEventListener('click', this); c.addEventListener('playheadChange', this); c.addEventListener('volume', this); c.addEventListener('scrubbing', this); this.addEventListener('change', c); this.addEventListener('progress', c); this.addEventListener('complete', c); }; v2.setSize = function (w, h, noEvent) { super.setSize(w, h, noEvent); this.invalidate(); }; v2.__get__enabled = function () { return this._enabled; }; v2.__set__enabled = function (is) { if (this._enabled == is) { return undefined; } this._enabled = is; if (is) { if (this._playingBeforeDisabled) { this.play(); this._playingBeforeDisabled = false; } } else { this._playingBeforeDisabled = this.playing; if (this._playingBeforeDisabled && this._playerImpl instanceof mx.controls.streamingmedia.MP3Player) { this._playingBeforeDisabled = !this._playerImpl.willStop(); } this.pause(); } return this.__get__enabled(); }; v2.onUnload = function () { this._playerImpl.close(); }; v1.symbolName = 'MediaDisplay'; v1.symbolOwner = mx.controls.MediaDisplay; v2.className = 'MediaDisplay'; v1.version = '2.0.2.126'; v2.clipParameters = {'mediaType': 'FLV', 'contentPath': '', 'totalTime': 0, 'autoSize': true, 'autoPlay': true, 'initCuePointNames': new Array(), 'initCuePointTimes': new Array(), 'fps': 30}; v2._priorTime = 0; v2._priorBytesLoaded = 0; v2._scrubbing = false; v2._fireCuePoints = true; v2._enabled = true; v2.makeVideoVisible = false; v2.addProperty('aspectRatio', v2.__get__aspectRatio, v2.__set__aspectRatio); v2.addProperty('autoPlay', v2.__get__autoPlay, v2.__set__autoPlay); v2.addProperty('autoSize', v2.__get__autoSize, v2.__set__autoSize); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('contentPath', v2.__get__contentPath, v2.__set__contentPath); v2.addProperty('cuePoints', v2.__get__cuePoints, v2.__set__cuePoints); v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); v2.addProperty('mediaType', v2.__get__mediaType, v2.__set__mediaType); v2.addProperty('mostRecentCuePoint', v2.__get__mostRecentCuePoint, function () {}); v2.addProperty('mostRecentCuePointName', v2.__get__mostRecentCuePointName, function () {}); v2.addProperty('mostRecentCuePointTime', v2.__get__mostRecentCuePointTime, function () {}); v2.addProperty('playheadTime', v2.__get__playheadTime, v2.__set__playheadTime); v2.addProperty('playing', v2.__get__playing, function () {}); v2.addProperty('preferredHeight', v2.__get__preferredHeight, function () {}); v2.addProperty('preferredWidth', v2.__get__preferredWidth, function () {}); v2.addProperty('totalTime', v2.__get__totalTime, v2.__set__totalTime); v2.addProperty('videoHeight', v2.__get__videoHeight, function () {}); v2.addProperty('videoWidth', v2.__get__videoWidth, function () {}); v2.addProperty('volume', v2.__get__volume, v2.__set__volume); ASSetPropFlags(mx.controls.MediaDisplay.prototype, null, 1); } #endinitclip } movieClip 180 __Packages.mx.controls.MediaController { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.MediaController) { var v1 = function () { super(); }; mx.controls.MediaController = v1; var v2 = new mx.core.UIComponent(); mx.controls.MediaController.prototype = v2; v2.__get__lastProgressMediaType = function () { return this._lastProgressMediaType; }; v2.init = function (Void) { mx.controls.streamingmedia.Tracer.trace('MediaController.init: start: policy=' + this._controllerPolicy); this.initializeParameters(); mx.controls.streamingmedia.Tracer.trace('MediaController.init: after initializeParameters: policy=' + this._controllerPolicy); var v3 = this._width; var v4 = this._height; super.init(); if (this._horizontal) { v3 = Math.max(mx.controls.MediaController.MINIMUM_HORIZONTAL_WIDTH, v3); v4 = Math.max(mx.controls.MediaController.MINIMUM_HORIZONTAL_OPEN_HEIGHT, v4); } else { v3 = Math.max(mx.controls.MediaController.MINIMUM_VERTICAL_OPEN_WIDTH, v3); v4 = Math.max(mx.controls.MediaController.MINIMUM_VERTICAL_HEIGHT, v4); } this.setSize(v3, v4, true); mx.controls.streamingmedia.Tracer.trace('MediaController.init: after setSize ' + this.__get__width() + 'x' + this.__get__height() + ' at (' + this._x + ',' + this._y + ')'); this._priorPolicy = this._controllerPolicy; this.createDefaultStrings(); mx.controls.streamingmedia.Tracer.trace('MediaController.init: Initialized properties:'); mx.controls.streamingmedia.Tracer.trace(' controllerPolicy=' + this._controllerPolicy); mx.controls.streamingmedia.Tracer.trace(' horizontal=' + this._horizontal); mx.controls.streamingmedia.Tracer.trace(' activePlayControl=' + this._activePlayControl); mx.controls.streamingmedia.Tracer.trace(' backgroundStyle=' + this._backgroundStyle); if (this._controllerPolicy == 'auto') { this._isOpen = false; this._priorMouseOver = false; this._closeId = null; this._openId = null; Mouse.addListener(this); this.gotoAndStop(this.getClosedFrameName()); } else { if (this._controllerPolicy == 'on') { this._isOpen = true; this.gotoAndStop(this.getOpenFrameName()); } else { if (this._controllerPolicy == 'off') { this._isOpen = false; this.gotoAndStop(this.getClosedFrameName()); } } } this._isPlaying = this._activePlayControl == 'pause'; this._playPercent = 0; this._playTime = 0; this._volume = mx.controls.streamingmedia.StreamingMediaConstants.DEFAULT_VOLUME; this.setOpenUpOrLeft(false); this.setListeningForPlayheadMoveEvent(true); this.tabEnabled = false; this.tabChildren = true; this.playAtBeginning = false; this._screenAccommodator = new mx.controls.streamingmedia.ScreenAccommodator(this); this.redraw(true); }; v2.initializeParameters = function () { if (this.__get__horizontal() == null) { this.__set__horizontal(true); } if (this.__get__controllerPolicy() == null) { this.__set__controllerPolicy('auto'); } if (this.__get__backgroundStyle() == null) { this.__set__backgroundStyle('default'); } if (this.__get__activePlayControl() == null) { this.__set__activePlayControl('pause'); } }; v2.getOpenFrameName = function () { return this._horizontal ? 'openHorizontal' : 'openVertical'; }; v2.getClosedFrameName = function () { return this._horizontal ? 'closedHorizontal' : 'closedVertical'; }; v2.draw = function (Void) { if (this._isOpen) { this.gotoAndStop(this.getOpenFrameName()); this._playBar.draw(); } else { this.gotoAndStop(this.getClosedFrameName()); this._miniPlayBar.draw(); } this._loadBar.draw(); if (this._horizontal) { this.positionControlsHorizontal(); } else { this.positionControlsVertical(); } this.drawChrome(); }; v2.positionControlsVertical = function () { if (this._isOpen) { this._volumeControl._x = (this.__get__width() - this._volumeControl._width) / 2; this._volumeControl._y = this.__get__height() - this._volumeControl._height - 8; this._buttons._x = (this.__get__width() - this._buttons._width) / 2; this._buttons._y = this.__get__height() - this._buttons._height - this._volumeControl._height - 16; this._playBar._x = (this.__get__width() - this._playBar._width) / 2; this._loadBar._x = this._playBar._x + this._playBar._width - 4; } else { this._loadBar._x = mx.controls.MediaController.LOADBAR_VERTICAL_CLOSED_X; this._miniPlayBar._x = mx.controls.MediaController.MINIPLAYBAR_VERTICAL_CLOSED_X; } }; v2.positionControlsHorizontal = function () { if (this._isOpen) { this._loadBar._y = mx.controls.MediaController.LOADBAR_HORIZONTAL_OPEN_Y; this._buttons._x = 8; this._buttons._y = this.__get__height() - this._buttons._height - 8; this._volumeControl._x = this.__get__width() - this._volumeControl._width - 8; this._volumeControl._y = this.__get__height() - this._volumeControl._height - 8; } else { this._loadBar._y = mx.controls.MediaController.LOADBAR_HORIZONTAL_CLOSED_Y; } }; v2.drawChrome = function (wi, he) { if (wi == null) { if (this._horizontal) { wi = this.width; } else { wi = this._isOpen ? this.__get__width() : mx.controls.MediaController.CLOSED_VERTICAL_WIDTH; } } if (he == null) { if (this._horizontal) { he = this._isOpen ? this.__get__height() : mx.controls.MediaController.CLOSED_HORIZONTAL_HEIGHT; } else { he = this.height; } } this._chrome.visible = this.__get__backgroundStyle() == 'default'; this._chrome.showToggles = false; this._chrome.setSize(wi, he); this._chrome.draw(); }; v2.addSecondChrome = function (theChrome, closedHeight, openHeight, closedWidth, openWidth, fixedEnd) { this._secondChrome = theChrome; this._secondChromeClosedHeight = closedHeight; this._secondChromeOpenHeight = openHeight; this._secondChromeClosedWidth = closedWidth; this._secondChromeOpenWidth = openWidth; this._secondChromeFixedEnd = fixedEnd; }; v2.removeSecondChrome = function () { this._secondChrome = null; }; v2.__get__expanded = function () { return this._isOpen; }; v2.onMouseMove = function () { var v5 = _root._xmouse; var v4 = _root._ymouse; var v3 = this.hitTest(v5, v4, true); if (v3 && this._closeId != null || this.isNotAnimating()) { clearInterval(this._closeId); this._closeId = null; } if (!v3 && this._openId != null || this.isNotAnimating()) { clearInterval(this._openId); this._openId = null; } if (v3 && !this._isOpen && this._controllerPolicy == 'auto' && this._openId == null && !this.isNotAnimating()) { this._openId = setInterval(this, 'expand', mx.controls.MediaController.OPEN_DELAY); } else { if (!v3 && this._isOpen && this._controllerPolicy == 'auto' && this._closeId == null && !this.isNotAnimating()) { this._closeId = setInterval(this, 'contract', mx.controls.MediaController.CLOSE_DELAY); } } this._priorMouseOver = v3; }; v2.expand = function (force) { clearInterval(this._openId); this._openId = null; if (this._controllerPolicy == 'auto' || force) { this._isOpen = true; this._animationStart = getTimer(); this._animationOpen = true; this._priorMouseOver = true; this.onEnterFrame = this.animate; } }; v2.contract = function (force) { mx.controls.streamingmedia.Tracer.trace('MediaController.contract: force=' + force + ', animating=' + this._animating + ', opening=' + this._animationOpen); if (this._animating && !this._animationOpen) { return undefined; } clearInterval(this._closeId); this._closeId = null; if (this._controllerPolicy == 'auto' || force) { this._isOpen = false; this._animationStart = getTimer(); this._animationOpen = false; this._priorMouseOver = false; this.gotoAndStop(this.getClosedFrameName()); this.animate(); this.onEnterFrame = this.animate; } }; v2.animate = function () { this._animating = true; var v4 = getTimer() - this._animationStart; var v3 = Math.min(1, v4 / mx.controls.MediaController.ANIMATION_TIME); mx.controls.streamingmedia.Tracer.trace('MediaController.animate: _animationStart=' + this._animationStart + ', elapsed=' + v4 + ', portion=' + v3 + ', ANIMATION_TIME=' + mx.controls.MediaController.ANIMATION_TIME); this.sizeMainChrome(v3); if (this._secondChrome != null) { this.sizeSecondChrome(v3); } this.animateBars(v3); if (v4 >= mx.controls.MediaController.ANIMATION_TIME || _global.isLivePreview) { this.animationDone(); } }; v2.animationDone = function () { mx.controls.streamingmedia.Tracer.trace('MediaController.animationDone'); this._animating = false; delete this.onEnterFrame; this.refreshBars(); if (this._animationOpen) { this.gotoAndStop(this.getOpenFrameName()); } else {} this.redraw(true); }; v2.sizeMainChrome = function (portion) { var v2 = this.__get__height(); var v3 = this.__get__width(); if (this._horizontal) { var v4 = (this.__get__height() - mx.controls.MediaController.CLOSED_HORIZONTAL_HEIGHT) * portion; if (this._animationOpen) { v2 = mx.controls.MediaController.CLOSED_HORIZONTAL_HEIGHT + v4; } else { v2 = this.__get__height() - v4; } } else { var v4 = (this.__get__width() - mx.controls.MediaController.CLOSED_VERTICAL_WIDTH) * portion; if (this._animationOpen) { v3 = mx.controls.MediaController.CLOSED_VERTICAL_WIDTH + v4; } else { v3 = this.__get__width() - v4; } } if (this.isOpenUpOrLeft()) { var v6 = this._chrome.width - v3; var v5 = this._chrome.height - v2; this._x += v6; this._y += v5; } this.drawChrome(v3, v2); }; v2.sizeSecondChrome = function (portion) { var v3; var v4; var v2; if (this._horizontal) { v4 = this._secondChromeClosedWidth; v2 = (this._secondChromeOpenHeight - this._secondChromeClosedHeight) * portion; v3 = this._animationOpen ? this._secondChromeClosedHeight + v2 : this._secondChromeOpenHeight - v2; if (this._secondChromeFixedEnd) { this._secondChrome._y = this._secondChrome._y - v3 + this._secondChrome.height; } } else { v3 = this._secondChromeClosedHeight; v2 = (this._secondChromeOpenWidth - this._secondChromeClosedWidth) * portion; v4 = this._animationOpen ? this._secondChromeClosedWidth + v2 : this._secondChromeOpenWidth - v2; if (this._secondChromeFixedEnd) { this._secondChrome._x = this._secondChrome._x - v4 + this._secondChrome.width; } } this._secondChrome.setSize(v4, v3); this._secondChrome.draw(); }; v2.animateBars = function (portion) { var v2; if (this._horizontal) { v2 = (mx.controls.MediaController.LOADBAR_HORIZONTAL_OPEN_Y - mx.controls.MediaController.LOADBAR_HORIZONTAL_CLOSED_Y) * portion; var v8 = this._animationOpen ? mx.controls.MediaController.LOADBAR_HORIZONTAL_CLOSED_Y + v2 : mx.controls.MediaController.LOADBAR_HORIZONTAL_OPEN_Y - v2; this._loadBar._y = v8; } else { var v5 = this._chrome.width / 2; v2 = (v5 - mx.controls.MediaController.MINIPLAYBAR_VERTICAL_CLOSED_X) * portion; v2 = Math.max(0, v2); var v9 = this._animationOpen ? mx.controls.MediaController.MINIPLAYBAR_VERTICAL_CLOSED_X + v2 : v5 - v2; this._miniPlayBar._x = v9; this._loadBar._x = this._miniPlayBar._x + this._miniPlayBar._width; var v3 = this._loadBar.getClosedHeight(); var v4 = this._loadBar.getOpenHeight(); v2 = (v3 - v4) * portion; var v6 = this._animationOpen ? v3 - v2 : v4 + v2; this._loadBar.draw(v6); this._miniPlayBar.draw(v6); } }; v2.getLoadBar = function () { return this._loadBar; }; v2.refreshBars = function () { mx.controls.streamingmedia.Tracer.trace('MediaController.refreshBars: load=' + this._loadPercent + ', play=' + this._playPercent); this._loadBar.setCompletionPercentage(this._loadPercent); this._playBar.setCompletionPercentage(this._playPercent); this._miniPlayBar.setCompletionPercentage(this._playPercent); }; v2.getLoadPercent = function () { return this._loadPercent; }; v2.getMinimumOpenHeight = function () { if (!this._horizontal) { var v2 = mx.controls.MediaController.MINIMUM_VERTICAL_HEIGHT; return v2; } var v2 = mx.controls.MediaController.MINIMUM_HORIZONTAL_OPEN_HEIGHT; return v2; }; v2.getMinimumClosedHeight = function () { if (!this._horizontal) { var v2 = mx.controls.MediaController.MINIMUM_VERTICAL_HEIGHT; return v2; } var v2 = mx.controls.MediaController.CLOSED_HORIZONTAL_HEIGHT; return v2; }; v2.getMinimumOpenWidth = function () { if (!this._horizontal) { var v2 = mx.controls.MediaController.MINIMUM_VERTICAL_OPEN_WIDTH; return v2; } var v2 = mx.controls.MediaController.MINIMUM_HORIZONTAL_WIDTH; return v2; }; v2.getMinimumClosedWidth = function () { if (!this._horizontal) { var v2 = mx.controls.MediaController.CLOSED_VERTICAL_WIDTH; return v2; } var v2 = mx.controls.MediaController.MINIMUM_HORIZONTAL_WIDTH; return v2; }; v2.__get__controllerPolicy = function () { return this._controllerPolicy; }; v2.__set__controllerPolicy = function (aPolicy) { mx.controls.streamingmedia.Tracer.trace('MediaController.set controllerPolicy: old=' + this._controllerPolicy + ', new=' + aPolicy); if (aPolicy == this._controllerPolicy) { return undefined; } this._controllerPolicy = aPolicy; if (this._controllerPolicy == 'on') { Mouse.removeListener(this); if (!this._isOpen) { this.expand(true); } } else { if (this._controllerPolicy == 'off') { Mouse.removeListener(this); if (this._isOpen) { mx.controls.streamingmedia.Tracer.trace('MediaController.set controllerPolicy(off): about to call contract'); this.contract(true); } } else { if (this._controllerPolicy == 'auto') { this._closeId = null; this._openId = null; Mouse.addListener(this); var v3 = this.hitTest(_root._xmouse, _root._ymouse, true); if (this._isOpen && !v3) { mx.controls.streamingmedia.Tracer.trace('MediaController.set controllerPolicy(auto): about to call contract'); this.contract(); } else { if (!this._isOpen && v3) { this.expand(); } } } else {} } } return this.__get__controllerPolicy(); }; v2.__get__horizontal = function () { return this._horizontal; }; v2.__set__horizontal = function (isHoriz) { if (isHoriz != this._horizontal) { this._horizontal = isHoriz; var v2 = this.__get__height(); var v3 = this.__get__width(); if (isHoriz) { v2 = Math.max(v2, mx.controls.MediaController.MINIMUM_HORIZONTAL_WIDTH); v3 = Math.max(v3, mx.controls.MediaController.MINIMUM_HORIZONTAL_OPEN_HEIGHT); } else { v2 = Math.max(v2, mx.controls.MediaController.MINIMUM_VERTICAL_OPEN_WIDTH); v3 = Math.max(v3, mx.controls.MediaController.MINIMUM_VERTICAL_HEIGHT); } this.setSize(v2, v3); this.invalidate(); } else { this._horizontal = isHoriz; } return this.__get__horizontal(); }; v2.__get__volume = function () { return this._volume; }; v2.__set__volume = function (vol) { this._volume = vol; (this._volumeControl.getHandle()).setVolume(vol); return this.__get__volume(); }; v2.__get__backgroundStyle = function () { return this._backgroundStyle; }; v2.__set__backgroundStyle = function (aStyle) { this._backgroundStyle = aStyle; this.drawChrome(); return this.__get__backgroundStyle(); }; v2.broadcastEvent = function (eventType, detailArg) { var v2 = {'type': eventType, 'target': this, 'detail': detailArg}; if (eventType == 'volume') { this._volume = detailArg; } this.dispatchEvent(v2); }; v2.handleEvent = function (ev) { if (ev.type == 'change') { this.playAtBeginning = false; if (this.isListeningForPlayheadMoveEvent()) { this.handleChangeEvent(ev); } } else { if (ev.type == 'progress') { this.handleProgressEvent(ev); } else { if (ev.type == 'complete') { this.handleCompleteEvent(ev); } else { if (ev.type == 'scrubbing') { this.handleScrubbingEvent(ev); } else { this.handleUnrecognizedEvent(ev); } } } } }; v2.isListeningForPlayheadMoveEvent = function () { return this._listenForPlayheadMoveEvent; }; v2.setListeningForPlayheadMoveEvent = function (listen) { this._listenForPlayheadMoveEvent = listen; }; v2.isNotAnimating = function () { return this._notAnimating; }; v2.setNotAnimating = function (still) { this._notAnimating = still; }; v2.__get__activePlayControl = function () { return this._activePlayControl; }; v2.__set__activePlayControl = function (aControl) { this._activePlayControl = aControl; return this.__get__activePlayControl(); }; v2.__get__playing = function () { return this.isPlaying(); }; v2.__set__playing = function (playFlag) { this.setPlaying(playFlag); return this.__get__playing(); }; v2.isPlaying = function () { return this._isPlaying; }; v2.setPlaying = function (playFlag) { this._isPlaying = playFlag; this._playBar.setIsPlaying(playFlag); if (playFlag) { this._buttons.playPauseButtons.showPauseButton(); } else { this._buttons.playPauseButtons.showPlayButton(); } }; v2.handleChangeEvent = function (ev) { var v2 = ev.target; this._playTime = v2.playheadTime; var v3 = v2.__get__totalTime(); this._playPercent = 100 * this._playTime / v3; if (this._isOpen) { this._playBar.setCompletionPercentage(this._playPercent); this._playBar.setTime(this._playTime); } else { this._miniPlayBar.setCompletionPercentage(this._playPercent); } }; v2.handleProgressEvent = function (ev) { if (ev.target.isRtmp(ev.target.contentPath)) { this._loadPercent = 100; } else { var v4 = ev.target.bytesLoaded; var v3 = ev.target.bytesTotal; this._loadPercent = 100 * v4 / v3; } this.refreshBars(); this._lastProgressMediaType = ev.target.mediaType; this.evaluateToEnd(); }; v2.evaluateToEnd = function () { if (!this._isOpen) { return undefined; } var v2 = false; if (this._loadPercent >= 99 && this.__get__enabled()) { if (this._lastProgressMediaType == 'MP3') { v2 = true; } else { if (this._lastProgressMediaType == 'FLV' && !mx.controls.streamingmedia.StreamingMediaConstants.DISABLE_FLV_TOEND) { v2 = true; } } } this._buttons.toEndButton.enabled = v2; }; v2.handleCompleteEvent = function (ev) { if (!this.isScrubbing() && !this._animating) { var v2 = ev.target; this._playTime = v2.totalTime; this._playPercent = 100; if (this._isOpen) { this._playBar.setCompletionPercentage(this._playPercent); this._playBar.setTime(this._playTime); } else { this._miniPlayBar.setCompletionPercentage(this._playPercent); } this.setPlaying(false); mx.controls.streamingmedia.Tracer.trace('MediaController.handleCompleteEvent: playAtBeginning=true'); this.playAtBeginning = true; } }; v2.handleScrubbingEvent = function (ev) { this._listenForPlayheadMoveEvent = !ev.detail; }; v2.handleUnrecognizedEvent = function (ev) { mx.controls.streamingmedia.Tracer.trace('received an unrecognized event of type ' + ev.type + ' with target ' + ev.target); }; v2.createDefaultStrings = function () { this._strings = new Object(); this._strings.paused = 'PAUSED'; this._strings.streaming = 'STREAMING'; }; v2.getLocalizedString = function (id) { var v2 = this._strings[id]; return v2; }; v2.__get__playTime = function () { return this._playTime; }; v2.__set__playTime = function (aTime) { this._playTime = aTime; return this.__get__playTime(); }; v2.__get__playPercent = function () { return this._playPercent; }; v2.__set__playPercent = function (aPercent) { this._playPercent = aPercent; return this.__get__playPercent(); }; v2.isOpenUpOrLeft = function () { return this._openUpOrLeft; }; v2.setOpenUpOrLeft = function (is) { this._openUpOrLeft = is; }; v2.associateDisplay = function (d) { d.associateController(this); }; v2.setSize = function (w, h, noEvent) { super.setSize(w, h, noEvent); this.invalidate(); }; v2.__get__enabled = function () { return this._enabled; }; v2.__set__enabled = function (is) { mx.controls.streamingmedia.Tracer.trace('MediaController.set enabled to ' + is); this._enabled = is; this._buttons.toStartButton.enabled = is; this._buttons.toEndButton.enabled = is; this._buttons.playPauseButtons.enabled = is; this._volumeControl._muteButton.muteSimpleButton.enabled = is; this._volumeControl._loudButton.loudSimpleButton.enabled = is; this._playBar.__set__enabled(is); (this._volumeControl.getHandle()).__set__enabled(is); if (is) { if (this._priorPolicy != null) { this.__set__controllerPolicy(this._priorPolicy); } } else { this._priorPolicy = this.controllerPolicy; if (this.__get__controllerPolicy() == 'auto') { this.__set__controllerPolicy('off'); } } return this.__get__enabled(); }; v2.isScrubbing = function () { return this._playBar.isScrubbing(); }; v1.symbolName = 'MediaController'; v1.symbolOwner = mx.controls.MediaController; v2.className = 'MediaController'; v1.version = '2.0.2.126'; v2.clipParameters = {'controllerPolicy': 'auto', 'horizontal': true, 'activePlayControl': 'pause', 'backgroundStyle': 'default'}; v1.MINIMUM_HORIZONTAL_WIDTH = 202; v1.CLOSED_HORIZONTAL_HEIGHT = 25; v1.MINIMUM_HORIZONTAL_OPEN_HEIGHT = 63; v1.LOADBAR_HORIZONTAL_CLOSED_Y = 14; v1.LOADBAR_HORIZONTAL_OPEN_Y = 24; v1.MINIMUM_VERTICAL_HEIGHT = 202; v1.CLOSED_VERTICAL_WIDTH = 25; v1.MINIMUM_VERTICAL_OPEN_WIDTH = 80; v1.LOADBAR_VERTICAL_CLOSED_X = 14; v1.MINIPLAYBAR_VERTICAL_CLOSED_X = 8; v1.ANIMATION_TIME = 250; v1.CLOSE_DELAY = 1000; v1.OPEN_DELAY = 100; v1.LOCALIZED_FILE = 'streamingmediacontroller.xml'; v1.H_BORDER = 8; v1.V_BORDER = 8; v2._animating = false; v2._enabled = true; v2.addProperty('activePlayControl', v2.__get__activePlayControl, v2.__set__activePlayControl); v2.addProperty('backgroundStyle', v2.__get__backgroundStyle, v2.__set__backgroundStyle); v2.addProperty('controllerPolicy', v2.__get__controllerPolicy, v2.__set__controllerPolicy); v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); v2.addProperty('expanded', v2.__get__expanded, function () {}); v2.addProperty('horizontal', v2.__get__horizontal, v2.__set__horizontal); v2.addProperty('lastProgressMediaType', v2.__get__lastProgressMediaType, function () {}); v2.addProperty('playPercent', v2.__get__playPercent, v2.__set__playPercent); v2.addProperty('playTime', v2.__get__playTime, v2.__set__playTime); v2.addProperty('playing', v2.__get__playing, v2.__set__playing); v2.addProperty('volume', v2.__get__volume, v2.__set__volume); ASSetPropFlags(mx.controls.MediaController.prototype, null, 1); } #endinitclip } movieClip 181 __Packages.mx.controls.streamingmedia.LoadBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.LoadBar) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.LoadBar = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.LoadBar.prototype = v2; v2.init = function () { this._controller = this._parent; this.draw(); }; v2.isVertical = function () { return !this._controller.__get__horizontal(); }; v2.getCompletionPercentage = function () { var v2; if (this.isVertical()) { v2 = this.yToPercent(this._fill._height); return v2; } v2 = this.xToPercent(this._fill._width); return v2; }; v2.setCompletionPercentage = function (aPercentage) { aPercentage = Math.floor(aPercentage); if (aPercentage < 0) { aPercentage = 0; } else { if (aPercentage > 100) { aPercentage = 100; } } if (this.isVertical()) { this._fill._height = this.percentToY(aPercentage); this._fill._y = this.getActualHeight() - this._fill._height - 1; } else { this._fill._width = this.percentToX(aPercentage); } }; v2.draw = function (size) { var v3 = this.getCompletionPercentage(); if (this.isVertical()) { if (size == null) { size = this.getHeight(); } this._y = 8; this._border._height = size; this._background._height = size - 2; } else { if (size == null) { size = this.getWidth(); } this._x = 8; this._border._width = size; this._background._width = size - 2; } this.setCompletionPercentage(v3); }; v2.getWidth = function () { var v2; if (this.isVertical()) { v2 = 3; return v2; } v2 = this._controller.__get__width() - 16; return v2; }; v2.getHeight = function () { var v2; if (this.isVertical()) { if (this._controller.__get__expanded()) { v2 = this.getOpenHeight(); } else { v2 = this.getClosedHeight(); } return v2; } v2 = 3; return v2; }; v2.getActualHeight = function () { return this._border._height; }; v2.getActualWidth = function () { return this._border._width; }; v2.getOpenHeight = function () { return this._controller.__get__height() - 90; }; v2.getClosedHeight = function () { return this._controller.__get__height() - 16; }; v2.xToPercent = function (x) { var v2 = 100 * x / (this.getActualWidth() - 2); return v2; }; v2.percentToX = function (percent) { var v2 = (this.getWidth() - 2) * (percent / 100); return v2; }; v2.yToPercent = function (y) { var v2 = 100 * (y - 0) / (this.getActualHeight() - 2); return v2; }; v2.percentToY = function (percent) { var v2 = (this.getActualHeight() - 2) * (percent / 100); return v2; }; ASSetPropFlags(mx.controls.streamingmedia.LoadBar.prototype, null, 1); } #endinitclip } movieClip 182 __Packages.mx.controls.streamingmedia.PlayBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.PlayBar) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.PlayBar = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.PlayBar.prototype = v2; v2.init = function () { this._controller = this._parent; this.setCompletionPercentage(this._controller.__get__playPercent()); this.setTime(this._controller.__get__playTime()); this.draw(); }; v2.isVertical = function () { return !this._controller.__get__horizontal(); }; v2.getCompletionPercentage = function () { var v2; if (this.isVertical()) { v2 = this.yToPercent(this._thumb._y); return v2; } v2 = this.xToPercent(this._thumb._x); return v2; }; v2.setCompletionPercentage = function (aPercentage) { aPercentage = Math.floor(aPercentage); if (aPercentage < 1) { aPercentage = 1; } else { if (aPercentage > 100) { aPercentage = 100; } } if (this.isVertical()) { var v3 = this.percentToY(aPercentage); this._thumb._y = this.getHeight() - v3 - 9; } else { var v4 = this.percentToX(aPercentage); this._thumb._x = v4; } this.updateHiliteToMatchThumb(); }; v2.updateHiliteToMatchThumb = function () { if (this.isVertical()) { this._hilite._height = this.getHeight() - this._thumb._y - 6; this._hilite._y = this.getHeight() - this._hilite._height - 1; } else { this._hilite._width = this._thumb._x + 4; } }; v2.setTime = function (aTime) { var v7 = Math.floor(aTime / 3600); var v3 = aTime % 3600; var v6 = Math.floor(v3 / 60); v3 %= 60; var v5 = Math.floor(v3); v3 %= 1; var v2 = Math.round(v3 * 1000); var v4 = v7 + ':' + (v6 < 10 ? '0' : '') + v6 + ':' + (v5 < 10 ? '0' : '') + v5 + '.'; if (v2 < 10) { v4 += '00' + String(v2); } else { if (v2 < 100) { v4 += '0' + String(v2); } else { v4 += String(v2); } } this._timeTextField.text = v4; }; v2.setIsPlaying = function (isPlaying) { if (isPlaying) { this._statusTextField.text = this._controller.getLocalizedString(mx.controls.streamingmedia.PlayBar.STREAMING_ID); delete this.onEnterFrame; this.setDarkText(); } else { this._statusTextField.text = this._controller.getLocalizedString(mx.controls.streamingmedia.PlayBar.PAUSED_ID); this._darkenText = false; this._textPulseTime = getTimer(); this.onEnterFrame = this.pulseText; } }; v2.getController = function () { return this._controller; }; v2.draw = function () { var v2 = this.getCompletionPercentage(); if (this.isVertical()) { this._x = (this._controller.__get__width() - this.getWidth()) / 2; this._y = 8; this._tray.setHeight(this.getHeight()); this._statusTextField._y = this.getHeight() - 4; } else { this._x = 8; this._tray.setWidth(this.getWidth()); this._timeTextField._x = this.getWidth() - this._timeTextField._width - 3; } this.setIsPlaying(this._controller.isPlaying()); this.setCompletionPercentage(v2); }; v2.getWidth = function () { if (!this.isVertical()) { var v2 = this._controller.__get__width() - 16; return v2; } var v2 = 20; return v2; }; v2.getHeight = function () { if (!this.isVertical()) { var v2 = 20; return v2; } var v2 = this._controller.__get__height() - 90; return v2; }; v2.xToPercent = function (x) { var v2 = 100 * ((x + 3) / (this.getWidth() - 3)); return v2; }; v2.percentToX = function (percent) { var v2 = (this.getWidth() - 3) * (percent / 100) - 3; return v2; }; v2.yToPercent = function (y) { var v2 = 100 * ((this.getHeight() - 3 - y) / this.getHeight()); return v2; }; v2.percentToY = function (percent) { var v2 = (this.getHeight() - 3) * (percent / 100) - 3; return v2; }; v2.pulseText = function () { var v2 = getTimer() - this._textPulseTime; var v5 = Math.min(1, v2 / mx.controls.streamingmedia.PlayBar.PULSE_DURATION); var v7 = mx.controls.streamingmedia.PlayBar.PULSE_DURATION * mx.controls.streamingmedia.PlayBar.ACTIVE_PULSE_PORTION; var v6 = Math.min(1, v2 / v7); var v4 = v6 * (mx.controls.streamingmedia.PlayBar.TEXT_ALPHA_DARK - mx.controls.streamingmedia.PlayBar.TEXT_ALPHA_LIGHT); var v3 = this._darkenText ? mx.controls.streamingmedia.PlayBar.TEXT_ALPHA_LIGHT + v4 : mx.controls.streamingmedia.PlayBar.TEXT_ALPHA_DARK - v4; this._statusTextField._alpha = v3; this._timeTextField._alpha = v3; if (v5 >= 1) { this._darkenText = !this._darkenText; this._textPulseTime = getTimer(); } }; v2.setDarkText = function () { this._statusTextField._alpha = mx.controls.streamingmedia.PlayBar.TEXT_ALPHA_DARK; this._timeTextField._alpha = mx.controls.streamingmedia.PlayBar.TEXT_ALPHA_DARK; }; v2.setLightText = function () { this._statusTextField._alpha = mx.controls.streamingmedia.PlayBar.TEXT_ALPHA_LIGHT; this._timeTextField._alpha = mx.controls.streamingmedia.PlayBar.TEXT_ALPHA_LIGHT; }; v2.__get__enabled = function () { return this._thumb.__get__enabled(); }; v2.__set__enabled = function (is) { this._thumb.__set__enabled(is); return this.__get__enabled(); }; v2.isScrubbing = function () { return this._thumb.isScrubbing(); }; v1.TEXT_ALPHA_DARK = 100; v1.TEXT_ALPHA_LIGHT = 50; v1.PULSE_DURATION = 1400; v1.ACTIVE_PULSE_PORTION = 0.4; v1.STREAMING_ID = 'streaming'; v1.PAUSED_ID = 'paused'; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); ASSetPropFlags(mx.controls.streamingmedia.PlayBar.prototype, null, 1); } #endinitclip } movieClip 183 __Packages.mx.controls.streamingmedia.StreamingMediaConstants { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.StreamingMediaConstants) { var v1 = function () {}; mx.controls.streamingmedia.StreamingMediaConstants = v1; var v2 = v1.prototype; v1.FLV_MEDIA_TYPE = 'FLV'; v1.MP3_MEDIA_TYPE = 'MP3'; v1.PLAY_PLAY_CONTROL = 'play'; v1.PAUSE_PLAY_CONTROL = 'pause'; v1.DEFAULT_VOLUME = 75; v1.SCRUBBING = true; v1.DISABLE_FLV_TOEND = true; ASSetPropFlags(mx.controls.streamingmedia.StreamingMediaConstants.prototype, null, 1); } #endinitclip } movieClip 184 __Packages.mx.controls.streamingmedia.PlayBarThumb { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.PlayBarThumb) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.PlayBarThumb = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.PlayBarThumb.prototype = v2; v2.init = function () { this._playBar = this._parent; this.__set__enabled((this._playBar.getController()).enabled); }; v2.isVertical = function () { return this._playBar.isVertical(); }; v2.handlePress = function () { this.startThumbDrag(); }; v2.startThumbDrag = function () { this._dragging = true; var v2 = this._playBar.getController(); v2.broadcastEvent('scrubbing', true); this._wasPlaying = v2.isPlaying(); if (this._wasPlaying) { v2.broadcastEvent('click', 'pause'); } this.onMouseMove = this.handleMouseMove; }; v2.onUnload = function () { if (this._dragging) { this.stopThumbDrag(); } }; v2.handleRelease = function () { if (this._dragging) { this.stopThumbDrag(); } }; v2.handleReleaseOutside = function () { if (this._dragging) { this.stopThumbDrag(); } }; v2.stopThumbDrag = function () { this._dragging = false; var v2 = this._playBar.getController(); if (this._wasPlaying) { v2.broadcastEvent('click', 'play'); } v2.broadcastEvent('scrubbing', false); delete this.onMouseMove; }; v2.handleMouseMove = function () { var v2 = this._playBar.getController(); var v8 = (v2.getLoadBar()).getCompletionPercentage() / 100; if (this.isVertical()) { var v6 = this._playBar.getHeight() - 8; var v9 = v6 * (1 - v8) - 2; var v3 = this._playBar._ymouse; if (v3 < v9) { v3 = v9; } else { if (v3 > v6) { v3 = v6; } } this._y = v3; } else { var v10 = (this._playBar.getWidth() - 6) * v8; var v4 = this._playBar._xmouse; if (v4 < 0) { v4 = 0; } else { if (v4 > v10) { v4 = v10; } } this._x = v4; } this._playBar.updateHiliteToMatchThumb(); var v5 = this.isVertical() ? this._playBar.yToPercent(this._y) : this._playBar.xToPercent(this._x); if (mx.controls.streamingmedia.StreamingMediaConstants.SCRUBBING) { v2.broadcastEvent('playheadChange', v5); } var v11 = v2.__get__playTime() * 100 / v2.__get__playPercent(); var v7 = v11 * v5 / 100; this._playBar.setTime(v7); v2.__set__playPercent(v5); v2.__set__playTime(v7); }; v2.__get__enabled = function () { return this._enabled; }; v2.__set__enabled = function (is) { this._enabled = is; if (is) { this.onPress = this.handlePress; this.onRelease = this.handleRelease; this.onReleaseOutside = this.handleReleaseOutside; } else { if (this._dragging) { this.stopThumbDrag(); } delete this.onPress; delete this.onRelease; delete this.onReleaseOutside; } return this.__get__enabled(); }; v2.isScrubbing = function () { return this._dragging; }; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); ASSetPropFlags(mx.controls.streamingmedia.PlayBarThumb.prototype, null, 1); } #endinitclip } movieClip 185 __Packages.mx.controls.streamingmedia.MiniPlayBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.MiniPlayBar) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.MiniPlayBar = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.MiniPlayBar.prototype = v2; v2.init = function () { this._controller = this._parent; this.draw(); }; v2.isVertical = function () { return !this._controller.__get__horizontal(); }; v2.getCompletionPercentage = function () { var v2; if (this.isVertical()) { v2 = this.yToPercent(this._thumb._y); return v2; } v2 = this.xToPercent(this._thumb._x); return v2; }; v2.setCompletionPercentage = function (aPercentage) { aPercentage = Math.floor(aPercentage); if (aPercentage < 1) { aPercentage = 1; } else { if (aPercentage > 100) { aPercentage = 100; } } if (this.isVertical()) { var v3 = this.percentToY(aPercentage); this._thumb._y = this.getActualHeight() - v3 - 1; this._hilite._height = v3 - 1; this._hilite._y = this.getActualHeight() - v3 - 2; } else { var v4 = this.percentToX(aPercentage); this._thumb._x = v4; this._hilite._width = v4 - 1; } }; v2.getController = function () { return this._controller; }; v2.draw = function (h) { if (this.isVertical()) { this._y = 8; if (h == null) { h = this.getHeight(); } this._tray.setHeight(h); } else { var v3 = this.getWidth(); this._x = 8; this._tray.setWidth(this.getWidth()); } this.setCompletionPercentage(this._controller.__get__playPercent()); }; v2.getWidth = function () { if (!this.isVertical()) { var v2 = this._controller.__get__width() - 16; return v2; } var v2 = 6; return v2; }; v2.getHeight = function () { if (!this.isVertical()) { var v2 = 6; return v2; } var v2 = this._controller.__get__height() - 16; return v2; }; v2.getActualHeight = function () { var v2 = this._tray.getHeight(); return v2; }; v2.xToPercent = function (x) { var v2 = 100 * x / (this.getWidth() - 2); return v2; }; v2.percentToX = function (percent) { var v2 = (this.getWidth() - 2) * (percent / 100); return v2; }; v2.yToPercent = function (y) { var v2 = 100 * (y - 1) / (this.getActualHeight() - 3); return v2; }; v2.percentToY = function (percent) { var v2 = (this.getActualHeight() - 3) * (percent / 100) + 1; return v2; }; ASSetPropFlags(mx.controls.streamingmedia.MiniPlayBar.prototype, null, 1); } #endinitclip } movieClip 186 __Packages.mx.controls.streamingmedia.VolumeControl { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.VolumeControl) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.VolumeControl = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.VolumeControl.prototype = v2; v2.init = function () { this.tabEnabled = false; this.tabChildren = true; }; v2.getHandle = function () { return this._handle; }; ASSetPropFlags(mx.controls.streamingmedia.VolumeControl.prototype, null, 1); } #endinitclip } movieClip 187 __Packages.mx.controls.streamingmedia.VolumeControlHandle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.VolumeControlHandle) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.VolumeControlHandle = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.VolumeControlHandle.prototype = v2; v2.init = function () { this._volumeControl = this._parent; this._controller = this._parent._parent; this.setVolume(this._controller.__get__volume()); this.__set__enabled(this._controller.enabled); this.tabEnabled = false; this.tabChildren = false; }; v2.isVertical = function () { return !this._controller.__get__horizontal(); }; v2.setVolume = function (aVolume) { if (aVolume < 0) { aVolume = 0; } else { if (aVolume > 100) { aVolume = 100; } } this._x = this.volumeToX(aVolume); }; v2.setMute = function () { this.setVolume(0); }; v2.setLoud = function () { this.setVolume(100); }; v2.handlePress = function () { this.startThumbDrag(); }; v2.handleRelease = function () { this.stopThumbDrag(); }; v2.handleReleaseOutside = function () { this.stopThumbDrag(); }; v2.startThumbDrag = function () { this.startDrag(false, 12, 3, 12 + this.getRange(), 3); this.onMouseMove = this.handleMouseMove; }; v2.stopThumbDrag = function () { this.stopDrag(); delete this.onMouseMove; this.broadcastEvent(); }; v2.handleMouseMove = function () { this.broadcastEvent(); }; v2.broadcastEvent = function () { this._controller.broadcastEvent('volume', this.xToVolume(this._x)); }; v2.xToVolume = function (x) { return (x - 12) * (100 / this.getRange()); }; v2.volumeToX = function (aVol) { return aVol / (100 / this.getRange()) + 12; }; v2.getRange = function () { if (!this.isVertical()) { var v2 = 50; return v2; } var v2 = 27; return v2; }; v2.__get__enabled = function () { return this._enabled; }; v2.__set__enabled = function (is) { this._enabled = is; if (is) { this.onPress = this.handlePress; this.onRelease = this.handleRelease; this.onReleaseOutside = this.handleReleaseOutside; } else { delete this.onPress; delete this.onRelease; delete this.onReleaseOutside; } return this.__get__enabled(); }; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); ASSetPropFlags(mx.controls.streamingmedia.VolumeControlHandle.prototype, null, 1); } #endinitclip } movieClip 188 __Packages.mx.controls.SimpleButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.SimpleButton) { var v1 = function () { super(); }; mx.controls.SimpleButton = v1; var v2 = new mx.core.UIComponent(); mx.controls.SimpleButton.prototype = v2; v2.init = function (Void) { super.init(); if (this.preset == undefined) { this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; } this.useHandCursor = false; }; v2.createChildren = function (Void) { if (this.preset != undefined) { var v2 = this[this.idNames[this.preset]]; this[this.refNames[this.preset]] = v2; this.skinName = v2; if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } this.initializing = false; } else { if (this.__state == true) { this.setStateVar(true); } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } } } }; v2.setIcon = function (tag, linkageName) { return this.setSkin(tag + 8, linkageName); }; v2.changeIcon = function (tag, linkageName) { this.linkLength = linkageName.length; var v2 = this.stateNames[tag] + 'Icon'; this[v2] = linkageName; this[this.idNames[tag + 8]] = v2; this.setStateVar(this.getState()); }; v2.changeSkin = function (tag, linkageName) { var v2 = this.stateNames[tag] + 'Skin'; this[v2] = linkageName; this[this.idNames[tag]] = v2; this.setStateVar(this.getState()); }; v2.viewIcon = function (varName) { var v4 = varName + 'Icon'; var v3 = this[v4]; if (typeof v3 == 'string') { var v5 = v3; if (this.__emphasized) { if (this[v3 + 'Emphasized'].length > 0) { v3 += 'Emphasized'; } } if (this[v3].length == 0) { return undefined; } v3 = this.setIcon(this.tagMap[v5], this[v3]); if (v3 == undefined && _global.isLivePreview) { v3 = this.setIcon(0, 'ButtonIcon'); } this[v4] = v3; } this.iconName._visible = false; this.iconName = v3; this.iconName._visible = true; }; v2.removeIcons = function () { var v3 = 0; while (v3 < 2) { var v2 = 8; while (v2 < 16) { this.destroyObject(this.idNames[v2]); this[this.stateNames[v2 - 8] + 'Icon'] = ''; ++v2; } ++v3; } this.refresh(); }; v2.setSkin = function (tag, linkageName, initobj) { if (initobj == undefined) { var v3 = super.setSkin(tag, linkageName, {'styleName': this}); this.calcSize(tag, v3); return v3; } var v3 = super.setSkin(tag, linkageName, initobj); this.calcSize(tag, v3); return v3; }; v2.calcSize = function (Void) { this.__width = this._width; this.__height = this._height; }; v2.viewSkin = function (varName, initObj) { var v3 = varName + 'Skin'; var v2 = this[v3]; if (typeof v2 == 'string') { var v4 = v2; if (this.__emphasized) { if (this[v2 + 'Emphasized'].length > 0) { v2 += 'Emphasized'; } } if (this[v2].length == 0) { return undefined; } v2 = this.setSkin(this.tagMap[v4], this[v2], (initObj != undefined) ? initObj : {'styleName': this}); this[v3] = v2; } this.skinName._visible = false; this.skinName = v2; this.skinName._visible = true; }; v2.showEmphasized = function (e) { if (e && !this.__emphatic) { if (mx.controls.SimpleButton.emphasizedStyleDeclaration != undefined) { this.__emphaticStyleName = this.styleName; this.styleName = mx.controls.SimpleButton.emphasizedStyleDeclaration; } this.__emphatic = true; } else { if (this.__emphatic) { this.styleName = this.__emphaticStyleName; } this.__emphatic = false; } }; v2.refresh = function (Void) { var v2 = this.getState(); if (this.enabled == false) { this.viewIcon('disabled'); this.viewSkin('disabled'); } else { this.viewSkin(this.phase); this.viewIcon(this.phase); } this.setView(this.phase == 'down'); this.iconName.enabled = this.enabled; }; v2.setView = function (offset) { if (this.iconName == undefined) { return undefined; } var v2 = offset ? this.btnOffset : 0; this.iconName._x = (this.__width - this.iconName._width) / 2 + v2; this.iconName._y = (this.__height - this.iconName._height) / 2 + v2; }; v2.setStateVar = function (state) { if (state) { if (this.trueOverSkin.length == 0) { this.rolloverSkin = this.tus; } else { this.rolloverSkin = this.trs; } if (this.trueOverIcon.length == 0) { this.rolloverIcon = this.tui; } else { this.rolloverIcon = this.tri; } this.upSkin = this.tus; this.downSkin = this.tds; this.disabledSkin = this.dts; this.upIcon = this.tui; this.downIcon = this.tdi; this.disabledIcon = this.dti; } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } else { this.rolloverSkin = this.frs; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } else { this.rolloverIcon = this.fri; } this.upSkin = this.fus; this.downSkin = this.fds; this.disabledSkin = this.dfs; this.upIcon = this.fui; this.downIcon = this.fdi; this.disabledIcon = this.dfi; } this.__state = state; }; v2.setState = function (state) { if (state != this.__state) { this.setStateVar(state); this.invalidate(); } }; v2.size = function (Void) { this.refresh(); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.skinName.visible = true; this.iconName.visible = true; } this.size(); }; v2.getState = function (Void) { return this.__state; }; v2.setToggle = function (val) { this.__toggle = val; if (this.__toggle == false) { this.setState(false); } }; v2.getToggle = function (Void) { return this.__toggle; }; v2.__set__toggle = function (val) { this.setToggle(val); return this.__get__toggle(); }; v2.__get__toggle = function () { return this.getToggle(); }; v2.__set__value = function (val) { this.setSelected(val); return this.__get__value(); }; v2.__get__value = function () { return this.getSelected(); }; v2.__set__selected = function (val) { this.setSelected(val); return this.__get__selected(); }; v2.__get__selected = function () { return this.getSelected(); }; v2.setSelected = function (val) { if (this.__toggle) { this.setState(val); } else { this.setState(this.initializing ? val : this.__state); } }; v2.getSelected = function () { return this.__state; }; v2.setEnabled = function (val) { if (this.enabled != val) { super.setEnabled(val); this.invalidate(); } }; v2.onPress = function (Void) { this.pressFocus(); this.phase = 'down'; this.refresh(); this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { this.interval = setInterval(this, 'onPressDelay', this.getStyle('repeatDelay')); } }; v2.onPressDelay = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { clearInterval(this.interval); this.interval = setInterval(this, 'onPressRepeat', this.getStyle('repeatInterval')); } }; v2.onPressRepeat = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); updateAfterEvent(); }; v2.onRelease = function (Void) { this.releaseFocus(); this.phase = 'rollover'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } if (this.getToggle()) { this.setState(!this.getState()); } else { this.refresh(); } this.dispatchEvent({'type': 'click'}); }; v2.onDragOut = function (Void) { this.phase = 'up'; this.refresh(); this.dispatchEvent({'type': 'buttonDragOut'}); }; v2.onDragOver = function (Void) { if (this.phase != 'up') { this.onPress(); return undefined; } else { this.phase = 'down'; this.refresh(); } }; v2.onReleaseOutside = function (Void) { this.releaseFocus(); this.phase = 'up'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } }; v2.onRollOver = function (Void) { this.phase = 'rollover'; this.refresh(); }; v2.onRollOut = function (Void) { this.phase = 'up'; this.refresh(); }; v2.getLabel = function (Void) { return this.fui.text; }; v2.setLabel = function (val) { if (typeof this.fui == 'string') { this.createLabel('fui', 8, val); this.fui.styleName = this; } else { this.fui.text = val; } var v4 = this.fui._getTextFormat(); var v2 = v4.getTextExtent2(val); this.fui._width = v2.width + 5; this.fui._height = v2.height + 5; this.iconName = this.fui; this.setView(this.__state); }; v2.__get__emphasized = function () { return this.__emphasized; }; v2.__set__emphasized = function (val) { this.__emphasized = val; var v2 = 0; while (v2 < 8) { this[this.idNames[v2]] = this.stateNames[v2] + 'Skin'; if (typeof this[this.idNames[v2 + 8]] == 'movieclip') { this[this.idNames[v2 + 8]] = this.stateNames[v2] + 'Icon'; } ++v2; } this.showEmphasized(this.__emphasized); this.setStateVar(this.__state); this.invalidateStyle(); return this.__get__emphasized(); }; v2.keyDown = function (e) { if (e.code == 32) { this.onPress(); } }; v2.keyUp = function (e) { if (e.code == 32) { this.onRelease(); } }; v2.onKillFocus = function (newFocus) { super.onKillFocus(); if (this.phase != 'up') { this.phase = 'up'; this.refresh(); } }; v1.symbolName = 'SimpleButton'; v1.symbolOwner = mx.controls.SimpleButton; v1.version = '2.0.2.127'; v2.className = 'SimpleButton'; v2.style3dInset = 4; v2.btnOffset = 1; v2.__toggle = false; v2.__state = false; v2.__emphasized = false; v2.__emphatic = false; v1.falseUp = 0; v1.falseDown = 1; v1.falseOver = 2; v1.falseDisabled = 3; v1.trueUp = 4; v1.trueDown = 5; v1.trueOver = 6; v1.trueDisabled = 7; v2.falseUpSkin = 'SimpleButtonUp'; v2.falseDownSkin = 'SimpleButtonIn'; v2.falseOverSkin = ''; v2.falseDisabledSkin = 'SimpleButtonUp'; v2.trueUpSkin = 'SimpleButtonIn'; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = 'SimpleButtonIn'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.phase = 'up'; v2.fui = 'falseUpIcon'; v2.fus = 'falseUpSkin'; v2.fdi = 'falseDownIcon'; v2.fds = 'falseDownSkin'; v2.frs = 'falseOverSkin'; v2.fri = 'falseOverIcon'; v2.dfi = 'falseDisabledIcon'; v2.dfs = 'falseDisabledSkin'; v2.tui = 'trueUpIcon'; v2.tus = 'trueUpSkin'; v2.tdi = 'trueDownIcon'; v2.tds = 'trueDownSkin'; v2.trs = 'trueOverSkin'; v2.tri = 'trueOverIcon'; v2.dts = 'trueDisabledSkin'; v2.dti = 'trueDisabledIcon'; v2.rolloverSkin = mx.controls.SimpleButton.prototype.frs; v2.rolloverIcon = mx.controls.SimpleButton.prototype.fri; v2.upSkin = mx.controls.SimpleButton.prototype.fus; v2.downSkin = mx.controls.SimpleButton.prototype.fds; v2.disabledSkin = mx.controls.SimpleButton.prototype.dfs; v2.upIcon = mx.controls.SimpleButton.prototype.fui; v2.downIcon = mx.controls.SimpleButton.prototype.fdi; v2.disabledIcon = mx.controls.SimpleButton.prototype.dfi; v2.initializing = true; v2.idNames = ['fus', 'fds', 'frs', 'dfs', 'tus', 'tds', 'trs', 'dts', 'fui', 'fdi', 'fri', 'dfi', 'tui', 'tdi', 'tri', 'dti']; v2.stateNames = ['falseUp', 'falseDown', 'falseOver', 'falseDisabled', 'trueUp', 'trueDown', 'trueOver', 'trueDisabled']; v2.refNames = ['upSkin', 'downSkin', 'rolloverSkin', 'disabledSkin']; v2.tagMap = {'falseUpSkin': 0, 'falseDownSkin': 1, 'falseOverSkin': 2, 'falseDisabledSkin': 3, 'trueUpSkin': 4, 'trueDownSkin': 5, 'trueOverSkin': 6, 'trueDisabledSkin': 7, 'falseUpIcon': 0, 'falseDownIcon': 1, 'falseOverIcon': 2, 'falseDisabledIcon': 3, 'trueUpIcon': 4, 'trueDownIcon': 5, 'trueOverIcon': 6, 'trueDisabledIcon': 7}; v2.addProperty('emphasized', v2.__get__emphasized, v2.__set__emphasized); v2.addProperty('selected', v2.__get__selected, v2.__set__selected); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.SimpleButton.prototype, null, 1); } #endinitclip } movieClip 189 __Packages.mx.controls.streamingmedia.MuteButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.MuteButton) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.MuteButton = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.MuteButton.prototype = v2; v2.init = function () { this.attachMovie('SimpleButton', 'muteSimpleButton', 1, {'falseUpSkin': 'Mute-False-Up', 'falseOverSkin': 'Mute-False-Over', 'falseDownSkin': 'Mute-False-Down', 'falseDisabledSkin': 'Mute-False-Disabled'}); this.muteSimpleButton.addEventListener('click', this); this.muteSimpleButton.enabled = this._parent._parent.enabled; this.tabEnabled = false; this.tabChildren = true; }; v2.click = function (ev) { this._parent._parent.broadcastEvent('volume', 0); (this._parent.getHandle()).setMute(); }; ASSetPropFlags(mx.controls.streamingmedia.MuteButton.prototype, null, 1); } #endinitclip } movieClip 190 __Packages.mx.controls.streamingmedia.LoudButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.LoudButton) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.LoudButton = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.LoudButton.prototype = v2; v2.init = function () { this.attachMovie('SimpleButton', 'loudSimpleButton', 1, {'falseUpSkin': 'Loud-False-Up', 'falseOverSkin': 'Loud-False-Over', 'falseDownSkin': 'Loud-False-Down', 'falseDisabledSkin': 'Loud-False-Disabled'}); this.loudSimpleButton.addEventListener('click', this); this.loudSimpleButton.enabled = this._parent._parent.enabled; this.tabEnabled = false; this.tabChildren = true; }; v2.click = function (ev) { this._parent._parent.broadcastEvent('volume', 100); (this._parent.getHandle()).setLoud(); }; ASSetPropFlags(mx.controls.streamingmedia.LoudButton.prototype, null, 1); } #endinitclip } movieClip 191 __Packages.mx.controls.streamingmedia.FullScreenToggle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.FullScreenToggle) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.FullScreenToggle = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.FullScreenToggle.prototype = v2; v2.init = function () { this._player = this._parent._parent; this._isFull = false; this.setEnabled(this._player.__get__enabled()); }; v2.isFullScreen = function () { return this._isFull; }; v2.displayFull = function (noAction) { this.gotoAndStop('big'); this._isFull = true; if (!noAction) { this._originalPlayerX = this._player._x; this._originalPlayerY = this._player._y; this._originalPlayerWidth = this._player.width; this._originalPlayerHeight = this._player.height; this._originalAutosize = this._player.autoSize; var v7 = this._player.getController(); if (v7.__get__controllerPolicy() == 'auto' && v7.__get__expanded()) { mx.controls.streamingmedia.Tracer.trace('FullScreenToggle.displayFull: about to call contract'); v7.contract(); } v7.setNotAnimating(false); this._player.__set__autoSize(false); var v4 = this.getContainerInfo(); this._player.setSize(v4.width, v4.height); if (v4.origin) { var v5 = mx.managers.SystemManager.__get__screen(); mx.controls.streamingmedia.Tracer.trace('FullScreenToggle.displayFull: scr=(' + v5.x + ',' + v5.y + ')'); this._player._x = v5.x; this._player._y = v5.y; } var v6 = this._player.getBounds(v4.container); mx.controls.streamingmedia.Tracer.trace('FullScreenToggle.displayFull: bounds=(' + v6.xMin + ',' + v6.yMin + ')'); if (v4.origin) { this._player._x += v5.x; this._player._y += v5.y; } else { this._player._x += v4.x; this._player._y += v4.y; } this._player._x -= v6.xMin; this._player._y -= v6.yMin; this._waited = false; this.onEnterFrame = this.delayedBarRefresh; var v3 = this.getOtherToggles(); var v2 = 0; while (v2 < v3.length) { v3[v2].displayFull(true); ++v2; } } }; v2.getContainerInfo = function () { var v4; var v6 = this.getScrollViewAncestor(this._player); if (v6 == null) { var v5 = mx.managers.SystemManager.__get__screen(); v4 = {'container': _root, 'width': v5.width, 'height': v5.height, 'x': 0, 'y': 0, 'origin': true}; return v4; } var v3 = v6.getViewMetrics(); v4 = {'container': v6, 'width': v6.width - v3.left - v3.right, 'height': v6.height - v3.top - v3.bottom, 'x': v3.left, 'y': v3.top, 'origin': false}; return v4; }; v2.getScrollViewAncestor = function (anMC) { var v3; if (anMC == _root) { v3 = null; return v3; } if (anMC instanceof mx.core.ScrollView) { v3 = anMC; return v3; } v3 = this.getScrollViewAncestor(anMC._parent); return v3; }; v2.delayedBarRefresh = function () { if (!this._waited) { this._waited = true; } else { delete this.onEnterFrame; (this._player.getController()).refreshBars(); } }; v2.displayNormal = function (noAction) { this.gotoAndStop('small'); this._isFull = false; if (!noAction) { var v4 = this._player.getController(); if (v4.__get__controllerPolicy() == 'auto' && v4.__get__expanded()) { mx.controls.streamingmedia.Tracer.trace('FullScreenToggle.displayNormal: about to call contract'); v4.contract(); } v4.setNotAnimating(false); this._player.__set__autoSize(this._originalAutosize); this._player.setSize(this._originalPlayerWidth, this._originalPlayerHeight); this._player._x = this._originalPlayerX; this._player._y = this._originalPlayerY; this._waited = false; this.onEnterFrame = this.delayedBarRefresh; var v3 = this.getOtherToggles(); var v2 = 0; while (v2 < v3.length) { v3[v2].displayNormal(true); ++v2; } } }; v2.toggleDisplay = function () { if (this._isFull) { this.displayNormal(); } else { this.displayFull(); } }; v2.getAllToggles = function () { return this._parent.getAllToggles(); }; v2.getOtherToggles = function () { var v3 = this.getAllToggles(); var v2 = 0; while (v2 < v3.length) { if (v3[v2] == this) { v3.splice(v2, 1); break; } ++v2; } return v3; }; v2.getPlayer = function () { return this._player; }; v2.getEnabled = function () { return this._player.__get__enabled(); }; v2.setEnabled = function (is) { mx.controls.streamingmedia.Tracer.trace('FullScreenToggle.setEnabled: ' + is); this._maximize.setEnabled(is); this._minimize.setEnabled(is); }; ASSetPropFlags(mx.controls.streamingmedia.FullScreenToggle.prototype, null, 1); } #endinitclip } movieClip 192 __Packages.mx.controls.streamingmedia.Tracer { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.Tracer) { var v1 = function () {}; mx.controls.streamingmedia.Tracer = v1; var v2 = v1.prototype; v1.trace = function (message) { if (mx.controls.streamingmedia.Tracer.DEBUG) { trace(message); } }; v1.DEBUG = false; ASSetPropFlags(mx.controls.streamingmedia.Tracer.prototype, null, 1); } #endinitclip } movieClip 193 __Packages.mx.controls.streamingmedia.FullScreenToggleControl { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.FullScreenToggleControl) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.FullScreenToggleControl = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.FullScreenToggleControl.prototype = v2; v2.init = function () { this.toggle = this._parent; this.setEnabled(this.toggle.getEnabled()); }; v2.handleRollOver = function () { (this.getController()).setNotAnimating(true); }; v2.handleRollOut = function () { (this.getController()).setNotAnimating(false); }; v2.handleRelease = function () { this.toggle.toggleDisplay(); }; v2.getController = function () { return (this.toggle.getPlayer()).getController(); }; v2.getEnabled = function () { return this._enabled; }; v2.setEnabled = function (is) { mx.controls.streamingmedia.Tracer.trace('FullScreenToggleControl.setEnabled: ' + is); this._enabled = is; if (is) { this.onRollOver = this.handleRollOver; this.onRollOut = this.handleRollOut; this.onRelease = this.handleRelease; this.gotoAndStop('_up'); } else { delete this.onRollOver; delete this.onRollOut; delete this.onRelease; this.gotoAndStop('_disabled'); } }; ASSetPropFlags(mx.controls.streamingmedia.FullScreenToggleControl.prototype, null, 1); } #endinitclip } movieClip 194 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 195 __Packages.mx.managers.SystemManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.SystemManager) { var v1 = function () {}; mx.managers.SystemManager = v1; var v2 = v1.prototype; v1.init = function (Void) { if (mx.managers.SystemManager._initialized == false) { mx.managers.SystemManager._initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); mx.managers.SystemManager._xAddEventListener = mx.managers.SystemManager.addEventListener; mx.managers.SystemManager.addEventListener = mx.managers.SystemManager.__addEventListener; mx.managers.SystemManager._xRemoveEventListener = mx.managers.SystemManager.removeEventListener; mx.managers.SystemManager.removeEventListener = mx.managers.SystemManager.__removeEventListener; } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.removeFocusManager = function (f) {}; v1.onMouseDown = function (Void) { var v1 = mx.managers.SystemManager.form; v1.focusManager._onMouseDown(); }; v1.onResize = function (Void) { var v7 = Stage.width; var v6 = Stage.height; var v9 = _global.origWidth; var v8 = _global.origHeight; var v3 = Stage.align; var v5 = (v9 - v7) / 2; var v4 = (v8 - v6) / 2; if (v3 == 'T') { v4 = 0; } else { if (v3 == 'B') { v4 = v8 - v6; } else { if (v3 == 'L') { v5 = 0; } else { if (v3 == 'R') { v5 = v9 - v7; } else { if (v3 == 'LT') { v4 = 0; v5 = 0; } else { if (v3 == 'TR') { v4 = 0; v5 = v9 - v7; } else { if (v3 == 'LB') { v4 = v8 - v6; v5 = 0; } else { if (v3 == 'RB') { v4 = v8 - v6; v5 = v9 - v7; } } } } } } } } if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.__screen = new Object(); } mx.managers.SystemManager.__screen.x = v5; mx.managers.SystemManager.__screen.y = v4; mx.managers.SystemManager.__screen.width = v7; mx.managers.SystemManager.__screen.height = v6; _root.focusManager.relocate(); mx.managers.SystemManager.dispatchEvent({'type': 'resize'}); }; v1.__get__screen = function () { mx.managers.SystemManager.init(); if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.onResize(); } return mx.managers.SystemManager.__screen; }; v1._initialized = false; v1.idleFrames = 0; v1.isMouseDown = false; v1.forms = new Array(); v1.addProperty('screen', v1.__get__screen, function () {}); ASSetPropFlags(mx.managers.SystemManager.prototype, null, 1); } #endinitclip } movieClip 196 __Packages.mx.skins.Border { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.Border) { var v1 = function () { super(); }; mx.skins.Border = v1; var v2 = new mx.core.UIObject(); mx.skins.Border.prototype = v2; v2.init = function (Void) { super.init(); }; v1.symbolName = 'Border'; v1.symbolOwner = mx.skins.Border; v2.className = 'Border'; v2.tagBorder = 0; v2.idNames = new Array('border_mc'); ASSetPropFlags(mx.skins.Border.prototype, null, 1); } #endinitclip } movieClip 197 __Packages.mx.skins.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.RectBorder) { var v1 = function () { super(); }; mx.skins.RectBorder = v1; var v2 = new mx.skins.Border(); mx.skins.RectBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.draw = function (Void) { this.size(); }; v2.getBorderMetrics = function (Void) { var v2 = this.offset; if (this.__borderMetrics == undefined) { this.__borderMetrics = {'left': v2, 'top': v2, 'right': v2, 'bottom': v2}; return this.__borderMetrics; } this.__borderMetrics.left = v2; this.__borderMetrics.top = v2; this.__borderMetrics.right = v2; this.__borderMetrics.bottom = v2; return this.__borderMetrics; }; v2.__get__borderMetrics = function () { return this.getBorderMetrics(); }; v2.drawBorder = function (Void) {}; v2.size = function (Void) { this.drawBorder(); }; v2.setColor = function (Void) { this.drawBorder(); }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.RectBorder; v1.version = '2.0.2.127'; v2.className = 'RectBorder'; v2.borderStyleName = 'borderStyle'; v2.borderColorName = 'borderColor'; v2.shadowColorName = 'shadowColor'; v2.highlightColorName = 'highlightColor'; v2.buttonColorName = 'buttonColor'; v2.backgroundColorName = 'backgroundColor'; v2.addProperty('borderMetrics', v2.__get__borderMetrics, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.RectBorder.prototype, null, 1); } #endinitclip } movieClip 198 __Packages.mx.managers.DepthManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.DepthManager) { var v1 = function () { MovieClip.prototype.createClassChildAtDepth = this.createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = this.createChildAtDepth; MovieClip.prototype.setDepthTo = this.setDepthTo; MovieClip.prototype.setDepthAbove = this.setDepthAbove; MovieClip.prototype.setDepthBelow = this.setDepthBelow; MovieClip.prototype.findNextAvailableDepth = this.findNextAvailableDepth; MovieClip.prototype.shuffleDepths = this.shuffleDepths; MovieClip.prototype.getDepthByFlag = this.getDepthByFlag; MovieClip.prototype.buildDepthTable = this.buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, 'createClassChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'createChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthTo', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthAbove', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthBelow', 1); _global.ASSetPropFlags(MovieClip.prototype, 'findNextAvailableDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'shuffleDepths', 1); _global.ASSetPropFlags(MovieClip.prototype, 'getDepthByFlag', 1); _global.ASSetPropFlags(MovieClip.prototype, 'buildDepthTable', 1); }; mx.managers.DepthManager = v1; var v2 = v1.prototype; v1.sortFunction = function (a, b) { if (a.getDepth() > b.getDepth()) { return 1; } return -1; }; v1.test = function (depth) { if (depth == mx.managers.DepthManager.reservedDepth) { return false; } else { return true; } }; v1.createClassObjectAtDepth = function (className, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v1.createObjectAtDepth = function (linkageName, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v2.createClassChildAtDepth = function (className, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.createChildAtDepth = function (linkageName, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.setDepthTo = function (depthFlag) { var v2 = this._parent.buildDepthTable(); var v3 = this._parent.getDepthByFlag(depthFlag, v2); if (v2[v3] != undefined) { this.shuffleDepths(this, v3, v2, undefined); } else { this.swapDepths(v3); } if (depthFlag == mx.managers.DepthManager.kTopmost) { this._topmost = true; } else { delete this._topmost; } }; v2.setDepthAbove = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v2 = targetInstance.getDepth() + 1; var v3 = this._parent.buildDepthTable(); if (v3[v2] != undefined && this.getDepth() < v2) { v2 -= 1; } if (v2 > mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } if (v2 == mx.managers.DepthManager.highestDepth) { this._parent.shuffleDepths(this, v2, v3, 'down'); } else { if (v3[v2] != undefined) { this._parent.shuffleDepths(this, v2, v3, undefined); } else { this.swapDepths(v2); } } }; v2.setDepthBelow = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v6 = targetInstance.getDepth() - 1; var v3 = this._parent.buildDepthTable(); if (v3[v6] != undefined && this.getDepth() > v6) { v6 += 1; } var v4 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v5; for (v5 in v3) { var v2 = v3[v5]; if (v2._parent != undefined) { v4 = Math.min(v4, v2.getDepth()); } } if (v6 < v4) { v6 = v4; } if (v6 == v4) { this._parent.shuffleDepths(this, v6, v3, 'up'); } else { if (v3[v6] != undefined) { this._parent.shuffleDepths(this, v6, v3, undefined); } else { this.swapDepths(v6); } } }; v2.findNextAvailableDepth = function (targetDepth, depthTable, direction) { var v5 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; if (targetDepth < v5) { targetDepth = v5; } if (depthTable[targetDepth] == undefined) { return targetDepth; } var v2 = targetDepth; var v1 = targetDepth; if (direction == 'down') { while (depthTable[v1] != undefined) { --v1; } return v1; } while (depthTable[v2] != undefined) { ++v2; } return v2; }; v2.shuffleDepths = function (subject, targetDepth, depthTable, direction) { var v9 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v8 = v9; var v5; for (v5 in depthTable) { var v7 = depthTable[v5]; if (v7._parent != undefined) { v9 = Math.min(v9, v7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = 'up'; } else { direction = 'down'; } } var v1 = new Array(); for (v5 in depthTable) { v7 = depthTable[v5]; if (v7._parent != undefined) { v1.push(v7); } } v1.sort(mx.managers.DepthManager.sortFunction); if (direction == 'up') { var v3; var v11; while (v1.length > 0) { v3 = v1.pop(); if (v3 == subject) { break; } } while (v1.length > 0) { v11 = subject.getDepth(); v3 = v1.pop(); var v4 = v3.getDepth(); if (v11 > v4 + 1) { if (v4 >= 0) { subject.swapDepths(v4 + 1); } else { if (v11 > v8 && v4 < v8) { subject.swapDepths(v8); } } } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } else { if (direction == 'down') { var v3; while (v1.length > 0) { v3 = v1.shift(); if (v3 == subject) { break; } } while (v1.length > 0) { var v11 = v3.getDepth(); v3 = v1.shift(); var v4 = v3.getDepth(); if (v11 < v4 - 1 && v4 > 0) { subject.swapDepths(v4 - 1); } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } } }; v2.getDepthByFlag = function (depthFlag, depthTable) { var v2 = 0; if (depthFlag == mx.managers.DepthManager.kTop || depthFlag == mx.managers.DepthManager.kNotopmost) { var v5 = 0; var v7 = false; var v8; for (v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { if (!v9._topmost) { v2 = Math.max(v2, v9.getDepth()); } else { if (!v7) { v5 = v9.getDepth(); v7 = true; } else { v5 = Math.min(v5, v9.getDepth()); } } } } } v2 += 20; if (v7) { if (v2 >= v5) { v2 = v5 - 1; } } } else { if (depthFlag == mx.managers.DepthManager.kBottom) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.min(v2, v9.getDepth()); } } } v2 -= 20; } else { if (depthFlag == mx.managers.DepthManager.kTopmost) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.max(v2, v9.getDepth()); } } } v2 += 100; } } } if (v2 >= mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } var v6 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; for (v9 in depthTable) { var v4 = depthTable[v9]; if (v4._parent != undefined) { v6 = Math.min(v6, v4.getDepth()); } } if (v2 <= v6) { v2 = v6; } return v2; }; v2.buildDepthTable = function (Void) { var v5 = new Array(); var v4; for (v4 in this) { var v2 = this[v4]; var v3 = typeof v2; if (v3 == 'movieclip' || v3 == 'object' && v2.__getTextFormat != undefined) { if (v2._parent == this) { v5[v2.getDepth()] = v2; } } } return v5; }; v1.reservedDepth = 1048575; v1.highestDepth = 1048574; v1.lowestDepth = -16383; v1.numberOfAuthortimeLayers = 383; v1.kCursor = 101; v1.kTooltip = 102; v1.kTop = 201; v1.kBottom = 202; v1.kTopmost = 203; v1.kNotopmost = 204; v1.holder = _root.createEmptyMovieClip('reserved', mx.managers.DepthManager.reservedDepth); v1.__depthManager = new mx.managers.DepthManager(); ASSetPropFlags(mx.managers.DepthManager.prototype, null, 1); } #endinitclip } movieClip 199 __Packages.mx.core.View { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.View) { var v1 = function () { super(); }; mx.core.View = v1; var v2 = new mx.core.UIComponent(); mx.core.View.prototype = v2; v2.init = function () { super.init(); this.tabChildren = true; this.tabEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.size = function () { this.border_mc.move(0, 0); this.border_mc.setSize(this.__get__width(), this.__get__height()); this.doLayout(); }; v2.draw = function () { this.size(); }; v2.__get__numChildren = function () { var v3 = mx.core.View.childNameBase; var v2 = 0; while (!false) { if (this[v3 + v2] == undefined) { return v2; } ++v2; } return -1; }; v2.__get__tabIndex = function () { return this.tabEnabled ? this.__tabIndex : undefined; }; v2.__set__tabIndex = function (n) { this.__tabIndex = n; return this.__get__tabIndex(); }; v2.addLayoutObject = function (object) {}; v2.createChild = function (className, instanceName, initProps) { if (this.depth == undefined) { this.depth = 1; } var v2; if (typeof className == 'string') { v2 = this.createObject(className, instanceName, this.depth++, initProps); } else { v2 = this.createClassObject(className, instanceName, this.depth++, initProps); } if (v2 == undefined) { v2 = this.loadExternal(className, this._loadExternalClass, instanceName, this.depth++, initProps); this.addLayoutObject(v2); return v2; } this[mx.core.View.childNameBase + this.__get__numChildren()] = v2; v2._complete = true; this.childLoaded(v2); this.addLayoutObject(v2); return v2; }; v2.getChildAt = function (childIndex) { return this[mx.core.View.childNameBase + childIndex]; }; v2.destroyChildAt = function (childIndex) { if (!(childIndex >= 0 && childIndex < this.__get__numChildren())) { return undefined; } var v4 = mx.core.View.childNameBase + childIndex; var v6 = this.__get__numChildren(); var v3; for (v3 in this) { if (v3 == v4) { v4 = ''; this.destroyObject(v3); break; } } var v2 = Number(childIndex); while (v2 < v6 - 1) { this[mx.core.View.childNameBase + v2] = this[mx.core.View.childNameBase + (v2 + 1)]; ++v2; } delete this[mx.core.View.childNameBase + (v6 - 1)]; --this.depth; }; v2.initLayout = function () { if (!this.hasBeenLayedOut) { this.doLayout(); } }; v2.doLayout = function () { this.hasBeenLayedOut = true; }; v2.createChildren = function () { if (this.border_mc == undefined) { this.border_mc = this.createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {'styleName': this}); } this.doLater(this, 'initLayout'); }; v2.convertToUIObject = function (obj) {}; v2.childLoaded = function (obj) { this.convertToUIObject(obj); }; v1.extension = function () { mx.core.ExternalContent.enableExternalContent(); }; v1.symbolName = 'View'; v1.symbolOwner = mx.core.View; v1.version = '2.0.2.127'; v2.className = 'View'; v1.childNameBase = '_child'; v2.hasBeenLayedOut = false; v2._loadExternalClass = 'UIComponent'; v2.addProperty('numChildren', v2.__get__numChildren, function () {}); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); ASSetPropFlags(mx.core.View.prototype, null, 1); } #endinitclip } movieClip 200 __Packages.mx.events.UIEventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.UIEventDispatcher) { var v1 = function () { super(); }; mx.events.UIEventDispatcher = v1; var v2 = new mx.events.EventDispatcher(); mx.events.UIEventDispatcher.prototype = v2; v1.addKeyEvents = function (obj) { if (obj.keyHandler == undefined) { obj.keyHandler = new Object(); var v1 = obj.keyHandler; v1.owner = obj; v1.onKeyDown = mx.events.UIEventDispatcher._fEventDispatcher.onKeyDown; v1.onKeyUp = mx.events.UIEventDispatcher._fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); }; v1.removeKeyEvents = function (obj) { Key.removeListener(obj.keyHandler); }; v1.addLoadEvents = function (obj) { if (obj.onLoad == undefined) { obj.onLoad = mx.events.UIEventDispatcher._fEventDispatcher.onLoad; obj.onUnload = mx.events.UIEventDispatcher._fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, 'onLoad'); } } }; v1.removeLoadEvents = function (obj) { delete obj.onLoad; delete obj.onUnload; }; v1.initialize = function (obj) { if (mx.events.UIEventDispatcher._fEventDispatcher == undefined) { mx.events.UIEventDispatcher._fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = mx.events.UIEventDispatcher._fEventDispatcher.__addEventListener; obj.__origAddEventListener = mx.events.UIEventDispatcher._fEventDispatcher.addEventListener; obj.removeEventListener = mx.events.UIEventDispatcher._fEventDispatcher.removeEventListener; obj.dispatchEvent = mx.events.UIEventDispatcher._fEventDispatcher.dispatchEvent; obj.dispatchQueue = mx.events.UIEventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(mx.events.EventDispatcher, eventObj); this.dispatchQueue(this, eventObj); }; v2.onKeyDown = function (Void) { this.owner.dispatchEvent({'type': 'keyDown', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onKeyUp = function (Void) { this.owner.dispatchEvent({'type': 'keyUp', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onLoad = function (Void) { if (this.__sentLoadEvent != true) { this.dispatchEvent({'type': 'load'}); } this.__sentLoadEvent = true; }; v2.onUnload = function (Void) { this.dispatchEvent({'type': 'unload'}); }; v2.__addEventListener = function (event, handler) { this.__origAddEventListener(event, handler); var v3 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v3) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v2 = v3[v5][0]; mx.events.UIEventDispatcher[v2](this); } } }; v2.removeEventListener = function (event, handler) { var v6 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v6], event, handler); if (this[v6].length == 0) { var v2 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v2) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v3 = v2[v5][1]; mx.events.UIEventDispatcher[v2[v5][1]](this); } } } }; v1.keyEvents = {'keyDown': 1, 'keyUp': 1}; v1.loadEvents = {'load': 1, 'unload': 1}; v1.lowLevelEvents = {'keyEvents': ['addKeyEvents', 'removeKeyEvents'], 'loadEvents': ['addLoadEvents', 'removeLoadEvents']}; v1._fEventDispatcher = undefined; ASSetPropFlags(mx.events.UIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 201 __Packages.mx.core.ExternalContent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ExternalContent) { var v1 = function () {}; mx.core.ExternalContent = v1; var v2 = v1.prototype; v2.loadExternal = function (url, placeholderClassName, instanceName, depth, initProps) { var v2; v2 = this.createObject(placeholderClassName, instanceName, depth, initProps); this[mx.core.View.childNameBase + this.numChildren] = v2; if (this.prepList == undefined) { this.prepList = new Object(); } this.prepList[instanceName] = {'obj': v2, 'url': url, 'complete': false, 'initProps': initProps}; this.prepareToLoadMovie(v2); return v2; }; v2.prepareToLoadMovie = function (obj) { obj.unloadMovie(); this.doLater(this, 'waitForUnload'); }; v2.waitForUnload = function () { var v3; for (v3 in this.prepList) { var v2 = this.prepList[v3]; if (v2.obj.getBytesTotal() == 0) { if (this.loadList == undefined) { this.loadList = new Object(); } this.loadList[v3] = v2; v2.obj.loadMovie(v2.url); delete this.prepList[v3]; this.doLater(this, 'checkLoadProgress'); } else { this.doLater(this, 'waitForUnload'); } } }; v2.checkLoadProgress = function () { var v8 = false; var v3; for (v3 in this.loadList) { var v2 = this.loadList[v3]; v2.loaded = v2.obj.getBytesLoaded(); v2.total = v2.obj.getBytesTotal(); if (v2.total > 0) { v2.obj._visible = false; this.dispatchEvent({'type': 'progress', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); if (v2.loaded == v2.total) { if (this.loadedList == undefined) { this.loadedList = new Object(); } this.loadedList[v3] = v2; delete this.loadList[v3]; this.doLater(this, 'contentLoaded'); } } else { if (v2.total == -1) { if (v2.failedOnce != undefined) { ++v2.failedOnce; if (v2.failedOnce > 3) { this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadList[v3]; false; } } else { v2.failedOnce = 0; } } } v8 = true; } if (v8) { this.doLater(this, 'checkLoadProgress'); } }; v2.contentLoaded = function () { var v4; for (v4 in this.loadedList) { var v2 = this.loadedList[v4]; v2.obj._visible = true; v2.obj._complete = true; var v3; for (v3 in v2.initProps) { v2.obj[v3] = v2.initProps[v3]; } this.childLoaded(v2.obj); this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadedList[v4]; false; } }; v2.convertToUIObject = function (obj) { if (obj.setSize == undefined) { var v2 = mx.core.UIObject.prototype; obj.addProperty('width', v2.__get__width, null); obj.addProperty('height', v2.__get__height, null); obj.addProperty('left', v2.__get__left, null); obj.addProperty('x', v2.__get__x, null); obj.addProperty('top', v2.__get__top, null); obj.addProperty('y', v2.__get__y, null); obj.addProperty('right', v2.__get__right, null); obj.addProperty('bottom', v2.__get__bottom, null); obj.addProperty('visible', v2.__get__visible, v2.__set__visible); obj.move = mx.core.UIObject.prototype.move; obj.setSize = mx.core.UIObject.prototype.setSize; obj.size = mx.core.UIObject.prototype.size; mx.events.UIEventDispatcher.initialize(obj); } }; v1.enableExternalContent = function () {}; v1.classConstruct = function () { var v1 = mx.core.View.prototype; var v2 = mx.core.ExternalContent.prototype; v1.loadExternal = v2.loadExternal; v1.prepareToLoadMovie = v2.prepareToLoadMovie; v1.waitForUnload = v2.waitForUnload; v1.checkLoadProgress = v2.checkLoadProgress; v1.contentLoaded = v2.contentLoaded; v1.convertToUIObject = v2.convertToUIObject; return true; }; v1.classConstructed = mx.core.ExternalContent.classConstruct(); v1.ViewDependency = mx.core.View; ASSetPropFlags(mx.core.ExternalContent.prototype, null, 1); } #endinitclip } movieClip 202 __Packages.mx.skins.CustomBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.CustomBorder) { var v1 = function () { super(); }; mx.skins.CustomBorder = v1; var v2 = new mx.skins.Border(); mx.skins.CustomBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.createChildren = function (Void) {}; v2.draw = function (Void) { if (this.l_mc == undefined) { var v2 = this.setSkin(mx.skins.CustomBorder.tagL, this.leftSkin); if (this.horizontal) { this.minHeight = this.l_mc._height; this.minWidth = this.l_mc._width; } else { this.minHeight = this.l_mc._height; this.minWidth = this.l_mc._width; } } if (this.m_mc == undefined) { this.setSkin(mx.skins.CustomBorder.tagM, this.middleSkin); if (this.horizontal) { this.minHeight = this.m_mc._height; this.minWidth += this.m_mc._width; } else { this.minHeight += this.m_mc._height; this.minWidth = this.m_mc._width; } } if (this.r_mc == undefined) { this.setSkin(mx.skins.CustomBorder.tagR, this.rightSkin); if (this.horizontal) { this.minHeight = this.r_mc._height; this.minWidth += this.r_mc._width; } else { this.minHeight += this.r_mc._height; this.minWidth = this.r_mc._width; } } this.size(); }; v2.size = function (Void) { this.l_mc.move(0, 0); if (this.horizontal) { this.r_mc.move(this.__get__width() - this.r_mc.width, 0); this.m_mc.move(this.l_mc.width, 0); this.m_mc.setSize(this.r_mc.x - this.m_mc.x, this.m_mc.height); } else { this.r_mc.move(0, this.__get__height() - this.r_mc.height, 0); this.m_mc.move(0, this.l_mc.height); this.m_mc.setSize(this.m_mc.width, this.r_mc.y - this.m_mc.y); } }; v1.symbolName = 'CustomBorder'; v1.symbolOwner = mx.skins.CustomBorder; v1.version = '2.0.2.127'; v2.className = 'CustomBorder'; v1.tagL = 0; v1.tagM = 1; v1.tagR = 2; v2.idNames = new Array('l_mc', 'm_mc', 'r_mc'); v2.leftSkin = 'F3PieceLeft'; v2.middleSkin = 'F3PieceMiddle'; v2.rightSkin = 'F3PieceRight'; v2.horizontal = true; v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.CustomBorder.prototype, null, 1); } #endinitclip } movieClip 203 __Packages.mx.controls.scrollClasses.ScrollThumb { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.scrollClasses) { _global.mx.controls.scrollClasses = new Object(); } if (!_global.mx.controls.scrollClasses.ScrollThumb) { var v1 = function () { super(); }; mx.controls.scrollClasses.ScrollThumb = v1; var v2 = new mx.skins.CustomBorder(); mx.controls.scrollClasses.ScrollThumb.prototype = v2; v2.createChildren = function (Void) { super.createChildren(); this.useHandCursor = false; }; v2.setRange = function (_ymin, _ymax, _datamin, _datamax) { this.ymin = _ymin; this.ymax = _ymax; this.datamin = _datamin; this.datamax = _datamax; }; v2.dragThumb = function (Void) { this.scrollMove = this._ymouse - this.lastY; this.scrollMove += this._y; if (this.scrollMove < this.ymin) { this.scrollMove = this.ymin; } else { if (this.scrollMove > this.ymax) { this.scrollMove = this.ymax; } } this._parent.isScrolling = true; this._y = this.scrollMove; var v2 = Math.round((this.datamax - this.datamin) * (this._y - this.ymin) / (this.ymax - this.ymin)) + this.datamin; this._parent.scrollPosition = v2; this._parent.dispatchScrollEvent('ThumbTrack'); updateAfterEvent(); }; v2.stopDragThumb = function (Void) { this._parent.isScrolling = false; this._parent.dispatchScrollEvent('ThumbPosition'); this._parent.dispatchScrollChangedEvent(); delete this.onMouseMove; }; v2.onPress = function (Void) { this._parent.pressFocus(); this.lastY = this._ymouse; this.onMouseMove = this.dragThumb; super.onPress(); }; v2.onRelease = function (Void) { this._parent.releaseFocus(); this.stopDragThumb(); super.onRelease(); }; v2.onReleaseOutside = function (Void) { this._parent.releaseFocus(); this.stopDragThumb(); super.onReleaseOutside(); }; v2.draw = function () { super.draw(); if (this.grip_mc == undefined) { this.setSkin(3, this.gripSkin); } }; v2.size = function () { super.size(); this.grip_mc.move((this.__get__width() - this.grip_mc.width) / 2, (this.__get__height() - this.grip_mc.height) / 2); }; v1.symbolOwner = mx.skins.CustomBorder.symbolOwner; v2.className = 'ScrollThumb'; v2.btnOffset = 0; v2.horizontal = false; v2.idNames = new Array('l_mc', 'm_mc', 'r_mc', 'grip_mc'); ASSetPropFlags(mx.controls.scrollClasses.ScrollThumb.prototype, null, 1); } #endinitclip } movieClip 204 __Packages.mx.controls.scrollClasses.ScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.scrollClasses) { _global.mx.controls.scrollClasses = new Object(); } if (!_global.mx.controls.scrollClasses.ScrollBar) { var v1 = function () { super(); }; mx.controls.scrollClasses.ScrollBar = v1; var v2 = new mx.core.UIComponent(); mx.controls.scrollClasses.ScrollBar.prototype = v2; v2.__get__scrollPosition = function () { return this._scrollPosition; }; v2.__set__scrollPosition = function (pos) { this._scrollPosition = pos; if (this.isScrolling != true) { pos = Math.min(pos, this.maxPos); pos = Math.max(pos, this.minPos); var v3 = (pos - this.minPos) * (this.scrollTrack_mc.height - this.scrollThumb_mc._height) / (this.maxPos - this.minPos) + this.scrollTrack_mc.top; this.scrollThumb_mc.move(0, v3); } return this.__get__scrollPosition(); }; v2.__get__pageScrollSize = function () { return this.largeScroll; }; v2.__set__pageScrollSize = function (lScroll) { this.largeScroll = lScroll; return this.__get__pageScrollSize(); }; v2.__set__lineScrollSize = function (sScroll) { this.smallScroll = sScroll; return this.__get__lineScrollSize(); }; v2.__get__lineScrollSize = function () { return this.smallScroll; }; v2.__get__virtualHeight = function () { return this.__height; }; v2.init = function (Void) { super.init(); this._scrollPosition = 0; this.tabEnabled = false; this.focusEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.createChildren = function (Void) { if (this.scrollTrack_mc == undefined) { this.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrack, this.scrollTrackName); } this.scrollTrack_mc.visible = false; var v3 = new Object(); v3.enabled = false; v3.preset = mx.controls.SimpleButton.falseDisabled; v3.initProperties = 0; v3.autoRepeat = true; v3.tabEnabled = false; var v2; if (this.upArrow_mc == undefined) { v2 = this.createButton(this.upArrowName, 'upArrow_mc', mx.controls.scrollClasses.ScrollBar.skinIDUpArrow, v3); } v2.buttonDownHandler = this.onUpArrow; v2.clickHandler = this.onScrollChanged; this._minHeight = v2.height; this._minWidth = v2.width; if (this.downArrow_mc == undefined) { v2 = this.createButton(this.downArrowName, 'downArrow_mc', mx.controls.scrollClasses.ScrollBar.skinIDDownArrow, v3); } v2.buttonDownHandler = this.onDownArrow; v2.clickHandler = this.onScrollChanged; this._minHeight += v2.height; }; v2.createButton = function (linkageName, id, skinID, o) { if (skinID == mx.controls.scrollClasses.ScrollBar.skinIDUpArrow) { o.falseUpSkin = this.upArrowUpName; o.falseDownSkin = this.upArrowDownName; o.falseOverSkin = this.upArrowOverName; var v3 = this.createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return v3; } o.falseUpSkin = this.downArrowUpName; o.falseDownSkin = this.downArrowDownName; o.falseOverSkin = this.downArrowOverName; var v3 = this.createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return v3; }; v2.createThumb = function (Void) { var v2 = new Object(); v2.validateNow = true; v2.tabEnabled = false; v2.leftSkin = this.thumbTopName; v2.middleSkin = this.thumbMiddleName; v2.rightSkin = this.thumbBottomName; v2.gripSkin = this.thumbGripName; this.createClassObject(mx.controls.scrollClasses.ScrollThumb, 'scrollThumb_mc', mx.controls.scrollClasses.ScrollBar.skinIDThumb, v2); }; v2.setScrollProperties = function (pSize, mnPos, mxPos, ls) { var v4; var v2 = this.scrollTrack_mc; this.pageSize = pSize; this.largeScroll = (ls != undefined && ls > 0) ? ls : pSize; this.minPos = Math.max(mnPos, 0); this.maxPos = Math.max(mxPos, 0); this._scrollPosition = Math.max(this.minPos, this._scrollPosition); this._scrollPosition = Math.min(this.maxPos, this._scrollPosition); if (this.maxPos - this.minPos > 0 && this.enabled) { var v5 = this._scrollPosition; if (!this.initializing) { this.upArrow_mc.enabled = true; this.downArrow_mc.enabled = true; } v2.onDragOver = this.startTrackScroller; v2.onPress = v2.onDragOver; v2.onRelease = this.releaseScrolling; v2.stopScrolling = this.stopScrolling; v2.onDragOut = v2.stopScrolling; v2.onReleaseOutside = this.releaseScrolling; v2.useHandCursor = false; if (this.scrollThumb_mc == undefined) { this.createThumb(); } var v3 = this.scrollThumb_mc; if (this.scrollTrackOverName.length > 0) { v2.onRollOver = this.trackOver; v2.onRollOut = this.trackOut; } v4 = (this.pageSize / (this.maxPos - this.minPos + this.pageSize)) * v2.height; if (v4 < v3.minHeight) { if (v2.height < v3.minHeight) { v3.__set__visible(false); } else { v4 = v3.minHeight; v3.__set__visible(true); v3.setSize(this._minWidth, v3.minHeight + 0); } } else { v3.__set__visible(true); v3.setSize(this._minWidth, v4); } v3.setRange(this.upArrow_mc.__get__height() + 0, this.__get__virtualHeight() - this.downArrow_mc.__get__height() - v3.__get__height(), this.minPos, this.maxPos); v5 = Math.min(v5, this.maxPos); this.__set__scrollPosition(Math.max(v5, this.minPos)); } else { this.scrollThumb_mc.__set__visible(false); if (!this.initializing) { this.upArrow_mc.enabled = false; this.downArrow_mc.enabled = false; } delete v2.onPress; delete v2.onDragOver; delete v2.onRelease; delete v2.onDragOut; delete v2.onRollOver; delete v2.onRollOut; delete v2.onReleaseOutside; } if (this.initializing) { this.scrollThumb_mc.__set__visible(false); } }; v2.setEnabled = function (enabledFlag) { super.setEnabled(enabledFlag); this.setScrollProperties(this.pageSize, this.minPos, this.maxPos, this.largeScroll); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.scrollTrack_mc.visible = true; this.upArrow_mc.__set__visible(true); this.downArrow_mc.__set__visible(true); } this.size(); }; v2.size = function (Void) { if (this._height == 1) { return undefined; } if (this.upArrow_mc == undefined) { return undefined; } var v3 = this.upArrow_mc.__get__height(); var v2 = this.downArrow_mc.__get__height(); this.upArrow_mc.move(0, 0); var v4 = this.scrollTrack_mc; v4._y = v3; v4._height = this.__get__virtualHeight() - v3 - v2; this.downArrow_mc.move(0, this.__get__virtualHeight() - v2); this.setScrollProperties(this.pageSize, this.minPos, this.maxPos, this.largeScroll); }; v2.dispatchScrollEvent = function (detail) { this.dispatchEvent({'type': 'scroll', 'detail': detail}); }; v2.isScrollBarKey = function (k) { if (k == 36) { if (this.__get__scrollPosition() != 0) { this.__set__scrollPosition(0); this.dispatchScrollEvent(this.minMode); } return true; return false; } if (k == 35) { if (this.__get__scrollPosition() < this.maxPos) { this.__set__scrollPosition(this.maxPos); this.dispatchScrollEvent(this.maxMode); } return true; } return false; }; v2.scrollIt = function (inc, mode) { var v3 = this.smallScroll; if (inc != 'Line') { v3 = (this.largeScroll == 0) ? this.pageSize : this.largeScroll; } var v2 = this._scrollPosition + mode * v3; if (v2 > this.maxPos) { v2 = this.maxPos; } else { if (v2 < this.minPos) { v2 = this.minPos; } } if (this.__get__scrollPosition() != v2) { this.__set__scrollPosition(v2); var v4 = mode < 0 ? this.minusMode : this.plusMode; this.dispatchScrollEvent(inc + v4); } }; v2.startTrackScroller = function (Void) { this._parent.pressFocus(); if (this._parent.scrollTrackDownName.length > 0) { if (this._parent.scrollTrackDown_mc == undefined) { this._parent.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrackDown, this.scrollTrackDownName); } else { this._parent.scrollTrackDown_mc.visible = true; } } this._parent.trackScroller(); this._parent.scrolling = setInterval(this._parent, 'scrollInterval', this.getStyle('repeatDelay'), 'Page', -1); }; v2.scrollInterval = function (inc, mode) { clearInterval(this.scrolling); if (inc == 'Page') { this.trackScroller(); } else { this.scrollIt(inc, mode); } this.scrolling = setInterval(this, 'scrollInterval', this.getStyle('repeatInterval'), inc, mode); }; v2.trackScroller = function (Void) { if (this.scrollThumb_mc._y + this.scrollThumb_mc.__get__height() < this._ymouse) { this.scrollIt('Page', 1); } else { if (this.scrollThumb_mc._y > this._ymouse) { this.scrollIt('Page', -1); } } }; v2.dispatchScrollChangedEvent = function (Void) { this.dispatchEvent({'type': 'scrollChanged'}); }; v2.stopScrolling = function (Void) { clearInterval(this._parent.scrolling); this._parent.scrollTrackDown_mc.visible = false; }; v2.releaseScrolling = function (Void) { this._parent.releaseFocus(); this.stopScrolling(); this._parent.dispatchScrollChangedEvent(); }; v2.trackOver = function (Void) { if (this._parent.scrollTrackOverName.length > 0) { if (this._parent.scrollTrackOver_mc == undefined) { this._parent.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrackOver, this.scrollTrackOverName); } else { this._parent.scrollTrackOver_mc.visible = true; } } }; v2.trackOut = function (Void) { this._parent.scrollTrackOver_mc.visible = false; }; v2.onUpArrow = function (Void) { this._parent.scrollIt('Line', -1); }; v2.onDownArrow = function (Void) { this._parent.scrollIt('Line', 1); }; v2.onScrollChanged = function (Void) { this._parent.dispatchScrollChangedEvent(); }; v1.symbolOwner = mx.core.UIComponent; v2.className = 'ScrollBar'; v2.minPos = 0; v2.maxPos = 0; v2.pageSize = 0; v2.largeScroll = 0; v2.smallScroll = 1; v2._scrollPosition = 0; v2.scrollTrackName = 'ScrollTrack'; v2.scrollTrackOverName = ''; v2.scrollTrackDownName = ''; v2.upArrowName = 'BtnUpArrow'; v2.upArrowUpName = 'ScrollUpArrowUp'; v2.upArrowOverName = 'ScrollUpArrowOver'; v2.upArrowDownName = 'ScrollUpArrowDown'; v2.downArrowName = 'BtnDownArrow'; v2.downArrowUpName = 'ScrollDownArrowUp'; v2.downArrowOverName = 'ScrollDownArrowOver'; v2.downArrowDownName = 'ScrollDownArrowDown'; v2.thumbTopName = 'ScrollThumbTopUp'; v2.thumbMiddleName = 'ScrollThumbMiddleUp'; v2.thumbBottomName = 'ScrollThumbBottomUp'; v2.thumbGripName = 'ScrollThumbGripUp'; v1.skinIDTrack = 0; v1.skinIDTrackOver = 1; v1.skinIDTrackDown = 2; v1.skinIDUpArrow = 3; v1.skinIDDownArrow = 4; v1.skinIDThumb = 5; v2.idNames = new Array('scrollTrack_mc', 'scrollTrackOver_mc', 'scrollTrackDown_mc', 'upArrow_mc', 'downArrow_mc'); v2.clipParameters = {'minPos': 1, 'maxPos': 1, 'pageSize': 1, 'scrollPosition': 1, 'lineScrollSize': 1, 'pageScrollSize': 1, 'visible': 1, 'enabled': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2.initializing = true; v2.addProperty('lineScrollSize', v2.__get__lineScrollSize, v2.__set__lineScrollSize); v2.addProperty('pageScrollSize', v2.__get__pageScrollSize, v2.__set__pageScrollSize); v2.addProperty('scrollPosition', v2.__get__scrollPosition, v2.__set__scrollPosition); v2.addProperty('virtualHeight', v2.__get__virtualHeight, function () {}); ASSetPropFlags(mx.controls.scrollClasses.ScrollBar.prototype, null, 1); } #endinitclip } movieClip 205 __Packages.mx.core.ScrollView { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ScrollView) { var v1 = function () { super(); }; mx.core.ScrollView = v1; var v2 = new mx.core.View(); mx.core.ScrollView.prototype = v2; v2.getHScrollPolicy = function (Void) { return this.__hScrollPolicy; }; v2.setHScrollPolicy = function (policy) { this.__hScrollPolicy = policy.toLowerCase(); if (this.__width == undefined) { return undefined; } this.setScrollProperties(this.numberOfCols, this.columnWidth, this.rowC, this.rowH, this.heightPadding, this.widthPadding); }; v2.__get__hScrollPolicy = function () { return this.getHScrollPolicy(); }; v2.__set__hScrollPolicy = function (policy) { this.setHScrollPolicy(policy); return this.__get__hScrollPolicy(); }; v2.getVScrollPolicy = function (Void) { return this.__vScrollPolicy; }; v2.setVScrollPolicy = function (policy) { this.__vScrollPolicy = policy.toLowerCase(); if (this.__width == undefined) { return undefined; } this.setScrollProperties(this.numberOfCols, this.columnWidth, this.rowC, this.rowH, this.heightPadding, this.widthPadding); }; v2.__get__vScrollPolicy = function () { return this.getVScrollPolicy(); }; v2.__set__vScrollPolicy = function (policy) { this.setVScrollPolicy(policy); return this.__get__vScrollPolicy(); }; v2.__get__hPosition = function () { return this.getHPosition(); }; v2.__set__hPosition = function (pos) { this.setHPosition(pos); return this.__get__hPosition(); }; v2.getHPosition = function (Void) { return this.__hPosition; }; v2.setHPosition = function (pos) { this.hScroller.__set__scrollPosition(pos); this.__hPosition = pos; }; v2.__get__vPosition = function () { return this.getVPosition(); }; v2.__set__vPosition = function (pos) { this.setVPosition(pos); return this.__get__vPosition(); }; v2.getVPosition = function (Void) { return this.__vPosition; }; v2.setVPosition = function (pos) { this.vScroller.__set__scrollPosition(pos); this.__vPosition = pos; }; v2.__get__maxVPosition = function () { var v2 = this.vScroller.maxPos; return (v2 == undefined) ? 0 : v2; }; v2.__get__maxHPosition = function () { return this.getMaxHPosition(); }; v2.__set__maxHPosition = function (pos) { this.setMaxHPosition(pos); return this.__get__maxHPosition(); }; v2.getMaxHPosition = function (Void) { if (this.__maxHPosition != undefined) { return this.__maxHPosition; } var v2 = this.hScroller.maxPos; return (v2 == undefined) ? 0 : v2; }; v2.setMaxHPosition = function (pos) { this.__maxHPosition = pos; }; v2.setScrollProperties = function (colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) { var v3 = this.getViewMetrics(); if (hPadding == undefined) { hPadding = 0; } if (wPadding == undefined) { wPadding = 0; } this.propsInited = true; delete this.scrollAreaChanged; this.heightPadding = hPadding; this.widthPadding = wPadding; if (colWidth == 0) { colWidth = 1; } if (rwHeight == 0) { rwHeight = 1; } var v5 = Math.ceil((this.__width - v3.left - v3.right - this.widthPadding) / colWidth); if (this.__hScrollPolicy == 'on' || v5 < colCount && this.__hScrollPolicy == 'auto') { if (this.hScroller == undefined || this.specialHScrollCase) { delete this.specialHScrollCase; this.hScroller = this.createObject('HScrollBar', 'hSB', 1001); this.hScroller.__set__lineScrollSize(20); this.hScroller.scrollHandler = this.scrollProxy; this.hScroller.__set__scrollPosition(this.__hPosition); this.scrollAreaChanged = true; } if (this.numberOfCols != colCount || this.columnWidth != colWidth || this.viewableColumns != v5 || this.scrollAreaChanged) { this.hScroller.setScrollProperties(v5, 0, colCount - v5); this.viewableColumns = v5; this.numberOfCols = colCount; this.columnWidth = colWidth; } } else { if ((this.__hScrollPolicy == 'auto' || this.__hScrollPolicy == 'off') && this.hScroller != undefined) { this.hScroller.removeMovieClip(); delete this.hScroller; this.scrollAreaChanged = true; } } if (this.heightPadding == undefined) { this.heightPadding = 0; } var v4 = Math.ceil((this.__height - v3.top - v3.bottom - this.heightPadding) / rwHeight); var v8 = (this.__height - v3.top - v3.bottom) % rwHeight != 0; if (this.__vScrollPolicy == 'on' || v4 < rwCount + v8 && this.__vScrollPolicy == 'auto') { if (this.vScroller == undefined) { this.vScroller = this.createObject('VScrollBar', 'vSB', 1002); this.vScroller.scrollHandler = this.scrollProxy; this.vScroller.__set__scrollPosition(this.__vPosition); this.scrollAreaChanged = true; this.rowH = 0; } if (this.rowC != rwCount || this.rowH != rwHeight || this.viewableRows + v8 != v4 + this.oldRndUp || this.scrollAreaChanged) { this.vScroller.setScrollProperties(v4, 0, rwCount - v4 + v8); this.viewableRows = v4; this.rowC = rwCount; this.rowH = rwHeight; this.oldRndUp = v8; } } else { if ((this.__vScrollPolicy == 'auto' || this.__vScrollPolicy == 'off') && this.vScroller != undefined) { this.vScroller.removeMovieClip(); delete this.vScroller; this.scrollAreaChanged = true; } } this.numberOfCols = colCount; this.columnWidth = colWidth; if (this.scrollAreaChanged) { this.doLayout(); var v2 = this.__viewMetrics; var v12 = (this.owner != undefined) ? this.owner : this; v12.layoutContent(v2.left, v2.top, this.columnWidth * this.numberOfCols - v2.left - v2.right, this.rowC * this.rowH, this.__width - v2.left - v2.right, this.__height - v2.top - v2.bottom); } if (!this.enabled) { this.setEnabled(false); } }; v2.getViewMetrics = function (Void) { var v2 = this.__viewMetrics; var v3 = this.border_mc.__get__borderMetrics(); v2.left = v3.left; v2.right = v3.right; if (this.vScroller != undefined) { v2.right += this.vScroller.minWidth; } v2.top = v3.top; if (this.hScroller == undefined && (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == true)) { this.hScroller = this.createObject('FHScrollBar', 'hSB', 1001); this.specialHScrollCase = true; } v2.bottom = v3.bottom; if (this.hScroller != undefined) { v2.bottom += this.hScroller.minHeight; } return v2; }; v2.doLayout = function (Void) { var v10 = this.__get__width(); var v8 = this.__get__height(); delete this.invLayout; this.__viewMetrics = this.getViewMetrics(); var v3 = this.__viewMetrics; var v2 = v3.left; var v9 = v3.right; var v5 = v3.top; var v11 = v3.bottom; var v7 = this.hScroller; var v6 = this.vScroller; v7.setSize(v10 - v2 - v9, v7.minHeight + 0); v7.move(v2, v8 - v11); v6.setSize(v6.minWidth + 0, v8 - v5 - v11); v6.move(v10 - v9, v5); var v4 = this.mask_mc; v4._width = v10 - v2 - v9; v4._height = v8 - v5 - v11; v4._x = v2; v4._y = v5; }; v2.createChild = function (id, name, props) { var v2 = super.createChild(id, name, props); return v2; }; v2.init = function (Void) { super.init(); this.__viewMetrics = new Object(); if (_global.__SVMouseWheelManager == undefined) { _global.__SVMouseWheelManager = new Object(); var v4 = _global.__SVMouseWheelManager; v4.onMouseWheel = this.__onMouseWheel; Mouse.addListener(v4); } }; v2.__onMouseWheel = function (delta, scrollTarget) { var v4 = scrollTarget; var v1; while (v4 != undefined) { if (v4 instanceof mx.core.ScrollView) { v1 = v4; false; } v4 = v4._parent; } if (v1 != undefined) { v4 = delta <= 0 ? 1 : -1; var v2 = v1.vScroller.lineScrollSize; if (v2 == undefined) { v2 = 0; } v2 = Math.max(Math.abs(delta), v2); var v3 = v1.vPosition + v2 * v4; v1.vPosition = Math.max(0, Math.min(v3, v1.maxVPosition)); v1.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': v1.vPosition}); } }; v2.createChildren = function (Void) { super.createChildren(); if (this.mask_mc == undefined) { this.mask_mc = this.createObject('BoundingBox', 'mask_mc', this.MASK_DEPTH); } this.mask_mc._visible = false; }; v2.invalidate = function (Void) { super.invalidate(); }; v2.draw = function (Void) { this.size(); }; v2.size = function (Void) { super.size(); }; v2.scrollProxy = function (docObj) { this._parent.onScroll(docObj); }; v2.onScroll = function (docObj) { var v3 = docObj.target; var v2 = v3.scrollPosition; if (v3 == this.vScroller) { var v4 = 'vertical'; var v5 = '__vPosition'; } else { var v4 = 'horizontal'; var v5 = '__hPosition'; } this[v5] = v2; this.dispatchEvent({'type': 'scroll', 'direction': v4, 'position': v2}); }; v2.setEnabled = function (v) { this.hScroller.enabled = v; this.vScroller.enabled = this.hScroller.enabled; }; v2.childLoaded = function (obj) { super.childLoaded(obj); obj.setMask(this.mask_mc); }; v1.symbolName = 'ScrollView'; v1.symbolOwner = mx.core.ScrollView; v1.version = '2.0.2.127'; v2.className = 'ScrollView'; v2.__vScrollPolicy = 'auto'; v2.__hScrollPolicy = 'off'; v2.__vPosition = 0; v2.__hPosition = 0; v2.numberOfCols = 0; v2.rowC = 0; v2.columnWidth = 1; v2.rowH = 0; v2.heightPadding = 0; v2.widthPadding = 0; v2.MASK_DEPTH = 10000; v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('hScrollPolicy', v2.__get__hScrollPolicy, v2.__set__hScrollPolicy); v2.addProperty('maxHPosition', v2.__get__maxHPosition, v2.__set__maxHPosition); v2.addProperty('maxVPosition', v2.__get__maxVPosition, function () {}); v2.addProperty('vPosition', v2.__get__vPosition, v2.__set__vPosition); v2.addProperty('vScrollPolicy', v2.__get__vScrollPolicy, v2.__set__vScrollPolicy); ASSetPropFlags(mx.core.ScrollView.prototype, null, 1); } #endinitclip } movieClip 206 __Packages.mx.controls.streamingmedia.Chrome { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.Chrome) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.Chrome = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.Chrome.prototype = v2; v2.init = function () { if (this.visible == null) { this.visible = true; } if (this.width != null && this.height != null) { this.draw(); } mx.controls.streamingmedia.Tracer.trace('Chrome.init: setting enabled to ' + this._parent.enabled); this.setEnabled(this._parent.enabled); }; v2.setSize = function (w, h) { this.width = w; this.height = h; }; v2.draw = function () { if (this.visible) { this._alpha = 100; } else { this._alpha = 0; } this._chromeEdge._width = this.width; this._chromeEdge._height = this.height; this._chromeEdge._x = 0; this._chromeEdge._y = 0; this._chromeHilite._width = this.width - 2; this._chromeHilite._x = 1; this._chromeHilite._y = 1; this._chromeFill._width = this.width - 2; this._chromeFill._height = this.height - 3; this._chromeFill._x = 1; this._chromeFill._y = 2; if (this.visible && this.showToggles) { this._toggleNW._visible = true; this._toggleSW._visible = true; this._toggleNE._visible = true; this._toggleSE._visible = true; this._toggleNW._x = 0; this._toggleNW._y = 0; this._toggleNE._x = this.width; this._toggleNE._y = 0; this._toggleSW._x = 0; this._toggleSW._y = this.height; this._toggleSE._x = this.width; this._toggleSE._y = this.height; } else { this._toggleNW._visible = false; this._toggleSW._visible = false; this._toggleNE._visible = false; this._toggleSE._visible = false; } }; v2.getAllToggles = function () { return [this._toggleNW, this._toggleNE, this._toggleSW, this._toggleSE]; }; v2.getOneToggle = function () { return this._toggleNE; }; v2.getEnabled = function () { return this._parent.enabled; }; v2.setEnabled = function (is) { mx.controls.streamingmedia.Tracer.trace('Chrome.setEnabled: ' + is); this._toggleNW.setEnabled(is); this._toggleNE.setEnabled(is); this._toggleSW.setEnabled(is); this._toggleSE.setEnabled(is); }; ASSetPropFlags(mx.controls.streamingmedia.Chrome.prototype, null, 1); } #endinitclip } movieClip 207 __Packages.mx.controls.Loader { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Loader) { var v1 = function () { super(); }; mx.controls.Loader = v1; var v2 = new mx.core.View(); mx.controls.Loader.prototype = v2; v2.init = function () { super.init(); }; v2.setSize = function (w, h, noEvent) { this._origWidth = w; this._origHeight = h; super.setSize(w, h, noEvent); if (_global.isLivePreview) { this.livePreview._width = this.__width - 1; this.livePreview._height = this.__height - 1; } }; v2.draw = function () { this.size(); }; v2.size = function () { super.size(); if (this.__scaleContent) { this.doScaleContent(); } else { this.doScaleLoader(); } }; v2.createChildren = function () { super.createChildren(); if (_global.isLivePreview) { this.createTextField('livePreview', -1000, 0, 0, 99, 99); this.livePreview.text = 'mx.controls.Loader'; this.livePreview.border = true; } if (this.__autoLoad) { this.load(); } }; v2.getAutoLoad = function () { return this.__autoLoad; }; v2.__get__autoLoad = function () { return this.getAutoLoad(); }; v2.setAutoLoad = function (b) { if (this.__autoLoad != b) { this.__autoLoad = b; if (this.__autoLoad && !this[mx.core.View.childNameBase + 0]._complete) { this.load(); } } }; v2.__set__autoLoad = function (b) { this.setAutoLoad(b); return this.__get__autoLoad(); }; v2.getBytesLoaded = function () { return this.__bytesLoaded; }; v2.__get__bytesLoaded = function () { return this.getBytesLoaded(); }; v2.getBytesTotal = function () { return this.__bytesTotal; }; v2.__get__bytesTotal = function () { return this.getBytesTotal(); }; v2.getContent = function () { return this.contentHolder; }; v2.__get__content = function () { return this.getContent(); }; v2.getContentPath = function () { return this.__contentPath; }; v2.__get__contentPath = function () { return this.getContentPath(); }; v2.setContentPath = function (url) { if (this.__contentPath != url) { this.__contentPath = url; if (this.childrenCreated) { if (this.__autoLoad) { this.load(); } } } }; v2.__set__contentPath = function (c) { this.setContentPath(c); return this.__get__contentPath(); }; v2.getPercentLoaded = function () { var v2 = 100 * (this.__bytesLoaded / this.__bytesTotal); if (isNaN(v2)) { v2 = 0; } return v2; }; v2.__get__percentLoaded = function () { return this.getPercentLoaded(); }; v2.__get__scaleContent = function () { return this.getScaleContent(); }; v2.getScaleContent = function () { return this.__scaleContent; }; v2.setScaleContent = function (b) { if (this.__scaleContent != b) { this.__scaleContent = b; if (this.__scaleContent) { this.doScaleContent(); } else { this.doScaleLoader(); } } }; v2.__set__scaleContent = function (b) { this.setScaleContent(b); return this.__get__scaleContent(); }; v2.load = function (url) { if (url != undefined) { this.__contentPath = url; } if (this[mx.core.View.childNameBase + 0] != undefined) { if (this[mx.core.View.childNameBase + 0]._complete) { this.setSize(this._origWidth, this._origHeight); } this.destroyChildAt(0); } if (this.__contentPath == undefined || this.__contentPath == '') { return undefined; } this.createChild(this.__contentPath, 'contentHolder'); }; v2.childLoaded = function (obj) { super.childLoaded(obj); obj._rotation = 0; this._origWidth = this.__width; this._origHeight = this.__height; if (this.__scaleContent) { this.doScaleContent(); } else { this.doScaleLoader(); } }; v2.dispatchEvent = function (obj) { if (obj.type == 'progress' || obj.type == 'complete') { obj.target = this; this.__bytesTotal = obj.total; this.__bytesLoaded = obj.current; } super.dispatchEvent(obj); }; v2.doScaleContent = function () { if (!this[mx.core.View.childNameBase + 0]._complete) { return undefined; } this.unScaleContent(); var v2 = this.border_mc.__get__borderMetrics(); var v7 = this._origWidth - v2.left - v2.right; var v6 = this._origHeight - v2.top - v2.bottom; var v9 = v2.left; var v8 = v2.top; var v5 = v7 / this.contentHolder._width; var v3 = v6 / this.contentHolder._height; var v4; if (v5 > v3) { v9 = v2.left + Math.floor((v7 - this.contentHolder._width * v3) / 2); v4 = v3; } else { v8 = v2.top + Math.floor((v6 - this.contentHolder._height * v5) / 2); v4 = v5; } v4 *= 100; this.contentHolder._yscale = v4; this.contentHolder._xscale = this.contentHolder._yscale; this.contentHolder._x = v9; this.contentHolder._y = v8; if (this.__width != this._origWidth || this.__height != this._origHeight) { this.setSize(this._origWidth, this._origHeight); } }; v2.doScaleLoader = function () { if (!this[mx.core.View.childNameBase + 0]._complete) { return undefined; } this.unScaleContent(); var v2 = this.border_mc.__get__borderMetrics(); var v4 = this.contentHolder._width + v2.left + v2.right; var v3 = this.contentHolder._height + v2.top + v2.bottom; if (this.__width != v4 || this.__height != v3) { this.setSize(v4, v3); } this.contentHolder._x = v2.left; this.contentHolder._y = v2.top; }; v2.unScaleContent = function () { this.contentHolder._yscale = 100; this.contentHolder._xscale = 100; this.contentHolder._y = 0; this.contentHolder._x = 0; }; v1.symbolName = 'Loader'; v1.symbolOwner = mx.controls.Loader; v1.version = '2.0.2.127'; v2.className = 'Loader'; v2.clipParameters = {'autoLoad': 1, 'scaleContent': 1, 'contentPath': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Loader.prototype.clipParameters, mx.core.View.prototype.clipParameters); v2.__autoLoad = true; v2.__bytesLoaded = undefined; v2.__bytesTotal = undefined; v2.__contentPath = undefined; v2.__scaleContent = true; v2.addProperty('autoLoad', v2.__get__autoLoad, v2.__set__autoLoad); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('content', v2.__get__content, function () {}); v2.addProperty('contentPath', v2.__get__contentPath, v2.__set__contentPath); v2.addProperty('percentLoaded', v2.__get__percentLoaded, function () {}); v2.addProperty('scaleContent', v2.__get__scaleContent, v2.__set__scaleContent); ASSetPropFlags(mx.controls.Loader.prototype, null, 1); } #endinitclip } movieClip 208 __Packages.mx.skins.ColoredSkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.ColoredSkinElement) { var v1 = function () {}; mx.skins.ColoredSkinElement = v1; var v2 = v1.prototype; v2.setColor = function (c) { if (c != undefined) { var v2 = new Color(this); v2.setRGB(c); } }; v2.draw = function (Void) { this.setColor(this.getStyle(this._color)); this.onEnterFrame = undefined; }; v2.invalidateStyle = function (Void) { this.onEnterFrame = this.draw; }; v1.setColorStyle = function (p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mx.skins.ColoredSkinElement.mixins.setColor; p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle; p.draw = mx.skins.ColoredSkinElement.mixins.draw; p.setColor(p.getStyle(colorStyle)); }; v1.mixins = new mx.skins.ColoredSkinElement(); ASSetPropFlags(mx.skins.ColoredSkinElement.prototype, null, 1); } #endinitclip } movieClip 209 __Packages.mx.core.ext.UIObjectExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIObjectExtensions) { var v1 = function () {}; mx.core.ext.UIObjectExtensions = v1; var v2 = v1.prototype; v1.addGeometry = function (tf, ui) { tf.addProperty('width', ui.__get__width, null); tf.addProperty('height', ui.__get__height, null); tf.addProperty('left', ui.__get__left, null); tf.addProperty('x', ui.__get__x, null); tf.addProperty('top', ui.__get__top, null); tf.addProperty('y', ui.__get__y, null); tf.addProperty('right', ui.__get__right, null); tf.addProperty('bottom', ui.__get__bottom, null); tf.addProperty('visible', ui.__get__visible, ui.__set__visible); }; v1.Extensions = function () { if (mx.core.ext.UIObjectExtensions.bExtended == true) { return true; } mx.core.ext.UIObjectExtensions.bExtended = true; var v6 = mx.core.UIObject.prototype; var v9 = mx.skins.SkinElement.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v9, v6); mx.events.UIEventDispatcher.initialize(v6); var v13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(v6); var v5 = MovieClip.prototype; v5.getTopLevel = v6.getTopLevel; v5.createLabel = v6.createLabel; v5.createObject = v6.createObject; v5.createClassObject = v6.createClassObject; v5.createEmptyObject = v6.createEmptyObject; v5.destroyObject = v6.destroyObject; _global.ASSetPropFlags(v5, 'getTopLevel', 1); _global.ASSetPropFlags(v5, 'createLabel', 1); _global.ASSetPropFlags(v5, 'createObject', 1); _global.ASSetPropFlags(v5, 'createClassObject', 1); _global.ASSetPropFlags(v5, 'createEmptyObject', 1); _global.ASSetPropFlags(v5, 'destroyObject', 1); v5.__getTextFormat = v6.__getTextFormat; v5._getTextFormat = v6._getTextFormat; v5.getStyleName = v6.getStyleName; v5.getStyle = v6.getStyle; _global.ASSetPropFlags(v5, '__getTextFormat', 1); _global.ASSetPropFlags(v5, '_getTextFormat', 1); _global.ASSetPropFlags(v5, 'getStyleName', 1); _global.ASSetPropFlags(v5, 'getStyle', 1); var v7 = TextField.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v7, v6); v7.addProperty('enabled', function () { return this.__enabled; }, function (x) { this.__enabled = x; this.invalidateStyle(); }); v7.move = v9.move; v7.setSize = v9.setSize; v7.invalidateStyle = function () { this.invalidateFlag = true; }; v7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var v2 = this._getTextFormat(); this.setTextFormat(v2); this.setNewTextFormat(v2); this.embedFonts = v2.embedFonts == true; if (this.__text != undefined) { if (this.text == '') { this.text = this.__text; } delete this.__text; } this._visible = true; } }; v7.setColor = function (color) { this.textColor = color; }; v7.getStyle = v5.getStyle; v7.__getTextFormat = v6.__getTextFormat; v7.setValue = function (v) { this.text = v; }; v7.getValue = function () { return this.text; }; v7.addProperty('value', function () { return this.getValue(); }, function (v) { this.setValue(v); }); v7._getTextFormat = function () { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2); this.stylecache.tf = v2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var v4 = this.getTextFormat(); this.enabledColor = v4.color; } var v3 = this.getStyle('disabledColor'); v2.color = v3; return v2; } if (this.enabledColor != undefined) { if (v2.color == undefined) { v2.color = this.enabledColor; } } return v2; }; v7.getPreferredWidth = function () { this.draw(); return this.textWidth + 4; }; v7.getPreferredHeight = function () { this.draw(); return this.textHeight + 4; }; TextFormat.prototype.getTextExtent2 = function (s) { var v3 = _root._getTextExtent; if (v3 == undefined) { _root.createTextField('_getTextExtent', -2, 0, 0, 1000, 100); v3 = _root._getTextExtent; v3._visible = false; } _root._getTextExtent.text = s; var v4 = this.align; this.align = 'left'; _root._getTextExtent.setTextFormat(this); this.align = v4; return {'width': v3.textWidth, 'height': v3.textHeight}; }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var v4 = _root; while (v4._parent != undefined) { v4 = v4._parent; } v4.addProperty('width', function () { return Stage.width; }, null); v4.addProperty('height', function () { return Stage.height; }, null); _global.ASSetPropFlags(v4, 'width', 1); _global.ASSetPropFlags(v4, 'height', 1); return true; }; v1.bExtended = false; v1.UIObjectExtended = mx.core.ext.UIObjectExtensions.Extensions(); v1.UIObjectDependency = mx.core.UIObject; v1.SkinElementDependency = mx.skins.SkinElement; v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher; ASSetPropFlags(mx.core.ext.UIObjectExtensions.prototype, null, 1); } #endinitclip } movieClip 210 __Packages.mx.managers.FocusManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.FocusManager) { var v1 = function () { super(); }; mx.managers.FocusManager = v1; var v2 = new mx.core.UIComponent(); mx.managers.FocusManager.prototype = v2; v2.__get__defaultPushButton = function () { return this.__defaultPushButton; }; v2.__set__defaultPushButton = function (x) { if (x != this.__defaultPushButton) { this.__defaultPushButton.__set__emphasized(false); this.__defaultPushButton = x; this.defPushButton = x; x.__set__emphasized(true); } return this.__get__defaultPushButton(); }; v2.getMaxTabIndex = function (o) { var v3 = 0; var v6; for (v6 in o) { var v2 = o[v6]; if (v2._parent == o) { if (v2.tabIndex != undefined) { if (v2.tabIndex > v3) { v3 = v2.tabIndex; } } if (v2.tabChildren == true) { var v4 = this.getMaxTabIndex(v2); if (v4 > v3) { v3 = v4; } } } } return v3; }; v2.getNextTabIndex = function (Void) { return this.getMaxTabIndex(this.form) + 1; }; v2.__get__nextTabIndex = function () { return this.getNextTabIndex(); }; v2.relocate = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.move(v2.x - 1, v2.y - 1); }; v2.init = function (Void) { super.init(); this.tabEnabled = false; this._height = 1; this._width = 1; this._y = -1; this._x = -1; this._alpha = 0; this._parent.focusManager = this; this._parent.tabChildren = true; this._parent.tabEnabled = false; this.form = this._parent; this._parent.addEventListener('hide', this); this._parent.addEventListener('reveal', this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(this.form); this.tabCapture.tabIndex = 0; this.watch('enabled', this.enabledChanged); Selection.addListener(this); this.lastMouse = new Object(); _global.ASSetPropFlags(this._parent, 'focusManager', 1); _global.ASSetPropFlags(this._parent, 'tabChildren', 1); _global.ASSetPropFlags(this._parent, 'tabEnabled', 1); }; v2.enabledChanged = function (id, oldValue, newValue) { this._visible = newValue; return newValue; }; v2.activate = function (Void) { Key.addListener(this); this._visible = true; this.activated = this._visible; if (this.lastFocus != undefined) { this.bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { this.doLater(this, 'restoreFocus'); } } }; v2.deactivate = function (Void) { Key.removeListener(this); this._visible = false; this.activated = this._visible; var v2 = this.getSelectionFocus(); var v3 = this.getActualFocus(v2); if (this.isOurFocus(v3)) { this.lastSelFocus = v2; this.lastFocus = v3; } this.cancelAllDoLaters(); }; v2.isOurFocus = function (o) { if (o.focusManager == this) { return true; } while (o != undefined) { if (o.focusManager != undefined) { return false; } if (o._parent == this._parent) { return true; } o = o._parent; } return false; }; v2.onSetFocus = function (o, n) { if (n == null) { if (this.activated) { this.bNeedFocus = true; } } else { var v2 = this.getFocus(); if (this.isOurFocus(v2)) { this.bNeedFocus = false; this.lastFocus = v2; this.lastSelFocus = n; } } }; v2.restoreFocus = function (Void) { var v2 = this.lastSelFocus.hscroll; if (v2 != undefined) { var v5 = this.lastSelFocus.scroll; var v4 = this.lastSelFocus.background; } this.lastFocus.setFocus(); var v3 = Selection; Selection.setSelection(v3.lastBeginIndex, v3.lastEndIndex); if (v2 != undefined) { this.lastSelFocus.scroll = v5; this.lastSelFocus.hscroll = v2; this.lastSelFocus.background = v4; } }; v2.onUnload = function (Void) { mx.managers.SystemManager.removeFocusManager(this.form); }; v2.setFocus = function (o) { if (o == null) { Selection.setFocus(null); } else { if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } }; v2.getActualFocus = function (o) { var v1 = o._parent; while (v1 != undefined) { if (v1.focusTextField != undefined) { while (v1.focusTextField != undefined) { o = v1; v1 = v1._parent; if (v1 == undefined) { return undefined; } if (v1.focusTextField == undefined) { return o; } } } if (v1.tabEnabled != true) { return o; } o = v1; v1 = o._parent; } return undefined; }; v2.getSelectionFocus = function () { var m = Selection.getFocus(); var o = eval(m); return o; }; v2.getFocus = function (Void) { var v2 = this.getSelectionFocus(); return this.getActualFocus(v2); }; v2.walkTree = function (p, index, groupName, dir, lookup, firstChild) { var v5 = true; var v11; for (v11 in p) { var v2 = p[v11]; if (v2._parent == p && v2.enabled != false && v2._visible != false && (v2.tabEnabled == true || v2.tabEnabled != false && (v2.onPress != undefined || v2.onRelease != undefined || v2.onReleaseOutside != undefined || v2.onDragOut != undefined || v2.onDragOver != undefined || v2.onRollOver != undefined || v2.onRollOut != undefined || v2 instanceof TextField))) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (v2 != this._lastTarget) { if ((v2.groupName != undefined || groupName != undefined) && v2.groupName == groupName) { continue; } if (v2 instanceof TextField && v2.selectable == false) { continue; } if (v5 || v2.groupName != undefined && v2.groupName == this._firstNode.groupName && v2.selected == true) { if (firstChild) { this._firstNode = v2; firstChild = false; } } if (this._nextIsNext == true) { if (v2.groupName != undefined && v2.groupName == this._nextNode.groupName && v2.selected == true || this._nextNode == undefined && (v2.groupName == undefined || v2.groupName != undefined && v2.groupName != groupName)) { this._nextNode = v2; } } if (v2.groupName == undefined || groupName != v2.groupName) { if (this._lastx.groupName != undefined && v2.groupName == this._lastx.groupName && this._lastx.selected == true) { } else { this._lastx = v2; } } } else { this._prevNode = this._lastx; this._needPrev = false; this._nextIsNext = true; } if (v2.tabIndex != undefined) { if (v2.tabIndex == index) { if (this._foundList[v2._name] == undefined) { if (this._needPrev) { this._prevObj = v2; this._needPrev = false; } this._nextObj = v2; } } if (dir && v2.tabIndex > index) { if (this._nextObj == undefined || this._nextObj.tabIndex > v2.tabIndex && (v2.groupName == undefined || this._nextObj.groupName == undefined || v2.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == v2.groupName && this._nextObj.selected != true && (v2.selected == true || this._nextObj.tabIndex > v2.tabIndex)) { this._nextObj = v2; } } else { if (!dir && v2.tabIndex < index) { if (this._prevObj == undefined || this._prevObj.tabIndex < v2.tabIndex && (v2.groupName == undefined || this._prevObj.groupName == undefined || v2.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == v2.groupName && this._prevObj.selected != true && (v2.selected == true || this._prevObj.tabIndex < v2.tabIndex)) { this._prevObj = v2; } } } if (this._firstObj == undefined || v2.tabIndex < this._firstObj.tabIndex && (v2.groupName == undefined || this._firstObj.groupName == undefined || v2.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == v2.groupName && this._firstObj.selected != true && (v2.selected == true || v2.tabIndex < this._firstObj.tabIndex)) { this._firstObj = v2; } if (this._lastObj == undefined || v2.tabIndex > this._lastObj.tabIndex && (v2.groupName == undefined || this._lastObj.groupName == undefined || v2.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == v2.groupName && this._lastObj.selected != true && (v2.selected == true || v2.tabIndex > this._lastObj.tabIndex)) { this._lastObj = v2; } } if (v2.tabChildren) { this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } v5 = false; } else { if (v2._parent == p && v2.tabChildren == true && v2._visible != false) { if (v2 == this._lastTarget) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (this._prevNode == undefined) { var v3 = this._lastx; var v7 = false; while (v3 != undefined) { if (v3 == v2) { v7 = true; break; } v3 = v3._parent; } if (v7 == false) { this._prevNode = this._lastx; } } this._needPrev = false; if (this._nextNode == undefined) { this._nextIsNext = true; } } else { if (!(v2.focusManager != undefined && v2.focusManager._parent == v2)) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } } v5 = false; } } } this._lastNode = this._lastx; if (lookup) { if (p._parent != undefined) { if (p != this._parent) { if (this._prevNode == undefined && dir) { this._needPrev = true; } else { if (this._nextNode == undefined && !dir) { this._nextIsNext = false; } } this._lastTarget = this._lastTarget._parent; this.getTabCandidate(p._parent, index, groupName, dir, true); } } } }; v2.getTabCandidate = function (o, index, groupName, dir, firstChild) { var v2; var v3 = true; if (o == this._parent) { v2 = o; v3 = false; } else { v2 = o._parent; if (v2 == undefined) { v2 = o; v3 = false; } } this.walkTree(v2, index, groupName, dir, v3, firstChild); }; v2.getTabCandidateFromChildren = function (o, index, groupName, dir, firstChild) { this.walkTree(o, index, groupName, dir, false, firstChild); }; v2.getFocusManagerFromObject = function (o) { while (o != undefined) { if (o.focusManager != undefined) { return o.focusManager; } o = o._parent; } return undefined; }; v2.tabHandler = function (Void) { this.bDrawFocus = true; var v5 = this.getSelectionFocus(); var v4 = this.getActualFocus(v5); if (v4 != v5) { v5 = v4; } if (this.getFocusManagerFromObject(v5) != this) { v5 == undefined; } if (v5 == undefined) { v5 = this.form; } else { if (v5.tabIndex != undefined) { if (this._foundList != undefined || this._foundList.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v5.tabIndex; } this._foundList[v5._name] = v5; } } var v3 = Key.isDown(16) != true; this._searchKey = getTimer(); this._needPrev = true; this._nextIsNext = false; this._lastx = undefined; this._firstNode = undefined; this._lastNode = undefined; this._nextNode = undefined; this._prevNode = undefined; this._firstObj = undefined; this._lastObj = undefined; this._nextObj = undefined; this._prevObj = undefined; this._lastTarget = v5; var v6 = v5; this.getTabCandidate(v6, (v5.tabIndex == undefined) ? 0 : v5.tabIndex, v5.groupName, v3, true); var v2; if (v3) { if (this._nextObj != undefined) { v2 = this._nextObj; } else { v2 = this._firstObj; } } else { if (this._prevObj != undefined) { v2 = this._prevObj; } else { v2 = this._lastObj; } } if (v2.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; this._foundList[v2._name] = v2; } else { if (this._foundList == undefined) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; } this._foundList[v2._name] = v2; } if (v2 == undefined) { if (v3 == false) { if (this._nextNode != undefined) { v2 = this._nextNode; } else { v2 = this._firstNode; } } else { if (this._prevNode == undefined || v5 == this.form) { v2 = this._lastNode; } else { v2 = this._prevNode; } } } if (v2 == undefined) { return undefined; } this.lastTabFocus = v2; this.setFocus(v2); if (v2.emphasized != undefined) { if (this.defPushButton != undefined) { v5 = this.defPushButton; this.defPushButton = v2; v5.emphasized = false; v2.emphasized = true; } } else { if (this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton) { v5 = this.defPushButton; this.defPushButton = this.__defaultPushButton; v5.emphasized = false; this.__defaultPushButton.__set__emphasized(true); } } }; v2.onKeyDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; if (this.defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (this.__get__defaultPushButton() != undefined) { this.doLater(this, 'sendDefaultPushButtonEvent'); } } } }; v2.sendDefaultPushButtonEvent = function (Void) { this.defPushButton.dispatchEvent({'type': 'click'}); }; v2.getMousedComponentFromChildren = function (x, y, o) { for (var v7 in o) { var v2 = o[v7]; if (v2._visible && v2.enabled && v2._parent == o && v2._searchKey != this._searchKey) { v2._searchKey = this._searchKey; if (v2.hitTest(x, y, true)) { if (v2.onPress != undefined || v2.onRelease != undefined) { return v2; } var v3 = this.getMousedComponentFromChildren(x, y, v2); if (v3 != undefined) { return v3; } return v2; } } } return undefined; }; v2.mouseActivate = function (Void) { if (!this.bNeedFocus) { return undefined; } this._searchKey = getTimer(); var v2 = this.getMousedComponentFromChildren(this.lastMouse.x, this.lastMouse.y, this.form); if (v2 instanceof mx.core.UIComponent) { return undefined; } v2 = this.findFocusFromObject(v2); if (v2 == this.lastFocus) { return undefined; } if (v2 == undefined) { this.doLater(this, 'restoreFocus'); return undefined; } var v3 = v2.hscroll; if (v3 != undefined) { var v6 = v2.scroll; var v5 = v2.background; } this.setFocus(v2); var v4 = Selection; Selection.setSelection(v4.lastBeginIndex, v4.lastEndIndex); if (v3 != undefined) { v2.scroll = v6; v2.hscroll = v3; v2.background = v5; } }; v2._onMouseDown = function (Void) { this.bDrawFocus = false; if (this.lastFocus != undefined) { this.lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var v3 = Selection; v3.lastBeginIndex = Selection.getBeginIndex(); v3.lastEndIndex = Selection.getEndIndex(); this.lastMouse.x = _root._xmouse; this.lastMouse.y = _root._ymouse; _root.localToGlobal(this.lastMouse); }; v2.onMouseUp = function (Void) { if (this._visible) { this.doLater(this, 'mouseActivate'); } }; v2.handleEvent = function (e) { if (e.type == 'reveal') { mx.managers.SystemManager.activate(this.form); } else { mx.managers.SystemManager.deactivate(this.form); } }; v1.enableFocusManagement = function () { if (!mx.managers.FocusManager.initialized) { mx.managers.FocusManager.initialized = true; Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } } }; v1.symbolName = 'FocusManager'; v1.symbolOwner = mx.managers.FocusManager; v1.version = '2.0.2.127'; v2.className = 'FocusManager'; v2.bNeedFocus = false; v2.bDrawFocus = false; v2.defaultPushButtonEnabled = true; v2.activated = true; v1.initialized = false; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v2.addProperty('defaultPushButton', v2.__get__defaultPushButton, v2.__set__defaultPushButton); v2.addProperty('nextTabIndex', v2.__get__nextTabIndex, function () {}); ASSetPropFlags(mx.managers.FocusManager.prototype, null, 1); } #endinitclip } movieClip 211 __Packages.mx.managers.OverlappedWindows { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.OverlappedWindows) { var v1 = function () {}; mx.managers.OverlappedWindows = v1; var v2 = v1.prototype; v1.checkIdle = function (Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({'type': 'idle'}); } else { ++mx.managers.SystemManager.idleFrames; } }; v1.__addEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); }; v1.__removeEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } }; v1.onMouseDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var v5 = _root; var v3; var v8 = _root._xmouse; var v7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var v6 = mx.managers.SystemManager.forms.length; var v4; v4 = 0; while (v4 < v6) { var v2 = mx.managers.SystemManager.forms[v4]; if (v2._visible) { if (v2.hitTest(v8, v7)) { if (v3 == undefined) { v3 = v2.getDepth(); v5 = v2; } else { if (v3 < v2.getDepth()) { v3 = v2.getDepth(); v5 = v2; } } } } ++v4; } if (v5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(v5); } } } var v9 = mx.managers.SystemManager.form; v9.focusManager._onMouseDown(); }; v1.onMouseMove = function (Void) { mx.managers.SystemManager.idleFrames = 0; }; v1.onMouseUp = function (Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; }; v1.activate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form != f && mx.managers.SystemManager.forms.length > 1) { var v1 = mx.managers.SystemManager.form; v1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.deactivate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form == f && mx.managers.SystemManager.forms.length > 1) { var v5 = mx.managers.SystemManager.form; v5.focusManager.deactivate(); var v3 = mx.managers.SystemManager.forms.length; var v1; var v2; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { v1 += 1; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } ++v1; } mx.managers.SystemManager.form = v2; break; } else { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } } ++v1; } v5 = mx.managers.SystemManager.form; v5.focusManager.activate(); } } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); }; v1.removeFocusManager = function (f) { var v3 = mx.managers.SystemManager.forms.length; var v1; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(v1, 1); return undefined; } ++v1; } }; v1.enableOverlappedWindows = function () { if (!mx.managers.OverlappedWindows.initialized) { mx.managers.OverlappedWindows.initialized = true; mx.managers.SystemManager.checkIdle = mx.managers.OverlappedWindows.checkIdle; mx.managers.SystemManager.__addEventListener = mx.managers.OverlappedWindows.__addEventListener; mx.managers.SystemManager.__removeEventListener = mx.managers.OverlappedWindows.__removeEventListener; mx.managers.SystemManager.onMouseDown = mx.managers.OverlappedWindows.onMouseDown; mx.managers.SystemManager.onMouseMove = mx.managers.OverlappedWindows.onMouseMove; mx.managers.SystemManager.onMouseUp = mx.managers.OverlappedWindows.onMouseUp; mx.managers.SystemManager.activate = mx.managers.OverlappedWindows.activate; mx.managers.SystemManager.deactivate = mx.managers.OverlappedWindows.deactivate; mx.managers.SystemManager.addFocusManager = mx.managers.OverlappedWindows.addFocusManager; mx.managers.SystemManager.removeFocusManager = mx.managers.OverlappedWindows.removeFocusManager; } }; v1.initialized = false; v1.SystemManagerDependency = mx.managers.SystemManager; ASSetPropFlags(mx.managers.OverlappedWindows.prototype, null, 1); } #endinitclip } movieClip 212 __Packages.mx.styles.CSSSetStyle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSSetStyle) { var v1 = function () {}; mx.styles.CSSSetStyle = v1; var v2 = v1.prototype; v2._setStyle = function (styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == 'color') { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } } _level0.changeTextStyleInChildren(styleProp); return undefined; } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v7 = mx.styles.StyleManager.colorNames.haloBlue; var v6 = mx.styles.StyleManager.colorNames.haloGreen; var v8 = mx.styles.StyleManager.colorNames.haloOrange; var v4 = {}; v4[v7] = 12188666; v4[v6] = 13500353; v4[v8] = 16766319; var v5 = {}; v5[v7] = 13958653; v5[v6] = 14942166; v5[v8] = 16772787; var v9 = v4[newValue]; var v10 = v5[newValue]; if (v9 == undefined) { v9 = newValue; } if (v10 == undefined) { v10 = newValue; } this.setStyle('selectionColor', v9); this.setStyle('rollOverColor', v10); } _level0.changeColorStyleInChildren(this.styleName, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } _level0.notifyStyleChangeInChildren(this.styleName, styleProp, newValue); } }; v2.changeTextStyleInChildren = function (styleProp) { var v4 = getTimer(); var v5; for (v5 in this) { var v2 = this[v5]; if (v2._parent == this) { if (v2.searchKey != v4) { if (v2.stylecache != undefined) { delete v2.stylecache.tf; delete v2.stylecache[styleProp]; } v2.invalidateStyle(styleProp); v2.changeTextStyleInChildren(styleProp); v2.searchKey = v4; } } } }; v2.changeColorStyleInChildren = function (sheetName, colorStyle, newValue) { var v6 = getTimer(); var v7; for (v7 in this) { var v2 = this[v7]; if (v2._parent == this) { if (v2.searchKey != v6) { if (v2.getStyleName() == sheetName || sheetName == undefined || sheetName == '_global') { if (v2.stylecache != undefined) { delete v2.stylecache[colorStyle]; } if (typeof v2._color == 'string') { if (v2._color == colorStyle) { var v4 = v2.getStyle(colorStyle); if (colorStyle == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = v4; } } v2.setColor(v4); } } else { if (v2._color[colorStyle] != undefined) { if (typeof v2 != 'movieclip') { v2._parent.invalidateStyle(); } else { v2.invalidateStyle(colorStyle); } } } } v2.changeColorStyleInChildren(sheetName, colorStyle, newValue); v2.searchKey = v6; } } } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { var v5 = getTimer(); var v6; for (v6 in this) { var v2 = this[v6]; if (v2._parent == this) { if (v2.searchKey != v5) { if (v2.styleName == sheetName || v2.styleName != undefined && typeof v2.styleName == 'movieclip' || sheetName == undefined) { if (v2.stylecache != undefined) { delete v2.stylecache[styleProp]; delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(styleProp); } v2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); v2.searchKey = v5; } } } }; v2.setStyle = function (styleProp, newValue) { if (this.stylecache != undefined) { delete this.stylecache[styleProp]; delete this.stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v10 = mx.styles.StyleManager.colorNames.haloBlue; var v9 = mx.styles.StyleManager.colorNames.haloGreen; var v11 = mx.styles.StyleManager.colorNames.haloOrange; var v6 = {}; v6[v10] = 12188666; v6[v9] = 13500353; v6[v11] = 16766319; var v7 = {}; v7[v10] = 13958653; v7[v9] = 14942166; v7[v11] = 16772787; var v12 = v6[newValue]; var v13 = v7[newValue]; if (v12 == undefined) { v12 = newValue; } if (v13 == undefined) { v13 = newValue; } this.setStyle('selectionColor', v12); this.setStyle('rollOverColor', v13); } if (typeof this._color == 'string') { if (this._color == styleProp) { if (styleProp == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = newValue; } } this.setColor(newValue); } } else { if (this._color[styleProp] != undefined) { this.invalidateStyle(styleProp); } } this.changeColorStyleInChildren(undefined, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } this.invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == 'styleName') { var v8; var v5 = newValue; if (styleProp == 'styleName') { v8 = (typeof newValue == 'string') ? _global.styles[newValue] : v5; v5 = v8.themeColor; if (v5 != undefined) { v8.selectionColor = v5; v8.rollOverColor = v8.selectionColor; } } this.notifyStyleChangeInChildren(undefined, styleProp, newValue); } }; v1.enableRunTimeCSS = function () {}; v1.classConstruct = function () { var v2 = MovieClip.prototype; var v3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = v3._setStyle; v2.changeTextStyleInChildren = v3.changeTextStyleInChildren; v2.changeColorStyleInChildren = v3.changeColorStyleInChildren; v2.notifyStyleChangeInChildren = v3.notifyStyleChangeInChildren; v2.setStyle = v3.setStyle; _global.ASSetPropFlags(v2, 'changeTextStyleInChildren', 1); _global.ASSetPropFlags(v2, 'changeColorStyleInChildren', 1); _global.ASSetPropFlags(v2, 'notifyStyleChangeInChildren', 1); _global.ASSetPropFlags(v2, 'setStyle', 1); var v4 = TextField.prototype; v4.setStyle = v2.setStyle; v4.changeTextStyleInChildren = v3.changeTextStyleInChildren; return true; }; v1.classConstructed = mx.styles.CSSSetStyle.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; ASSetPropFlags(mx.styles.CSSSetStyle.prototype, null, 1); } #endinitclip } movieClip 213 __Packages.mx.core.ext.UIComponentExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIComponentExtensions) { var v1 = function () {}; mx.core.ext.UIComponentExtensions = v1; var v2 = v1.prototype; v1.Extensions = function () { if (mx.core.ext.UIComponentExtensions.bExtended == true) { return true; } mx.core.ext.UIComponentExtensions.bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if ((this.getFocusManager()).bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); }; v1.bExtended = false; v1.UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions(); v1.UIComponentDependency = mx.core.UIComponent; v1.FocusManagerDependency = mx.managers.FocusManager; v1.OverlappedWindowsDependency = mx.managers.OverlappedWindows; ASSetPropFlags(mx.core.ext.UIComponentExtensions.prototype, null, 1); } #endinitclip } movieClip 214 __Packages.mx.events.LowLevelEvents { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.LowLevelEvents) { var v1 = function () {}; mx.events.LowLevelEvents = v1; var v2 = v1.prototype; v1.addMouseEvents = function (obj) { if (obj.refcntMouseEvents > 0) { ++obj.refcntMouseEvents; return undefined; } var v2 = mx.events.UIEventDispatcher._fEventDispatcher; obj.refcntMouseEvents = 1; obj._onPress = obj.onPress; obj.onPress = v2.onPress; obj._onRelease = obj.onRelease; obj.onRelease = v2.onRelease; obj._onReleaseOutside = obj.onReleaseOutside; obj.onReleaseOutside = v2.onReleaseOutside; obj._onRollOver = obj.onRollOver; obj.onRollOver = v2.onRollOver; obj._onRollOut = obj.onRollOut; obj.onRollOut = v2.onRollOut; obj._onDragOver = obj.onDragOver; obj.onDragOver = v2.onDragOver; obj._onDragOut = obj.onDragOut; obj.onDragOut = v2.onDragOut; }; v1.removeMouseEvents = function (obj) { if (obj.refcntMouseEvents > 1) { --obj.refcntMouseEvents; return undefined; } obj.refcntMouseEvents = 0; if (obj._onPress != undefined) { obj.onPress = obj._onPress; } else { delete obj.onPress; } if (obj._onRelease != undefined) { obj.onRelease = obj._onRelease; } else { delete obj.onRelease; } if (obj._onReleaseOutside != undefined) { obj.onReleaseOutside = obj._onReleaseOutside; } else { delete obj.onReleaseOutside; } if (obj._onRollOver != undefined) { obj.onRollOver = obj._onRollOver; } else { delete obj.onRollOver; } if (obj._onRollOut != undefined) { obj.onRollOut = obj._onRollOut; } else { delete obj.onRollOut; } if (obj._onDragOver != undefined) { obj.onDragOver = obj._onDragOver; } else { delete obj.onDragOver; } if (obj._onDragOut != undefined) { obj.onDragOut = obj._onDragOut; } else { delete obj.onDragOut; } if (obj._onMouseMove != undefined) { obj.onMouseMove = obj._onMouseMove; } else { delete obj.onMouseMove; } }; v1.addSomewhereEvents = function (obj) { if (obj.refcntSomewhereEvents > 0) { ++obj.refcntSomewhereEvents; return undefined; } var v2 = mx.events.UIEventDispatcher._fEventDispatcher; obj.refcntSomewhereEvents = 1; obj._onMouseDown = obj.onMouseDown; obj.onMouseDown = v2.onMouseDown; obj._onMouseUp = obj.onMouseUp; obj.onMouseUp = v2.onMouseUp; }; v1.removeSomewhereEvents = function (obj) { if (obj.refcntSomewhereEvents > 1) { --obj.refcntSomewhereEvents; return undefined; } obj.refcntSomewhereEvents = 0; if (obj._onMouseDown != undefined) { obj.onMouseDown = obj._onMouseDown; } else { delete obj.onMouseDown; } if (obj._onMouseUp != undefined) { obj.onMouseUp = obj._onMouseUp; } else { delete obj.onMouseUp; } }; v2.onMouseMove = function (Void) { this.dispatchEvent({'type': 'mouseMove'}); this._onMouseMove(); }; v2.onRollOver = function (Void) { this.dispatchEvent({'type': 'mouseOver'}); if (this.__q_mouseMove.length > 0) { this._onMouseMove = this.onMouseMove; var v2 = mx.events.UIEventDispatcher._fEventDispatcher; this.onMouseMove = v2.onMouseMove; } this._onRollOver(); }; v2.onRollOut = function (Void) { this.dispatchEvent({'type': 'mouseOut'}); if (this.__q_mouseMove.length > 0) { if (this._onMouseMove != undefined) { this.onMouseMove == this._onMouseMove; } else { delete this.onMouseMove; } } this._onRollOut(); }; v2.onPress = function (Void) { this.dispatchEvent({'type': 'mouseDown'}); this._onPress(); }; v2.onRelease = function (Void) { this.dispatchEvent({'type': 'mouseUp'}); this._onRelease(); }; v2.onReleaseOutside = function (Void) { this.dispatchEvent({'type': 'mouseUp'}); this._onReleaseOutside(); }; v2.onDragOver = function (Void) { this.dispatchEvent({'type': 'mouseOver'}); this._onDragOver(); }; v2.onDragOut = function (Void) { this.dispatchEvent({'type': 'mouseOut'}); this._onDragOut(); }; v2.onMouseDown = function (Void) { this.dispatchEvent({'type': 'mouseDownSomewhere'}); this._onMouseDown(); }; v2.onMouseUp = function (Void) { this.dispatchEvent({'type': 'mouseUpSomewhere'}); this._onMouseUp(); }; v1.enableLowLevelEvents = function () {}; v1.classConstruct = function () { var v1 = mx.events.UIEventDispatcher; var v4 = mx.events.LowLevelEvents; v1.lowLevelEvents.mouseEvents = ['addMouseEvents', 'removeMouseEvents']; v1.lowLevelEvents.somewhereEvents = ['addSomewhereEvents', 'removeSomewhereEvents']; v1.mouseEvents = v4.mouseEvents; v1.addMouseEvents = v4.addMouseEvents; v1.removeMouseEvents = v4.removeMouseEvents; v1.somewhereEvents = v4.somewhereEvents; v1.addSomewhereEvents = v4.addSomewhereEvents; v1.removeSomewhereEvents = v4.removeSomewhereEvents; if (v1._fEventDispatcher == undefined) { v1._fEventDispatcher = new mx.events.UIEventDispatcher(); } var v3 = v1._fEventDispatcher; var v2 = v4.prototype; v3.onPress = v2.onPress; v3.onRelease = v2.onRelease; v3.onReleaseOutside = v2.onReleaseOutside; v3.onRollOut = v2.onRollOut; v3.onRollOver = v2.onRollOver; v3.onDragOut = v2.onDragOut; v3.onDragOver = v2.onDragOver; v3.onMouseDown = v2.onMouseDown; v3.onMouseMove = v2.onMouseMove; v3.onMouseUp = v2.onMouseUp; return true; }; v1.mouseEvents = {'mouseMove': 1, 'mouseDown': 1, 'mouseUp': 1, 'mouseOver': 1, 'mouseOut': 1}; v1.somewhereEvents = {'mouseDownSomewhere': 1, 'mouseUpSomewhere': 1}; v1.classConstructed = mx.events.LowLevelEvents.classConstruct(); v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher; ASSetPropFlags(mx.events.LowLevelEvents.prototype, null, 1); } #endinitclip } movieClip 215 __Packages.mx.screens.Screen { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.screens) { _global.mx.screens = new Object(); } if (!_global.mx.screens.Screen) { var v1 = function () { super(); }; mx.screens.Screen = v1; var v2 = new mx.controls.Loader(); mx.screens.Screen.prototype = v2; v2.__get__indexInParent = function () { return this._indexInParent; }; v2.__get__numChildScreens = function () { return this._childScreens.length; }; v2.__get__parentIsScreen = function () { var v2 = this.__get__parentScreen() != null && (this.__get__parentScreen())._isScreen; return v2; }; v2.__get__parentScreen = function () { var v2 = this._parent; if (v2 == null) { return null; } else { if (v2._isScreen) { return v2; } else { return null; } } }; v2.__get__rootScreen = function () { var v2 = this; while (v2.__get__parentIsScreen()) { v2 = v2.parentScreen; } return v2; }; v2.__get__transitionManager = function () { return this.__transitionManager; }; v1.__get__currentFocusedScreen = function () { var curFocus; curFocus = _root.focusManager.getFocus(); if (!curFocus || curFocus == undefined) { curFocus = eval(Selection.getFocus()); } for (;;) { if (!(curFocus && !curFocus._isScreen)) break; curFocus = curFocus._parent; } if (curFocus == undefined) { return null; } else { return curFocus; } }; v2.getChildScreen = function (childIndex) { return this._childScreens[childIndex]; }; v2.createChild = function (className, instanceName, initProps) { var v4; this._childLoading = instanceName; return super.createChild(className, instanceName, initProps); }; v2.drawFocus = function () {}; v2.init = function () { mx.core.ext.UIObjectExtensions.Extensions(); mx.core.ext.UIComponentExtensions.Extensions(); mx.events.LowLevelEvents.enableLowLevelEvents(); this._childScreens = []; super.init(); this._loadExternalClass = mx.screens.Screen.symbolName; this.__set__scaleContent(false); mx.events.UIEventDispatcher.initialize(this); if (this._parent._childLoading == this._name) { } else { if (this.__get__parentIsScreen()) { this._parent.registerChildScreen(this); } } }; v2.registerChildScreen = function (scrn) { scrn._indexInParent = this._childScreens.push(scrn) - 1; }; v2.childLoaded = function (obj) { super.childLoaded(obj); var v4; var v5 = null; var v7 = obj._parent; for (v4 in obj) { if (typeof obj[v4] == 'movieclip' && obj[v4]._isScreen) { v5 = obj[v4]; break; } } if (v5._isScreen) { if (!this.__get__scaleContent()) { var v6 = new Object(); v6.x = obj.x; v6.y = obj.y; this.globalToLocal(v6); obj._x = v6.x; obj._y = v6.y; } else { var v6 = new Object(); v6.x = this.x; v6.y = this.y; this._parent.localToGlobal(v6); obj.globalToLocal(v6); v5._x = v6.x; v5._y = v6.y; } v5._indexInParent = v7._childScreens.push(v5) - 1; obj._isScreenContainer = true; obj._containedScreen = v5; } v7._childLoading = ''; }; v2.doScaleLoader = function () {}; v2.createChildren = function () { this.border_mc = new mx.skins.RectBorder(); this.border_mc.__borderMetrics = {'top': 0, 'left': 0, 'bottom': 0, 'right': 0}; super.createChildren(); }; v2.allTransitionsInDone = function () { this.dispatchEvent({'type': 'allTransitionsInDone', 'target': this}); }; v2.allTransitionsOutDone = function () { this.dispatchEvent({'type': 'allTransitionsOutDone', 'target': this}); }; v2.destroyChildAt = function (childIndex) { this._childScreens.splice(childIndex, 1); super.destroyChildAt(childIndex); }; v1.symbolName = 'Screen'; v1.symbolOwner = mx.screens.Screen; v2.className = 'Screen'; v2._isScreen = true; v2._indexInParent = 0; v2.__transitionManager = null; v2._childLoading = ''; v2.borderStyle = 'none'; v1.addProperty('currentFocusedScreen', v1.__get__currentFocusedScreen, function () {}); v2.addProperty('indexInParent', v2.__get__indexInParent, function () {}); v2.addProperty('numChildScreens', v2.__get__numChildScreens, function () {}); v2.addProperty('parentIsScreen', v2.__get__parentIsScreen, function () {}); v2.addProperty('parentScreen', v2.__get__parentScreen, function () {}); v2.addProperty('rootScreen', v2.__get__rootScreen, function () {}); v2.addProperty('transitionManager', v2.__get__transitionManager, function () {}); ASSetPropFlags(mx.screens.Screen.prototype, null, 1); } #endinitclip } movieClip 216 __Packages.mx.controls.streamingmedia.ScreenAccommodator { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.ScreenAccommodator) { var v1 = function (aContainee) { this.containee = aContainee; this.container = this.getContainingScreen(); if (this.container != null) { var v2 = this.container.__get__visible(); this.beforeInit = false; this.container.addEventListener('hide', this); this.container.addEventListener('reveal', this); if (!v2) { this.beforeInit = true; this.initId = setInterval(this, 'disableContainee', 50); } } }; mx.controls.streamingmedia.ScreenAccommodator = v1; var v2 = v1.prototype; v2.disableContainee = function () { if (this.initAction == 'nothing' || this.initAction == 'hide') { mx.controls.streamingmedia.Tracer.trace('ScreenAccommodator.disableContainee: disabling ' + this.containee); this.containee.enabled = false; } clearInterval(this.initId); this.beforeInit = false; }; v2.getContainingScreen = function () { var v4 = null; var v3 = this.containee._parent; for (;;) { if (!(v4 == null && v3 != _root)) break; if (v3 instanceof mx.screens.Screen) { v4 = v3; } else { v3 = v3._parent; } } return v4; }; v2.handleEvent = function (ev) { mx.controls.streamingmedia.Tracer.trace('ScreenAccommodator.handleEvent: ' + ev.type + ' for ' + this.containee); if (ev.type == 'hide') { if (this.beforeInit) { this.initAction = 'hide'; } else { if (this.containee.enabled) { this.wasAlreadyDisabled = false; this.containee.enabled = false; } else { this.wasAlreadyDisabled = true; } } } else { if (ev.type == 'reveal') { if (this.beforeInit) { this.initAction = 'reveal'; } else { if (!this.wasAlreadyDisabled && this.containee.visible) { this.containee.enabled = true; } } } } }; v2.initAction = 'nothing'; ASSetPropFlags(mx.controls.streamingmedia.ScreenAccommodator.prototype, null, 1); } #endinitclip } movieClip 217 __Packages.mx.controls.streamingmedia.IPlayer { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.IPlayer) { } #endinitclip } movieClip 218 __Packages.mx.controls.streamingmedia.AbstractPlayer { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.AbstractPlayer) { var v1 = function () { this._playing = false; }; mx.controls.streamingmedia.AbstractPlayer = v1; var v2 = v1.prototype; v2.isPlaying = function () { return this._playing; }; v2.__get__playing = function () { return this.isPlaying(); }; v2.setPlaying = function (flag) { this._playing = flag; }; v2.addProperty('playing', v2.__get__playing, function () {}); ASSetPropFlags(mx.controls.streamingmedia.AbstractPlayer.prototype, null, 1); } #endinitclip } movieClip 219 __Packages.mx.controls.streamingmedia.RTMPPlayer { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.RTMPPlayer) { var v1 = function (aMediaUrl, aMediaType, aVideoHolder, aTotalTime) { super(); if (aMediaUrl == null || aVideoHolder == null || aTotalTime == null) { } this._mediaUrl = aMediaUrl; this._mediaType = aMediaType; this._videoHolder = aVideoHolder; this._video = this._videoHolder._video; this._totalTime = aTotalTime; this._listeners = new Array(); this._connectTimeOutId = null; this.init(); }; mx.controls.streamingmedia.RTMPPlayer = v1; var v2 = new mx.controls.streamingmedia.AbstractPlayer(); mx.controls.streamingmedia.RTMPPlayer.prototype = v2; v2.init = function () { var v2; v2 = this._mediaUrl.indexOf(':'); if (v2 == -1) { } this._protocol = (this._mediaUrl.substring(0, v2)).toLowerCase(); if (this._protocol != 'rtmp' && this._protocol != 'rtmps' && this._protocol != 'rtmpt') { } var v3 = this._mediaUrl.substring(v2 + 1, this._mediaUrl.length); this._port = null; var v5 = v3.indexOf(':'); if (v5 != -1) { this._port = v3.substring(v5 + 1, v3.length); var v4 = this._port.indexOf('/'); if (v4 != -1 && v4 < v5) { this._port = this._port.substring(0, v4); } else { this._port = null; } } v2 = v3.lastIndexOf('/'); if (v2 == -1) { } this._appUrl = v3.substring(0, v2); this._streamName = v3.substring(v2 + 1, v3.length); if (this._streamName.length == 0) { } if (this._mediaType == mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE) { v2 = this._streamName.indexOf('.'); if (v2 != -1) { var v6; v6 = (this._streamName.substring(v2)).toLowerCase(); if (v6 == '.flv') { this._streamName = this._streamName.substring(0, v2); } } this._streamName = 'flv:' + this._streamName; } else { if (this._mediaType == mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE) { v2 = this._streamName.indexOf('.'); if (v2 != -1) { var v6 = (this._streamName.substring(v2)).toLowerCase(); if (v6 == '.mp3') { this._streamName = this._streamName.substring(0, v2); } } this._streamName = 'mp3:' + this._streamName; } else {} } this.setPlaying(false); this._isLoaded = false; this._isLoading = false; this._isPlayPending = false; this._nc_rtmp = null; this._nc_rtmpt = null; this._playHeadPos = 0; this.setSeeking(false); this._isPausing = false; this._sound = new Sound(this._videoHolder); this.setVolume(mx.controls.streamingmedia.StreamingMediaConstants.DEFAULT_VOLUME); }; v2.addListener = function (aListener) { this._listeners.push(aListener); }; v2.removeAllListeners = function () { this._listeners.length = 0; }; v2.broadcastEvent = function (status) { var v2 = 0; while (v2 < this._listeners.length) { this._listeners[v2].handlePlayer(this, status); ++v2; } }; v2.bufferIsFull = function () { this.broadcastEvent('start'); if (!this.isPlaying()) { this.pause(); } }; v2.resizeVideo = function () { this.broadcastEvent('resizeVideo'); if (!this.isPlaying()) { this.pause(); } }; v2.toString = function () { return 'RTMPPlayer: Playing ' + this.getMediaUrl(); }; v2.close = function () { this._ns.onStatus = null; this._ns.close(); this._ns = null; if (this._nc_rtmp != null) { this._nc_rtmp.onStatus = null; this._nc_rtmp.close(); this._nc_rtmp = null; } if (this._nc_rtmpt != null) { this._nc_rtmpt.onStatus = null; this._nc_rtmpt.close(); this._nc_rtmpt = null; } this._video.clear(); }; v2.load = function () { this._isLoading = true; this.actualConnect(); if (this._connectTimeOutId != null) { clearInterval(this._connectTimeOutId); this._connectTimeOutId = null; } this._connectTimeOutId = setInterval(this, 'onConnectTimeOut', 60000); }; v2.startStream = function (nc) { clearInterval(this._connectTimeOutId); this._connectTimeOutId = null; this._ns = new mx.controls.streamingmedia.PlayerNetStream(nc, this); if (this._mediaType == mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE) { this._video.attachVideo(this._ns); } this._video.attachVideo(this._ns); this._videoHeight = this._video.height; this._videoWidth = this._video.width; this._ns.setBufferTime(5); this._videoHolder.attachAudio(this._ns); this._ns.play(this._streamName, 0, -1); this._isLoading = false; this._isLoaded = true; this._videoHolder._visible = false; this.setPlaying(false); if (this._isPlayPending) { this.play(null); } else { this._isPausing = false; this.pause(); } }; v2.onConnectTimeOut = function () { clearInterval(this._connectTimeOutId); this._connectTimeOutId = null; if (this._nc_rtmpt != null) { this._nc_rtmpt.onStatus = null; this._nc_rtmpt.close(); this._nc_rtmpt = null; } if (this._nc_rtmp != null) { this._nc_rtmp.onStatus = null; this._nc_rtmp.close(); this._nc_rtmp = null; } this._isLoading = false; this._isLoaded = false; }; v2.actualConnect = function () { if (this._protocol == 'rtmp') { this._nc_rtmp = new mx.controls.streamingmedia.RTMPConnection(this); this._nc_rtmp.onStatus = function (info) { if (info.code == 'NetConnection.Connect.Success') { clearInterval(this._player._conn_Id); this._nc_rtmpt.onStatus = null; this._nc_rtmpt.close(); this._nc_rtmpt = null; this._player.startStream(this); this.popConnection(); } }; this._nc_rtmp.connect('rtmp:' + this._appUrl, this._streamName); } if (this._protocol == 'rtmpt' || this._protocol == 'rtmp' && this._port == null) { this._nc_rtmpt = new mx.controls.streamingmedia.RTMPConnection(this); this._nc_rtmpt.onStatus = function (info) { if (info.code == 'NetConnection.Connect.Success') { this._nc_rtmp.onStatus = null; this._nc_rtmp.close(); this._nc_rtmp = null; this._player.startStream(this); this.popConnection(); } }; if (this._protocol == 'rtmpt') { this._nc_rtmpt.connect('rtmpt:' + this._appUrl, this._streamName); } else { clearInterval(this._conn_Id); this._conn_Id = setInterval(this, 'connectRtmpt', 3000); } } }; v2.connectRtmpt = function () { clearInterval(this._conn_Id); this._nc_rtmpt.connect('rtmpt:' + this._appUrl, this._streamName); }; v2.play = function (startingPoint) { this.setPlaying(true); if (startingPoint != null) { this._playHeadPos = startingPoint; } if (this._isLoading || !this._isLoaded) { this._isPlayPending = true; if (!this._isLoaded) { this.load(); } return undefined; } this._isPlayPending = false; this._isPausing = false; this._ns.pause(false); this._ns.seek(this._playHeadPos); }; v2.pause = function () { if (!this._isPausing) { this._ns.pause(true); this._isPausing = true; this._isPlayPending = false; this._playHeadPos = this._ns.time; this.setPlaying(false); } }; v2.stop = function () { this.pause(); this.setPlayheadTime(0); }; v2.getPlayheadTime = function () { return this._ns.time; }; v2.setPlayheadTime = function (position) { this._playHeadPos = position; if (!this._isSeeking) { this._ns.seek(position); this.setSeeking(true); } if (mx.controls.streamingmedia.StreamingMediaConstants.SCRUBBING) { } else { if (!this.isPlaying()) { this._ns.pause(false); clearInterval(this._momentaryPlayId); this._momentaryPlayId = setInterval(this, 'doneUpdateFrame', 50); } } }; v2.doneUpdateFrame = function () { clearInterval(this._momentaryPlayId); this._momentaryPlayId = null; this._ns.pause(true); }; v2.playStopped = function () { this._statusCount = 2; clearInterval(this._checkCompleteId); this._checkCompleteId = setInterval(this, 'checkComplete', 50); }; v2.checkComplete = function () { if (this._ns.bufferLength <= 0.001) { if (this._statusCount <= 0) { clearInterval(this._checkCompleteId); this._checkCompleteId = null; this.pause(); this.broadcastEvent('complete'); } else { this._statusCount -= 1; } } }; v2.getMediaUrl = function () { return this._mediaUrl; }; v2.setMediaUrl = function (aUrl) { this._mediaUrl = aUrl; this._isLoaded = false; var v3 = this.isPlaying(); var v2 = this.getVolume(); this.close(); this.init(); this.setVolume(v2); if (v3) { this.play(0); } else { this.load(); } }; v2.getVolume = function () { return this._sound.getVolume(); }; v2.setVolume = function (aVol) { this._sound.setVolume(aVol); }; v2.getMediaBytesLoaded = function () { return this._ns.bytesLoaded; }; v2.getMediaBytesTotal = function () { return this._ns.bytesTotal; }; v2.getTotalTime = function () { return this._totalTime; }; v2.setTotalTime = function (aTime) { this._totalTime = aTime; }; v2.mediaLoaded = function () {}; v2.logError = function (error) {}; v2.isSizeSet = function () { if (this._video.width > 0 && this._video.height > 0) { return true; } return false; }; v2.isSizeChange = function () { if (this._video.width != this._videoWidth || this._video.height != this._videoHeight) { this._videoWidth = this._video.width; this._videoHeight = this._video.height; return true; } return false; }; v2.setSeeking = function (isSeeking) { this._isSeeking = isSeeking; }; ASSetPropFlags(mx.controls.streamingmedia.RTMPPlayer.prototype, null, 1); } #endinitclip } movieClip 220 __Packages.mx.controls.streamingmedia.RTMPConnection { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.RTMPConnection) { var v1 = function (player) { super(); this._player = player; }; mx.controls.streamingmedia.RTMPConnection = v1; var v2 = new NetConnection(); mx.controls.streamingmedia.RTMPConnection.prototype = v2; v2.onMetaData = function (info) { this._player.setTotalTime(info.duration); }; v2.connect = function (targetURI, streamName) { if (mx.controls.streamingmedia.RTMPConnection._connectFlag == true) { this.pushConnection(targetURI, streamName); return undefined; } mx.controls.streamingmedia.RTMPConnection._connectFlag = true; super.connect(targetURI, streamName); this.popConnection(); }; v2.pushConnection = function (targetURI, streamName) { this._targetURI = targetURI; this._streamName = streamName; mx.controls.streamingmedia.RTMPConnection._connectorQueue.push(this); }; v2.popConnection = function () { mx.controls.streamingmedia.RTMPConnection._connectFlag = false; if (mx.controls.streamingmedia.RTMPConnection._connectorQueue.length != 0) { var v1 = mx.controls.streamingmedia.RTMPConnection._connectorQueue.pop(); v1.connect(v1._targetURI, v1._streamName); } }; v1._connectorQueue = new Array(); ASSetPropFlags(mx.controls.streamingmedia.RTMPConnection.prototype, null, 1); } #endinitclip } movieClip 221 __Packages.mx.controls.streamingmedia.PlayerNetStream { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.PlayerNetStream) { var v1 = function (nc, aPlayer) { super(nc); this.setPlayer(aPlayer); }; mx.controls.streamingmedia.PlayerNetStream = v1; var v2 = new NetStream(); mx.controls.streamingmedia.PlayerNetStream.prototype = v2; v2.getPlayer = function () { return this._player; }; v2.__get__player = function () { return this.getPlayer(); }; v2.setPlayer = function (aPlayer) { this._player = aPlayer; }; v2.__set__player = function (aPlayer) { this.setPlayer(aPlayer); return this.__get__player(); }; v2.pause = function (shouldPause) { super.pause(shouldPause); }; v2.setBufferTime = function (time) { super.setBufferTime(time); }; v2.play = function (name, st, len, reset) { super.play(name, st, len, reset); }; v2.seek = function (offset) { super.seek(offset); }; v2.close = function () { super.close(); }; v2.attachAudio = function (theMicrophone) { super.attachAudio(theMicrophone); }; v2.attachVideo = function (theCamera, snapshotMilliseconds) { super.attachVideo(theCamera, snapshotMilliseconds); }; v2.onStatus = function (info) { var v2 = this.getPlayer(); switch (info.code) { case 'NetStream.Buffer.Full': break; case 'NetStream.Play.Start': this.detectedFirstBuffer = false; clearInterval(this.initId); this.checkSizeInterval = 10; this.initId = setInterval(this, 'detect', this.checkSizeInterval); break; case 'NetStream.Pause.Notify': break; case 'NetStream.Play.Stop': clearInterval(this.initId); v2.playStopped(); break; case 'NetStream.Play.Failed': case 'NetStream.Play.StreamNotFound': var v3; v3 = 'Error playing URL: ' + info.description; v2.logError(v3); break; case 'NetStream.Seek.Notify': v2.setSeeking(false); } }; v2.detect = function () { var v2 = this.getPlayer(); if (!this.detectedFirstBuffer && v2.isSizeSet()) { this.detectedFirstBuffer = true; v2.bufferIsFull(); } if (v2.isSizeChange()) { v2.resizeVideo(); } clearInterval(this.initId); this.checkSizeInterval *= 2; this.initId = setInterval(this, 'detect', this.checkSizeInterval); }; v2.onMetaData = function (info) { var v2 = this.getPlayer(); if (v2 instanceof mx.controls.streamingmedia.FLVPlayer) { var v3 = v2; v3.setTotalTime(info.duration); } else { if (v2 instanceof mx.controls.streamingmedia.RTMPPlayer) { var v4 = v2; v4.setTotalTime(info.duration); } } }; v2.addProperty('player', v2.__get__player, v2.__set__player); ASSetPropFlags(mx.controls.streamingmedia.PlayerNetStream.prototype, null, 1); } #endinitclip } movieClip 222 __Packages.mx.controls.streamingmedia.FLVPlayer { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.FLVPlayer) { var v1 = function (aMediaUrl, aVideoHolder, aTotalTime) { super(); if (aMediaUrl == null || aVideoHolder == null || aTotalTime == null) { } this._mediaUrl = aMediaUrl; this._videoHolder = aVideoHolder; this._video = this._videoHolder._video; this._totalTime = aTotalTime; this.init(); }; mx.controls.streamingmedia.FLVPlayer = v1; var v2 = new mx.controls.streamingmedia.AbstractPlayer(); mx.controls.streamingmedia.FLVPlayer.prototype = v2; v2.init = function () { this._listeners = new Array(); this.setPlaying(false); this._isLoaded = false; this._sound = new Sound(this._videoHolder); this.setVolume(mx.controls.streamingmedia.StreamingMediaConstants.DEFAULT_VOLUME); }; v2.addListener = function (aListener) { this._listeners.push(aListener); }; v2.removeAllListeners = function () { this._listeners.length = 0; }; v2.broadcastEvent = function (status) { var v2 = 0; while (v2 < this._listeners.length) { this._listeners[v2].handlePlayer(this, status); ++v2; } }; v2.bufferIsFull = function () { this.broadcastEvent('start'); if (!this.isPlaying()) { this.pause(); } }; v2.resizeVideo = function () { this.broadcastEvent('resizeVideo'); if (!this.isPlaying()) { this.pause(); } }; v2.toString = function () { return 'FLVPlayer: Playing ' + this.getMediaUrl(); }; v2.close = function () { this._ns.close(); this._nc.close(); this._video.clear(); }; v2.load = function () { this._nc = new NetConnection(); this._nc.connect(null); this._ns = new mx.controls.streamingmedia.PlayerNetStream(this._nc, this); this.assignBufferTime(); this._video.attachVideo(this._ns); this._videoHeight = this._video.height; this._videoWidth = this._video.width; this._videoHolder.attachAudio(this._ns); this._ns.play(this._mediaUrl); this._isLoaded = true; this._videoHolder._visible = false; this.setPlaying(false); }; v2.assignBufferTime = function () { var v2 = this._totalTime / 4; if (v2 < 0.1) { v2 = 0.1; } else { if (v2 > 5) { v2 = 5; } } this._ns.setBufferTime(v2); }; v2.play = function (startingPoint) { if (!this._isLoaded) { this.load(); } if (startingPoint != null) { this._ns.seek(startingPoint); } this._ns.pause(false); this.setPlaying(true); }; v2.pause = function () { this._ns.pause(true); this.setPlaying(false); }; v2.stop = function () { this.pause(); this.setPlayheadTime(0); }; v2.getPlayheadTime = function () { return this._ns.time; }; v2.setPlayheadTime = function (position) { this._ns.seek(position); if (mx.controls.streamingmedia.StreamingMediaConstants.SCRUBBING) { } else { if (!this.isPlaying()) { this._ns.pause(false); this._momentaryPlayId = setInterval(this, 'doneUpdateFrame', 50); } } }; v2.doneUpdateFrame = function () { clearInterval(this._momentaryPlayId); this._momentaryPlayId = null; this._ns.pause(true); }; v2.playStopped = function () { this.pause(); this.broadcastEvent('complete'); }; v2.getMediaUrl = function () { return this._mediaUrl; }; v2.setMediaUrl = function (aUrl) { this._mediaUrl = aUrl; this._isLoaded = false; if (this.isPlaying()) { this.play(0); } else { this.load(); } }; v2.getVolume = function () { return this._sound.getVolume(); }; v2.setVolume = function (aVol) { this._sound.setVolume(aVol); }; v2.getMediaBytesLoaded = function () { return this._ns.bytesLoaded; }; v2.getMediaBytesTotal = function () { return this._ns.bytesTotal; }; v2.getTotalTime = function () { return this._totalTime; }; v2.setTotalTime = function (aTime) { this._totalTime = aTime; this.assignBufferTime(); }; v2.mediaLoaded = function () {}; v2.logError = function (error) {}; v2.isSizeSet = function () { if (this._video.width > 0 && this._video.height > 0) { return true; } return false; }; v2.isSizeChange = function () { if (this._video.width != this._videoWidth || this._video.height != this._videoHeight) { this._videoWidth = this._video.width; this._videoHeight = this._video.height; return true; } return false; }; v2.setSeeking = function (isSeeking) {}; ASSetPropFlags(mx.controls.streamingmedia.FLVPlayer.prototype, null, 1); } #endinitclip } movieClip 223 __Packages.mx.controls.streamingmedia.MP3Player { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.MP3Player) { var v1 = function (aMediaUrl, aSoundHolder) { super(); if (aMediaUrl == null || aSoundHolder == null) { } this._mediaUrl = aMediaUrl; this._soundHolder = aSoundHolder; this.init(); }; mx.controls.streamingmedia.MP3Player = v1; var v2 = new mx.controls.streamingmedia.AbstractPlayer(); mx.controls.streamingmedia.MP3Player.prototype = v2; v2.willStop = function () { return this._positionOnLoad == mx.controls.streamingmedia.MP3Player.STOP; }; v2.init = function () { this._listeners = new Array(); this._sound = new Sound(this._soundHolder); this._volume = mx.controls.streamingmedia.StreamingMediaConstants.DEFAULT_VOLUME; var v4 = Object(this._sound); v4.player = this; this._sound.onSoundComplete = function () { var v3 = Object(this); var v2 = v3.player; v2.setPlaying(false); v2.broadcastEvent('complete'); }; this._recentPosition = 0; this._loaded = false; this._positionOnLoad = mx.controls.streamingmedia.MP3Player.STOP; this.setPlaying(false); }; v2.playStarted = function () { this._loaded = true; this.initializeVolume(); if (this._positionOnLoad == mx.controls.streamingmedia.MP3Player.STOP) { this.stop(); } else { this.play(this._positionOnLoad); } }; v2.addListener = function (aListener) { this._listeners.push(aListener); }; v2.removeAllListeners = function () { this._listeners.length = 0; }; v2.broadcastEvent = function (status) { var v2 = 0; while (v2 < this._listeners.length) { this._listeners[v2].handlePlayer(this, status); ++v2; } }; v2.load = function () { this.setPlaying(true); this._positionOnLoad = mx.controls.streamingmedia.MP3Player.STOP; this._sound.loadSound(this._mediaUrl, true); this._sound.setVolume(0); }; v2.play = function (startingPoint) { if (startingPoint == null) { startingPoint = this._recentPosition; } if (this._loaded) { this._sound.start(startingPoint); } else { this._positionOnLoad = startingPoint; this._sound.loadSound(this._mediaUrl, true); this._sound.setVolume(0); } this.setPlaying(true); }; v2.pause = function () { this._recentPosition = this._sound.position / 1000; this._sound.stop(); this.setPlaying(false); }; v2.stop = function () { this._recentPosition = 0; this._sound.stop(); this.setPlaying(false); }; v2.getPlayheadTime = function () { if (!this.isPlaying()) { var v2 = this._recentPosition; return v2; } var v2 = this._sound.position / 1000; return v2; }; v2.setPlayheadTime = function (aPosition) { this._recentPosition = aPosition; if (this.isPlaying()) { this.play(aPosition); } }; v2.getMediaUrl = function () { return this._mediaUrl; }; v2.setMediaUrl = function (aUrl) { this._loaded = false; this._mediaUrl = aUrl; if (this.isPlaying()) { this.play(0); } else { this._recentPosition = 0; this.load(); } }; v2.getVolume = function () { return this._volume; }; v2.setVolume = function (aVol) { this._sound.setVolume(aVol); this._volume = aVol; }; v2.initializeVolume = function () { this.setVolume(this._volume); }; v2.getMediaBytesLoaded = function () { return this._sound.getBytesLoaded(); }; v2.getMediaBytesTotal = function () { return this._sound.getBytesTotal(); }; v2.getTotalTime = function () { var v2 = this._sound.duration * this._sound.getBytesTotal() / this._sound.getBytesLoaded(); return v2 / 1000; }; v2.bufferIsFull = function () {}; v2.resizeVideo = function () {}; v2.playStopped = function () {}; v2.mediaLoaded = function () {}; v2.close = function () { this._sound.stop(); }; v2.logError = function (error) {}; v2.isSizeSet = function () { return false; }; v2.isSizeChange = function () { return false; }; v2.setSeeking = function (isSeeking) {}; v1.STOP = -1; ASSetPropFlags(mx.controls.streamingmedia.MP3Player.prototype, null, 1); } #endinitclip } movieClip 224 __Packages.mx.skins.halo.Defaults { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.Defaults) { var v1 = function () {}; mx.skins.halo.Defaults = v1; var v2 = v1.prototype; v1.setThemeDefaults = function () { var v2 = _global.style; v2.themeColor = 8453965; v2.disabledColor = 8684164; v2.modalTransparency = 0; v2.filled = true; v2.stroked = true; v2.strokeWidth = 1; v2.strokeColor = 0; v2.fillColor = 16777215; v2.repeatInterval = 35; v2.repeatDelay = 500; v2.fontFamily = '_sans'; v2.fontSize = 12; v2.selectionColor = 13500353; v2.rollOverColor = 14942166; v2.useRollOver = true; v2.backgroundDisabledColor = 14540253; v2.selectionDisabledColor = 14540253; v2.selectionDuration = 200; v2.openDuration = 250; v2.borderStyle = 'inset'; v2.color = 734012; v2.textSelectedColor = 24371; v2.textRollOverColor = 2831164; v2.textDisabledColor = 16777215; v2.vGridLines = true; v2.hGridLines = false; v2.vGridLineColor = 6710886; v2.hGridLineColor = 6710886; v2.headerColor = 15395562; v2.indentation = 17; v2.folderOpenIcon = 'TreeFolderOpen'; v2.folderClosedIcon = 'TreeFolderClosed'; v2.defaultLeafIcon = 'TreeNodeIcon'; v2.disclosureOpenIcon = 'TreeDisclosureOpen'; v2.disclosureClosedIcon = 'TreeDisclosureClosed'; v2.popupDuration = 150; v2.todayColor = 6710886; _global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ScrollSelectList; v2.backgroundColor = 16777215; v2.borderColor = 13290186; v2.borderStyle = 'inset'; _global.styles.ComboBox = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ComboBox; v2.borderStyle = 'inset'; _global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.NumericStepper; v2.textAlign = 'center'; _global.styles.RectBorder = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.RectBorder; v2.borderColor = 14015965; v2.buttonColor = 7305079; v2.shadowColor = 15658734; v2.highlightColor = 12897484; v2.shadowCapColor = 14015965; v2.borderCapColor = 9542041; var v4 = new Object(); v4.borderColor = 16711680; v4.buttonColor = 16711680; v4.shadowColor = 16711680; v4.highlightColor = 16711680; v4.shadowCapColor = 16711680; v4.borderCapColor = 16711680; mx.core.UIComponent.prototype.origBorderStyles = v4; var v3; _global.styles.TextInput = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TextInput; v3.backgroundColor = 16777215; v3.borderStyle = 'inset'; _global.styles.TextArea = _global.styles.TextInput; _global.styles.Window = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Window; v3.borderStyle = 'default'; _global.styles.windowStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.windowStyles; v3.fontWeight = 'bold'; _global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.dataGridStyles; v3.fontWeight = 'bold'; _global.styles.Alert = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Alert; v3.borderStyle = 'alert'; _global.styles.ScrollView = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ScrollView; v3.borderStyle = 'inset'; _global.styles.View = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.View; v3.borderStyle = 'none'; _global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ProgressBar; v3.color = 11187123; v3.fontWeight = 'bold'; _global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.AccordionHeader; v3.fontWeight = 'bold'; v3.fontSize = '11'; _global.styles.Accordion = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Accordion; v3.borderStyle = 'solid'; v3.backgroundColor = 16777215; v3.borderColor = 9081738; v3.headerHeight = 22; v3.marginBottom = -1; v3.marginTop = -1; v3.marginRight = -1; v3.marginLeft = -1; v3.verticalGap = -1; _global.styles.DateChooser = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.DateChooser; v3.borderColor = 9542041; v3.headerColor = 16777215; _global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.CalendarLayout; v3.fontSize = 10; v3.textAlign = 'right'; v3.color = 2831164; _global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.WeekDayStyle; v3.fontWeight = 'bold'; v3.fontSize = 11; v3.textAlign = 'center'; v3.color = 2831164; _global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TodayStyle; v3.color = 16777215; _global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.HeaderDateText; v3.fontSize = 12; v3.fontWeight = 'bold'; v3.textAlign = 'center'; }; v2.drawRoundRect = function (x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof r == 'object') { var v18 = r.br; var v16 = r.bl; var v15 = r.tl; var v10 = r.tr; } else { var v10 = r; var v15 = v10; var v16 = v15; var v18 = v16; } if (typeof c == 'object') { if (typeof alpha != 'object') { var v9 = [alpha, alpha]; } else { var v9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var v14 = h * 0.7; if (typeof rot != 'object') { var v11 = {'matrixType': 'box', 'x': -v14, 'y': v14, 'w': w * 2, 'h': h * 4, 'r': rot * 0.0174532925199433}; } else { var v11 = rot; } if (gradient == 'radial') { this.beginGradientFill('radial', c, v9, ratios, v11); } else { this.beginGradientFill('linear', c, v9, ratios, v11); } } else { if (c != undefined) { this.beginFill(c, alpha); } } r = v18; var v13 = r - r * Math.SQRT1_2; var v12 = r - r * 0.414213562373095; this.moveTo(x + w, y + h - r); this.lineTo(x + w, y + h - r); this.curveTo(x + w, y + h - v12, x + w - v13, y + h - v13); this.curveTo(x + w - v12, y + h, x + w - r, y + h); r = v16; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + r, y + h); this.curveTo(x + v12, y + h, x + v13, y + h - v13); this.curveTo(x, y + h - v12, x, y + h - r); r = v15; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x, y + r); this.curveTo(x, y + v12, x + v13, y + v13); this.curveTo(x + v12, y, x + r, y); r = v10; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + w - r, y); this.curveTo(x + w - v12, y, x + w - v13, y + v13); this.curveTo(x + w, y + v12, x + w, y + r); this.lineTo(x + w, y + h - r); if (c != undefined) { this.endFill(); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); mx.skins.halo.Defaults.setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.Defaults.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v1.UIObjectDependency = mx.core.UIObject; ASSetPropFlags(mx.skins.halo.Defaults.prototype, null, 1); } #endinitclip } movieClip 225 __Packages.mx.skins.halo.FocusRect { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.FocusRect) { var v1 = function () { super(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; mx.skins.halo.FocusRect = v1; var v2 = new mx.skins.SkinElement(); mx.skins.halo.FocusRect.prototype = v2; v2.draw = function (o) { o.adjustFocusRect(); }; v2.setSize = function (w, h, r, a, rectCol) { this._yscale = 100; this._xscale = 100; this.clear(); if (typeof r == 'object') { r.br = r.br > 2 ? r.br - 2 : 0; r.bl = r.bl > 2 ? r.bl - 2 : 0; r.tr = r.tr > 2 ? r.tr - 2 : 0; r.tl = r.tl > 2 ? r.tl - 2 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); r.br = r.br > 1 ? r.br + 1 : 0; r.bl = r.bl > 1 ? r.bl + 1 : 0; r.tr = r.tr > 1 ? r.tr + 1 : 0; r.tl = r.tl > 1 ? r.tl + 1 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(1, 1, w - 2, h - 2, r); r.br = r.br > 1 ? r.br - 1 : 0; r.bl = r.bl > 1 ? r.bl - 1 : 0; r.tr = r.tr > 1 ? r.tr - 1 : 0; r.tl = r.tl > 1 ? r.tl - 1 : 0; this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); } else { var v5; if (r != 0) { v5 = r - 2; } else { v5 = 0; } this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); this.beginFill(rectCol, a * 0.3); if (r != 0) { v5 = r - 2; r -= 1; } else { v5 = 0; r = 0; } this.drawRoundRect(1, 1, w - 2, h - 2, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); } }; v2.handleEvent = function (e) { if (e.type == 'unload') { this._visible = true; } else { if (e.type == 'resize') { e.target.adjustFocusRect(); } else { if (e.type == 'move') { e.target.adjustFocusRect(); } } } }; v1.classConstruct = function () { mx.core.UIComponent.prototype.drawFocus = function (focused) { var v2 = this._parent.focus_mc; if (!focused) { v2._visible = false; this.removeEventListener('unload', v2); this.removeEventListener('move', v2); this.removeEventListener('resize', v2); } else { if (v2 == undefined) { v2 = this._parent.createChildAtDepth('FocusRect', mx.managers.DepthManager.kTop); v2.tabEnabled = false; this._parent.focus_mc = v2; } else { v2._visible = true; } v2.draw(this); if (v2.getDepth() < this.getDepth()) { v2.setDepthAbove(this); } this.addEventListener('unload', v2); this.addEventListener('move', v2); this.addEventListener('resize', v2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var v2 = this.getStyle('themeColor'); if (v2 == undefined) { v2 = 8453965; } var v3 = this._parent.focus_mc; v3.setSize(this.width + 4, this.height + 4, 0, 100, v2); v3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.FocusRect.classConstruct(); v1.DefaultsDependency = mx.skins.halo.Defaults; v1.UIComponentDependency = mx.core.UIComponent; ASSetPropFlags(mx.skins.halo.FocusRect.prototype, null, 1); } #endinitclip } movieClip 226 __Packages.mx.controls.streamingmedia.ToEndButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.ToEndButton) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.ToEndButton = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.ToEndButton.prototype = v2; v2.init = function () { this.attachMovie('SimpleButton', 'toEndSimpleButton', 1, {'falseUpSkin': 'ToEnd-False-Up', 'falseOverSkin': 'ToEnd-False-Over', 'falseDownSkin': 'ToEnd-False-Down', 'falseDisabledSkin': 'ToEnd-False-Disabled'}); this.toEndSimpleButton.addEventListener('click', this); var v2 = this._parent._parent; v2.evaluateToEnd(); this.tabEnabled = false; this.tabChildren = true; }; v2.__get__enabled = function () { return this.toEndSimpleButton.enabled; }; v2.__set__enabled = function (is) { this.toEndSimpleButton.enabled = is; return this.__get__enabled(); }; v2.click = function (ev) { var v2 = this._parent._parent; mx.controls.streamingmedia.Tracer.trace('ToEndButton.click: playAtBeginning=false'); v2.playAtBeginning = false; v2.broadcastEvent('playheadChange', 100); }; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); ASSetPropFlags(mx.controls.streamingmedia.ToEndButton.prototype, null, 1); } #endinitclip } movieClip 227 __Packages.mx.controls.streamingmedia.ToStartButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.ToStartButton) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.ToStartButton = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.ToStartButton.prototype = v2; v2.init = function () { this.attachMovie('SimpleButton', 'toStartSimpleButton', 1, {'falseUpSkin': 'ToStart-False-Up', 'falseOverSkin': 'ToStart-False-Over', 'falseDownSkin': 'ToStart-False-Down', 'falseDisabledSkin': 'ToStart-False-Disabled'}); this.toStartSimpleButton.addEventListener('click', this); var v2 = this._parent._parent; this.__set__enabled(v2.enabled); this.tabEnabled = false; this.tabChildren = true; }; v2.__get__enabled = function () { return this.toStartSimpleButton.enabled; }; v2.__set__enabled = function (is) { this.toStartSimpleButton.enabled = is; return this.__get__enabled(); }; v2.click = function (ev) { this._parent._parent.broadcastEvent('playheadChange', 0); }; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); ASSetPropFlags(mx.controls.streamingmedia.ToStartButton.prototype, null, 1); } #endinitclip } movieClip 228 __Packages.mx.controls.Button { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Button) { var v1 = function () { super(); }; mx.controls.Button = v1; var v2 = new mx.controls.SimpleButton(); mx.controls.Button.prototype = v2; v2.init = function (Void) { super.init(); }; v2.draw = function () { if (this.initializing) { this.labelPath.visible = true; } super.draw(); if (this.initIcon != undefined) { this._setIcon(this.initIcon); } delete this.initIcon; }; v2.onRelease = function (Void) { super.onRelease(); }; v2.createChildren = function (Void) { super.createChildren(); }; v2.setSkin = function (tag, linkageName, initobj) { return super.setSkin(tag, linkageName, initobj); }; v2.viewSkin = function (varName) { var v3 = this.getState() ? 'true' : 'false'; v3 += this.enabled ? this.phase : 'disabled'; super.viewSkin(varName, {'styleName': this, 'borderStyle': v3}); }; v2.invalidateStyle = function (c) { this.labelPath.invalidateStyle(c); super.invalidateStyle(c); }; v2.setColor = function (c) { var v2 = 0; while (v2 < 8) { this[this.idNames[v2]].redraw(true); ++v2; } }; v2.setEnabled = function (enable) { this.labelPath.enabled = enable; super.setEnabled(enable); }; v2.calcSize = function (tag, ref) { if (this.__width == undefined || this.__height == undefined) { return undefined; } if (tag < 7) { ref.setSize(this.__width, this.__height, true); } }; v2.size = function (Void) { this.setState(this.getState()); this.setHitArea(this.__width, this.__height); var v3 = 0; while (v3 < 8) { var v4 = this.idNames[v3]; if (typeof this[v4] == 'movieclip') { this[v4].setSize(this.__width, this.__height, true); } ++v3; } super.size(); }; v2.__set__labelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); return this.__get__labelPlacement(); }; v2.__get__labelPlacement = function () { return this.__labelPlacement; }; v2.getLabelPlacement = function (Void) { return this.__labelPlacement; }; v2.setLabelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); }; v2.getBtnOffset = function (Void) { if (this.getState()) { var v2 = this.btnOffset; return v2; } if (this.phase == 'down') { v2 = this.btnOffset; return v2; } v2 = 0; return v2; }; v2.setView = function (offset) { var v16 = offset ? this.btnOffset : 0; var v12 = this.getLabelPlacement(); var v7 = 0; var v6 = 0; var v9 = 0; var v8 = 0; var v5 = 0; var v4 = 0; var v3 = this.labelPath; var v2 = this.iconName; var v15 = v3.textWidth; var v14 = v3.textHeight; var v10 = this.__width - this.borderW - this.borderW; var v11 = this.__height - this.borderW - this.borderW; if (v2 != undefined) { v7 = v2._width; v6 = v2._height; } if (v12 == 'left' || v12 == 'right') { if (v3 != undefined) { v9 = Math.min(v10 - v7, v15 + 5); v3._width = v9; v8 = Math.min(v11, v14 + 5); v3._height = v8; } if (v12 == 'right') { v5 = v7; if (this.centerContent) { v5 += (v10 - v9 - v7) / 2; } v2._x = v5 - v7; } else { v5 = v10 - v9 - v7; if (this.centerContent) { v5 /= 2; } v2._x = v5 + v9; } v4 = 0; v2._y = v4; if (this.centerContent) { v2._y = (v11 - v6) / 2; v4 = (v11 - v8) / 2; } if (!this.centerContent) { v2._y += Math.max(0, (v8 - v6) / 2); } } else { if (v3 != undefined) { v9 = Math.min(v10, v15 + 5); v3._width = v9; v8 = Math.min(v11 - v6, v14 + 5); v3._height = v8; } v5 = (v10 - v9) / 2; v2._x = (v10 - v7) / 2; if (v12 == 'top') { v4 = v11 - v8 - v6; if (this.centerContent) { v4 /= 2; } v2._y = v4 + v8; } else { v4 = v6; if (this.centerContent) { v4 += (v11 - v8 - v6) / 2; } v2._y = v4 - v6; } } var v13 = this.borderW + v16; v3._x = v5 + v13; v3._y = v4 + v13; v2._x += v13; v2._y += v13; }; v2.__set__label = function (lbl) { this.setLabel(lbl); return this.__get__label(); }; v2.setLabel = function (label) { if (label == '') { this.labelPath.removeTextField(); this.refresh(); return undefined; } if (this.labelPath == undefined) { var v2 = this.createLabel('labelPath', 200, label); v2._width = v2.textWidth + 5; v2._height = v2.textHeight + 5; if (this.initializing) { v2.visible = false; } } else { delete this.labelPath.__text; this.labelPath.text = label; this.refresh(); } }; v2.getLabel = function (Void) { return (this.labelPath.__text != undefined) ? this.labelPath.__text : this.labelPath.text; }; v2.__get__label = function () { return this.getLabel(); }; v2._getIcon = function (Void) { return this._iconLinkageName; }; v2.__get__icon = function () { if (this.initializing) { return this.initIcon; } return this._iconLinkageName; }; v2._setIcon = function (linkage) { if (this.initializing) { if (linkage == '') { return undefined; } this.initIcon = linkage; } else { if (linkage == '') { this.removeIcons(); return undefined; } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); this._iconLinkageName = linkage; this.refresh(); } }; v2.__set__icon = function (linkage) { this._setIcon(linkage); return this.__get__icon(); }; v2.setHitArea = function (w, h) { if (this.hitArea_mc == undefined) { this.createEmptyObject('hitArea_mc', 100); } var v2 = this.hitArea_mc; v2.clear(); v2.beginFill(16711680); v2.drawRect(0, 0, w, h); v2.endFill(); v2.setVisible(false); }; v1.symbolName = 'Button'; v1.symbolOwner = mx.controls.Button; v2.className = 'Button'; v1.version = '2.0.2.127'; v2.btnOffset = 0; v2._color = 'buttonColor'; v2.__label = 'default value'; v2.__labelPlacement = 'right'; v2.falseUpSkin = 'ButtonSkin'; v2.falseDownSkin = 'ButtonSkin'; v2.falseOverSkin = 'ButtonSkin'; v2.falseDisabledSkin = 'ButtonSkin'; v2.trueUpSkin = 'ButtonSkin'; v2.trueDownSkin = 'ButtonSkin'; v2.trueOverSkin = 'ButtonSkin'; v2.trueDisabledSkin = 'ButtonSkin'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.clipParameters = {'labelPlacement': 1, 'icon': 1, 'toggle': 1, 'selected': 1, 'label': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); v2.centerContent = true; v2.borderW = 1; v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('label', v2.__get__label, v2.__set__label); v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement); ASSetPropFlags(mx.controls.Button.prototype, null, 1); } #endinitclip } movieClip 229 __Packages.mx.controls.streamingmedia.PlayPauseButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.PlayPauseButton) { var v1 = function () { super(); this.init(); }; mx.controls.streamingmedia.PlayPauseButton = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.PlayPauseButton.prototype = v2; v2.init = function () { this._controller = this._parent._parent; this.attachMovie('Button', '_playPauseButton', 1); this._playPauseButton.setSize(50, 22); this._playPauseButton._x = 0; this._playPauseButton._y = 0; this._playPauseButton.addEventListener('click', this); this._isPlaying = !this._controller.isPlaying(); this.__set__enabled(this._controller.enabled); this.tabEnabled = false; this.tabChildren = true; }; v2.showPlayButton = function () { mx.controls.streamingmedia.Tracer.trace('PlayPauseButton.showPlayButton'); this._isPlaying = true; this.assignIcon(); }; v2.showPauseButton = function () { mx.controls.streamingmedia.Tracer.trace('PlayPauseButton.showPauseButton'); this._isPlaying = false; this.assignIcon(); }; v2.__get__enabled = function () { return this._playPauseButton.enabled; }; v2.__set__enabled = function (is) { this._playPauseButton.enabled = is; this.assignIcon(); return this.__get__enabled(); }; v2.assignIcon = function () { var v3 = this.__get__enabled(); var v5 = this._isPlaying; mx.controls.streamingmedia.Tracer.trace('PlayPauseButton.assignIcon: start: enabled=' + v3 + ', play=' + v5); var v2 = ''; if (v5) { v2 = v3 ? 'icon.play' : 'icon.play-disabled'; } else { v2 = v3 ? 'icon.pause' : 'icon.pause-disabled'; } mx.controls.streamingmedia.Tracer.trace('PlayPauseButton.assignIcon: icon=' + v2); var v4 = this._playPauseButton.enabled; if (!v4) { this._playPauseButton.enabled = true; } this._playPauseButton.__set__icon(v2); if (!v4) { this._playPauseButton.enabled = false; } mx.controls.streamingmedia.Tracer.trace('PlayPauseButton.assignIcon: done'); }; v2.click = function (ev) { if (this._isPlaying) { this.playClick(); } else { this.pauseClick(); } }; v2.playClick = function () { var v2 = this._controller; mx.controls.streamingmedia.Tracer.trace('PlayButton.click: playAtBeginning=' + v2.playAtBeginning); if (v2.playAtBeginning) { v2.broadcastEvent('playheadChange', 0); mx.controls.streamingmedia.Tracer.trace('PlayButton.click: playAtBeginning=false'); v2.playAtBeginning = false; } v2.broadcastEvent('click', 'play'); v2.setPlaying(true); }; v2.pauseClick = function () { var v2 = this._controller; v2.broadcastEvent('click', 'pause'); v2.setPlaying(false); }; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); ASSetPropFlags(mx.controls.streamingmedia.PlayPauseButton.prototype, null, 1); } #endinitclip } movieClip 230 __Packages.mx.skins.halo.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.RectBorder) { var v1 = function () { super(); }; mx.skins.halo.RectBorder = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.RectBorder.prototype = v2; v2.init = function (Void) { this.borderWidths.default = 3; super.init(); }; v2.getBorderMetrics = function (Void) { if (this.offset == undefined) { var v3 = this.getStyle(this.borderStyleName); this.offset = this.borderWidths[v3]; } if (this.getStyle(this.borderStyleName) == 'default' || this.getStyle(this.borderStyleName) == 'alert') { this.__borderMetrics = {'left': 3, 'top': 1, 'right': 3, 'bottom': 3}; return this.__borderMetrics; } return super.getBorderMetrics(); }; v2.drawBorder = function (Void) { var v6 = _global.styles[this.className]; if (v6 == undefined) { v6 = _global.styles.RectBorder; } var v5 = this.getStyle(this.borderStyleName); var v7 = this.getStyle(this.borderColorName); if (v7 == undefined) { v7 = v6[this.borderColorName]; } var v8 = this.getStyle(this.backgroundColorName); if (v8 == undefined) { v8 = v6[this.backgroundColorName]; } var v16 = this.getStyle('backgroundImage'); if (v5 != 'none') { var v14 = this.getStyle(this.shadowColorName); if (v14 == undefined) { v14 = v6[this.shadowColorName]; } var v13 = this.getStyle(this.highlightColorName); if (v13 == undefined) { v13 = v6[this.highlightColorName]; } var v12 = this.getStyle(this.buttonColorName); if (v12 == undefined) { v12 = v6[this.buttonColorName]; } var v11 = this.getStyle(this.borderCapColorName); if (v11 == undefined) { v11 = v6[this.borderCapColorName]; } var v10 = this.getStyle(this.shadowCapColorName); if (v10 == undefined) { v10 = v6[this.shadowCapColorName]; } } this.offset = this.borderWidths[v5]; var v9 = this.offset; var v3 = this.__get__width(); var v4 = this.__get__height(); this.clear(); this._color = undefined; if (v5 == 'none') { } else { if (v5 == 'inset') { this._color = this.colorList; this.draw3dBorder(v11, v12, v7, v13, v14, v10); } else { if (v5 == 'outset') { this._color = this.colorList; this.draw3dBorder(v11, v7, v12, v14, v13, v10); } else { if (v5 == 'alert') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(0, 5, v3, v4 - 5, 5, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, 4, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, v15, 50); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, 2, 16777215, 100); } else { if (v5 == 'default') { this.drawRoundRect(0, 5, v3, v4 - 5, {'tl': 5, 'tr': 5, 'br': 0, 'bl': 0}, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, {'tl': 4, 'tr': 4, 'br': 0, 'bl': 0}, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, {'tl': 3, 'tr': 3, 'br': 0, 'bl': 0}, [12897484, 11844796], 100, 0, 'radial'); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, {'tl': 2, 'tr': 2, 'br': 0, 'bl': 0}, 16777215, 100); } else { if (v5 == 'dropDown') { this.drawRoundRect(0, 0, v3 + 1, v4, {'tl': 4, 'tr': 0, 'br': 0, 'bl': 4}, [13290186, 7895160], 100, -10, 'linear'); this.drawRoundRect(1, 1, v3 - 1, v4 - 2, {'tl': 3, 'tr': 0, 'br': 0, 'bl': 3}, 16777215, 100); } else { if (v5 == 'menuBorder') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(4, 4, v3 - 2, v4 - 3, 0, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(4, 4, v3 - 1, v4 - 2, 0, 6184542, 10); this.drawRoundRect(0, 0, v3 + 1, v4, 0, [0, 14342874], 100, 250, 'linear'); this.drawRoundRect(0, 0, v3 + 1, v4, 0, v15, 50); this.drawRoundRect(2, 2, v3 - 3, v4 - 4, 0, 16777215, 100); } else { if (v5 == 'comboNonEdit') { } else { this.beginFill(v7); this.drawRect(0, 0, v3, v4); this.drawRect(1, 1, v3 - 1, v4 - 1); this.endFill(); this._color = this.borderColorName; } } } } } } } } if (v8 != undefined) { this.beginFill(v8); this.drawRect(v9, v9, this.__get__width() - v9, this.__get__height() - v9); this.endFill(); } }; v2.draw3dBorder = function (c1, c2, c3, c4, c5, c6) { var v3 = this.__get__width(); var v2 = this.__get__height(); this.beginFill(c1); this.drawRect(0, 0, v3, v2); this.drawRect(1, 0, v3 - 1, v2); this.endFill(); this.beginFill(c2); this.drawRect(1, 0, v3 - 1, 1); this.endFill(); this.beginFill(c3); this.drawRect(1, v2 - 1, v3 - 1, v2); this.endFill(); this.beginFill(c4); this.drawRect(1, 1, v3 - 1, 2); this.endFill(); this.beginFill(c5); this.drawRect(1, v2 - 2, v3 - 1, v2 - 1); this.endFill(); this.beginFill(c6); this.drawRect(1, 2, v3 - 1, v2 - 2); this.drawRect(2, 2, v3 - 2, v2 - 2); this.endFill(); }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return true; }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.halo.RectBorder; v1.version = '2.0.2.127'; v2.borderCapColorName = 'borderCapColor'; v2.shadowCapColorName = 'shadowCapColor'; v2.colorList = {'highlightColor': 0, 'borderColor': 0, 'buttonColor': 0, 'shadowColor': 0, 'borderCapColor': 0, 'shadowCapColor': 0}; v2.borderWidths = {'none': 0, 'solid': 1, 'inset': 2, 'outset': 2, 'alert': 3, 'dropDown': 2, 'menuBorder': 2, 'comboNonEdit': 2}; v1.classConstructed = mx.skins.halo.RectBorder.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.RectBorder.prototype, null, 1); } #endinitclip } movieClip 231 __Packages.mx.skins.halo.ButtonSkin { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.ButtonSkin) { var v1 = function () { super(); }; mx.skins.halo.ButtonSkin = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.ButtonSkin.prototype = v2; v2.init = function () { super.init(); }; v2.size = function () { this.drawHaloRect(this.__get__width(), this.__get__height()); }; v2.drawHaloRect = function (w, h) { var v6 = this.getStyle('borderStyle'); var v4 = this.getStyle('themeColor'); var v5 = this._parent.emphasized; this.clear(); switch (v6) { case 'falseup': if (v5) { this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 75); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 75); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { this.drawRoundRect(0, 0, w, h, 5, 9542041, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, 'radial'); this.drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, 'radial'); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case 'falsedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'falserollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 50); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'falsedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case 'trueup': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case 'truedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'truerollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 40); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'truedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return true; }; v1.symbolName = 'ButtonSkin'; v1.symbolOwner = mx.skins.halo.ButtonSkin; v2.className = 'ButtonSkin'; v2.backgroundColorName = 'buttonColor'; v1.classConstructed = mx.skins.halo.ButtonSkin.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.ButtonSkin.prototype, null, 1); } #endinitclip } movieClip 232 __Packages.mx.controls.streamingmedia.HMiniPlayBarTray { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.HMiniPlayBarTray) { var v1 = function () { super(); }; mx.controls.streamingmedia.HMiniPlayBarTray = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.HMiniPlayBarTray.prototype = v2; v2.setWidth = function (aWidth) { this._middle._x = this._left._width; this._middle._width = aWidth - this._left._width - this._right._width; this._right._x = this._middle._x + this._middle._width; }; v2.getHeight = function () { return this._left._height; }; ASSetPropFlags(mx.controls.streamingmedia.HMiniPlayBarTray.prototype, null, 1); } #endinitclip } movieClip 233 __Packages.mx.controls.streamingmedia.HPlayBarTray { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.HPlayBarTray) { var v1 = function () { super(); }; mx.controls.streamingmedia.HPlayBarTray = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.HPlayBarTray.prototype = v2; v2.setWidth = function (aWidth) { this._middle._x = this._left._width; this._middle._width = aWidth - this._left._width - this._right._width; this._right._x = this._middle._x + this._middle._width; }; ASSetPropFlags(mx.controls.streamingmedia.HPlayBarTray.prototype, null, 1); } #endinitclip } movieClip 234 __Packages.mx.controls.streamingmedia.VMiniPlayBarTray { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.VMiniPlayBarTray) { var v1 = function () { super(); }; mx.controls.streamingmedia.VMiniPlayBarTray = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.VMiniPlayBarTray.prototype = v2; v2.getHeight = function () { return this._bottom._y + this._bottom._height; }; v2.setHeight = function (aHeight) { this._middle._y = this._top._height; this._middle._height = aHeight - this._top._height - this._bottom._height; this._bottom._y = this._middle._y + this._middle._height; }; ASSetPropFlags(mx.controls.streamingmedia.VMiniPlayBarTray.prototype, null, 1); } #endinitclip } movieClip 235 __Packages.mx.controls.streamingmedia.VPlayBarTray { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.streamingmedia) { _global.mx.controls.streamingmedia = new Object(); } if (!_global.mx.controls.streamingmedia.VPlayBarTray) { var v1 = function () { super(); }; mx.controls.streamingmedia.VPlayBarTray = v1; var v2 = new MovieClip(); mx.controls.streamingmedia.VPlayBarTray.prototype = v2; v2.setHeight = function (aHeight) { this._middle._y = this._top._height; this._middle._height = aHeight - this._top._height - this._bottom._height; this._bottom._y = this._middle._y + this._middle._height; }; ASSetPropFlags(mx.controls.streamingmedia.VPlayBarTray.prototype, null, 1); } #endinitclip } movieClip 236 __Packages.mx.video.FLVPlayback { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.FLVPlayback) { var v1 = function () { super(); mx.events.EventDispatcher.initialize(this); if (this._autoPlay == undefined) { this._autoPlay = true; } if (this._autoRewind == undefined) { this._autoRewind = true; } if (this._autoSize == undefined) { this._autoSize = false; } if (this._bufferTime == undefined) { this._bufferTime = 0.1; } if (this._contentPath == undefined) { this._contentPath = ''; } if (this._cuePoints == undefined) { this._cuePoints = null; } if (this._idleTimeout == undefined) { this._idleTimeout = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL; } if (this._isLive == undefined) { this._isLive = false; } if (this._aspectRatio == undefined) { this._aspectRatio = true; } if (this._seekToPrevOffset == undefined) { this._seekToPrevOffset = mx.video.FLVPlayback.SEEK_TO_PREV_OFFSET_DEFAULT; } if (this._playheadUpdateInterval == undefined) { this._playheadUpdateInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL; } if (this._progressInterval == undefined) { this._progressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL; } if (this._totalTime == undefined) { this._totalTime = 0; } if (this._transform == undefined) { this._transform = null; } if (this._volume == undefined) { this._volume = 100; } if (this._skinAutoHide == undefined) { this._skinAutoHide = false; } if (this._bufferingBarHides == undefined) { this._bufferingBarHides = false; } this.__height = this._height; this._origHeight = this.__height; this.__width = this._width; this._origWidth = this.__width; this._scaleX = 100; this._scaleY = 100; this._xscale = 100; this._yscale = 100; this._preSeekTime = -1; this._firstStreamReady = false; this._firstStreamShown = false; this.createUIManager(); this._activeVP = 0; this._visibleVP = 0; this._topVP = 0; this._vp = new Array(); this._vpState = new Array(); this._cpMgr = new Array(); this.createVideoPlayer(0); this._vp[0].visible = false; this._vp[0].volume = 0; this.boundingBox_mc._visible = false; this.boundingBox_mc.unloadMovie(); delete this.boundingBox_mc; if (_global.isLivePreview) { this.createLivePreviewMovieClip(); this.setSize(this.__width, this.__height); } this._cpMgr[0].processCuePointsProperty(this._cuePoints); delete this._cuePoints; this._cuePoints = null; }; mx.video.FLVPlayback = v1; mx.video.FLVPlayback extends MovieClip; var v2 = v1.prototype; v2.setSize = function (w, h) { if (_global.isLivePreview) { if (this.preview_mc == undefined) { this.createLivePreviewMovieClip(); } this.preview_mc.box_mc._width = w; this.preview_mc.box_mc._height = h; if (this.preview_mc.box_mc._width < this.preview_mc.icon_mc._width || this.preview_mc.box_mc._height < this.preview_mc.icon_mc._height) { this.preview_mc.icon_mc._visible = false; } else { this.preview_mc.icon_mc._visible = true; this.preview_mc.icon_mc._x = (this.preview_mc.box_mc._width - this.preview_mc.icon_mc._width) / 2; this.preview_mc.icon_mc._y = (this.preview_mc.box_mc._height - this.preview_mc.icon_mc._height) / 2; } } if (w == this.__get__width() && h == this.__get__height()) { return undefined; } this.__width = w; this.__height = h; var v3 = 0; while (v3 < this._vp.length) { if (this._vp[v3] != undefined) { this._vp[v3].setSize(w, h); } ++v3; } this.dispatchEvent({'type': 'resize', 'x': this.__get__x(), 'y': this.__get__y(), 'width': w, 'height': h}); }; v2.setScale = function (xs, ys) { if (xs == this.__get__scaleX() && ys == this.__get__scaleY()) { return undefined; } this._scaleX = xs; this._scaleY = ys; var v2 = 0; while (v2 < this._vp.length) { if (this._vp[v2] != undefined) { this._vp[v2].setSize(this._origWidth * xs / 100, this._origHeight * ys / 100); } ++v2; } this.dispatchEvent({'type': 'resize', 'x': this.__get__x(), 'y': this.__get__y(), 'width': this.__get__width(), 'height': this.__get__height()}); }; v2.handleEvent = function (e) { var v3 = e.state; if (e.state != undefined && e.target._name == this._visibleVP && this.__get__scrubbing()) { v3 = mx.video.FLVPlayback.SEEKING; } if (e.type == 'metadataReceived') { this._cpMgr[e.target._name].processFLVCuePoints(e.info.cuePoints); this.dispatchEvent({'type': e.type, 'info': e.info, 'vp': e.target._name}); } else { if (e.type == 'cuePoint') { if (this._cpMgr[e.target._name].isFLVCuePointEnabled(e.info)) { this.dispatchEvent({'type': e.type, 'info': e.info, 'vp': e.target._name}); } } else { if (e.type == 'rewind') { this.dispatchEvent({'type': e.type, 'auto': true, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); this._cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); } else { if (e.type == 'resize') { this.dispatchEvent({'type': e.type, 'x': this.__get__x(), 'y': this.__get__y(), 'width': this.__get__width(), 'height': this.__get__height(), 'auto': true, 'vp': e.target._name}); } else { if (e.type == 'playheadUpdate') { this.dispatchEvent({'type': e.type, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); if (this._preSeekTime >= 0 && e.target.state != mx.video.FLVPlayback.SEEKING) { var v5 = this._preSeekTime; this._preSeekTime = -1; this._cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); this.dispatchEvent({'type': 'seek', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); if (v5 < e.playheadTime) { this.dispatchEvent({'type': 'fastForward', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } else { if (v5 > e.playheadTime) { this.dispatchEvent({'type': 'rewind', 'auto': false, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } } } this._cpMgr[e.target._name].dispatchASCuePoints(); } else { if (e.type == 'stateChange') { var v4 = e.target._name; if (v4 == this._visibleVP && this.__get__scrubbing()) { return undefined; } if (e.state == mx.video.VideoPlayer.RESIZING) { return undefined; } if (this._vpState[v4].prevState == mx.video.FLVPlayback.LOADING && this._vpState[v4].autoPlay && e.state == mx.video.FLVPlayback.STOPPED) { return undefined; } this._vpState[v4].prevState = e.state; this.dispatchEvent({'type': e.type, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); if (this._vp[e.target._name].state != v3) { return undefined; } switch (v3) { case mx.video.FLVPlayback.BUFFERING: this.dispatchEvent({'type': 'buffering', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); break; case mx.video.FLVPlayback.PAUSED: this.dispatchEvent({'type': 'paused', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); break; case mx.video.FLVPlayback.PLAYING: this.dispatchEvent({'type': 'playing', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); break; case mx.video.FLVPlayback.STOPPED: this.dispatchEvent({'type': 'stopped', 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } } else { if (e.type == 'progress') { this.dispatchEvent({'type': e.type, 'bytesLoaded': e.bytesLoaded, 'bytesTotal': e.bytesTotal, 'vp': e.target._name}); } else { if (e.type == 'ready') { var v4 = e.target._name; if (!this._firstStreamReady) { if (v4 == this._visibleVP) { this._firstStreamReady = true; if (this._uiMgr.__get__skinReady() && !this._firstStreamShown) { this._uiMgr.__set__visible(true); this.showFirstStream(); } } } else { if (this._firstStreamShown && v3 == mx.video.FLVPlayback.STOPPED && this._vpState[v4].autoPlay) { this._vp[v4].play(); } } this.dispatchEvent({'type': e.type, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } else { if (e.type == 'close' || e.type == 'complete') { this.dispatchEvent({'type': e.type, 'state': v3, 'playheadTime': e.playheadTime, 'vp': e.target._name}); } } } } } } } } } }; v2.load = function (contentPath, totalTime, isLive) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (contentPath == null || contentPath == '') { return undefined; } this.__set__autoPlay(false); if (totalTime != undefined) { this.__set__totalTime(totalTime); } if (isLive != undefined) { this.__set__isLive(isLive); } this.__set__contentPath(contentPath); }; v2.play = function (contentPath, totalTime, isLive) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (contentPath == undefined) { this._vp[this._activeVP].play(); } else { this.__set__autoPlay(true); if (totalTime != undefined) { this.__set__totalTime(totalTime); } if (isLive != undefined) { this.__set__isLive(isLive); } this.__set__contentPath(contentPath); } }; v2.pause = function () { if (this._vp[this._activeVP] == undefined) { return undefined; } this._vp[this._activeVP].pause(); }; v2.stop = function () { if (this._vp[this._activeVP] == undefined) { return undefined; } this._vp[this._activeVP].stop(); }; v2.seek = function (time) { if (this._vp[this._activeVP] == undefined) { return undefined; } this._preSeekTime = this.playheadTime; this._vp[this._activeVP].seek(time); }; v2.seekSeconds = function (time) { this.seek(time); }; v2.seekPercent = function (percent) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (percent < 0 || percent > 100 || this._vp[this._activeVP].totalTime == null || this._vp[this._activeVP].totalTime <= 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } this.seek(this._vp[this._activeVP].totalTime * percent / 100); }; v2.__get__playheadPercentage = function () { if (this._vp[this._activeVP].totalTime == null || this._vp[this._activeVP].totalTime <= 0) { return undefined; } return (this._vp[this._activeVP].playheadTime / this._vp[this._activeVP].totalTime) * 100; }; v2.__set__playheadPercentage = function (percent) { this.seekPercent(percent); return this.__get__playheadPercentage(); }; v2.seekToNavCuePoint = function (timeNameOrCuePoint) { var v3; switch (typeof timeNameOrCuePoint) { case 'string': v3 = {'name': timeNameOrCuePoint}; break; case 'number': v3 = {'time': timeNameOrCuePoint}; break; case 'object': v3 = timeNameOrCuePoint; } if (v3.name == null || typeof v3.name != 'string') { this.seekToNextNavCuePoint(v3.time); return undefined; } if (isNaN(v3.time)) { v3.time = 0; } var v2 = this.findNearestCuePoint(timeNameOrCuePoint, mx.video.FLVPlayback.NAVIGATION); for (;;) { if (!(v2 != null && (v2.time < v3.time || !this.isFLVCuePointEnabled(v2)))) break; v2 = this.findNextCuePointWithName(v2); } if (v2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } this.seek(v2.time); }; v2.seekToNextNavCuePoint = function (time) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (isNaN(time) || time < 0) { time = this._vp[this._activeVP].playheadTime + 0.001; } var v3; v3 = this.findNearestCuePoint(time, mx.video.FLVPlayback.NAVIGATION); if (v3 == null) { this.seek(this._vp[this._activeVP].totalTime); return undefined; } var v2 = v3.index; if (v3.time < time) { ++v2; } for (;;) { if (!(v2 < v3.array.length && !this.isFLVCuePointEnabled(v3.array[v2]))) break; ++v2; } if (v2 >= v3.array.length) { var v5 = this._vp[this._activeVP].totalTime; if (v3.array[v3.array.length - 1].time > v5) { v5 = v3.array[v3.array.length - 1]; } this.seek(v5); } else { this.seek(v3.array[v2].time); } }; v2.seekToPrevNavCuePoint = function (time) { if (this._vp[this._activeVP] == undefined) { return undefined; } if (isNaN(time) || time < 0) { time = this._vp[this._activeVP].playheadTime; } var v3 = this.findNearestCuePoint(time, mx.video.FLVPlayback.NAVIGATION); if (v3 == null) { this.seek(0); return undefined; } var v2 = v3.index; for (;;) { if (!(v2 >= 0 && (!this.isFLVCuePointEnabled(v3.array[v2]) || v3.array[v2].time >= time - this._seekToPrevOffset))) break; --v2; } if (v2 < 0) { this.seek(0); } else { this.seek(v3.array[v2].time); } }; v2.addASCuePoint = function (timeOrCuePoint, name, parameters) { return this._cpMgr[this._activeVP].addASCuePoint(timeOrCuePoint, name, parameters); }; v2.removeASCuePoint = function (timeNameOrCuePoint) { return this._cpMgr[this._activeVP].removeASCuePoint(timeNameOrCuePoint); }; v2.findCuePoint = function (timeNameOrCuePoint, type) { switch (type) { return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].allCuePoints, false, timeNameOrCuePoint); case 'event': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].eventCuePoints, false, timeNameOrCuePoint); case 'navigation': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].navCuePoints, false, timeNameOrCuePoint); case 'flv': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].flvCuePoints, false, timeNameOrCuePoint); case 'actionscript': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].asCuePoints, false, timeNameOrCuePoint); case 'all': } return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].allCuePoints, false, timeNameOrCuePoint); }; v2.findNearestCuePoint = function (timeNameOrCuePoint, type) { switch (type) { return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].allCuePoints, true, timeNameOrCuePoint); case 'event': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].eventCuePoints, true, timeNameOrCuePoint); case 'navigation': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].navCuePoints, true, timeNameOrCuePoint); case 'flv': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].flvCuePoints, true, timeNameOrCuePoint); case 'actionscript': return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].asCuePoints, true, timeNameOrCuePoint); case 'all': } return this._cpMgr[this._activeVP].getCuePoint(this._cpMgr[this._activeVP].allCuePoints, true, timeNameOrCuePoint); }; v2.findNextCuePointWithName = function (cuePoint) { return this._cpMgr[this._activeVP].getNextCuePointWithName(cuePoint); }; v2.setFLVCuePointEnabled = function (enabled, timeNameOrCuePoint) { return this._cpMgr[this._activeVP].setFLVCuePointEnabled(enabled, timeNameOrCuePoint); }; v2.isFLVCuePointEnabled = function (timeNameOrCuePoint) { return this._cpMgr[this._activeVP].isFLVCuePointEnabled(timeNameOrCuePoint); }; v2.getNextHighestDepth = function () { var v2 = super.getNextHighestDepth(); return v2 < 1000 ? 1000 : v2; }; v2.bringVideoPlayerToFront = function (index) { if (index == this._topVP || this._vp[index] == undefined) { return undefined; } this._vp[this._topVP].swapDepths(this._vp[index].getDepth()); this._topVP = index; }; v2.getVideoPlayer = function (index) { return this._vp[index]; }; v2.closeVideoPlayer = function (index) { if (this._vp[index] == undefined) { return undefined; } if (index == 0) { throw new mx.video.VideoError(mx.video.VideoError.DELETE_DEFAULT_PLAYER); } if (this._visibleVP == index) { this.__set__visibleVideoPlayerIndex(0); } if (this._activeVP == index) { this.__set__activeVideoPlayerIndex(0); } this._vp[index].close(); this._vp[index].unloadMovie(); delete this._vp[index]; this._vp[index] = undefined; }; v2.__get__activeVideoPlayerIndex = function () { return this._activeVP; }; v2.__set__activeVideoPlayerIndex = function (i) { if (this._activeVP == i) { return undefined; } if (this._vp[this._activeVP].onEnterFrame != undefined) { this.doContentPathConnect(); } this._activeVP = i; if (this._vp[this._activeVP] == undefined) { this.createVideoPlayer(this._activeVP); this._vp[this._activeVP].visible = false; this._vp[this._activeVP].volume = 0; } return this.__get__activeVideoPlayerIndex(); }; v2.__get__autoPlay = function () { if (this._vpState[this._activeVP] == undefined) { return this._autoPlay; } return this._vpState[this._activeVP].autoPlay; }; v2.__set__autoPlay = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._autoPlay = flag; } this._vpState[this._activeVP].autoPlay = flag; return this.__get__autoPlay(); }; v2.__get__autoRewind = function () { if (this._vp[this._activeVP] == undefined) { return this._autoRewind; } return this._vp[this._activeVP].autoRewind; }; v2.__set__autoRewind = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._autoRewind = flag; } this._vp[this._activeVP].autoRewind = flag; return this.__get__autoRewind(); }; v2.__get__autoSize = function () { if (this._vp[this._activeVP] == undefined) { return this._autoSize; } return this._vp[this._activeVP].autoSize; }; v2.__set__autoSize = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._autoSize = flag; } this._vp[this._activeVP].autoSize = flag; return this.__get__autoSize(); }; v2.__get__bitrate = function () { return (this.__get__ncMgr()).getBitrate(); }; v2.__set__bitrate = function (b) { (this.__get__ncMgr()).setBitrate(b); return this.__get__bitrate(); }; v2.__get__buffering = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].state == mx.video.FLVPlayback.BUFFERING; }; v2.__get__bufferingBar = function () { if (this._uiMgr != null) { this._bufferingBar = this._uiMgr.getControl(mx.video.UIManager.BUFFERING_BAR); } return this._bufferingBar; }; v2.__set__bufferingBar = function (s) { this._bufferingBar = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, s); } return this.__get__bufferingBar(); }; v2.__get__bufferingBarHidesAndDisablesOthers = function () { if (this._uiMgr != null) { this._bufferingBarHides = this._uiMgr.bufferingBarHidesAndDisablesOthers; } return this._bufferingBarHides; }; v2.__set__bufferingBarHidesAndDisablesOthers = function (b) { this._bufferingBarHides = b; if (this._uiMgr != null) { this._uiMgr.__set__bufferingBarHidesAndDisablesOthers(b); } return this.__get__bufferingBarHidesAndDisablesOthers(); }; v2.__get__backButton = function () { if (this._uiMgr != null) { this._backButton = this._uiMgr.getControl(mx.video.UIManager.BACK_BUTTON); } return this._backButton; }; v2.__set__backButton = function (s) { this._backButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, s); } return this.__get__backButton(); }; v2.__get__bufferTime = function () { if (this._vp[this._activeVP] == undefined) { return this._bufferTime; } return this._vp[this._activeVP].bufferTime; }; v2.__set__bufferTime = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._bufferTime = aTime; } this._vp[this._activeVP].bufferTime = aTime; return this.__get__bufferTime(); }; v2.__get__bytesLoaded = function () { return this._vp[this._activeVP].bytesLoaded; }; v2.__get__bytesTotal = function () { return this._vp[this._activeVP].bytesTotal; }; v2.__get__contentPath = function () { if (this._vp[this._activeVP] == undefined || this._vp[this._activeVP].onEnterFrame != undefined) { return this._contentPath; } return this._vp[this._activeVP].url; }; v2.__set__contentPath = function (url) { if (_global.isLivePreview) { return undefined; } if (this._vp[this._activeVP] == undefined) { if (url == this._contentPath) { return undefined; } this._contentPath = url; } else { if (this._vp[this._activeVP].url == url) { return undefined; } this._vpState[this._activeVP].minProgressPercent = undefined; if (this._vp[this._activeVP].onEnterFrame != undefined) { delete this._vp[this._activeVP].onEnterFrame; this._vp[this._activeVP].onEnterFrame = undefined; } this._cpMgr[this._activeVP].reset(); if (this._vpState[this._activeVP].autoPlay && this._firstStreamShown) { this._vp[this._activeVP].play(url, this._vpState[this._activeVP].isLive, this._vpState[this._activeVP].totalTime); } else { this._vp[this._activeVP].load(url, this._vpState[this._activeVP].isLive, this._vpState[this._activeVP].totalTime); } this._vpState[this._activeVP].isLiveSet = false; this._vpState[this._activeVP].totalTimeSet = false; } return this.__get__contentPath(); }; v2.__set__cuePoints = function (cp) { if (this._cuePoints != undefined) { return undefined; } this._cuePoints = cp; return this.__get__cuePoints(); }; v2.__get__forwardButton = function () { if (this._uiMgr != null) { this._forwardButton = this._uiMgr.getControl(mx.video.UIManager.FORWARD_BUTTON); } return this._forwardButton; }; v2.__set__forwardButton = function (s) { this._forwardButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, s); } return this.__get__forwardButton(); }; v2.__get__height = function () { if (_global.isLivePreview) { return this.__height; } if (this._vp[this._visibleVP] != undefined) { this.__height = this._vp[this._visibleVP].height; } return this.__height; }; v2.__set__height = function (h) { this.setSize(this.__get__width(), h); return this.__get__height(); }; v2.__get__idleTimeout = function () { if (this._vp[this._activeVP] == undefined) { return this._idleTimeout; } return this._vp[this._activeVP].idleTimeout; }; v2.__set__idleTimeout = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._idleTimeout = aTime; } this._vp[this._activeVP].idleTimeout = aTime; return this.__get__idleTimeout(); }; v2.__get__isRTMP = function () { if (_global.isLivePreview) { return true; } if (this._vp[this._activeVP] == undefined) { return undefined; } return this._vp[this._activeVP].isRTMP; }; v2.__get__isLive = function () { if (this._vp[this._activeVP] == undefined) { return this._isLive; } else { if (this._vpState[this._activeVP].isLiveSet) { return this._vpState[this._activeVP].isLive; } else { return this._vp[this._activeVP].isLive; } } }; v2.__set__isLive = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._isLive = flag; } this._vpState[this._activeVP].isLive = flag; this._vpState[this._activeVP].isLiveSet = true; return this.__get__isLive(); }; v2.__get__maintainAspectRatio = function () { if (this._vp[this._activeVP] == undefined) { return this._aspectRatio; } return this._vp[this._activeVP].maintainAspectRatio; }; v2.__set__maintainAspectRatio = function (flag) { if (this._activeVP == 0 || this._activeVP == undefined) { this._aspectRatio = flag; } this._vp[this._activeVP].maintainAspectRatio = flag; return this.__get__maintainAspectRatio(); }; v2.__get__metadata = function () { if (this._vp[this._activeVP] == undefined) { return null; } return this._vp[this._activeVP].metadata; }; v2.__get__metadataLoaded = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._cpMgr[this._activeVP].metadataLoaded; }; v2.__get__muteButton = function () { if (this._uiMgr != null) { this._muteButton = this._uiMgr.getControl(mx.video.UIManager.MUTE_BUTTON); } return this._muteButton; }; v2.__set__muteButton = function (s) { this._muteButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, s); } return this.__get__muteButton(); }; v2.__get__ncMgr = function () { if (this._vp[this._activeVP] == undefined) { return null; } return this._vp[this._activeVP].ncMgr; }; v2.__get__pauseButton = function () { if (this._uiMgr != null) { this._pauseButton = this._uiMgr.getControl(mx.video.UIManager.PAUSE_BUTTON); } return this._pauseButton; }; v2.__set__pauseButton = function (s) { this._pauseButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, s); } return this.__get__pauseButton(); }; v2.__get__paused = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].state == mx.video.FLVPlayback.PAUSED; }; v2.__get__playButton = function () { if (this._uiMgr != null) { this._playButton = this._uiMgr.getControl(mx.video.UIManager.PLAY_BUTTON); } return this._playButton; }; v2.__set__playButton = function (s) { this._playButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, s); } return this.__get__playButton(); }; v2.__get__playheadTime = function () { if (this._vp[this._activeVP] == undefined) { return 0; } return this._vp[this._activeVP].playheadTime; }; v2.__set__playheadTime = function (position) { this.seek(position); return this.__get__playheadTime(); }; v2.__get__playheadUpdateInterval = function () { if (this._vp[this._activeVP] == undefined) { return this._playheadUpdateInterval; } return this._vp[this._activeVP].playheadUpdateInterval; }; v2.__set__playheadUpdateInterval = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._playheadUpdateInterval = aTime; } this._cpMgr[this._activeVP].playheadUpdateInterval = aTime; this._vp[this._activeVP].playheadUpdateInterval = aTime; return this.__get__playheadUpdateInterval(); }; v2.__get__playing = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].state == mx.video.FLVPlayback.PLAYING; }; v2.__get__playPauseButton = function () { if (this._uiMgr != null) { this._playPauseButton = this._uiMgr.getControl(mx.video.UIManager.PLAY_PAUSE_BUTTON); } return this._playPauseButton; }; v2.__set__playPauseButton = function (s) { this._playPauseButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, s); } return this.__get__playPauseButton(); }; v2.__get__preferredHeight = function () { if (this._vp[this._activeVP] == undefined) { return 0; } return this._vp[this._activeVP].videoHeight; }; v2.__get__preferredWidth = function () { if (this._vp[this._activeVP] == undefined) { return 0; } return this._vp[this._activeVP].videoWidth; }; v2.__get__progressInterval = function () { if (this._vp[this._activeVP] == undefined) { return this._progressInterval; } return this._vp[this._activeVP].progressInterval; }; v2.__set__progressInterval = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._progressInterval = aTime; } this._vp[this._activeVP].progressInterval = aTime; return this.__get__progressInterval(); }; v2.__get__scaleX = function () { if (this._vp[this._visibleVP] != undefined) { this._scaleX = (this._vp[this._visibleVP].width / this._origWidth) * 100; } return this._scaleX; }; v2.__set__scaleX = function (xs) { this.setScale(xs, this.__get__scaleY()); return this.__get__scaleX(); }; v2.__get__scaleY = function () { if (this._vp[this._visibleVP] != undefined) { this._scaleY = (this._vp[this._visibleVP].height / this._origHeight) * 100; } return this._scaleY; }; v2.__set__scaleY = function (ys) { this.setScale(this.__get__scaleX(), ys); return this.__get__scaleY(); }; v2.__get__scrubbing = function () { var v2 = this.__get__seekBar(); if (v2 == undefined || v2.isDragging == undefined) { return false; } return v2.isDragging; }; v2.__get__seekBar = function () { if (this._uiMgr != null) { this._seekBar = this._uiMgr.getControl(mx.video.UIManager.SEEK_BAR); } return this._seekBar; }; v2.__set__seekBar = function (s) { this._seekBar = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.SEEK_BAR, s); } return this.__get__seekBar(); }; v2.__get__seekBarInterval = function () { if (this._uiMgr != null) { this._seekBarInterval = this._uiMgr.seekBarInterval; } return this._seekBarInterval; }; v2.__set__seekBarInterval = function (s) { this._seekBarInterval = s; if (this._uiMgr != null) { this._uiMgr.__set__seekBarInterval(this._seekBarInterval); } return this.__get__seekBarInterval(); }; v2.__get__seekBarScrubTolerance = function () { if (this._uiMgr != null) { this._seekBarScrubTolerance = this._uiMgr.seekBarScrubTolerance; } return this._seekBarScrubTolerance; }; v2.__set__seekBarScrubTolerance = function (s) { this._seekBarScrubTolerance = s; if (this._uiMgr != null) { this._uiMgr.__set__seekBarScrubTolerance(this._seekBarScrubTolerance); } return this.__get__seekBarScrubTolerance(); }; v2.__get__seekToPrevOffset = function () { return this._seekToPrevOffset; }; v2.__set__seekToPrevOffset = function (s) { this._seekToPrevOffset = s; return this.__get__seekToPrevOffset(); }; v2.__get__skin = function () { if (this._uiMgr != null) { this._skin = this._uiMgr.skin; } return this._skin; }; v2.__set__skin = function (s) { this._skin = s; if (this._uiMgr != null) { this._uiMgr.__set__skin(s); } return this.__get__skin(); }; v2.__get__skinAutoHide = function () { if (this._uiMgr != null) { this._skinAutoHide = this._uiMgr.skinAutoHide; } return this._skinAutoHide; }; v2.__set__skinAutoHide = function (b) { if (_global.isLivePreview) { return undefined; } this._skinAutoHide = b; if (this._uiMgr != null) { this._uiMgr.__set__skinAutoHide(b); } return this.__get__skinAutoHide(); }; v2.__get__transform = function () { return this._transform; }; v2.__set__transform = function (s) { this._transform = s; if (this._vp[this._activeVP] != undefined) { this._vp[this._activeVP].transform = this._transform; } return this.__get__transform(); }; v2.__get__state = function () { if (_global.isLivePreview) { return mx.video.FLVPlayback.STOPPED; } if (this._vp[this._activeVP] == undefined) { return mx.video.FLVPlayback.DISCONNECTED; } if (this._activeVP == this._visibleVP && this.__get__scrubbing()) { return mx.video.FLVPlayback.SEEKING; } var v3 = this._vp[this._activeVP].state; if (v3 == mx.video.VideoPlayer.RESIZING) { return mx.video.FLVPlayback.LOADING; } if (this._vpState[this._activeVP].prevState == mx.video.FLVPlayback.LOADING && this._vpState[this._activeVP].autoPlay && v3 == mx.video.FLVPlayback.STOPPED) { return mx.video.FLVPlayback.LOADING; } return v3; }; v2.__get__stateResponsive = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].stateResponsive; }; v2.__get__stopButton = function () { if (this._uiMgr != null) { this._stopButton = this._uiMgr.getControl(mx.video.UIManager.STOP_BUTTON); } return this._stopButton; }; v2.__set__stopButton = function (s) { this._stopButton = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, s); } return this.__get__stopButton(); }; v2.__get__stopped = function () { if (this._vp[this._activeVP] == undefined) { return false; } return this._vp[this._activeVP].state == mx.video.FLVPlayback.STOPPED; }; v2.__get__totalTime = function () { if (_global.isLivePreview) { return 1; } if (this._vp[this._activeVP] == undefined) { return this._totalTime; } else { if (this._vpState[this._activeVP].totalTimeSet) { return this._vpState[this._activeVP].totalTime; } else { return this._vp[this._activeVP].totalTime; } } }; v2.__set__totalTime = function (aTime) { if (this._activeVP == 0 || this._activeVP == undefined) { this._totalTime = aTime; } this._vpState[this._activeVP].totalTime = aTime; this._vpState[this._activeVP].totalTimeSet = true; return this.__get__totalTime(); }; v2.__get__version_1_0_2 = function () { return ''; }; v2.__set__version_1_0_2 = function (v) { return this.__get__version_1_0_2(); }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (v) { this._visible = v; return this.__get__visible(); }; v2.__get__visibleVideoPlayerIndex = function () { return this._visibleVP; }; v2.__set__visibleVideoPlayerIndex = function (i) { if (this._visibleVP == i) { return undefined; } var v3 = this._visibleVP; if (this._vp[i] == undefined) { this.createVideoPlayer(i); } var v5 = this._vp[i].height != this._vp[this._visibleVP].height || this._vp[i].width != this._vp[this._visibleVP].width; this._vp[this._visibleVP].visible = false; this._vp[this._visibleVP].volume = 0; this._visibleVP = i; if (this._firstStreamShown) { this._uiMgr.setupSkinAutoHide(); this._vp[this._visibleVP].visible = true; if (!this.__get__scrubbing()) { this._vp[this._visibleVP].volume = this._volume; } } else { if (this._vp[this._visibleVP].stateResponsive && this._vp[this._visibleVP].state != mx.video.FLVPlayback.DISCONNECTED && this._uiMgr.__get__skinReady()) { this._uiMgr.__set__visible(true); this._uiMgr.setupSkinAutoHide(); this._firstStreamReady = true; this.showFirstStream(); } } if (this._vp[v3].height != this._vp[this._visibleVP].height || this._vp[v3].width != this._vp[this._visibleVP].width) { this.dispatchEvent({'type': 'resize', 'x': this.__get__x(), 'y': this.__get__y(), 'width': this.__get__width(), 'height': this.__get__height(), 'auto': false, 'vp': this._visibleVP}); } this._uiMgr.handleEvent({'type': 'stateChange', 'state': this._vp[this._visibleVP].state, 'vp': this._visibleVP}); this._uiMgr.handleEvent({'type': 'playheadUpdate', 'playheadTime': this._vp[this._visibleVP].playheadTime, 'vp': this._visibleVP}); if (this._vp[this._visibleVP].isRTMP) { this._uiMgr.handleEvent({'type': 'ready', 'vp': this._visibleVP}); } else { this._uiMgr.handleEvent({'type': 'progress', 'bytesLoaded': this._vp[this._visibleVP].bytesLoaded, 'bytesTotal': this._vp[this._visibleVP].bytesTotal, 'vp': this._visibleVP}); } return this.__get__visibleVideoPlayerIndex(); }; v2.__get__volume = function () { return this._volume; }; v2.__set__volume = function (aVol) { if (this._volume == aVol) { return undefined; } this._volume = aVol; if (!this.__get__scrubbing()) { this._vp[this._visibleVP].volume = this._volume; } this.dispatchEvent({'type': 'volumeUpdate', 'volume': aVol}); return this.__get__volume(); }; v2.__get__volumeBar = function () { if (this._uiMgr != null) { this._volumeBar = this._uiMgr.getControl(mx.video.UIManager.VOLUME_BAR); } return this._volumeBar; }; v2.__set__volumeBar = function (s) { this._volumeBar = s; if (this._uiMgr != null) { this._uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, s); } return this.__get__volumeBar(); }; v2.__get__volumeBarInterval = function () { if (this._uiMgr != null) { this._volumeBarInterval = this._uiMgr.volumeBarInterval; } return this._volumeBarInterval; }; v2.__set__volumeBarInterval = function (s) { this._volumeBarInterval = s; if (this._uiMgr != null) { this._uiMgr.__set__volumeBarInterval(this._volumeBarInterval); } return this.__get__volumeBarInterval(); }; v2.__get__volumeBarScrubTolerance = function () { if (this._uiMgr != null) { this._volumeBarScrubTolerance = this._uiMgr.volumeBarScrubTolerance; } return this._volumeBarScrubTolerance; }; v2.__set__volumeBarScrubTolerance = function (s) { this._volumeBarScrubTolerance = s; if (this._uiMgr != null) { this._uiMgr.__set__volumeBarScrubTolerance(this._volumeBarScrubTolerance); } return this.__get__volumeBarScrubTolerance(); }; v2.__get__width = function () { if (_global.isLivePreview) { return this.__width; } if (this._vp[this._visibleVP] != undefined) { this.__width = this._vp[this._visibleVP].width; } return this.__width; }; v2.__set__width = function (w) { this.setSize(w, this.__get__height()); return this.__get__width(); }; v2.__get__x = function () { return this._x; }; v2.__set__x = function (xpos) { this._x = xpos; return this.__get__x(); }; v2.__get__y = function () { return this._y; }; v2.__set__y = function (ypos) { this._y = ypos; return this.__get__y(); }; v2.createVideoPlayer = function (index) { if (_global.isLivePreview) { return undefined; } var v4 = this.__get__width(); var v5 = this.__get__height(); this._vp[index] = mx.video.VideoPlayer(this.attachMovie('VideoPlayer', String(index), mx.video.FLVPlayback.VP_DEPTH_OFFSET + index)); this._vp[index].setSize(v4, v5); this._topVP = index; this._vp[index].autoRewind = this._autoRewind; this._vp[index].autoSize = this._autoSize; this._vp[index].bufferTime = this._bufferTime; this._vp[index].idleTimeout = this._idleTimeout; this._vp[index].maintainAspectRatio = this._aspectRatio; this._vp[index].playheadUpdateInterval = this._playheadUpdateInterval; this._vp[index].progressInterval = this._progressInterval; this._vp[index].transform = this._transform; this._vp[index].volume = this._volume; if (index == 0) { this._vpState[index] = {'id': index, 'isLive': this._isLive, 'isLiveSet': true, 'totalTime': this._totalTime, 'totalTimeSet': true, 'autoPlay': this._autoPlay}; if (this._contentPath != null && this._contentPath != undefined && this._contentPath != '') { this._vp[index].onEnterFrame = mx.utils.Delegate.create(this, this.doContentPathConnect); } } else { this._vpState[index] = {'id': index, 'isLive': false, 'isLiveSet': true, 'totalTime': 0, 'totalTimeSet': true, 'autoPlay': false}; } this._vp[index].addEventListener('resize', this); this._vp[index].addEventListener('close', this); this._vp[index].addEventListener('complete', this); this._vp[index].addEventListener('cuePoint', this); this._vp[index].addEventListener('playheadUpdate', this); this._vp[index].addEventListener('progress', this); this._vp[index].addEventListener('metadataReceived', this); this._vp[index].addEventListener('stateChange', this); this._vp[index].addEventListener('ready', this); this._vp[index].addEventListener('rewind', this); this._cpMgr[index] = new mx.video.CuePointManager(this, index); this._cpMgr[index].playheadUpdateInterval = this._playheadUpdateInterval; }; v2.createUIManager = function () { this._uiMgr = new mx.video.UIManager(this); this._uiMgr.__set__visible(false); if (this._backButton != null) { this._uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, this._backButton); } if (this._bufferingBar != null) { this._uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, this._bufferingBar); } this._uiMgr.__set__bufferingBarHidesAndDisablesOthers(this._bufferingBarHides); if (this._forwardButton != null) { this._uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, this._forwardButton); } if (this._pauseButton != null) { this._uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, this._pauseButton); } if (this._playButton != null) { this._uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, this._playButton); } if (this._playPauseButton != null) { this._uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, this._playPauseButton); } if (this._stopButton != null) { this._uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, this._stopButton); } if (this._seekBar != null) { this._uiMgr.setControl(mx.video.UIManager.SEEK_BAR, this._seekBar); } if (this._seekBarInterval != null) { this._uiMgr.__set__seekBarInterval(this._seekBarInterval); } if (this._seekBarScrubTolerance != null) { this._uiMgr.__set__seekBarScrubTolerance(this._seekBarScrubTolerance); } if (this._skin != null) { this._uiMgr.__set__skin(this._skin); } if (this._skinAutoHide != null) { this._uiMgr.__set__skinAutoHide(this._skinAutoHide); } if (this._muteButton != null) { this._uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, this._muteButton); } if (this._volumeBar != null) { this._uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, this._volumeBar); } if (this._volumeBarInterval != null) { this._uiMgr.__set__volumeBarInterval(this._volumeBarInterval); } if (this._volumeBarScrubTolerance != null) { this._uiMgr.__set__volumeBarScrubTolerance(this._volumeBarScrubTolerance); } }; v2.createLivePreviewMovieClip = function () { this.preview_mc = this.createEmptyMovieClip('preview_mc', 10); this.preview_mc.createEmptyMovieClip('box_mc', 10); this.preview_mc.box_mc.beginFill(0); this.preview_mc.box_mc.moveTo(0, 0); this.preview_mc.box_mc.lineTo(0, 100); this.preview_mc.box_mc.lineTo(100, 100); this.preview_mc.box_mc.lineTo(100, 0); this.preview_mc.box_mc.lineTo(0, 0); this.preview_mc.box_mc.endFill(); this.preview_mc.attachMovie('Icon', 'icon_mc', 20); }; v2.doContentPathConnect = function () { delete this._vp[0].onEnterFrame; this._vp[0].onEnterFrame = undefined; if (_global.isLivePreview) { return undefined; } if (this._vpState[0].autoPlay && this._firstStreamShown) { this._vp[0].play(this._contentPath, this._isLive, this._totalTime); } else { this._vp[0].load(this._contentPath, this._isLive, this._totalTime); } this._vpState[0].isLiveSet = false; this._vpState[0].totalTimeSet = false; }; v2.showFirstStream = function () { this._firstStreamShown = true; this._vp[this._visibleVP].visible = true; if (!this.__get__scrubbing()) { this._vp[this._visibleVP].volume = this._volume; } var v2 = 0; while (v2 < this._vp.length) { if (this._vp[v2] != undefined && this._vp[v2].state == mx.video.FLVPlayback.STOPPED && this._vpState[v2].autoPlay) { this._vp[v2].play(); } ++v2; } }; v2._scrubStart = function () { var v2 = this.__get__playheadTime(); this._vp[this._visibleVP].volume = 0; this.dispatchEvent({'type': 'stateChange', 'state': mx.video.FLVPlayback.SEEKING, 'playheadTime': v2, 'vp': this._visibleVP}); this.dispatchEvent({'type': 'scrubStart', 'state': mx.video.FLVPlayback.SEEKING, 'playheadTime': v2}); }; v2._scrubFinish = function () { var v3 = this.__get__playheadTime(); var v2 = this.__get__state(); this._vp[this._visibleVP].volume = this._volume; if (v2 != mx.video.FLVPlayback.SEEKING) { this.dispatchEvent({'type': 'stateChange', 'state': v2, 'playheadTime': v3, 'vp': this._visibleVP}); } this.dispatchEvent({'type': 'scrubFinish', 'state': v2, 'playheadTime': v3}); }; v2.skinError = function (message) { if (this._firstStreamReady && !this._firstStreamShown) { this.showFirstStream(); } this.dispatchEvent({'type': 'skinError', 'message': message}); }; v2.skinLoaded = function () { if (this._firstStreamReady) { this._uiMgr.__set__visible(true); if (!this._firstStreamShown) { this.showFirstStream(); } } else { if (this._contentPath == null || this._contentPath == '') { this._uiMgr.__set__visible(true); } } this.dispatchEvent({'type': 'skinLoaded'}); }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.DISCONNECTED = 'disconnected'; v1.STOPPED = 'stopped'; v1.PLAYING = 'playing'; v1.PAUSED = 'paused'; v1.BUFFERING = 'buffering'; v1.LOADING = 'loading'; v1.CONNECTION_ERROR = 'connectionError'; v1.REWINDING = 'rewinding'; v1.SEEKING = 'seeking'; v1.ALL = 'all'; v1.EVENT = 'event'; v1.NAVIGATION = 'navigation'; v1.FLV = 'flv'; v1.ACTIONSCRIPT = 'actionscript'; v1.VP_DEPTH_OFFSET = 100; v1.SEEK_TO_PREV_OFFSET_DEFAULT = 1; v2.addProperty('activeVideoPlayerIndex', v2.__get__activeVideoPlayerIndex, v2.__set__activeVideoPlayerIndex); v2.addProperty('autoPlay', v2.__get__autoPlay, v2.__set__autoPlay); v2.addProperty('autoRewind', v2.__get__autoRewind, v2.__set__autoRewind); v2.addProperty('autoSize', v2.__get__autoSize, v2.__set__autoSize); v2.addProperty('backButton', v2.__get__backButton, v2.__set__backButton); v2.addProperty('bitrate', v2.__get__bitrate, v2.__set__bitrate); v2.addProperty('bufferTime', v2.__get__bufferTime, v2.__set__bufferTime); v2.addProperty('buffering', v2.__get__buffering, function () {}); v2.addProperty('bufferingBar', v2.__get__bufferingBar, v2.__set__bufferingBar); v2.addProperty('bufferingBarHidesAndDisablesOthers', v2.__get__bufferingBarHidesAndDisablesOthers, v2.__set__bufferingBarHidesAndDisablesOthers); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('contentPath', v2.__get__contentPath, v2.__set__contentPath); v2.addProperty('cuePoints', function () {}, v2.__set__cuePoints); v2.addProperty('forwardButton', v2.__get__forwardButton, v2.__set__forwardButton); v2.addProperty('height', v2.__get__height, v2.__set__height); v2.addProperty('idleTimeout', v2.__get__idleTimeout, v2.__set__idleTimeout); v2.addProperty('isLive', v2.__get__isLive, v2.__set__isLive); v2.addProperty('isRTMP', v2.__get__isRTMP, function () {}); v2.addProperty('maintainAspectRatio', v2.__get__maintainAspectRatio, v2.__set__maintainAspectRatio); v2.addProperty('metadata', v2.__get__metadata, function () {}); v2.addProperty('metadataLoaded', v2.__get__metadataLoaded, function () {}); v2.addProperty('muteButton', v2.__get__muteButton, v2.__set__muteButton); v2.addProperty('ncMgr', v2.__get__ncMgr, function () {}); v2.addProperty('pauseButton', v2.__get__pauseButton, v2.__set__pauseButton); v2.addProperty('paused', v2.__get__paused, function () {}); v2.addProperty('playButton', v2.__get__playButton, v2.__set__playButton); v2.addProperty('playPauseButton', v2.__get__playPauseButton, v2.__set__playPauseButton); v2.addProperty('playheadPercentage', v2.__get__playheadPercentage, v2.__set__playheadPercentage); v2.addProperty('playheadTime', v2.__get__playheadTime, v2.__set__playheadTime); v2.addProperty('playheadUpdateInterval', v2.__get__playheadUpdateInterval, v2.__set__playheadUpdateInterval); v2.addProperty('playing', v2.__get__playing, function () {}); v2.addProperty('preferredHeight', v2.__get__preferredHeight, function () {}); v2.addProperty('preferredWidth', v2.__get__preferredWidth, function () {}); v2.addProperty('progressInterval', v2.__get__progressInterval, v2.__set__progressInterval); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('scrubbing', v2.__get__scrubbing, function () {}); v2.addProperty('seekBar', v2.__get__seekBar, v2.__set__seekBar); v2.addProperty('seekBarInterval', v2.__get__seekBarInterval, v2.__set__seekBarInterval); v2.addProperty('seekBarScrubTolerance', v2.__get__seekBarScrubTolerance, v2.__set__seekBarScrubTolerance); v2.addProperty('seekToPrevOffset', v2.__get__seekToPrevOffset, v2.__set__seekToPrevOffset); v2.addProperty('skin', v2.__get__skin, v2.__set__skin); v2.addProperty('skinAutoHide', v2.__get__skinAutoHide, v2.__set__skinAutoHide); v2.addProperty('state', v2.__get__state, function () {}); v2.addProperty('stateResponsive', v2.__get__stateResponsive, function () {}); v2.addProperty('stopButton', v2.__get__stopButton, v2.__set__stopButton); v2.addProperty('stopped', v2.__get__stopped, function () {}); v2.addProperty('totalTime', v2.__get__totalTime, v2.__set__totalTime); v2.addProperty('transform', v2.__get__transform, v2.__set__transform); v2.addProperty('version_1_0_2', v2.__get__version_1_0_2, v2.__set__version_1_0_2); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('visibleVideoPlayerIndex', v2.__get__visibleVideoPlayerIndex, v2.__set__visibleVideoPlayerIndex); v2.addProperty('volume', v2.__get__volume, v2.__set__volume); v2.addProperty('volumeBar', v2.__get__volumeBar, v2.__set__volumeBar); v2.addProperty('volumeBarInterval', v2.__get__volumeBarInterval, v2.__set__volumeBarInterval); v2.addProperty('volumeBarScrubTolerance', v2.__get__volumeBarScrubTolerance, v2.__set__volumeBarScrubTolerance); v2.addProperty('width', v2.__get__width, v2.__set__width); v2.addProperty('x', v2.__get__x, v2.__set__x); v2.addProperty('y', v2.__get__y, v2.__set__y); ASSetPropFlags(mx.video.FLVPlayback.prototype, null, 1); } #endinitclip } movieClip 244 __Packages.mx.video.VideoPlayer { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.VideoPlayer) { var v1 = function () { super(); mx.events.EventDispatcher.initialize(this); this._state = mx.video.VideoPlayer.DISCONNECTED; this._cachedState = this._state; this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this._cachedPlayheadTime = 0; this._metadata = null; this._startingPlay = false; this._invalidSeekTime = false; this._invalidSeekRecovery = false; this._currentPos = 0; this._atEnd = false; this._cmdQueue = new Array(); this._readyDispatched = false; this._autoResizeDone = false; this._lastUpdateTime = -1; this._sawSeekNotify = false; this._updateTimeIntervalID = 0; this._updateTimeInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL; this._updateProgressIntervalID = 0; this._updateProgressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL; this._idleTimeoutIntervalID = 0; this._idleTimeoutInterval = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL; this._autoResizeIntervalID = 0; this._rtmpDoStopAtEndIntervalID = 0; this._rtmpDoSeekIntervalID = 0; this._httpDoSeekIntervalID = 0; this._httpDoSeekCount = 0; this._finishAutoResizeIntervalID = 0; this._delayedBufferingIntervalID = 0; this._delayedBufferingInterval = mx.video.VideoPlayer.HTTP_DELAYED_BUFFERING_INTERVAL; if (this._isLive == undefined) { this._isLive = false; } if (this._autoSize == undefined) { this._autoSize = false; } if (this._aspectRatio == undefined) { this._aspectRatio = true; } if (this._autoPlay == undefined) { this._autoPlay = true; } if (this._autoRewind == undefined) { this._autoRewind = true; } if (this._bufferTime == undefined) { this._bufferTime = 0.1; } if (this._volume == undefined) { this._volume = 100; } this._sound = new Sound(this); this._sound.setVolume(this._volume); this.__visible = true; this._hiddenForResize = false; this._hiddenForResizeMetadataDelay = 0; this._contentPath = ''; }; mx.video.VideoPlayer = v1; mx.video.VideoPlayer extends MovieClip; var v2 = v1.prototype; v2.setSize = function (w, h) { if (w == this._video._width && h == this._video._height || this._autoSize) { return undefined; } this._video._width = w; this._video._height = h; if (this._aspectRatio) { this.startAutoResize(); } }; v2.setScale = function (xs, ys) { if (xs == this._video._xscale && ys == this._video._yscale || this._autoSize) { return undefined; } this._video._xscale = xs; this._video._yscale = ys; if (this._aspectRatio) { this.startAutoResize(); } }; v2.play = function (url, isLive, totalTime) { if (url != null) { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive() && this._state != mx.video.VideoPlayer.CONNECTION_ERROR) { this.queueCmd(mx.video.VideoPlayer.PLAY, url, isLive, totalTime); return undefined; } else { this.execQueuedCmds(); } } this._autoPlay = true; this._load(url, isLive, totalTime); return undefined; } if (!this.isXnOK()) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ncMgr == null || this._ncMgr.getNetConnection() == null) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); } else { this.flushQueuedCmds(); this.queueCmd(mx.video.VideoPlayer.PLAY); this.setState(mx.video.VideoPlayer.LOADING); this._cachedState = mx.video.VideoPlayer.LOADING; this._ncMgr.reconnect(); return undefined; } } else { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive()) { this.queueCmd(mx.video.VideoPlayer.PLAY); return undefined; } else { this.execQueuedCmds(); } } } if (this._ns == null) { this._createStream(); this._video.attachVideo(this._ns); this.attachAudio(this._ns); } switch (this._state) { case mx.video.VideoPlayer.BUFFERING: if (this._ncMgr.isRTMP()) { this._play(0); if (this._atEnd) { this._atEnd = false; this._currentPos = 0; this.setState(mx.video.VideoPlayer.REWINDING); } else { if (this._currentPos > 0) { this._seek(this._currentPos); this._currentPos = 0; } } } case mx.video.VideoPlayer.PLAYING: return undefined; case mx.video.VideoPlayer.STOPPED: if (this._ncMgr.isRTMP()) { if (this._isLive) { this._play(-1); this.setState(mx.video.VideoPlayer.BUFFERING); } else { this._play(0); if (this._atEnd) { this._atEnd = false; this._currentPos = 0; this._state = mx.video.VideoPlayer.BUFFERING; this.setState(mx.video.VideoPlayer.REWINDING); } else { if (this._currentPos > 0) { this._seek(this._currentPos); this._currentPos = 0; this.setState(mx.video.VideoPlayer.BUFFERING); } else { this.setState(mx.video.VideoPlayer.BUFFERING); } } } } else { this._pause(false); if (this._atEnd) { this._atEnd = false; this._seek(0); this._state = mx.video.VideoPlayer.BUFFERING; this.setState(mx.video.VideoPlayer.REWINDING); } else { if (this._bufferState == mx.video.VideoPlayer.BUFFER_EMPTY) { this.setState(mx.video.VideoPlayer.BUFFERING); } else { this.setState(mx.video.VideoPlayer.PLAYING); } } } break; case mx.video.VideoPlayer.PAUSED: this._pause(false); if (!this._ncMgr.isRTMP()) { if (this._bufferState == mx.video.VideoPlayer.BUFFER_EMPTY) { this.setState(mx.video.VideoPlayer.BUFFERING); } else { this.setState(mx.video.VideoPlayer.PLAYING); } } else { this.setState(mx.video.VideoPlayer.BUFFERING); } } }; v2.load = function (url, isLive, totalTime) { if (url == null) { throw new Error('null url sent to VideoPlayer.load'); } if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive() && this._state != mx.video.VideoPlayer.CONNECTION_ERROR) { this.queueCmd(mx.video.VideoPlayer.LOAD, url, isLive, totalTime); return undefined; } else { this.execQueuedCmds(); } } this._autoPlay = false; this._load(url, isLive, totalTime); }; v2._load = function (url, isLive, totalTime) { this._prevVideoWidth = this.videoWidth; if (this._prevVideoWidth == undefined) { this._prevVideoWidth = this._video.width; if (this._prevVideoWidth == undefined) { this._prevVideoWidth = 0; } } this._prevVideoHeight = this.videoHeight; if (this._prevVideoHeight == undefined) { this._prevVideoHeight = this._video.height; if (this._prevVideoHeight == undefined) { this._prevVideoHeight = 0; } } this._autoResizeDone = false; this._cachedPlayheadTime = 0; this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this._metadata = null; this._startingPlay = false; this._invalidSeekTime = false; this._invalidSeekRecovery = false; this._isLive = (isLive == undefined) ? false : isLive; this._contentPath = url; this._currentPos = 0; this._streamLength = totalTime; this._atEnd = false; this._videoWidth = undefined; this._videoHeight = undefined; this._readyDispatched = false; this._lastUpdateTime = -1; this._sawSeekNotify = false; clearInterval(this._updateTimeIntervalID); this._updateTimeIntervalID = 0; clearInterval(this._updateProgressIntervalID); this._updateProgressIntervalID = 0; clearInterval(this._idleTimeoutIntervalID); this._idleTimeoutIntervalID = 0; clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = 0; clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; clearInterval(this._rtmpDoSeekIntervalID); this._rtmpDoSeekIntervalID = 0; clearInterval(this._httpDoSeekIntervalID); this._httpDoSeekIntervalID = 0; clearInterval(this._finishAutoResizeIntervalID); this._finishAutoResizeIntervalID = 0; clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; this.closeNS(false); if (this._ncMgr == null) { this.createINCManager(); } var v2 = this._ncMgr.connectToURL(this._contentPath); this.setState(mx.video.VideoPlayer.LOADING); this._cachedState = mx.video.VideoPlayer.LOADING; if (v2) { this._createStream(); this._setUpStream(); } if (!this._ncMgr.isRTMP()) { clearInterval(this._updateProgressIntervalID); this._updateProgressIntervalID = setInterval(this, 'doUpdateProgress', this._updateProgressInterval); } }; v2.pause = function () { if (!this.isXnOK()) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ncMgr == null || this._ncMgr.getNetConnection() == null) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); } else { return undefined; } } else { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive()) { this.queueCmd(mx.video.VideoPlayer.PAUSE); return undefined; } else { this.execQueuedCmds(); } } } if (this._state == mx.video.VideoPlayer.PAUSED || this._state == mx.video.VideoPlayer.STOPPED || this._ns == null) { return undefined; } this._pause(true); this.setState(mx.video.VideoPlayer.PAUSED); }; v2.stop = function () { if (!this.isXnOK()) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ncMgr == null || this._ncMgr.getNetConnection() == null) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); } else { return undefined; } } else { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive()) { this.queueCmd(mx.video.VideoPlayer.STOP); return undefined; } else { this.execQueuedCmds(); } } } if (this._state == mx.video.VideoPlayer.STOPPED || this._ns == null) { return undefined; } if (this._ncMgr.isRTMP()) { if (this._autoRewind && !this._isLive) { this._currentPos = 0; this._play(0, 0); this._state = mx.video.VideoPlayer.STOPPED; this.setState(mx.video.VideoPlayer.REWINDING); } else { this.closeNS(true); this.setState(mx.video.VideoPlayer.STOPPED); } } else { this._pause(true); if (this._autoRewind) { this._seek(0); this._state = mx.video.VideoPlayer.STOPPED; this.setState(mx.video.VideoPlayer.REWINDING); } else { this.setState(mx.video.VideoPlayer.STOPPED); } } }; v2.seek = function (time) { if (this._invalidSeekTime) { return undefined; } if (isNaN(time) || time < 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } if (!this.isXnOK()) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ncMgr == null || this._ncMgr.getNetConnection() == null) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); } else { this.flushQueuedCmds(); this.queueCmd(mx.video.VideoPlayer.SEEK, null, false, time); this.setState(mx.video.VideoPlayer.LOADING); this._cachedState = mx.video.VideoPlayer.LOADING; this._ncMgr.reconnect(); return undefined; } } else { if (this._state == mx.video.VideoPlayer.EXEC_QUEUED_CMD) { this._state = this._cachedState; } else { if (!this.__get__stateResponsive()) { this.queueCmd(mx.video.VideoPlayer.SEEK, null, false, time); return undefined; } else { this.execQueuedCmds(); } } } if (this._ns == null) { this._createStream(); this._video.attachVideo(this._ns); this.attachAudio(this._ns); } if (this._atEnd && time < this.__get__playheadTime()) { this._atEnd = false; } switch (this._state) { case mx.video.VideoPlayer.PLAYING: this._state = mx.video.VideoPlayer.BUFFERING; case mx.video.VideoPlayer.BUFFERING: case mx.video.VideoPlayer.PAUSED: this._seek(time); this.setState(mx.video.VideoPlayer.SEEKING); break; case mx.video.VideoPlayer.STOPPED: if (this._ncMgr.isRTMP()) { this._play(0); this._pause(true); } this._seek(time); this._state = mx.video.VideoPlayer.PAUSED; this.setState(mx.video.VideoPlayer.SEEKING); } }; v2.close = function () { this.closeNS(true); if (this._ncMgr != null && this._ncMgr.isRTMP()) { this._ncMgr.close(); } this.setState(mx.video.VideoPlayer.DISCONNECTED); this.dispatchEvent({'type': 'close', 'state': this._state, 'playheadTime': this.__get__playheadTime()}); }; v2.__get__x = function () { return this._x; }; v2.__set__x = function (xpos) { this._x = xpos; return this.__get__x(); }; v2.__get__y = function () { return this._y; }; v2.__set__y = function (ypos) { this._y = ypos; return this.__get__y(); }; v2.__get__scaleX = function () { return this._video._xscale; }; v2.__set__scaleX = function (xs) { this.setScale(xs, this.__get__scaleY()); return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._video._yscale; }; v2.__set__scaleY = function (ys) { this.setScale(this.__get__scaleX(), ys); return this.__get__scaleY(); }; v2.__get__width = function () { return this._video._width; }; v2.__set__width = function (w) { this.setSize(w, this._video._height); return this.__get__width(); }; v2.__get__height = function () { return this._video._height; }; v2.__set__height = function (h) { this.setSize(this._video._width, h); return this.__get__height(); }; v2.__get__videoWidth = function () { if (this._readyDispatched) { this._videoWidth = this._video.width; } return this._videoWidth; }; v2.__get__videoHeight = function () { if (this._readyDispatched) { this._videoHeight = this._video.height; } return this._videoHeight; }; v2.__get__visible = function () { if (!this._hiddenForResize) { this.__visible = this._visible; } return this.__visible; }; v2.__set__visible = function (v) { this.__visible = v; if (!this._hiddenForResize) { this._visible = this.__visible; } return this.__get__visible(); }; v2.__get__autoSize = function () { return this._autoSize; }; v2.__set__autoSize = function (flag) { if (this._autoSize != flag) { this._autoSize = flag; if (this._autoSize) { this.startAutoResize(); } } return this.__get__autoSize(); }; v2.__get__maintainAspectRatio = function () { return this._aspectRatio; }; v2.__set__maintainAspectRatio = function (flag) { if (this._aspectRatio != flag) { this._aspectRatio = flag; if (this._aspectRatio && !this._autoSize) { this.startAutoResize(); } } return this.__get__maintainAspectRatio(); }; v2.__get__autoRewind = function () { return this._autoRewind; }; v2.__set__autoRewind = function (flag) { this._autoRewind = flag; return this.__get__autoRewind(); }; v2.__get__playheadTime = function () { var v2 = (this._ns == null) ? this._currentPos : this._ns.time; if (this._metadata.audiodelay != undefined) { v2 -= this._metadata.audiodelay; if (v2 < 0) { v2 = 0; } } return v2; }; v2.__set__playheadTime = function (position) { this.seek(position); return this.__get__playheadTime(); }; v2.__get__url = function () { return this._contentPath; }; v2.__get__volume = function () { return this._volume; }; v2.__set__volume = function (aVol) { this._volume = aVol; if (!this._hiddenForResize) { this._sound.setVolume(this._volume); } return this.__get__volume(); }; v2.__get__transform = function () { return this._sound.getTransform(); }; v2.__set__transform = function (s) { this._sound.setTransform(s); return this.__get__transform(); }; v2.__get__isRTMP = function () { if (this._ncMgr == null) { return undefined; } return this._ncMgr.isRTMP(); }; v2.__get__isLive = function () { return this._isLive; }; v2.__get__state = function () { return this._state; }; v2.__get__stateResponsive = function () { switch (this._state) { return false; case mx.video.VideoPlayer.DISCONNECTED: case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.PAUSED: case mx.video.VideoPlayer.BUFFERING: return true; } return false; }; v2.__get__bytesLoaded = function () { if (this._ns == null || this._ncMgr.isRTMP()) { return -1; } return this._ns.bytesLoaded; }; v2.__get__bytesTotal = function () { if (this._ns == null || this._ncMgr.isRTMP()) { return -1; } return this._ns.bytesTotal; }; v2.__get__totalTime = function () { return this._streamLength; }; v2.__get__bufferTime = function () { return this._bufferTime; }; v2.__set__bufferTime = function (aTime) { this._bufferTime = aTime; if (this._ns != null) { this._ns.setBufferTime(this._bufferTime); } return this.__get__bufferTime(); }; v2.__get__idleTimeout = function () { return this._idleTimeoutInterval; }; v2.__set__idleTimeout = function (aTime) { this._idleTimeoutInterval = aTime; if (this._idleTimeoutIntervalID > 0) { clearInterval(this._idleTimeoutIntervalID); this._idleTimeoutIntervalID = setInterval(this, 'doIdleTimeout', this._idleTimeoutInterval); } return this.__get__idleTimeout(); }; v2.__get__playheadUpdateInterval = function () { return this._updateTimeInterval; }; v2.__set__playheadUpdateInterval = function (aTime) { this._updateTimeInterval = aTime; if (this._updateTimeIntervalID > 0) { clearInterval(this._updateTimeIntervalID); this._updateTimeIntervalID = setInterval(this, 'doUpdateTime', this._updateTimeInterval); } return this.__get__playheadUpdateInterval(); }; v2.__get__progressInterval = function () { return this._updateProgressInterval; }; v2.__set__progressInterval = function (aTime) { this._updateProgressInterval = aTime; if (this._updateProgressIntervalID > 0) { clearInterval(this._updateProgressIntervalID); this._updateProgressIntervalID = setInterval(this, 'doUpdateProgress', this._updateProgressInterval); } return this.__get__progressInterval(); }; v2.__get__ncMgr = function () { if (this._ncMgr == null) { this.createINCManager(); } return this._ncMgr; }; v2.__get__metadata = function () { return this._metadata; }; v2.doUpdateTime = function () { var v2 = this.__get__playheadTime(); switch (this._state) { if (this._state !== mx.video.VideoPlayer.CONNECTION_ERROR) { } else { case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PAUSED: case mx.video.VideoPlayer.DISCONNECTED: clearInterval(this._updateTimeIntervalID); this._updateTimeIntervalID = 0; } } if (this._lastUpdateTime != v2) { this.dispatchEvent({'type': 'playheadUpdate', 'state': this._state, 'playheadTime': v2}); this._lastUpdateTime = v2; } }; v2.doUpdateProgress = function () { if (this._ns == null) { return undefined; } if (this._ns.bytesTotal >= 0) { this.dispatchEvent({'type': 'progress', 'bytesLoaded': this._ns.bytesLoaded, 'bytesTotal': this._ns.bytesTotal}); } if (this._state == mx.video.VideoPlayer.DISCONNECTED || this._state == mx.video.VideoPlayer.CONNECTION_ERROR || this._ns.bytesLoaded == this._ns.bytesTotal) { clearInterval(this._updateProgressIntervalID); this._updateProgressIntervalID = 0; } }; v2.rtmpOnStatus = function (info) { if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR) { return undefined; } switch (info.code) { case 'NetStream.Play.Stop': if (this._startingPlay) { return undefined; } switch (this._state) { case mx.video.VideoPlayer.RESIZING: if (this._hiddenForResize) { this.finishAutoResize(); } break; break; case mx.video.VideoPlayer.LOADING: case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PAUSED: default: this._sawPlayStop = true; } break; case 'NetStream.Buffer.Empty': if (this._bufferState !== mx.video.VideoPlayer.BUFFER_FULL) { } else { if (this._sawPlayStop) { this.rtmpDoStopAtEnd(true); } else { if (this._state == mx.video.VideoPlayer.PLAYING) { this.setState(mx.video.VideoPlayer.BUFFERING); } } } this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; break; case 'NetStream.Buffer.Flush': if (this._sawSeekNotify && this._state == mx.video.VideoPlayer.SEEKING) { this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this.setStateFromCachedState(); this.doUpdateTime(); } if (this._sawPlayStop && (this._bufferState == mx.video.VideoPlayer.BUFFER_EMPTY || this._bufferTime <= 0.1 && this._ns.bufferLength <= 0.1)) { this._cachedPlayheadTime = this.playheadTime; clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = setInterval(this, 'rtmpDoStopAtEnd', mx.video.VideoPlayer.RTMP_DO_STOP_AT_END_INTERVAL); } switch (this._bufferState) { case mx.video.VideoPlayer.BUFFER_EMPTY: if (!this._hiddenForResize) { if (this._state == mx.video.VideoPlayer.LOADING && this._cachedState == mx.video.VideoPlayer.PLAYING || this._state == mx.video.VideoPlayer.BUFFERING) { this.setState(mx.video.VideoPlayer.PLAYING); } else { if (this._cachedState == mx.video.VideoPlayer.BUFFERING) { this._cachedState = mx.video.VideoPlayer.PLAYING; } } } this._bufferState = mx.video.VideoPlayer.BUFFER_FLUSH; break; default: if (this._state == mx.video.VideoPlayer.BUFFERING) { this.setStateFromCachedState(); } } break; case 'NetStream.Buffer.Full': if (this._sawSeekNotify && this._state == mx.video.VideoPlayer.SEEKING) { this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this.setStateFromCachedState(); this.doUpdateTime(); } switch (this._bufferState) { case mx.video.VideoPlayer.BUFFER_EMPTY: this._bufferState = mx.video.VideoPlayer.BUFFER_FULL; if (!this._hiddenForResize) { if (this._state == mx.video.VideoPlayer.LOADING && this._cachedState == mx.video.VideoPlayer.PLAYING || this._state == mx.video.VideoPlayer.BUFFERING) { this.setState(mx.video.VideoPlayer.PLAYING); } else { if (this._cachedState == mx.video.VideoPlayer.BUFFERING) { this._cachedState = mx.video.VideoPlayer.PLAYING; } } if (this._rtmpDoStopAtEndIntervalID != 0) { this._sawPlayStop = true; clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; } } break; case mx.video.VideoPlayer.BUFFER_FLUSH: this._bufferState = mx.video.VideoPlayer.BUFFER_FULL; if (this._rtmpDoStopAtEndIntervalID != 0) { this._sawPlayStop = true; clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; } } if (this._state == mx.video.VideoPlayer.BUFFERING) { this.setStateFromCachedState(); } break; case 'NetStream.Pause.Notify': if (this._state == mx.video.VideoPlayer.RESIZING && this._hiddenForResize) { this.finishAutoResize(); } break; case 'NetStream.Unpause.Notify': if (this._state == mx.video.VideoPlayer.PAUSED) { this._state = mx.video.VideoPlayer.PLAYING; this.setState(mx.video.VideoPlayer.BUFFERING); } else { this._cachedState = mx.video.VideoPlayer.PLAYING; } break; case 'NetStream.Play.Start': clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; if (this._startingPlay) { this._startingPlay = false; this._cachedPlayheadTime = this.playheadTime; } else { if (this._state == mx.video.VideoPlayer.PLAYING) { this.setState(mx.video.VideoPlayer.BUFFERING); } } break; case 'NetStream.Play.Reset': clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; if (this._state == mx.video.VideoPlayer.REWINDING) { clearInterval(this._rtmpDoSeekIntervalID); this._rtmpDoSeekIntervalID = 0; if (this.__get__playheadTime() == 0 || this.__get__playheadTime() < this._cachedPlayheadTime) { this.setStateFromCachedState(); } else { this._cachedPlayheadTime = this.playheadTime; this._rtmpDoSeekIntervalID = setInterval(this, 'rtmpDoSeek', mx.video.VideoPlayer.RTMP_DO_SEEK_INTERVAL); } } break; case 'NetStream.Seek.Notify': if (this.__get__playheadTime() != this._cachedPlayheadTime) { this.setStateFromCachedState(); this.doUpdateTime(); } else { this._sawSeekNotify = true; if (this._rtmpDoSeekIntervalID == 0) { this._rtmpDoSeekIntervalID = setInterval(this, 'rtmpDoSeek', mx.video.VideoPlayer.RTMP_DO_SEEK_INTERVAL); } } break; break; case 'Netstream.Play.UnpublishNotify': break; case 'Netstream.Play.PublishNotify': case 'NetStream.Play.StreamNotFound': this.closeNS(false); if (!this._ncMgr.connectAgain()) { this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } break; case 'NetStream.Play.Failed': case 'NetStream.Failed': case 'NetStream.Play.FileStructureInvalid': case 'NetStream.Play.NoSupportedTrackFound': this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } }; v2.httpOnStatus = function (info) { switch (info.code) { case 'NetStream.Play.Stop': clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; if (this._invalidSeekTime) { this._invalidSeekTime = false; this._invalidSeekRecovery = true; this.setState(this._cachedState); this.seek(this.__get__playheadTime()); } else { switch (this._state) { case mx.video.VideoPlayer.SEEKING: this.httpDoSeek(); case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.BUFFERING: this.httpDoStopAtEnd(); } } break; case 'NetStream.Seek.InvalidTime': if (this._invalidSeekRecovery) { this._invalidSeekTime = false; this._invalidSeekRecovery = false; this.setState(this._cachedState); this.seek(0); } else { this._invalidSeekTime = true; } break; case 'NetStream.Buffer.Empty': this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; if (this._state == mx.video.VideoPlayer.PLAYING) { clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = setInterval(this, 'doDelayedBuffering', this._delayedBufferingInterval); } break; case 'NetStream.Buffer.Full': case 'NetStream.Buffer.Flush': clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; this._bufferState = mx.video.VideoPlayer.BUFFER_FULL; if (!this._hiddenForResize) { if (this._state == mx.video.VideoPlayer.LOADING && this._cachedState == mx.video.VideoPlayer.PLAYING || this._state == mx.video.VideoPlayer.BUFFERING) { this.setState(mx.video.VideoPlayer.PLAYING); } else { if (this._cachedState == mx.video.VideoPlayer.BUFFERING) { this._cachedState = mx.video.VideoPlayer.PLAYING; } } } break; case 'NetStream.Seek.Notify': this._invalidSeekRecovery = false; switch (this._state) { if (this._state !== mx.video.VideoPlayer.REWINDING) { } else { case mx.video.VideoPlayer.SEEKING: if (this._httpDoSeekIntervalID == 0) { this._httpDoSeekCount = 0; this._httpDoSeekIntervalID = setInterval(this, 'httpDoSeek', mx.video.VideoPlayer.HTTP_DO_SEEK_INTERVAL); } } } break; case 'NetStream.Play.StreamNotFound': case 'NetStream.Play.FileStructureInvalid': case 'NetStream.Play.NoSupportedTrackFound': this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } }; v2.ncConnected = function () { if (this._ncMgr == null || this._ncMgr.getNetConnection() == null) { this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } else { if (this._ns == null) { this._createStream(); this._setUpStream(); } } }; v2.ncReconnected = function () { if (this._ncMgr == null || this._ncMgr.getNetConnection() == null) { this.setState(mx.video.VideoPlayer.CONNECTION_ERROR); } else { this._ns = null; this._state = mx.video.VideoPlayer.STOPPED; this.execQueuedCmds(); } }; v2.onMetaData = function (info) { if (this._metadata != null) { return undefined; } this._metadata = info; if (this._streamLength == null || this._streamLength <= 0) { this._streamLength = info.duration; } if (isNaN(this._videoWidth) || this._videoWidth <= 0) { this._videoWidth = info.width; } if (isNaN(this._videoHeight) || this._videoHeight <= 0) { this._videoHeight = info.height; } this.dispatchEvent({'type': 'metadataReceived', 'info': info}); }; v2.onCuePoint = function (info) { if (!this._hiddenForResize || !isNaN(this._hiddenRewindPlayheadTime) && this.__get__playheadTime() < this._hiddenRewindPlayheadTime) { this.dispatchEvent({'type': 'cuePoint', 'info': info}); } }; v2.setState = function (s) { if (s == this._state) { return undefined; } this._hiddenRewindPlayheadTime = undefined; this._cachedState = this._state; this._cachedPlayheadTime = this.playheadTime; this._state = s; var v2 = this._state; this.dispatchEvent({'type': 'stateChange', 'state': v2, 'playheadTime': this.__get__playheadTime()}); if (!this._readyDispatched) { switch (v2) { if (v2 !== mx.video.VideoPlayer.BUFFERING) { } else { case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.PAUSED: this._readyDispatched = true; this.dispatchEvent({'type': 'ready', 'state': v2, 'playheadTime': this.__get__playheadTime()}); } } } if (this._cachedState !== mx.video.VideoPlayer.REWINDING) { } else { this.dispatchEvent({'type': 'rewind', 'state': v2, 'playheadTime': this.__get__playheadTime()}); if (this._ncMgr.isRTMP() && v2 == mx.video.VideoPlayer.STOPPED) { this.closeNS(); } } switch (v2) { case mx.video.VideoPlayer.STOPPED: case mx.video.VideoPlayer.PAUSED: if (this._ncMgr.isRTMP() && this._idleTimeoutIntervalID == 0) { this._idleTimeoutIntervalID = setInterval(this, 'doIdleTimeout', this._idleTimeoutInterval); } break; case mx.video.VideoPlayer.SEEKING: case mx.video.VideoPlayer.REWINDING: this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.BUFFERING: if (this._updateTimeIntervalID == 0) { this._updateTimeIntervalID = setInterval(this, 'doUpdateTime', this._updateTimeInterval); } case mx.video.VideoPlayer.LOADING: case mx.video.VideoPlayer.RESIZING: clearInterval(this._idleTimeoutIntervalID); this._idleTimeoutIntervalID = 0; } this.execQueuedCmds(); }; v2.setStateFromCachedState = function () { switch (this._cachedState) { case mx.video.VideoPlayer.PLAYING: case mx.video.VideoPlayer.PAUSED: this.setState(this._cachedState); break; case mx.video.VideoPlayer.BUFFERING: if (this._bufferState == mx.video.VideoPlayer.BUFFER_EMPTY) { this.setState(mx.video.VideoPlayer.BUFFERING); } else { this.setState(this._cachedState); } break; default: this.setState(mx.video.VideoPlayer.STOPPED); } }; v2.createINCManager = function () { if (this.ncMgrClassName == null) { this.ncMgrClassName = mx.video.VideoPlayer.DEFAULT_INCMANAGER; } var ncMgrConstructor = eval(this.ncMgrClassName); this._ncMgr = new ncMgrConstructor(); this._ncMgr.setVideoPlayer(this); }; v2.rtmpDoStopAtEnd = function (force) { if (this._rtmpDoStopAtEndIntervalID > 0) { switch (this._state) { if (this._state !== mx.video.VideoPlayer.CONNECTION_ERROR) { } else { case mx.video.VideoPlayer.DISCONNECTED: clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; return undefined; } } if (force || this._cachedPlayheadTime == this.__get__playheadTime()) { clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; } else { this._cachedPlayheadTime = this.playheadTime; return undefined; } } this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this._atEnd = true; this.setState(mx.video.VideoPlayer.STOPPED); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } this.doUpdateTime(); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } this.dispatchEvent({'type': 'complete', 'state': this._state, 'playheadTime': this.__get__playheadTime()}); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } if (this._autoRewind && !this._isLive && this.__get__playheadTime() != 0) { this._atEnd = false; this._currentPos = 0; this._play(0, 0); this.setState(mx.video.VideoPlayer.REWINDING); } else { this.closeNS(); } }; v2.rtmpDoSeek = function () { if (this._state != mx.video.VideoPlayer.REWINDING && this._state != mx.video.VideoPlayer.SEEKING) { clearInterval(this._rtmpDoSeekIntervalID); this._rtmpDoSeekIntervalID = 0; this._sawSeekNotify = false; } else { if (this.__get__playheadTime() != this._cachedPlayheadTime) { clearInterval(this._rtmpDoSeekIntervalID); this._rtmpDoSeekIntervalID = 0; this._sawSeekNotify = false; this.setStateFromCachedState(); this.doUpdateTime(); } } }; v2.httpDoStopAtEnd = function () { this._atEnd = true; if (this._streamLength == null || this._streamLength <= 0) { this._streamLength = this._ns.time; } this._pause(true); this.setState(mx.video.VideoPlayer.STOPPED); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } this.doUpdateTime(); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } this.dispatchEvent({'type': 'complete', 'state': this._state, 'playheadTime': this.__get__playheadTime()}); if (this._state != mx.video.VideoPlayer.STOPPED) { return undefined; } if (this._autoRewind) { this._atEnd = false; this._pause(true); this._seek(0); this.setState(mx.video.VideoPlayer.REWINDING); } }; v2.httpDoSeek = function () { var v2 = this._state == mx.video.VideoPlayer.REWINDING || this._state == mx.video.VideoPlayer.SEEKING; if (v2 && this._httpDoSeekCount < mx.video.VideoPlayer.HTTP_DO_SEEK_MAX_COUNT && (this._cachedPlayheadTime == this.__get__playheadTime() || this._invalidSeekTime)) { ++this._httpDoSeekCount; return undefined; } this._httpDoSeekCount = 0; clearInterval(this._httpDoSeekIntervalID); this._httpDoSeekIntervalID = 0; if (!v2) { return undefined; } this.setStateFromCachedState(); if (this._invalidSeekTime) { this._invalidSeekTime = false; this._invalidSeekRecovery = true; this.seek(this.__get__playheadTime()); } else { this.doUpdateTime(); } }; v2.closeNS = function (updateCurrentPos) { if (this._ns != null && this._ns != undefined) { if (updateCurrentPos) { clearInterval(this._updateTimeIntervalID); this._updateTimeIntervalID = 0; this.doUpdateTime(); this._currentPos = this._ns.time; } delete this._ns.onStatus; this._ns.onStatus = null; this._ns.close(); this._ns = null; } }; v2.doDelayedBuffering = function () { switch (this._state) { case mx.video.VideoPlayer.LOADING: break; case mx.video.VideoPlayer.RESIZING: case mx.video.VideoPlayer.PLAYING: clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; this.setState(mx.video.VideoPlayer.BUFFERING); break; default: clearInterval(this._delayedBufferingIntervalID); this._delayedBufferingIntervalID = 0; } }; v2._pause = function (doPause) { clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; this._ns.pause(doPause); }; v2._play = function () { clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; this._startingPlay = true; switch (arguments.length) { case 0: this._ns.play(this._ncMgr.getStreamName(), this._isLive ? -1 : 0, -1); break; case 1: this._ns.play(this._ncMgr.getStreamName(), this._isLive ? -1 : arguments[0], -1); break; case 2: this._ns.play(this._ncMgr.getStreamName(), this._isLive ? -1 : arguments[0], arguments[1]); break; default: throw new Error('bad args to _play'); } }; v2._seek = function (time) { clearInterval(this._rtmpDoStopAtEndIntervalID); this._rtmpDoStopAtEndIntervalID = 0; if (this._metadata.audiodelay != undefined && time + this._metadata.audiodelay < this._streamLength) { time += this._metadata.audiodelay; } this._ns.seek(time); this._invalidSeekTime = false; this._bufferState = mx.video.VideoPlayer.BUFFER_EMPTY; this._sawPlayStop = false; this._sawSeekNotify = false; }; v2.isXnOK = function () { if (this._state == mx.video.VideoPlayer.LOADING) { return true; } if (this._state == mx.video.VideoPlayer.CONNECTION_ERROR) { return false; } if (this._state != mx.video.VideoPlayer.DISCONNECTED) { if (this._ncMgr == null || this._ncMgr.getNetConnection() == null || !(this._ncMgr.getNetConnection()).isConnected) { this.setState(mx.video.VideoPlayer.DISCONNECTED); return false; } return true; } return false; }; v2.startAutoResize = function () { switch (this._state) { if (this._state !== mx.video.VideoPlayer.CONNECTION_ERROR) { } else { case mx.video.VideoPlayer.DISCONNECTED: return undefined; } } this._autoResizeDone = false; if (this.__get__stateResponsive() && this._videoWidth != undefined && this._videoHeight != undefined) { this.doAutoResize(); } else { clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = setInterval(this, 'doAutoResize', mx.video.VideoPlayer.AUTO_RESIZE_INTERVAL); } }; v2.doAutoResize = function () { if (this._autoResizeIntervalID > 0) { switch (this._state) { case mx.video.VideoPlayer.RESIZING: break; case mx.video.VideoPlayer.LOADING: case mx.video.VideoPlayer.DISCONNECTED: case mx.video.VideoPlayer.CONNECTION_ERROR: clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = 0; return undefined; default: if (this.__get__stateResponsive()) break; return undefined; } if (this._video.width != this._prevVideoWidth || this._video.height != this._prevVideoHeight || this._bufferState == mx.video.VideoPlayer.BUFFER_FULL || this._bufferState == mx.video.VideoPlayer.BUFFER_FLUSH || this._ns.time > mx.video.VideoPlayer.AUTO_RESIZE_PLAYHEAD_TIMEOUT) { if (this._hiddenForResize && this._metadata == null && this._hiddenForResizeMetadataDelay < mx.video.VideoPlayer.AUTO_RESIZE_METADATA_DELAY_MAX) { ++this._hiddenForResizeMetadataDelay; return undefined; } this._videoWidth = this._video.width; this._videoHeight = this._video.height; clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = 0; } else { return undefined; } } if (!this._autoSize && !this._aspectRatio || this._autoResizeDone) { this.setState(this._cachedState); return undefined; } this._autoResizeDone = true; if (this._autoSize) { this._video._width = this._videoWidth; this._video._height = this._videoHeight; } else { if (this._aspectRatio) { var v3 = this._videoWidth * this.__get__height() / this._videoHeight; var v2 = this._videoHeight * this.__get__width() / this._videoWidth; if (v2 < this.__get__height()) { this._video._height = v2; } else { if (v3 < this.__get__width()) { this._video._width = v3; } } } } if (this._hiddenForResize) { this._hiddenRewindPlayheadTime = this.playheadTime; if (this._state == mx.video.VideoPlayer.LOADING) { this._cachedState = mx.video.VideoPlayer.PLAYING; } if (!this._ncMgr.isRTMP()) { this._pause(true); this._seek(0); clearInterval(this._finishAutoResizeIntervalID); this._finishAutoResizeIntervalID = setInterval(this, 'finishAutoResize', mx.video.VideoPlayer.FINISH_AUTO_RESIZE_INTERVAL); } else { if (!this._isLive) { this._currentPos = 0; this._play(0, 0); this.setState(mx.video.VideoPlayer.RESIZING); } else { if (this._autoPlay) { clearInterval(this._finishAutoResizeIntervalID); this._finishAutoResizeIntervalID = setInterval(this, 'finishAutoResize', mx.video.VideoPlayer.FINISH_AUTO_RESIZE_INTERVAL); } else { this.finishAutoResize(); } } } } else { this.dispatchEvent({'type': 'resize', 'x': this._x, 'y': this._y, 'width': this._width, 'height': this._height}); } }; v2.finishAutoResize = function () { clearInterval(this._finishAutoResizeIntervalID); this._finishAutoResizeIntervalID = 0; if (this.__get__stateResponsive()) { return undefined; } this._visible = this.__visible; this._sound.setVolume(this._volume); this._hiddenForResize = false; this.dispatchEvent({'type': 'resize', 'x': this._x, 'y': this._y, 'width': this._width, 'height': this._height}); if (this._autoPlay) { if (this._ncMgr.isRTMP()) { if (!this._isLive) { this._currentPos = 0; this._play(0); } if (this._state == mx.video.VideoPlayer.RESIZING) { this.setState(mx.video.VideoPlayer.LOADING); this._cachedState = mx.video.VideoPlayer.PLAYING; } } else { this._pause(false); this._cachedState = mx.video.VideoPlayer.PLAYING; } } else { this.setState(mx.video.VideoPlayer.STOPPED); } }; v2._createStream = function () { this._ns = new NetStream(this._ncMgr.getNetConnection()); this._ns.mc = this; if (this._ncMgr.isRTMP()) { this._ns.onStatus = function (info) { this.mc.rtmpOnStatus(info); }; } else { this._ns.onStatus = function (info) { this.mc.httpOnStatus(info); }; } this._ns.onMetaData = function (info) { this.mc.onMetaData(info); }; this._ns.onCuePoint = function (info) { this.mc.onCuePoint(info); }; this._ns.setBufferTime(this._bufferTime); }; v2._setUpStream = function () { this._video.attachVideo(this._ns); this.attachAudio(this._ns); if (!isNaN(this._ncMgr.getStreamLength()) && this._ncMgr.getStreamLength() >= 0) { this._streamLength = this._ncMgr.getStreamLength(); } if (!isNaN(this._ncMgr.getStreamWidth()) && this._ncMgr.getStreamWidth() >= 0) { this._videoWidth = this._ncMgr.getStreamWidth(); } else { this._videoWidth = undefined; } if (!isNaN(this._ncMgr.getStreamHeight()) && this._ncMgr.getStreamHeight() >= 0) { this._videoHeight = this._ncMgr.getStreamHeight(); } else { this._videoHeight = undefined; } if ((this._autoSize || this._aspectRatio) && this._videoWidth != undefined && this._videoHeight != undefined) { this._prevVideoWidth = undefined; this._prevVideoHeight = undefined; this.doAutoResize(); } if (!this._autoSize && !this._aspectRatio || this._videoWidth != undefined && this._videoHeight != undefined) { if (this._autoPlay) { if (!this._ncMgr.isRTMP()) { this._cachedState = mx.video.VideoPlayer.BUFFERING; this._play(); } else { if (this._isLive) { this._cachedState = mx.video.VideoPlayer.BUFFERING; this._play(-1); } else { this._cachedState = mx.video.VideoPlayer.BUFFERING; this._play(0); } } } else { this._cachedState = mx.video.VideoPlayer.STOPPED; if (this._ncMgr.isRTMP()) { this._play(0, 0); } else { this._play(); this._pause(true); this._seek(0); } } } else { if (!this._hiddenForResize) { this.__visible = this._visible; this._visible = false; this._volume = this._sound.getVolume(); this._sound.setVolume(0); this._hiddenForResize = true; } this._hiddenForResizeMetadataDelay = 0; this._play(0); if (this._currentPos > 0) { this._seek(this._currentPos); this._currentPos = 0; } } clearInterval(this._autoResizeIntervalID); this._autoResizeIntervalID = setInterval(this, 'doAutoResize', mx.video.VideoPlayer.AUTO_RESIZE_INTERVAL); }; v2.doIdleTimeout = function () { clearInterval(this._idleTimeoutIntervalID); this._idleTimeoutIntervalID = 0; this.close(); }; v2.flushQueuedCmds = function () { while (this._cmdQueue.length > 0) { this._cmdQueue.pop(); } }; v2.execQueuedCmds = function () { for (;;) { if (!(this._cmdQueue.length > 0 && (this.__get__stateResponsive() || this._state == mx.video.VideoPlayer.CONNECTION_ERROR) && (this._cmdQueue[0].url != null || this._state != mx.video.VideoPlayer.DISCONNECTED && this._state != mx.video.VideoPlayer.CONNECTION_ERROR))) break; var v2 = this._cmdQueue.shift(); this._cachedState = this._state; this._state = mx.video.VideoPlayer.EXEC_QUEUED_CMD; switch (v2.type) { case mx.video.VideoPlayer.PLAY: this.play(v2.url, v2.isLive, v2.time); break; case mx.video.VideoPlayer.LOAD: this.load(v2.url, v2.isLive, v2.time); break; case mx.video.VideoPlayer.PAUSE: this.pause(); break; case mx.video.VideoPlayer.STOP: this.stop(); break; case mx.video.VideoPlayer.SEEK: this.seek(v2.time); continue; } } }; v2.queueCmd = function (type, url, isLive, time) { this._cmdQueue.push({'type': type, 'url': url, 'isLive': isLive, 'time': time}); }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.DISCONNECTED = 'disconnected'; v1.STOPPED = 'stopped'; v1.PLAYING = 'playing'; v1.PAUSED = 'paused'; v1.BUFFERING = 'buffering'; v1.LOADING = 'loading'; v1.CONNECTION_ERROR = 'connectionError'; v1.REWINDING = 'rewinding'; v1.SEEKING = 'seeking'; v1.RESIZING = 'resizing'; v1.EXEC_QUEUED_CMD = 'execQueuedCmd'; v1.BUFFER_EMPTY = 'bufferEmpty'; v1.BUFFER_FULL = 'bufferFull'; v1.BUFFER_FLUSH = 'bufferFlush'; v1.DEFAULT_INCMANAGER = 'mx.video.NCManager'; v1.DEFAULT_UPDATE_TIME_INTERVAL = 250; v1.DEFAULT_UPDATE_PROGRESS_INTERVAL = 250; v1.DEFAULT_IDLE_TIMEOUT_INTERVAL = 300000; v1.AUTO_RESIZE_INTERVAL = 100; v1.AUTO_RESIZE_PLAYHEAD_TIMEOUT = 0.5; v1.AUTO_RESIZE_METADATA_DELAY_MAX = 5; v1.FINISH_AUTO_RESIZE_INTERVAL = 250; v1.RTMP_DO_STOP_AT_END_INTERVAL = 500; v1.RTMP_DO_SEEK_INTERVAL = 100; v1.HTTP_DO_SEEK_INTERVAL = 250; v1.HTTP_DO_SEEK_MAX_COUNT = 4; v1.CLOSE_NS_INTERVAL = 0.25; v1.HTTP_DELAYED_BUFFERING_INTERVAL = 100; v1.PLAY = 0; v1.LOAD = 1; v1.PAUSE = 2; v1.STOP = 3; v1.SEEK = 4; v2.addProperty('autoRewind', v2.__get__autoRewind, v2.__set__autoRewind); v2.addProperty('autoSize', v2.__get__autoSize, v2.__set__autoSize); v2.addProperty('bufferTime', v2.__get__bufferTime, v2.__set__bufferTime); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('height', v2.__get__height, v2.__set__height); v2.addProperty('idleTimeout', v2.__get__idleTimeout, v2.__set__idleTimeout); v2.addProperty('isLive', v2.__get__isLive, function () {}); v2.addProperty('isRTMP', v2.__get__isRTMP, function () {}); v2.addProperty('maintainAspectRatio', v2.__get__maintainAspectRatio, v2.__set__maintainAspectRatio); v2.addProperty('metadata', v2.__get__metadata, function () {}); v2.addProperty('ncMgr', v2.__get__ncMgr, function () {}); v2.addProperty('playheadTime', v2.__get__playheadTime, v2.__set__playheadTime); v2.addProperty('playheadUpdateInterval', v2.__get__playheadUpdateInterval, v2.__set__playheadUpdateInterval); v2.addProperty('progressInterval', v2.__get__progressInterval, v2.__set__progressInterval); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('state', v2.__get__state, function () {}); v2.addProperty('stateResponsive', v2.__get__stateResponsive, function () {}); v2.addProperty('totalTime', v2.__get__totalTime, function () {}); v2.addProperty('transform', v2.__get__transform, v2.__set__transform); v2.addProperty('url', v2.__get__url, function () {}); v2.addProperty('videoHeight', v2.__get__videoHeight, function () {}); v2.addProperty('videoWidth', v2.__get__videoWidth, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('volume', v2.__get__volume, v2.__set__volume); v2.addProperty('width', v2.__get__width, v2.__set__width); v2.addProperty('x', v2.__get__x, v2.__set__x); v2.addProperty('y', v2.__get__y, v2.__set__y); ASSetPropFlags(mx.video.VideoPlayer.prototype, null, 1); } #endinitclip } movieClip 245 __Packages.mx.video.INCManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.INCManager) { _global.mx.video.INCManager = function () {}; } #endinitclip } movieClip 246 __Packages.mx.video.VideoError { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.VideoError) { var v1 = function (errCode, msg) { super(); this._code = errCode; this.message = '' + errCode + ': ' + mx.video.VideoError.ERROR_MSG[errCode - mx.video.VideoError.BASE_ERROR_CODE] + ((msg == undefined) ? '' : ': ' + msg); this.name = 'VideoError'; }; mx.video.VideoError = v1; mx.video.VideoError extends Error; var v2 = v1.prototype; v2.__get__code = function () { return this._code; }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.BASE_ERROR_CODE = 1000; v1.NO_CONNECTION = 1000; v1.NO_CUE_POINT_MATCH = 1001; v1.ILLEGAL_CUE_POINT = 1002; v1.INVALID_SEEK = 1003; v1.INVALID_CONTENT_PATH = 1004; v1.INVALID_XML = 1005; v1.NO_BITRATE_MATCH = 1006; v1.DELETE_DEFAULT_PLAYER = 1007; v1.ERROR_MSG = ['Unable to make connection to server or to find FLV on server', 'No matching cue point found', 'Illegal cue point', 'Invalid seek', 'Invalid contentPath', 'Invalid xml', 'No bitrate match, must be no default flv', 'Cannot delete default VideoPlayer']; v2.addProperty('code', v2.__get__code, function () {}); ASSetPropFlags(mx.video.VideoError.prototype, null, 1); } #endinitclip } movieClip 247 __Packages.mx.video.UIManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.UIManager) { var v1 = function (vc) { this._vc = vc; this._skin = undefined; this._skinAutoHide = false; this._skinReady = true; this.__visible = true; this._bufferingBarHides = false; this._controlsEnabled = true; this._lastScrubPos = 0; this._lastVolumePos = 0; this.cachedSoundLevel = this._vc.volume; this._isMuted = false; this.controls = new Array(); this.customClips = undefined; this.skin_mc = undefined; this.skinLoader = undefined; this.layout_mc = undefined; this.border_mc = undefined; this._seekBarIntervalID = 0; this._seekBarInterval = mx.video.UIManager.SEEK_BAR_INTERVAL_DEFAULT; this._seekBarScrubTolerance = mx.video.UIManager.SEEK_BAR_SCRUB_TOLERANCE_DEFAULT; this._volumeBarIntervalID = 0; this._volumeBarInterval = mx.video.UIManager.VOLUME_BAR_INTERVAL_DEFAULT; this._volumeBarScrubTolerance = mx.video.UIManager.VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT; this._bufferingDelayIntervalID = 0; this._bufferingDelayInterval = mx.video.UIManager.BUFFERING_DELAY_INTERVAL_DEFAULT; this._bufferingOn = false; this._skinAutoHideIntervalID = 0; this._vc.addEventListener('metadataReceived', this); this._vc.addEventListener('playheadUpdate', this); this._vc.addEventListener('progress', this); this._vc.addEventListener('stateChange', this); this._vc.addEventListener('ready', this); this._vc.addEventListener('resize', this); this._vc.addEventListener('volumeUpdate', this); }; mx.video.UIManager = v1; var v2 = v1.prototype; v2.handleEvent = function (e) { if (e.vp != undefined && e.vp != this._vc.__get__visibleVideoPlayerIndex()) { return undefined; } var v9 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); if (e.type == 'stateChange') { if (e.state == mx.video.FLVPlayback.BUFFERING) { if (!this._bufferingOn) { clearInterval(this._bufferingDelayIntervalID); this._bufferingDelayIntervalID = setInterval(this, 'doBufferingDelay', this._bufferingDelayInterval); } } else { clearInterval(this._bufferingDelayIntervalID); this._bufferingDelayIntervalID = 0; this._bufferingOn = false; } if (e.state == mx.video.FLVPlayback.LOADING) { this._progressPercent = (this._vc.getVideoPlayer(e.vp)).__get__isRTMP() ? 100 : 0; var v2 = mx.video.UIManager.SEEK_BAR; while (v2 <= mx.video.UIManager.VOLUME_BAR) { var v4 = this.controls[v2]; if (v4.progress_mc != undefined) { this.positionBar(v4, 'progress', this._progressPercent); } ++v2; } } v2 = 0; while (v2 < mx.video.UIManager.NUM_CONTROLS) { if (this.controls[v2] == undefined) { } else { this.setEnabledAndVisibleForState(v2, e.state); if (v2 < mx.video.UIManager.NUM_BUTTONS) { this.skinButtonControl(this.controls[v2]); } } ++v2; } } else { if (e.type == 'ready' || e.type == 'metadataReceived') { var v2 = 0; while (v2 < mx.video.UIManager.NUM_CONTROLS) { if (this.controls[v2] == undefined) { } else { this.setEnabledAndVisibleForState(v2, this._vc.__get__state()); if (v2 < mx.video.UIManager.NUM_BUTTONS) { this.skinButtonControl(this.controls[v2]); } } ++v2; } if ((this._vc.getVideoPlayer(e.vp)).__get__isRTMP()) { this._progressPercent = 100; v2 = mx.video.UIManager.SEEK_BAR; while (v2 <= mx.video.UIManager.VOLUME_BAR) { var v4 = this.controls[v2]; if (v4.progress_mc != undefined) { this.positionBar(v4, 'progress', this._progressPercent); } ++v2; } } } else { if (e.type == 'resize') { this.layoutSkin(); this.setupSkinAutoHide(); } else { if (e.type == 'volumeUpdate') { if (this._isMuted && e.volume > 0) { this._isMuted = false; this.setEnabledAndVisibleForState(mx.video.UIManager.MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); this.skinButtonControl(this.controls[mx.video.UIManager.MUTE_OFF_BUTTON]); this.setEnabledAndVisibleForState(mx.video.UIManager.MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); this.skinButtonControl(this.controls[mx.video.UIManager.MUTE_ON_BUTTON]); } var v5 = this.controls[mx.video.UIManager.VOLUME_BAR]; v5.percentage = this._isMuted ? this.cachedSoundLevel : e.volume; if (v5.percentage < 0) { v5.percentage = 0; } else { if (v5.percentage > 100) { v5.percentage = 100; } } this.positionHandle(mx.video.UIManager.VOLUME_BAR); } else { if (e.type == 'playheadUpdate' && this.controls[mx.video.UIManager.SEEK_BAR] != undefined) { if (!this._vc.__get__isLive() && this._vc.__get__totalTime() > 0) { var v6 = (e.playheadTime / this._vc.__get__totalTime()) * 100; if (v6 < 0) { v6 = 0; } else { if (v6 > 100) { v6 = 100; } } var v10 = this.controls[mx.video.UIManager.SEEK_BAR]; v10.percentage = v6; this.positionHandle(mx.video.UIManager.SEEK_BAR); } } else { if (e.type == 'progress') { this._progressPercent = e.bytesTotal <= 0 ? 100 : (e.bytesLoaded / e.bytesTotal) * 100; var v7 = this._vc._vpState[e.vp].minProgressPercent; if (!isNaN(v7) && v7 > this._progressPercent) { this._progressPercent = v7; } if (this._vc.__get__totalTime() > 0) { var v8 = (this._vc.__get__playheadTime() / this._vc.__get__totalTime()) * 100; if (v8 > this._progressPercent) { this._progressPercent = v8; this._vc._vpState[e.vp].minProgressPercent = this._progressPercent; } } var v2 = mx.video.UIManager.SEEK_BAR; while (v2 <= mx.video.UIManager.VOLUME_BAR) { var v4 = this.controls[v2]; if (v4.progress_mc != undefined) { this.positionBar(v4, 'progress', this._progressPercent); } ++v2; } } } } } } } this._vc.__set__activeVideoPlayerIndex(v9); }; v2.__get__bufferingBarHidesAndDisablesOthers = function () { return this._bufferingBarHides; }; v2.__set__bufferingBarHidesAndDisablesOthers = function (b) { this._bufferingBarHides = b; return this.__get__bufferingBarHidesAndDisablesOthers(); }; v2.__get__controlsEnabled = function () { return this._controlsEnabled; }; v2.__set__controlsEnabled = function (flag) { if (this._controlsEnabled == flag) { return undefined; } this._controlsEnabled = flag; var v2 = 0; while (v2 < mx.video.UIManager.NUM_BUTTONS) { if (this.controls[v2] == undefined) { } else { this.controls[v2].releaseCapture(); this.controls[v2].enabled = this._controlsEnabled && this.controls[v2].myEnabled; this.skinButtonControl(this.controls[v2]); } ++v2; } return this.__get__controlsEnabled(); }; v2.__get__skin = function () { return this._skin; }; v2.__set__skin = function (s) { if (s == this._skin) { return undefined; } if (this._skin != undefined) { this.removeSkin(); } this._skin = s; this._skinReady = this._skin == null || this._skin == ''; if (!this._skinReady) { this.downloadSkin(); } return this.__get__skin(); }; v2.__get__skinAutoHide = function () { return this._skinAutoHide; }; v2.__set__skinAutoHide = function (b) { if (b == this._skinAutoHide) { return undefined; } this._skinAutoHide = b; this.setupSkinAutoHide(); return this.__get__skinAutoHide(); }; v2.__get__skinReady = function () { return this._skinReady; }; v2.__get__seekBarInterval = function () { return this._seekBarInterval; }; v2.__set__seekBarInterval = function (s) { if (this._seekBarInterval == s) { return undefined; } this._seekBarInterval = s; if (this._seekBarIntervalID > 0) { clearInterval(this._seekBarIntervalID); this._seekBarIntervalID = setInterval(this, 'seekBarListener', this._seekBarInterval, false); } return this.__get__seekBarInterval(); }; v2.__get__volumeBarInterval = function () { return this._volumeBarInterval; }; v2.__set__volumeBarInterval = function (s) { if (this._volumeBarInterval == s) { return undefined; } this._volumeBarInterval = s; if (this._volumeBarIntervalID > 0) { clearInterval(this._volumeBarIntervalID); this._volumeBarIntervalID = setInterval(this, 'volumeBarListener', this._volumeBarInterval, false); } return this.__get__volumeBarInterval(); }; v2.__get__bufferingDelayInterval = function () { return this._bufferingDelayInterval; }; v2.__set__bufferingDelayInterval = function (s) { if (this._bufferingDelayInterval == s) { return undefined; } this._bufferingDelayInterval = s; if (this._bufferingDelayIntervalID > 0) { clearInterval(this._bufferingDelayIntervalID); this._bufferingDelayIntervalID = setInterval(this, 'doBufferingDelay', this._bufferingDelayIntervalID); } return this.__get__bufferingDelayInterval(); }; v2.__get__volumeBarScrubTolerance = function () { return this._volumeBarScrubTolerance; }; v2.__set__volumeBarScrubTolerance = function (s) { this._volumeBarScrubTolerance = s; return this.__get__volumeBarScrubTolerance(); }; v2.__get__seekBarScrubTolerance = function () { return this._seekBarScrubTolerance; }; v2.__set__seekBarScrubTolerance = function (s) { this._seekBarScrubTolerance = s; return this.__get__seekBarScrubTolerance(); }; v2.__get__visible = function () { return this.__visible; }; v2.__set__visible = function (v) { if (this.__visible == v) { return undefined; } this.__visible = v; if (!this.__visible) { this.skin_mc._visible = false; } else { this.setupSkinAutoHide(); } return this.__get__visible(); }; v2.getControl = function (index) { return this.controls[index]; }; v2.setControl = function (index, s) { if (s == null) { s = undefined; } if (s == this.controls[index]) { return undefined; } switch (index) { case mx.video.UIManager.PAUSE_BUTTON: case mx.video.UIManager.PLAY_BUTTON: this.resetPlayPause(); break; case mx.video.UIManager.PLAY_PAUSE_BUTTON: if (s._parent != this.layout_mc) { this.resetPlayPause(); this.setControl(mx.video.UIManager.PAUSE_BUTTON, s.pause_mc); this.setControl(mx.video.UIManager.PLAY_BUTTON, s.play_mc); } break; case mx.video.UIManager.MUTE_BUTTON: if (s._parent != this.layout_mc) { this.setControl(mx.video.UIManager.MUTE_ON_BUTTON, s.on_mc); this.setControl(mx.video.UIManager.MUTE_OFF_BUTTON, s.off_mc); } } if (index >= mx.video.UIManager.NUM_BUTTONS) { this.controls[index] = s; switch (index) { case mx.video.UIManager.SEEK_BAR: this.addBarControl(mx.video.UIManager.SEEK_BAR); break; case mx.video.UIManager.VOLUME_BAR: this.addBarControl(mx.video.UIManager.VOLUME_BAR); this.controls[mx.video.UIManager.VOLUME_BAR].percentage = this._vc.volume; break; case mx.video.UIManager.BUFFERING_BAR: this.controls[mx.video.UIManager.BUFFERING_BAR].uiMgr = this; this.controls[mx.video.UIManager.BUFFERING_BAR].controlIndex = mx.video.UIManager.BUFFERING_BAR; if (this.controls[mx.video.UIManager.BUFFERING_BAR]._parent == this.skin_mc) { this.finishAddBufferingBar(); } else { this.controls[mx.video.UIManager.BUFFERING_BAR].onEnterFrame = function () { this.uiMgr.finishAddBufferingBar(); }; } } this.setEnabledAndVisibleForState(index, this._vc.__get__state()); } else { this.removeButtonControl(index); this.controls[index] = s; this.addButtonControl(index); } }; v2.resetPlayPause = function () { if (this.controls[mx.video.UIManager.PLAY_PAUSE_BUTTON] == undefined) { return undefined; } var v2 = mx.video.UIManager.PAUSE_BUTTON; while (v2 <= mx.video.UIManager.PLAY_BUTTON) { this.removeButtonControl(v2); ++v2; } this.controls[mx.video.UIManager.PLAY_PAUSE_BUTTON] = undefined; }; v2.addButtonControl = function (index) { var v3 = this.controls[index]; if (v3 == undefined) { return undefined; } var v5 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); v3.id = index; v3.state = mx.video.UIManager.UP_STATE; v3.uiMgr = this; this.setEnabledAndVisibleForState(index, this._vc.__get__state()); v3.onRollOver = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.skinButtonControl(this); }; v3.onRollOut = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; if (index == mx.video.UIManager.SEEK_BAR_HANDLE || index == mx.video.UIManager.VOLUME_BAR_HANDLE) { v3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; v3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; v3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; } else { v3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.skinButtonControl(this); }; v3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; v3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; } if (v3._parent == this.skin_mc) { this.skinButtonControl(v3); } else { v3.onEnterFrame = function () { this.uiMgr.skinButtonControl(this); }; } this._vc.__set__activeVideoPlayerIndex(v5); }; v2.removeButtonControl = function (index) { if (this.controls[index] == undefined) { return undefined; } this.controls[index].uiMgr = undefined; this.controls[index].onRollOver = undefined; this.controls[index].onRollOut = undefined; this.controls[index].onPress = undefined; this.controls[index].onRelease = undefined; this.controls[index].onReleaseOutside = undefined; this.controls[index] = undefined; }; v2.downloadSkin = function () { if (this.skinLoader == undefined) { this.skinLoader = new MovieClipLoader(); this.skinLoader.addListener(this); } if (this.skin_mc == undefined) { this.skin_mc = this._vc.createEmptyMovieClip('skin_mc', this._vc.getNextHighestDepth()); } this.skin_mc._visible = false; this.skin_mc._x = Stage.width + 100; this.skin_mc._y = Stage.height + 100; this.skinLoader.loadClip(this._skin, this.skin_mc); }; v2.onLoadError = function (target_mc, errorCode) { this._skinReady = true; this._vc.skinError('Unable to load skin swf'); }; v2.onLoadInit = function () { try { this.skin_mc._visible = false; this.skin_mc._x = 0; this.skin_mc._y = 0; this.layout_mc = this.skin_mc.layout_mc; if (this.layout_mc == undefined) { throw new Error('No layout_mc'); } this.layout_mc._visible = false; this.customClips = new Array(); this.setCustomClips('bg'); if (this.layout_mc.playpause_mc != undefined) { this.setSkin(mx.video.UIManager.PLAY_PAUSE_BUTTON, this.layout_mc.playpause_mc); } else { this.setSkin(mx.video.UIManager.PAUSE_BUTTON, this.layout_mc.pause_mc); this.setSkin(mx.video.UIManager.PLAY_BUTTON, this.layout_mc.play_mc); } this.setSkin(mx.video.UIManager.STOP_BUTTON, this.layout_mc.stop_mc); this.setSkin(mx.video.UIManager.BACK_BUTTON, this.layout_mc.back_mc); this.setSkin(mx.video.UIManager.FORWARD_BUTTON, this.layout_mc.forward_mc); this.setSkin(mx.video.UIManager.MUTE_BUTTON, this.layout_mc.volumeMute_mc); this.setSkin(mx.video.UIManager.SEEK_BAR, this.layout_mc.seekBar_mc); this.setSkin(mx.video.UIManager.VOLUME_BAR, this.layout_mc.volumeBar_mc); this.setSkin(mx.video.UIManager.BUFFERING_BAR, this.layout_mc.bufferingBar_mc); this.setCustomClips('fg'); this.layoutSkin(); this.setupSkinAutoHide(); this.skin_mc._visible = this.__visible; this._skinReady = true; this._vc.skinLoaded(); var v4 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); var v3 = this._vc.__get__state(); var v2 = 0; while (v2 < mx.video.UIManager.NUM_CONTROLS) { if (this.controls[v2] == undefined) { } else { this.setEnabledAndVisibleForState(v2, v3); if (v2 < mx.video.UIManager.NUM_BUTTONS) { this.skinButtonControl(this.controls[v2]); } } ++v2; } this._vc.__set__activeVideoPlayerIndex(v4); } catch (v0) { if (Error(v0) != null) { var err = Error(v0); this._vc.skinError(err.message); this.removeSkin(); } else { throw v0; } } }; v2.layoutSkin = function () { if (this.layout_mc == undefined) { return undefined; } var v3 = this.layout_mc.video_mc; if (v3 == undefined) { throw new Error('No layout_mc.video_mc'); } this.placeholderLeft = v3._x; this.placeholderRight = v3._x + v3._width; this.placeholderTop = v3._y; this.placeholderBottom = v3._y + v3._height; this.videoLeft = 0; this.videoRight = this._vc.width; this.videoTop = 0; this.videoBottom = this._vc.height; if (!isNaN(this.layout_mc.minWidth) && this.layout_mc.minWidth > 0 && this.layout_mc.minWidth > this.videoRight) { this.videoLeft -= (this.layout_mc.minWidth - this.videoRight) / 2; this.videoRight = this.layout_mc.minWidth + this.videoLeft; } if (!isNaN(this.layout_mc.minHeight) && this.layout_mc.minHeight > 0 && this.layout_mc.minHeight > this.videoBottom) { this.videoTop -= (this.layout_mc.minHeight - this.videoBottom) / 2; this.videoBottom = this.layout_mc.minHeight + this.videoTop; } var v2; v2 = 0; while (v2 < this.customClips.length) { this.layoutControl(this.customClips[v2]); ++v2; } v2 = 0; while (v2 < mx.video.UIManager.NUM_CONTROLS) { this.layoutControl(this.controls[v2]); ++v2; } }; v2.layoutControl = function (ctrl) { if (ctrl == undefined) { return undefined; } if (ctrl.skin.anchorRight) { if (ctrl.skin.anchorLeft) { ctrl._x = ctrl.skin._x - this.placeholderLeft + this.videoLeft; ctrl._width = ctrl.skin._x + ctrl.skin._width - this.placeholderRight + this.videoRight - ctrl._x; if (ctrl.origWidth != undefined) { ctrl.origWidth = undefined; } } else { ctrl._x = ctrl.skin._x - this.placeholderRight + this.videoRight; } } else { ctrl._x = ctrl.skin._x - this.placeholderLeft + this.videoLeft; } if (ctrl.skin.anchorTop) { if (ctrl.skin.anchorBottom) { ctrl._y = ctrl.skin._y - this.placeholderTop + this.videoTop; ctrl._height = ctrl.skin._y + ctrl.skin._height - this.placeholderBottom + this.videoBottom - ctrl._y; if (ctrl.origHeight != undefined) { ctrl.origHeight = undefined; } } else { ctrl._y = ctrl.skin._y - this.placeholderTop + this.videoTop; } } else { ctrl._y = ctrl.skin._y - this.placeholderBottom + this.videoBottom; } switch (ctrl.controlIndex) { case mx.video.UIManager.SEEK_BAR: case mx.video.UIManager.VOLUME_BAR: if (ctrl.progress_mc != undefined) { if (this._progressPercent == undefined) { this._progressPercent = this._vc.__get__isRTMP() ? 100 : 0; } this.positionBar(ctrl, 'progress', this._progressPercent); } this.positionHandle(ctrl.controlIndex); break; case mx.video.UIManager.BUFFERING_BAR: if (ctrl.fill_mc != undefined) { this.positionMaskedFill(ctrl, ctrl.fill_mc, 100); } } if (ctrl.layoutSelf != undefined) { ctrl.layoutSelf(); } }; v2.removeSkin = function () { if (this.skin_mc != undefined) { var v2 = 0; while (v2 < mx.video.UIManager.NUM_BUTTONS) { this.removeButtonControl(v2); ++v2; } v2 = mx.video.UIManager.NUM_BUTTONS; while (v2 < mx.video.UIManager.NUM_CONTROLS) { this.controls[v2] = undefined; ++v2; } this.skin_mc.unloadMovie(); this.layout_mc = undefined; this.border_mc = undefined; } }; v2.setCustomClips = function (prefix) { var v4 = 1; while (!false) { var v2 = this.layout_mc[prefix + v4++ + '_mc']; if (v2 == undefined) { break; } var v3 = v2.mc; if (v3 == undefined) { v3 = v2._parent._parent[v2._name]; } if (v3 == undefined) { throw new Error('Bad clip in skin: ' + v2); } v3.skin = v2; this.customClips.push(v3); if (prefix == 'bg' && v4 == 2) { this.border_mc = v3; } } }; v2.setSkin = function (index, s) { if (s == undefined) { return undefined; } var v2 = s.mc; if (v2 == undefined) { v2 = s._parent._parent[s._name]; } if (v2 == undefined) { throw new Error('Bad clip in skin: ' + s); } v2.skin = s; if (index < mx.video.UIManager.NUM_BUTTONS) { this.setupSkinStates(v2); } else { switch (index) { case mx.video.UIManager.PLAY_PAUSE_BUTTON: this.setupSkinStates(v2.play_mc); this.setupSkinStates(v2.pause_mc); break; case mx.video.UIManager.MUTE_BUTTON: this.setupSkinStates(v2.on_mc); this.setupSkinStates(v2.off_mc); break; case mx.video.UIManager.SEEK_BAR: case mx.video.UIManager.VOLUME_BAR: var v4 = (index == mx.video.UIManager.SEEK_BAR) ? 'seekBar' : 'volumeBar'; if (v2.handle_mc == undefined) { v2.handle_mc = v2.skin.handle_mc; if (v2.handle_mc == undefined) { v2.handle_mc = v2.skin._parent._parent[v4 + 'Handle_mc']; } } if (v2.progress_mc == undefined) { v2.progress_mc = v2.skin.progress_mc; if (v2.progress_mc == undefined) { v2.progress_mc = v2.skin._parent._parent[v4 + 'Progress_mc']; } } if (v2.fullness_mc == undefined) { v2.fullness_mc = v2.skin.fullness_mc; if (v2.fullness_mc == undefined) { v2.fullness_mc = v2.skin._parent._parent[v4 + 'Fullness_mc']; } } break; case mx.video.UIManager.BUFFERING_BAR: if (v2.fill_mc == undefined) { v2.fill_mc = v2.skin.fill_mc; if (v2.fill_mc == undefined) { v2.fill_mc = v2.skin._parent._parent.bufferingBarFill_mc; } } } } this.setControl(index, v2); }; v2.setupSkinStates = function (ctrl) { if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl; ctrl.over_mc = ctrl; ctrl.down_mc = ctrl; ctrl.disabled_mc = ctrl; } else { ctrl._x = 0; ctrl._y = 0; ctrl.up_mc._x = 0; ctrl.up_mc._y = 0; ctrl.up_mc._visible = true; if (ctrl.over_mc == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc._x = 0; ctrl.over_mc._y = 0; ctrl.over_mc._visible = false; } if (ctrl.down_mc == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc._x = 0; ctrl.down_mc._y = 0; ctrl.down_mc._visible = false; } if (ctrl.disabled_mc == undefined) { ctrl.disabled_mc_mc = ctrl.up_mc; } else { ctrl.disabled_mc._x = 0; ctrl.disabled_mc._y = 0; ctrl.disabled_mc._visible = false; } } }; v2.skinButtonControl = function (ctrl) { if (ctrl.onEnterFrame != undefined) { delete ctrl.onEnterFrame; ctrl.onEnterFrame = undefined; } if (ctrl.enabled) { switch (ctrl.state) { case mx.video.UIManager.UP_STATE: if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl.attachMovie(ctrl.upLinkageID, 'up_mc', ctrl.getNextHighestDepth()); } this.applySkinState(ctrl, ctrl.up_mc); break; case mx.video.UIManager.OVER_STATE: if (ctrl.over_mc == undefined) { if (ctrl.overLinkageID == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc = ctrl.attachMovie(ctrl.overLinkageID, 'over_mc', ctrl.getNextHighestDepth()); } } this.applySkinState(ctrl, ctrl.over_mc); break; case mx.video.UIManager.DOWN_STATE: if (ctrl.down_mc == undefined) { if (ctrl.downLinkageID == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc = ctrl.attachMovie(ctrl.downLinkageID, 'down_mc', ctrl.getNextHighestDepth()); } } this.applySkinState(ctrl, ctrl.down_mc); } } else { ctrl.state = mx.video.UIManager.UP_STATE; if (ctrl.disabled_mc == undefined) { if (ctrl.disabledLinkageID == undefined) { ctrl.disabled_mc = ctrl.up_mc; } else { ctrl.disabled_mc = ctrl.attachMovie(ctrl.disabledLinkageID, 'disabled_mc', ctrl.getNextHighestDepth()); } } this.applySkinState(ctrl, ctrl.disabled_mc); } if (ctrl.placeholder_mc != undefined) { ctrl.placeholder_mc.unloadMovie(); delete ctrl.placeholder_mc; ctrl.placeholder_mc = undefined; } }; v2.applySkinState = function (ctrl, state) { if (state != ctrl.currentState_mc) { if (state != undefined) { state._visible = true; } if (ctrl.currentState_mc != undefined) { ctrl.currentState_mc._visible = false; } ctrl.currentState_mc = state; } }; v2.addBarControl = function (controlIndex) { var v2 = this.controls[controlIndex]; v2.isDragging = false; v2.percentage = 0; v2.uiMgr = this; v2.controlIndex = controlIndex; if (v2._parent == this.skin_mc) { this.finishAddBarControl(controlIndex); } else { v2.onEnterFrame = function () { this.uiMgr.finishAddBarControl(this.controlIndex); }; } }; v2.finishAddBarControl = function (controlIndex) { var v2 = this.controls[controlIndex]; delete v2.onEnterFrame; v2.onEnterFrame = undefined; if (v2.addBarControl != undefined) { v2.addBarControl(); } this.calcBarMargins(v2, 'handle', true); this.calcBarMargins(v2, 'progress', false); this.calcBarMargins(v2.progress_mc, 'fill', false); this.calcBarMargins(v2.progress_mc, 'mask', false); this.calcBarMargins(v2, 'fullness', false); this.calcBarMargins(v2.fullness_mc, 'fill', false); this.calcBarMargins(v2.fullness_mc, 'mask', false); v2.origWidth = v2._width; v2.origHeight = v2._height; this.fixUpBar(v2, 'progress'); if (v2.progress_mc != undefined) { this.fixUpBar(v2, 'progressBarFill'); if (this._progressPercent == undefined) { this._progressPercent = this._vc.__get__isRTMP() ? 100 : 0; } this.positionBar(v2, 'progress', this._progressPercent); } this.fixUpBar(v2, 'fullness'); if (v2.fullness_mc != undefined) { this.fixUpBar(v2, 'fullnessBarFill'); } this.fixUpBar(v2, 'handle'); v2.handle_mc.controlIndex = controlIndex; switch (controlIndex) { case mx.video.UIManager.SEEK_BAR: this.setControl(mx.video.UIManager.SEEK_BAR_HANDLE, v2.handle_mc); break; case mx.video.UIManager.VOLUME_BAR: this.setControl(mx.video.UIManager.VOLUME_BAR_HANDLE, v2.handle_mc); } this.positionHandle(controlIndex); }; v2.fixUpBar = function (ctrl, type) { if (ctrl[type + 'LinkageID'] != undefined && ctrl[type + 'LinkageID'].length > 0) { var v1; if (ctrl[type + 'Below']) { v1 = -1; while (ctrl._parent.getInstanceAtDepth(v1) != undefined) { --v1; } } else { ctrl[type + 'Below'] = false; v1 = ctrl._parent.getNextHighestDepth(); } var v5 = (ctrl.controlIndex == mx.video.UIManager.SEEK_BAR) ? 'seekBar' : 'volumeBar'; var v4 = v5 + (type.substring(0, 1)).toUpperCase() + type.substring(1) + '_mc'; ctrl[type + '_mc'] = ctrl._parent.attachMovie(ctrl[type + 'LinkageID'], v4, v1); } }; v2.calcBarMargins = function (ctrl, type, symmetricMargins) { var v2 = ctrl[type + '_mc']; if (v2 == undefined) { return undefined; } if (ctrl[type + 'LeftMargin'] == undefined && v2._parent == ctrl._parent) { ctrl[type + 'LeftMargin'] = v2._x - ctrl._x; } if (ctrl[type + 'RightMargin'] == undefined) { if (symmetricMargins) { ctrl[type + 'RightMargin'] = ctrl[type + 'LeftMargin']; } else { if (v2._parent == ctrl._parent) { ctrl[type + 'RightMargin'] = ctrl._width - v2._width - v2._x + ctrl._x; } } } if (ctrl[type + 'TopMargin'] == undefined && v2._parent == ctrl._parent) { ctrl[type + 'TopMargin'] = v2._y - ctrl._y; } if (ctrl[type + 'BottomMargin'] == undefined) { if (symmetricMargins) { ctrl[type + 'BottomMargin'] = ctrl[type + 'TopMargin']; } else { if (v2._parent == ctrl._parent) { ctrl[type + 'BottomMargin'] = ctrl._height - v2._height - v2._y + ctrl._y; } } } if (ctrl[type + 'X'] == undefined) { if (v2._parent == ctrl._parent) { ctrl[type + 'X'] = v2._x - ctrl._x; } else { if (v2._parent == ctrl) { ctrl[type + 'X'] = v2._x; } } } if (ctrl[type + 'Y'] == undefined) { if (v2._parent == ctrl._parent) { ctrl[type + 'Y'] = v2._y - ctrl._y; } else { if (v2._parent == ctrl) { ctrl[type + 'Y'] = v2._y; } } } ctrl[type + 'XScale'] = v2._xscale; ctrl[type + 'YScale'] = v2._yscale; ctrl[type + 'Width'] = v2._width; ctrl[type + 'Height'] = v2._height; }; v2.finishAddBufferingBar = function () { var v2 = this.controls[mx.video.UIManager.BUFFERING_BAR]; delete v2.onEnterFrame; v2.onEnterFrame = undefined; this.calcBarMargins(v2, 'fill', true); this.fixUpBar(v2, 'fill'); if (v2.fill_mc != undefined) { this.positionMaskedFill(v2, v2.fill_mc, 100); } }; v2.positionMaskedFill = function (ctrl, fill, percent) { var v5 = fill._parent; var v3 = ctrl.mask_mc; if (v3 == undefined) { v3 = v5.createEmptyMovieClip(ctrl._name + 'Mask_mc', v5.getNextHighestDepth()); ctrl.mask_mc = v3; v3.beginFill(16777215); v3.lineTo(0, 0); v3.lineTo(1, 0); v3.lineTo(1, 1); v3.lineTo(0, 1); v3.lineTo(0, 0); v3.endFill(); fill.setMask(v3); v3._x = ctrl.fillX; v3._y = ctrl.fillY; v3._width = ctrl.fillWidth; v3._height = ctrl.fillHeight; v3._visible = false; this.calcBarMargins(ctrl, 'mask', true); } if (v5 == ctrl) { if (fill.slideReveal) { fill._x = ctrl.maskX - ctrl.fillWidth + ctrl.fillWidth * percent / 100; } else { v3._width = ctrl.fillWidth * percent / 100; } } else { if (v5 == ctrl._parent) { if (fill.slideReveal) { v3._x = ctrl._x + ctrl.maskLeftMargin; v3._y = ctrl._y + ctrl.maskTopMargin; v3._width = ctrl._width - ctrl.maskRightMargin - ctrl.maskLeftMargin; v3._height = ctrl._height - ctrl.maskTopMargin - ctrl.maskBottomMargin; fill._x = v3._x - ctrl.fillWidth + ctrl.maskWidth * percent / 100; fill._y = ctrl._y + ctrl.fillTopMargin; } else { fill._x = ctrl._x + ctrl.fillLeftMargin; fill._y = ctrl._y + ctrl.fillTopMargin; v3._x = fill._x; v3._y = fill._y; v3._width = (ctrl._width - ctrl.fillRightMargin - ctrl.fillLeftMargin) * percent / 100; v3._height = ctrl._height - ctrl.fillTopMargin - ctrl.fillBottomMargin; } } } }; v2.startHandleDrag = function (controlIndex) { var v2 = this.controls[controlIndex]; var v5 = v2.handle_mc; if (v2.startHandleDrag == undefined || !v2.startHandleDrag()) { var v3 = v2._y + v2.handleY; var v4 = (v2.origWidth == undefined) ? v2._width : v2.origWidth; v5.startDrag(false, v2._x + v2.handleLeftMargin, v3, v2._x + v4 - v2.handleRightMargin, v3); } v2.isDragging = true; }; v2.stopHandleDrag = function (controlIndex) { var v2 = this.controls[controlIndex]; var v3 = v2.handle_mc; if (v2.stopHandleDrag == undefined || !v2.stopHandleDrag()) { v3.stopDrag(); } v2.isDragging = false; }; v2.positionHandle = function (controlIndex) { var v2 = this.controls[controlIndex]; var v3 = v2.handle_mc; if (v3 == undefined) { return undefined; } if (v2.positionHandle != undefined && v2.positionHandle()) { return undefined; } var v4 = (v2.origWidth == undefined) ? v2._width : v2.origWidth; var v5 = v4 - v2.handleRightMargin - v2.handleLeftMargin; v3._x = v2._x + v2.handleLeftMargin + v5 * v2.percentage / 100; v3._y = v2._y + v2.handleY; if (v2.fullness_mc != undefined) { this.positionBar(v2, 'fullness', v2.percentage); } }; v2.positionBar = function (ctrl, type, percent) { if (ctrl.positionBar != undefined && ctrl.positionBar(type, percent)) { return undefined; } var v2 = ctrl[type + '_mc']; if (v2._parent == ctrl) { if (v2.fill_mc == undefined) { v2._xscale = ctrl[type + 'XScale'] * percent / 100; } else { this.positionMaskedFill(v2, v2.fill_mc, percent); } } else { v2._x = ctrl._x + ctrl[type + 'LeftMargin']; v2._y = ctrl._y + ctrl[type + 'Y']; if (v2.fill_mc == undefined) { v2._width = (ctrl._width - ctrl[type + 'LeftMargin'] - ctrl[type + 'RightMargin']) * percent / 100; } else { this.positionMaskedFill(v2, v2.fill_mc, percent); } } }; v2.calcPercentageFromHandle = function (controlIndex) { var v2 = this.controls[controlIndex]; var v5 = v2.handle_mc; if (v2.calcPercentageFromHandle == undefined || !v2.calcPercentageFromHandle()) { var v3 = (v2.origWidth == undefined) ? v2._width : v2.origWidth; var v6 = v3 - v2.handleRightMargin - v2.handleLeftMargin; var v4 = v5._x - (v2._x + v2.handleLeftMargin); v2.percentage = (v4 / v6) * 100; if (v2.fullness_mc != undefined) { this.positionBar(v2, 'fullness', v2.percentage); } } if (v2.percentage < 0) { v2.percentage = 0; } if (v2.percentage > 100) { v2.percentage = 100; } }; v2.handleRelease = function (controlIndex) { var v3 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); if (controlIndex == mx.video.UIManager.SEEK_BAR) { this.seekBarListener(true); } else { if (controlIndex == mx.video.UIManager.VOLUME_BAR) { this.volumeBarListener(true); } } this.stopHandleDrag(controlIndex); this._vc.__set__activeVideoPlayerIndex(v3); if (controlIndex == mx.video.UIManager.SEEK_BAR) { this._vc._scrubFinish(); } }; v2.seekBarListener = function (finish) { var v3 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); var v4 = this.controls[mx.video.UIManager.SEEK_BAR]; this.calcPercentageFromHandle(mx.video.UIManager.SEEK_BAR); var v2 = v4.percentage; if (finish) { clearInterval(this._seekBarIntervalID); this._seekBarIntervalID = 0; if (v2 != this._lastScrubPos) { this._vc.seekPercent(v2); } this._vc.addEventListener('playheadUpdate', this); if (this._playAfterScrub) { this._vc.play(); } } else { if ((this._vc.getVideoPlayer(this._vc.__get__visibleVideoPlayerIndex())).__get__state() == mx.video.VideoPlayer.SEEKING) { } else { if (this._seekBarScrubTolerance <= 0 || Math.abs(v2 - this._lastScrubPos) > this._seekBarScrubTolerance || v2 < this._seekBarScrubTolerance || v2 > 100 - this._seekBarScrubTolerance) { if (v2 != this._lastScrubPos) { this._lastScrubPos = v2; this._vc.seekPercent(v2); } } } } this._vc.__set__activeVideoPlayerIndex(v3); }; v2.volumeBarListener = function (finish) { var v3 = this.controls[mx.video.UIManager.VOLUME_BAR]; this.calcPercentageFromHandle(mx.video.UIManager.VOLUME_BAR); var v2 = v3.percentage; if (finish) { clearInterval(this._volumeBarIntervalID); this._volumeBarIntervalID = 0; this._vc.addEventListener('volumeUpdate', this); } if (finish || this._volumeBarScrubTolerance <= 0 || Math.abs(v2 - this._lastVolumePos) > this._volumeBarScrubTolerance || v2 < this._volumeBarScrubTolerance || v2 > 100 - this._volumeBarScrubTolerance) { if (v2 != this._lastVolumePos) { if (this._isMuted) { this.cachedSoundLevel = v2; } else { this._vc.__set__volume(v2); } this._lastVolumePos = v2; } } }; v2.doBufferingDelay = function () { clearInterval(this._bufferingDelayIntervalID); this._bufferingDelayIntervalID = 0; var v2 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); if (this._vc.__get__state() == mx.video.FLVPlayback.BUFFERING) { this._bufferingOn = true; this.handleEvent({'type': 'stateChange', 'state': mx.video.FLVPlayback.BUFFERING, 'vp': this._vc.__get__visibleVideoPlayerIndex()}); } this._vc.__set__activeVideoPlayerIndex(v2); }; v2.dispatchMessage = function (ctrl) { if (ctrl.id == mx.video.UIManager.SEEK_BAR_HANDLE) { this._vc._scrubStart(); } var v2 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); switch (ctrl.id) { case mx.video.UIManager.PAUSE_BUTTON: this._vc.pause(); break; case mx.video.UIManager.PLAY_BUTTON: this._vc.play(); break; case mx.video.UIManager.STOP_BUTTON: this._vc.stop(); break; case mx.video.UIManager.SEEK_BAR_HANDLE: this.calcPercentageFromHandle(mx.video.UIManager.SEEK_BAR); this._lastScrubPos = this.controls[mx.video.UIManager.SEEK_BAR].percentage; this._vc.removeEventListener('playheadUpdate', this); if (this._vc.__get__playing() || this._vc.__get__buffering()) { this._playAfterScrub = true; } else { if (this._vc.__get__state() != mx.video.VideoPlayer.SEEKING) { this._playAfterScrub = false; } } this._seekBarIntervalID = setInterval(this, 'seekBarListener', this._seekBarInterval, false); this.startHandleDrag(mx.video.UIManager.SEEK_BAR); this._vc.pause(); break; case mx.video.UIManager.VOLUME_BAR_HANDLE: this.calcPercentageFromHandle(mx.video.UIManager.VOLUME_BAR); this._lastVolumePos = this.controls[mx.video.UIManager.VOLUME_BAR].percentage; this._vc.removeEventListener('volumeUpdate', this); this._volumeBarIntervalID = setInterval(this, 'volumeBarListener', this._volumeBarInterval, false); this.startHandleDrag(mx.video.UIManager.VOLUME_BAR); break; case mx.video.UIManager.BACK_BUTTON: this._vc.seekToPrevNavCuePoint(); break; case mx.video.UIManager.FORWARD_BUTTON: this._vc.seekToNextNavCuePoint(); break; case mx.video.UIManager.MUTE_ON_BUTTON: case mx.video.UIManager.MUTE_OFF_BUTTON: if (!this._isMuted) { this._isMuted = true; this.cachedSoundLevel = this._vc.volume; this._vc.__set__volume(0); } else { this._isMuted = false; this._vc.__set__volume(this.cachedSoundLevel); } this.setEnabledAndVisibleForState(mx.video.UIManager.MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); this.skinButtonControl(this.controls[mx.video.UIManager.MUTE_OFF_BUTTON]); this.setEnabledAndVisibleForState(mx.video.UIManager.MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); this.skinButtonControl(this.controls[mx.video.UIManager.MUTE_ON_BUTTON]); break; default: throw new Error('Unknown ButtonControl'); } this._vc.__set__activeVideoPlayerIndex(v2); }; v2.setEnabledAndVisibleForState = function (index, state) { var v5 = this._vc.__get__activeVideoPlayerIndex(); this._vc.__set__activeVideoPlayerIndex(this._vc.visibleVideoPlayerIndex); var v3 = state; if (v3 == mx.video.FLVPlayback.BUFFERING && !this._bufferingOn) { v3 = mx.video.FLVPlayback.PLAYING; } switch (index) { case mx.video.UIManager.VOLUME_BAR: case mx.video.UIManager.VOLUME_BAR_HANDLE: this.controls[index].myEnabled = true; this.controls[index].enabled = this._controlsEnabled; break; case mx.video.UIManager.MUTE_ON_BUTTON: this.controls[index].myEnabled = !this._isMuted; if (this.controls[mx.video.UIManager.MUTE_BUTTON] != undefined) { this.controls[index]._visible = this.controls[index].myEnabled; } break; case mx.video.UIManager.MUTE_OFF_BUTTON: this.controls[index].myEnabled = this._isMuted; if (this.controls[mx.video.UIManager.MUTE_BUTTON] != undefined) { this.controls[index]._visible = this.controls[index].myEnabled; } break; default: switch (v3) { case mx.video.FLVPlayback.LOADING: case mx.video.FLVPlayback.CONNECTION_ERROR: this.controls[index].myEnabled = false; break; case mx.video.FLVPlayback.DISCONNECTED: this.controls[index].myEnabled = this._vc.__get__contentPath() != undefined; break; break; case mx.video.FLVPlayback.SEEKING: default: this.controls[index].myEnabled = true; } } switch (index) { case mx.video.UIManager.SEEK_BAR: switch (v3) { case mx.video.FLVPlayback.STOPPED: case mx.video.FLVPlayback.PLAYING: case mx.video.FLVPlayback.PAUSED: case mx.video.FLVPlayback.REWINDING: case mx.video.FLVPlayback.SEEKING: this.controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING: this.controls[index].myEnabled = !this._bufferingBarHides || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined; break; default: this.controls[index].myEnabled = false; } if (this.controls[index].myEnabled) { this.controls[index].myEnabled = !isNaN(this._vc.__get__totalTime()) && this._vc.__get__totalTime() > 0; } this.controls[index].handle_mc.myEnabled = this.controls[index].myEnabled; this.controls[index].handle_mc.enabled = this.controls[index].handle_mc.myEnabled; this.controls[index].handle_mc._visible = this.controls[index].myEnabled; var v4 = !this._bufferingBarHides || this.controls[index].myEnabled || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined || !this.controls[mx.video.UIManager.BUFFERING_BAR]._visible; this.controls[index]._visible = v4; this.controls[index].progress_mc._visible = v4; this.controls[index].progress_mc.fill_mc._visible = v4; this.controls[index].fullness_mc._visible = v4; this.controls[index].fullness_mc.fill_mc._visible = v4; break; case mx.video.UIManager.BUFFERING_BAR: switch (v3) { case mx.video.FLVPlayback.STOPPED: case mx.video.FLVPlayback.PLAYING: case mx.video.FLVPlayback.PAUSED: case mx.video.FLVPlayback.REWINDING: case mx.video.FLVPlayback.SEEKING: this.controls[index].myEnabled = false; break; default: this.controls[index].myEnabled = true; } this.controls[index]._visible = this.controls[index].myEnabled; this.controls[index].fill_mc._visible = this.controls[index].myEnabled; break; case mx.video.UIManager.PAUSE_BUTTON: switch (v3) { case mx.video.FLVPlayback.DISCONNECTED: case mx.video.FLVPlayback.STOPPED: case mx.video.FLVPlayback.PAUSED: case mx.video.FLVPlayback.REWINDING: this.controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PLAYING: this.controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING: this.controls[index].myEnabled = !this._bufferingBarHides || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined; } if (this.controls[mx.video.UIManager.PLAY_PAUSE_BUTTON] != undefined) { this.controls[index]._visible = this.controls[index].myEnabled; } break; case mx.video.UIManager.PLAY_BUTTON: switch (v3) { case mx.video.FLVPlayback.PLAYING: this.controls[index].myEnabled = false; break; case mx.video.FLVPlayback.STOPPED: case mx.video.FLVPlayback.PAUSED: this.controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING: this.controls[index].myEnabled = !this._bufferingBarHides || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined; } if (this.controls[mx.video.UIManager.PLAY_PAUSE_BUTTON] != undefined) { this.controls[index]._visible = !this.controls[mx.video.UIManager.PAUSE_BUTTON]._visible; } break; case mx.video.UIManager.STOP_BUTTON: switch (v3) { case mx.video.FLVPlayback.DISCONNECTED: case mx.video.FLVPlayback.STOPPED: this.controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PAUSED: case mx.video.FLVPlayback.PLAYING: case mx.video.FLVPlayback.BUFFERING: this.controls[index].myEnabled = true; } break; case mx.video.UIManager.BACK_BUTTON: case mx.video.UIManager.FORWARD_BUTTON: if (v3 !== mx.video.FLVPlayback.BUFFERING) { } else { this.controls[index].myEnabled = !this._bufferingBarHides || this.controls[mx.video.UIManager.BUFFERING_BAR] == undefined; } } this.controls[index].enabled = this._controlsEnabled && this.controls[index].myEnabled; this._vc.__set__activeVideoPlayerIndex(v5); }; v2.setupSkinAutoHide = function () { if (this._skinAutoHide && this.skin_mc != undefined) { this.skinAutoHideHitTest(); if (this._skinAutoHideIntervalID == 0) { this._skinAutoHideIntervalID = setInterval(this, 'skinAutoHideHitTest', mx.video.UIManager.SKIN_AUTO_HIDE_INTERVAL); } } else { this.skin_mc._visible = this.__visible; clearInterval(this._skinAutoHideIntervalID); this._skinAutoHideIntervalID = 0; } }; v2.skinAutoHideHitTest = function () { if (!this.__visible) { this.skin_mc._visible = false; } else { var v4 = this._vc.getVideoPlayer(this._vc.__get__visibleVideoPlayerIndex()); var v3 = v4.hitTest(_root._xmouse, _root._ymouse, true); if (!v3 && this.border_mc != undefined) { v3 = this.border_mc.hitTest(_root._xmouse, _root._ymouse, true); } this.skin_mc._visible = v3; } }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.PAUSE_BUTTON = 0; v1.PLAY_BUTTON = 1; v1.STOP_BUTTON = 2; v1.SEEK_BAR_HANDLE = 3; v1.BACK_BUTTON = 4; v1.FORWARD_BUTTON = 5; v1.MUTE_ON_BUTTON = 6; v1.MUTE_OFF_BUTTON = 7; v1.VOLUME_BAR_HANDLE = 8; v1.NUM_BUTTONS = 9; v1.PLAY_PAUSE_BUTTON = 9; v1.MUTE_BUTTON = 10; v1.BUFFERING_BAR = 11; v1.SEEK_BAR = 12; v1.VOLUME_BAR = 13; v1.NUM_CONTROLS = 14; v1.UP_STATE = 0; v1.OVER_STATE = 1; v1.DOWN_STATE = 2; v1.SKIN_AUTO_HIDE_INTERVAL = 200; v1.VOLUME_BAR_INTERVAL_DEFAULT = 250; v1.VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT = 0; v1.SEEK_BAR_INTERVAL_DEFAULT = 250; v1.SEEK_BAR_SCRUB_TOLERANCE_DEFAULT = 5; v1.BUFFERING_DELAY_INTERVAL_DEFAULT = 1000; v2.addProperty('bufferingBarHidesAndDisablesOthers', v2.__get__bufferingBarHidesAndDisablesOthers, v2.__set__bufferingBarHidesAndDisablesOthers); v2.addProperty('bufferingDelayInterval', v2.__get__bufferingDelayInterval, v2.__set__bufferingDelayInterval); v2.addProperty('controlsEnabled', v2.__get__controlsEnabled, v2.__set__controlsEnabled); v2.addProperty('seekBarInterval', v2.__get__seekBarInterval, v2.__set__seekBarInterval); v2.addProperty('seekBarScrubTolerance', v2.__get__seekBarScrubTolerance, v2.__set__seekBarScrubTolerance); v2.addProperty('skin', v2.__get__skin, v2.__set__skin); v2.addProperty('skinAutoHide', v2.__get__skinAutoHide, v2.__set__skinAutoHide); v2.addProperty('skinReady', v2.__get__skinReady, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('volumeBarInterval', v2.__get__volumeBarInterval, v2.__set__volumeBarInterval); v2.addProperty('volumeBarScrubTolerance', v2.__get__volumeBarScrubTolerance, v2.__set__volumeBarScrubTolerance); ASSetPropFlags(mx.video.UIManager.prototype, null, 1); } #endinitclip } movieClip 248 __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 249 __Packages.mx.video.SMILManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.SMILManager) { var v1 = function (owner) { this._owner = owner; }; mx.video.SMILManager = v1; var v2 = v1.prototype; v2.connectXML = function (url) { this._url = this.fixURL(url); this.xml = new XML(); this.xml.onLoad = mx.utils.Delegate.create(this, this.xmlOnLoad); this.xml.load(this._url); return false; }; v2.fixURL = function (origURL) { if ((origURL.substr(0, 5)).toLowerCase() == 'http:' || (origURL.substr(0, 6)).toLowerCase() == 'https:') { var v2 = origURL.indexOf('?') >= 0 ? '&' : '?'; return origURL + v2 + 'FLVPlaybackVersion=' + mx.video.SMILManager.shortVersion; } return origURL; }; v2.xmlOnLoad = function (success) { try { if (!success) { this._owner.helperDone(this, false); } else { this.baseURLAttr = new Array(); this.videoTags = new Array(); var v2 = this.xml.firstChild; var v6 = false; while (v2 != null) { if (v2.nodeType == mx.video.SMILManager.ELEMENT_NODE) { v6 = true; if (v2.nodeName.toLowerCase() == 'smil') { break; } } v2 = v2.nextSibling; } if (!v6) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" No root node found; if url is for an flv it must have .flv extension and take no parameters'); } else { if (v2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Root node not smil'); } } var v5 = false; var v4 = 0; while (v4 < v2.childNodes.length) { var v3 = v2.childNodes[v4]; if (v3.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (v3.nodeName.toLowerCase() == 'head') { this.parseHead(v3); } else { if (v3.nodeName.toLowerCase() == 'body') { v5 = true; this.parseBody(v3); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Tag ' + v3.nodeName + ' not supported in ' + v2.nodeName + ' tag.'); } } } ++v4; } if (!v5) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Tag body is required.'); } this._owner.helperDone(this, true); } } catch (v0) { if (Error(v0) != null) { var err = Error(v0); this._owner.helperDone(this, false); throw err; } else { throw v0; } } }; v2.parseHead = function (parentNode) { var v4 = false; var v3 = 0; while (v3 < parentNode.childNodes.length) { var v2 = parentNode.childNodes[v3]; if (v2.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (v2.nodeName.toLowerCase() == 'meta') { for (var v6 in v2.attributes) { if (v6.toLowerCase() == 'base') { this.baseURLAttr.push(v2.attributes[v6]); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Attribute ' + v6 + ' not supported in ' + v2.nodeName + ' tag.'); } } } else { if (v2.nodeName.toLowerCase() == 'layout') { if (!v4) { this.parseLayout(v2); v4 = true; } else {} } else {} } } ++v3; } }; v2.parseLayout = function (parentNode) { var v3 = 0; while (v3 < parentNode.childNodes.length) { var v2 = parentNode.childNodes[v3]; if (v2.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (v2.nodeName.toLowerCase() == 'root-layout') { for (var v5 in v2.attributes) { if (v5.toLowerCase() == 'width') { this.width = Number(v2.attributes[v5]); } else { if (v5.toLowerCase() == 'height') { this.height = Number(v2.attributes[v5]); } else {} } } if (isNaN(this.width) || this.width < 0 || isNaN(this.height) || this.height < 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Tag ' + v2.nodeName + ' requires attributes id, width and height. Width and height must be numbers greater than or equal to 0.'); } this.width = Math.round(this.width); this.height = Math.round(this.height); return undefined; } else {} } ++v3; } }; v2.parseBody = function (parentNode) { var v6 = 0; var v3 = 0; while (v3 < parentNode.childNodes.length) { var v2 = parentNode.childNodes[v3]; if (v2.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (++v6 > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Tag ' + parentNode.nodeName + ' is required to contain exactly one tag.'); } if (v2.nodeName.toLowerCase() == 'switch') { this.parseSwitch(v2); } else { if (v2.nodeName.toLowerCase() == 'video' || v2.nodeName.toLowerCase() == 'ref') { var v5 = this.parseVideo(v2); this.videoTags.push(v5); } else {} } } ++v3; } if (this.videoTags.length < 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" At least one video of ref tag is required.'); } }; v2.parseSwitch = function (parentNode) { var v3 = 0; while (v3 < parentNode.childNodes.length) { var v2 = parentNode.childNodes[v3]; if (v2.nodeType != mx.video.SMILManager.ELEMENT_NODE) { } else { if (v2.nodeName.toLowerCase() == 'video' || v2.nodeName.toLowerCase() == 'ref') { this.videoTags.push(this.parseVideo(v2)); } else {} } ++v3; } }; v2.parseVideo = function (node) { var v3 = new Object(); for (var v4 in node.attributes) { if (v4.toLowerCase() == 'src') { v3.src = node.attributes[v4]; } else { if (v4.toLowerCase() == 'system-bitrate') { v3.bitrate = Number(node.attributes[v4]); } else { if (v4.toLowerCase() == 'dur') { v3.dur = this.parseTime(node.attributes[v4]); } else {} } } } if (v3.src == undefined) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Attribute src is required in ' + node.nodeName + ' tag.'); } return v3; }; v2.parseTime = function (timeStr) { var v4 = 0; var v3 = timeStr.split(':'); if (v3.length < 1 || v3.length > 3) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Invalid dur value: ' + timeStr); } var v1 = 0; while (v1 < v3.length) { var v2 = Number(v3[v1]); if (isNaN(v2)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Invalid dur value: ' + timeStr); } v4 *= 60; v4 += v2; ++v1; } return v4; }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.ELEMENT_NODE = 1; ASSetPropFlags(mx.video.SMILManager.prototype, null, 1); } #endinitclip } movieClip 250 __Packages.mx.video.FPADManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.FPADManager) { var v1 = function (owner) { this._owner = owner; }; mx.video.FPADManager = v1; var v2 = v1.prototype; v2.connectXML = function (urlPrefix, uriParam, urlSuffix, uriParamParseResults) { this._uriParam = uriParam; this._parseResults = uriParamParseResults; this._url = urlPrefix + 'uri=' + this._parseResults.protocol; if (this._parseResults.serverName != undefined) { this._url += '/' + this._parseResults.serverName; } if (this._parseResults.portNumber != undefined) { this._url += ':' + this._parseResults.portNumber; } if (this._parseResults.wrappedURL != undefined) { this._url += '/?' + this._parseResults.wrappedURL; } this._url += '/' + this._parseResults.appName; this._url += urlSuffix; this.xml = new XML(); this.xml.onLoad = mx.utils.Delegate.create(this, this.xmlOnLoad); this.xml.load(this._url); return false; }; v2.xmlOnLoad = function (success) { try { if (!success) { this._owner.helperDone(this, false); } else { var v5 = this.xml.firstChild; var v8 = false; while (v5 != null) { if (v5.nodeType == mx.video.FPADManager.ELEMENT_NODE) { v8 = true; if (v5.nodeName.toLowerCase() == 'fpad') { break; } } v5 = v5.nextSibling; } if (!v8) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" No root node found; if url is for an flv it must have .flv extension and take no parameters'); } else { if (v5 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" Root node not fpad'); } } var v7; var v6 = 0; while (v6 < v5.childNodes.length) { var v3 = v5.childNodes[v6]; if (v3.nodeType != mx.video.FPADManager.ELEMENT_NODE) { } else { if (v3.nodeName.toLowerCase() == 'proxy') { var v2 = 0; while (v2 < v3.childNodes.length) { var v4 = v3.childNodes[v2]; if (v4.nodeType == mx.video.FPADManager.TEXT_NODE) { v7 = this.trim(v4.nodeValue); break; } ++v2; } break; } } ++v6; } if (v7 == undefined || v7 == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'URL: "' + this._url + '" fpad xml requires proxy tag.'); } this.rtmpURL = this._parseResults.protocol + '/' + v7 + '/?' + this._uriParam; this._owner.helperDone(this, true); } } catch (v0) { if (Error(v0) != null) { var err = Error(v0); this._owner.helperDone(this, false); throw err; } else { throw v0; } } }; v2.trim = function (str) { var v2 = 0; while (v2 < str.length) { var v1 = str.charAt(v2); if (v1 != ' ' && v1 != '\t' && v1 != '\r' && v1 != '\n') { break; } ++v2; } if (v2 >= str.length) { return ''; } var v4 = str.length - 1; while (v4 > v2) { v1 = str.charAt(v4); if (v1 != ' ' && v1 != '\t' && v1 != '\r' && v1 != '\n') { break; } --v4; } return str.slice(v2, v4 + 1); }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v1.ELEMENT_NODE = 1; v1.TEXT_NODE = 3; ASSetPropFlags(mx.video.FPADManager.prototype, null, 1); } #endinitclip } movieClip 251 __Packages.mx.video.NCManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.NCManager) { var v1 = function () { this.initNCInfo(); this.initOtherInfo(); this._timeoutIntervalId = 0; this._tryNCIntervalId = 0; this._timeout = this.DEFAULT_TIMEOUT; this._nc = undefined; this._ncConnected = false; }; mx.video.NCManager = v1; var v2 = v1.prototype; _global.mx.video.NCManager implements _global.mx.video.INCManager; v2.initNCInfo = function () { this._isRTMP = undefined; this._serverName = undefined; this._wrappedURL = undefined; this._portNumber = undefined; this._appName = undefined; }; v2.initOtherInfo = function () { this._contentPath = undefined; this._streamName = undefined; this._streamLength = undefined; this._streamWidth = undefined; this._streamHeight = undefined; this._streams = undefined; this._autoSenseBW = false; this.fpadZone = undefined; this._payload = 0; this._connTypeCounter = 0; this.cleanConns(); }; v2.getTimeout = function () { return this._timeout; }; v2.setTimeout = function (t) { this._timeout = t; if (this._timeoutIntervalId != 0) { clearInterval(this._timeoutIntervalId); this._timeoutIntervalId = setInterval(this, '_onFCSConnectTimeOut', this._timeout); } }; v2.getBitrate = function () { return this._bitrate; }; v2.setBitrate = function (b) { if (this._isRTMP == undefined || !this._isRTMP) { this._bitrate = b; } }; v2.getVideoPlayer = function () { return this._owner; }; v2.setVideoPlayer = function (v) { this._owner = v; }; v2.getNetConnection = function () { return this._nc; }; v2.getStreamName = function () { return this._streamName; }; v2.isRTMP = function () { return this._isRTMP; }; v2.getStreamLength = function () { return this._streamLength; }; v2.getStreamWidth = function () { return this._streamWidth; }; v2.getStreamHeight = function () { return this._streamHeight; }; v2.connectToURL = function (url) { this.initOtherInfo(); this._contentPath = url; if (this._contentPath == null || this._contentPath == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH); } var v2 = this.parseURL(this._contentPath); if (v2.streamName == undefined || v2.streamName == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } if (v2.isRTMP) { var v4 = this.canReuseOldConnection(v2); this._isRTMP = true; this._protocol = v2.protocol; this._streamName = v2.streamName; this._serverName = v2.serverName; this._wrappedURL = v2.wrappedURL; this._portNumber = v2.portNumber; this._appName = v2.appName; if (this._appName == undefined || this._appName == '' || this._streamName == undefined || this._streamName == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } this._autoSenseBW = this._streamName.indexOf(',') >= 0; return v4 || this.connectRTMP(); } else { var v3 = v2.streamName; if (v3.indexOf('?') < 0 && (v3.length < 4 || (v3.slice(-4)).toLowerCase() != '.txt') && (v3.length < 4 || (v3.slice(-4)).toLowerCase() != '.xml') && (v3.length < 5 || (v3.slice(-5)).toLowerCase() != '.smil')) { var v4 = this.canReuseOldConnection(v2); this._isRTMP = false; this._streamName = v3; return v4 || this.connectHTTP(); } if (v3.indexOf('/fms/fpad') >= 0) { try { return this.connectFPAD(v3); } catch (v0) { if (Error(v0) != null) { var err = Error(v0); this._smilMgr = new mx.video.SMILManager(this); return this._smilMgr.connectXML(v3); } throw v0; } } this._smilMgr = new mx.video.SMILManager(this); return this._smilMgr.connectXML(v3); } }; v2.connectAgain = function () { var v2 = this._appName.indexOf('/'); if (v2 < 0) { v2 = this._streamName.indexOf('/'); if (v2 >= 0) { this._appName += '/'; this._appName += this._streamName.slice(0, v2); this._streamName = this._streamName.slice(v2 + 1); } return false; } var v3 = this._appName.slice(v2 + 1); v3 += '/'; v3 += this._streamName; this._streamName = v3; this._appName = this._appName.slice(0, v2); this.close(); this._payload = 0; this._connTypeCounter = 0; this.cleanConns(); this.connectRTMP(); return true; }; v2.reconnect = function () { if (!this._isRTMP) { throw new Error('Cannot call reconnect on an http connection'); } this._nc.onStatus = function (info) { this.mc.reconnectOnStatus(this, info); }; this._nc.onBWDone = function () { this.mc.onReconnected(); }; this._nc.connect(this._ncUri, false); }; v2.onReconnected = function () { delete this._nc.onStatus; delete this._nc.onBWDone; this._ncConnected = true; this._owner.ncReconnected(); }; v2.close = function () { if (this._nc) { this._nc.close(); this._ncConnected = false; } }; v2.helperDone = function (helper, success) { if (!success) { this._nc = undefined; this._ncConnected = false; this._owner.ncConnected(); this._smilMgr = undefined; this._fpadMgr = undefined; return undefined; } var v2; var v4; if (helper == this._fpadMgr) { v4 = this._fpadMgr.rtmpURL; this._fpadMgr = undefined; v2 = this.parseURL(v4); this._isRTMP = v2.isRTMP; this._protocol = v2.protocol; this._serverName = v2.serverName; this._portNumber = v2.portNumber; this._wrappedURL = v2.wrappedURL; this._appName = v2.appName; this._streamName = v2.streamName; var v5 = this.fpadZone; this.fpadZone = -1; this.connectRTMP(); this.fpadZone = v5; return undefined; } if (helper != this._smilMgr) { return undefined; } this._streamWidth = this._smilMgr.width; this._streamHeight = this._smilMgr.height; v4 = this._smilMgr.baseURLAttr[0]; if (v4 != undefined && v4 != '') { if (v4.charAt(v4.length - 1) != '/') { v4 += '/'; } v2 = this.parseURL(v4); this._isRTMP = v2.isRTMP; this._streamName = v2.streamName; if (this._isRTMP) { this._protocol = v2.protocol; this._serverName = v2.serverName; this._portNumber = v2.portNumber; this._wrappedURL = v2.wrappedURL; this._appName = v2.appName; if (this._appName == undefined || this._appName == '') { this._smilMgr = undefined; throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Base RTMP URL must include application name: ' + v4); } if (this._smilMgr.baseURLAttr.length > 1) { v2 = this.parseURL(this._smilMgr.baseURLAttr[1]); if (v2.serverName != undefined) { this.fallbackServerName = v2.serverName; } } } } this._streams = this._smilMgr.videoTags; this._smilMgr = undefined; var v3 = 0; while (v3 < this._streams.length) { v4 = this._streams[v3].src; v2 = this.parseURL(v4); if (this._isRTMP == undefined) { this._isRTMP = v2.isRTMP; if (this._isRTMP) { this._protocol = v2.protocol; if (this._streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Cannot switch between multiple absolute RTMP URLs, must use meta tag base attribute.'); } this._serverName = v2.serverName; this._portNumber = v2.portNumber; this._wrappedURL = v2.wrappedURL; this._appName = v2.appName; if (this._appName == undefined || this._appName == '') { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Base RTMP URL must include application name: ' + v4); } } else { if (v2.streamName.indexOf('/fms/fpad') >= 0 && this._streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'Cannot switch between multiple absolute fpad URLs, must use meta tag base attribute.'); } } } else { if (this._streamName != undefined && this._streamName != '' && !v2.isRelative && this._streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, 'When using meta tag base attribute, cannot use absolute URLs for video or ref tag src attributes.'); } } this._streams[v3].parseResults = v2; ++v3; } this._autoSenseBW = this._streams.length > 1; if (!this._autoSenseBW) { if (this._streamName != undefined) { this._streamName += this._streams[0].parseResults.streamName; } else { this._streamName = this._streams[0].parseResults.streamName; } this._streamLength = this._streams[0].dur; } if (this._isRTMP) { this.connectRTMP(); } else { if (this._streamName != undefined && this._streamName.indexOf('/fms/fpad') >= 0) { this.connectFPAD(this._streamName); } else { if (this._autoSenseBW) { this.bitrateMatch(); } this.connectHTTP(); this._owner.ncConnected(); } } }; v2.bitrateMatch = function () { var v3; var v4 = this._bitrate; if (isNaN(v4)) { v4 = 0; } var v2 = 0; while (v2 < this._streams.length) { if (isNaN(this._streams[v2].bitrate) || v4 >= this._streams[v2].bitrate) { v3 = v2; break; } ++v2; } if (isNaN(v3)) { throw new mx.video.VideoError(mx.video.VideoError.NO_BITRATE_MATCH); } if (this._streamName != undefined) { this._streamName += this._streams[v3].src; } else { this._streamName = this._streams[v3].src; } if (this._isRTMP && (this._streamName.slice(-4)).toLowerCase() == '.flv') { this._streamName = this._streamName.slice(0, -4); } this._streamLength = this._streams[v3].dur; }; v2.parseURL = function (url) { var v2 = new Object(); var v3 = 0; var v4 = url.indexOf(':/', v3); if (v4 >= 0) { v4 += 2; v2.protocol = url.slice(v3, v4); v2.isRelative = false; } else { v2.isRelative = true; } if (v2.protocol != undefined && (v2.protocol == 'rtmp:/' || v2.protocol == 'rtmpt:/' || v2.protocol == 'rtmps:/' || v2.protocol == 'rtmpe:/' || v2.protocol == 'rtmpte:/')) { v2.isRTMP = true; v3 = v4; if (url.charAt(v3) == '/') { ++v3; var v7 = url.indexOf(':', v3); var v8 = url.indexOf('/', v3); if (v8 < 0) { if (v7 < 0) { v2.serverName = url.slice(v3); } else { v4 = v7; v2.portNumber = url.slice(v3, v4); v3 = v4 + 1; v2.serverName = url.slice(v3); } return v2; } if (v7 >= 0 && v7 < v8) { v4 = v7; v2.serverName = url.slice(v3, v4); v3 = v4 + 1; v4 = v8; v2.portNumber = url.slice(v3, v4); } else { v4 = v8; v2.serverName = url.slice(v3, v4); } v3 = v4 + 1; } if (url.charAt(v3) == '?') { var v9 = url.slice(v3 + 1); var v6 = this.parseURL(v9); if (v6.protocol == undefined || !v6.isRTMP) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } v2.wrappedURL = '?'; v2.wrappedURL += v6.protocol; if (v6.serverName != undefined) { v2.wrappedURL += '/'; v2.wrappedURL += v6.serverName; } if (v6.wrappedURL != undefined) { v2.wrappedURL += '/?'; v2.wrappedURL += v6.wrappedURL; } v2.appName = v6.appName; v2.streamName = v6.streamName; return v2; } v4 = url.indexOf('/', v3); if (v4 < 0) { v2.appName = url.slice(v3); return v2; } v2.appName = url.slice(v3, v4); v3 = v4 + 1; v4 = url.indexOf('/', v3); if (v4 < 0) { v2.streamName = url.slice(v3); if ((v2.streamName.slice(-4)).toLowerCase() == '.flv') { v2.streamName = v2.streamName.slice(0, -4); } return v2; } v2.appName += '/'; v2.appName += url.slice(v3, v4); v3 = v4 + 1; v2.streamName = url.slice(v3); if ((v2.streamName.slice(-4)).toLowerCase() == '.flv') { v2.streamName = v2.streamName.slice(0, -4); } return v2; } v2.isRTMP = false; v2.streamName = url; return v2; }; v2.canReuseOldConnection = function (parseResults) { if (this._nc == null || !this._ncConnected) { return false; } if (!parseResults.isRTMP) { if (!this._isRTMP) { return true; } this._owner.close(); this._nc = undefined; this._ncConnected = false; this.initNCInfo(); return false; } if (this._isRTMP) { if (parseResults.serverName == this._serverName && parseResults.appName == this._appName && parseResults.protocol == this._protocol && parseResults.portNumber == this._portNumber && parseResults.wrappedURL == this._wrappedURL) { return true; } this._owner.close(); this._nc = undefined; this._ncConnected = false; } this.initNCInfo(); return false; }; v2.connectHTTP = function () { this._nc = new NetConnection(); this._nc.connect(null); this._ncConnected = true; return true; }; v2.connectRTMP = function () { clearInterval(this._timeoutIntervalId); this._timeoutIntervalId = setInterval(this, '_onFCSConnectTimeOut', this._timeout); this._tryNC = new Array(); var v3 = (this._protocol == 'rtmp:/' || this._protocol == 'rtmpe:/') ? 2 : 1; var v2 = 0; while (v2 < v3) { this._tryNC[v2] = new NetConnection(); if (this.fpadZone != null) { this._tryNC[v2].fpadZone = this.fpadZone; } this._tryNC[v2].mc = this; this._tryNC[v2].pending = false; this._tryNC[v2].connIndex = v2; this._tryNC[v2].onBWDone = function (p_bw) { this.mc.onConnected(this, p_bw); }; this._tryNC[v2].onBWCheck = function () { return ++this.mc._payload; }; this._tryNC[v2].onStatus = function (info) { this.mc.connectOnStatus(this, info); }; ++v2; } this.nextConnect(); return false; }; v2.connectFPAD = function (url) { var v7; var v5; var v6; var v2 = url.indexOf('?'); while (v2 >= 0) { ++v2; var v4 = url.indexOf('&', v2); if ((url.substr(v2, 4)).toLowerCase() == 'uri=') { v7 = url.slice(0, v2); v2 += 4; if (v4 >= 0) { v5 = url.slice(v2, v4); v6 = url.slice(v4); } else { v5 = url.slice(v2); v6 = ''; } break; } else { v2 = v4; } } if (v2 < 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, 'fpad url must include uri parameter: ' + url); } var v8 = this.parseURL(v5); if (!v8.isRTMP) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, 'fpad url uri parameter must be rtmp url: ' + url); } this._fpadMgr = new mx.video.FPADManager(this); return this._fpadMgr.connectXML(v7, v5, v6, v8); }; v2.nextConnect = function () { clearInterval(this._tryNCIntervalId); this._tryNCIntervalId = 0; var v3; var v2; if (this._connTypeCounter == 0) { v3 = this._protocol; v2 = this._portNumber; } else { v2 = null; if (this._protocol == 'rtmp:/') { v3 = 'rtmpt:/'; } else { if (this._protocol == 'rtmpe:/') { v3 = 'rtmpte:/'; } else { this._tryNC.pop(); return undefined; } } } var v4 = v3 + ((this._serverName == undefined) ? '' : '/' + this._serverName + ((v2 == null) ? '' : ':' + v2) + '/') + ((this._wrappedURL == undefined) ? '' : this._wrappedURL + '/') + this._appName; this._tryNC[this._connTypeCounter].pending = true; this._tryNC[this._connTypeCounter].connect(v4, this._autoSenseBW); if (this._connTypeCounter < this._tryNC.length - 1) { ++this._connTypeCounter; this._tryNCIntervalId = setInterval(this, 'nextConnect', 1500); } }; v2.cleanConns = function () { clearInterval(this._tryNCIntervalId); this._tryNCIntervalId = 0; if (this._tryNC != undefined) { var v2 = 0; while (v2 < this._tryNC.length) { if (this._tryNC[v2] != undefined) { delete this._tryNC[v2].onStatus; if (this._tryNC[v2].pending) { this._tryNC[v2].onStatus = function (info) { this.mc.disconnectOnStatus(this, info); }; } else { delete this._tryNC[v2].onStatus; this._tryNC[v2].close(); } } delete this._tryNC[v2]; ++v2; } delete this._tryNC; } }; v2.tryFallBack = function () { if (this._serverName == this.fallbackServerName || this.fallbackServerName == undefined || this.fallbackServerName == null) { delete this._nc; this._nc = undefined; this._ncConnected = false; this._owner.ncConnected(); } else { this._connTypeCounter = 0; this.cleanConns(); this._serverName = this.fallbackServerName; this.connectRTMP(); } }; v2.onConnected = function (p_nc, p_bw) { clearInterval(this._timeoutIntervalId); this._timeoutIntervalId = 0; delete p_nc.onBWDone; delete p_nc.onBWCheck; delete p_nc.onStatus; this._nc = p_nc; this._ncUri = this._nc.uri; this._ncConnected = true; if (this._autoSenseBW) { this._bitrate = p_bw * 1024; if (this._streams != undefined) { this.bitrateMatch(); } else { var v3 = this._streamName.split(','); var v2 = 0; while (v2 < v3.length) { var v4 = mx.video.NCManager.stripFrontAndBackWhiteSpace(v3[v2]); if (v2 + 1 < v3.length) { if (p_bw <= Number(v3[v2 + 1])) { this._streamName = v4; break; } } else { this._streamName = v4; break; } v2 += 2; } if ((this._streamName.slice(-4)).toLowerCase() == '.flv') { this._streamName = this._streamName.slice(0, -4); } } } if (!this._owner.__get__isLive() && this._streamLength == undefined) { var v6 = new Object(); v6.mc = this; v6.onResult = function (length) { this.mc.getStreamLengthResult(length); }; this._nc.call('getStreamLength', v6, this._streamName); } else { this._owner.ncConnected(); } }; v2.connectOnStatus = function (target, info) { target.pending = false; if (info.code == 'NetConnection.Connect.Success') { this._nc = this._tryNC[target.connIndex]; this._tryNC[target.connIndex] = undefined; this.cleanConns(); } else { if (info.code == 'NetConnection.Connect.Rejected' && info.ex != null && info.ex.code == 302) { this._connTypeCounter = 0; this.cleanConns(); var v2 = this.parseURL(info.ex.redirect); if (v2.isRTMP) { this._protocol = v2.protocol; this._serverName = v2.serverName; this._wrappedURL = v2.wrappedURL; this._portNumber = v2.portNumber; this._appName = v2.appName; if (v2.streamName != null) { this._appName += '/' + v2.streamName; } this.connectRTMP(); } else { this.tryFallBack(); } } else { if ((info.code == 'NetConnection.Connect.Failed' || info.code == 'NetConnection.Connect.Rejected') && target.connIndex == this._tryNC.length - 1) { if (!this.connectAgain()) { this.tryFallBack(); } } else {} } } }; v2.reconnectOnStatus = function (target, info) { if (info.code == 'NetConnection.Connect.Failed' || info.code == 'NetConnection.Connect.Rejected') { delete this._nc; this._nc = undefined; this._ncConnected = false; this._owner.ncReconnected(); } }; v2.disconnectOnStatus = function (target, info) { if (info.code == 'NetConnection.Connect.Success') { delete target.onStatus; target.close(); } }; v2.getStreamLengthResult = function (length) { if (length > 0) { this._streamLength = length; } this._owner.ncConnected(); }; v2._onFCSConnectTimeOut = function () { this.cleanConns(); this._nc = undefined; this._ncConnected = false; if (!this.connectAgain()) { this._owner.ncConnected(); } }; v1.stripFrontAndBackWhiteSpace = function (p_str) { var v1; var v2 = p_str.length; var v4 = 0; var v5 = v2; v1 = 0; while (v1 < v2) { switch (p_str.charCodeAt(v1)) { if (p_str.charCodeAt(v1) !== 32) { } else { break; case 9: case 10: case 13: } default: v4 = v1; break; } ++v1; } v1 = v2; while (v1 >= 0) { switch (p_str.charCodeAt(v1)) { if (p_str.charCodeAt(v1) !== 32) { } else { break; case 9: case 10: case 13: } default: v5 = v1 + 1; break; } --v1; } if (v5 <= v4) { return ''; } return p_str.slice(v4, v5); }; v1.version = '1.0.2.8'; v1.shortVersion = '1.0.2'; v2.DEFAULT_TIMEOUT = 60000; ASSetPropFlags(mx.video.NCManager.prototype, null, 1); } #endinitclip } movieClip 252 __Packages.mx.video.CuePointManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.video) { _global.mx.video = new Object(); } if (!_global.mx.video.CuePointManager) { var v1 = function (owner, id) { this._owner = owner; this._id = id; this.reset(); this._asCuePointTolerance = (this._owner.getVideoPlayer(this._id)).__get__playheadUpdateInterval() / 2000; this._linearSearchTolerance = mx.video.CuePointManager.DEFAULT_LINEAR_SEARCH_TOLERANCE; }; mx.video.CuePointManager = v1; var v2 = v1.prototype; v2.reset = function () { this._metadataLoaded = false; this.allCuePoints = null; this.asCuePoints = null; this._disabledCuePoints = null; this.flvCuePoints = null; this.navCuePoints = null; this.eventCuePoints = null; this._asCuePointIndex = 0; }; v2.__get__metadataLoaded = function () { return this._metadataLoaded; }; v2.__set__playheadUpdateInterval = function (aTime) { this._asCuePointTolerance = aTime / 2000; return this.__get__playheadUpdateInterval(); }; v2.__get__id = function () { return this._id; }; v2.addASCuePoint = function (timeOrCuePoint, name, parameters) { var v3; if (typeof timeOrCuePoint == 'object') { v3 = mx.video.CuePointManager.deepCopyObject(timeOrCuePoint); } else { v3 = {'time': timeOrCuePoint, 'name': name, 'parameters': mx.video.CuePointManager.deepCopyObject(parameters)}; } var v7 = isNaN(v3.time) || v3.time < 0; if (v7) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number'); } var v6 = v3.name == null; if (v6) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'name cannot be undefined or null'); } var v2; v3.type = 'actionscript'; if (this.asCuePoints == null || this.asCuePoints.length < 1) { v2 = 0; this.asCuePoints = new Array(); this.asCuePoints.push(v3); } else { v2 = this.getCuePointIndex(this.asCuePoints, true, v3.time); v2 = this.asCuePoints[v2].time > v3.time ? 0 : v2 + 1; this.asCuePoints.splice(v2, 0, v3); } if (this.allCuePoints == null || this.allCuePoints.length < 1) { v2 = 0; this.allCuePoints = new Array(); this.allCuePoints.push(v3); } else { v2 = this.getCuePointIndex(this.allCuePoints, true, v3.time); v2 = this.allCuePoints[v2].time > v3.time ? 0 : v2 + 1; this.allCuePoints.splice(v2, 0, v3); } var v5 = (this._owner.getVideoPlayer(this._id)).__get__playheadTime(); if (v5 > 0) { if (this._asCuePointIndex == v2) { if (v5 > this.asCuePoints[v2].time) { ++this._asCuePointIndex; } } else { if (this._asCuePointIndex > v2) { ++this._asCuePointIndex; } } var v4 = mx.video.CuePointManager.deepCopyObject(this.asCuePoints[v2]); v4.array = this.asCuePoints; v4.index = v2; return v4; } this._asCuePointIndex = 0; var v4 = mx.video.CuePointManager.deepCopyObject(this.asCuePoints[v2]); v4.array = this.asCuePoints; v4.index = v2; return v4; }; v2.removeASCuePoint = function (timeNameOrCuePoint) { if (this.asCuePoints == null || this.asCuePoints.length < 1) { return null; } var v2; switch (typeof timeNameOrCuePoint) { case 'string': v2 = {'name': timeNameOrCuePoint}; break; case 'number': v2 = {'time': timeNameOrCuePoint}; break; case 'object': v2 = timeNameOrCuePoint; } var v3 = this.getCuePointIndex(this.asCuePoints, false, v2.time, v2.name); if (v3 < 0) { return null; } v2 = this.asCuePoints[v3]; this.asCuePoints.splice(v3, 1); v3 = this.getCuePointIndex(this.allCuePoints, false, v2.time, v2.name); if (v3 > 0) { this.allCuePoints.splice(v3, 1); } if ((this._owner.getVideoPlayer(this._id)).__get__playheadTime() > 0) { if (this._asCuePointIndex > v3) { --this._asCuePointIndex; } return v2; } this._asCuePointIndex = 0; return v2; }; v2.setFLVCuePointEnabled = function (enabled, timeNameOrCuePoint) { var v4; switch (typeof timeNameOrCuePoint) { case 'string': v4 = {'name': timeNameOrCuePoint}; break; case 'number': v4 = {'time': timeNameOrCuePoint}; break; case 'object': v4 = timeNameOrCuePoint; } var v12 = isNaN(v4.time) || v4.time < 0; var v11 = v4.name == null; if (v12 && v11) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number and/or name must not be undefined or null'); } var v6 = 0; var v2; var v5; if (v12) { if (!this._metadataLoaded) { if (this._disabledCuePointsByNameOnly[v4.name] == null) { if (!enabled) { if (this._disabledCuePointsByNameOnly == null || this._disabledCuePointsByNameOnly.length < 0) { this._disabledCuePointsByNameOnly = new Object(); } this._disabledCuePointsByNameOnly[v4.name] = new Array(); } } else { if (enabled) { this._disabledCuePointsByNameOnly[v4.name] = undefined; } return -1; } this.removeCuePoints(this._disabledCuePoints, v4); return -1; } if (enabled) { v6 = this.removeCuePoints(this._disabledCuePoints, v4); } else { var v3; v2 = this.getCuePointIndex(this.flvCuePoints, true, -1, v4.name); while (v2 >= 0) { v3 = this.flvCuePoints[v2]; v5 = this.getCuePointIndex(this._disabledCuePoints, true, v3.time); if (v5 < 0 || this._disabledCuePoints[v5].time != v3.time) { this._disabledCuePoints = this.insertCuePoint(v5, this._disabledCuePoints, {'name': v3.name, 'time': v3.time}); v6 += 1; } v2 = this.getNextCuePointIndexWithName(v3.name, this.flvCuePoints, v2); } } return v6; } v2 = this.getCuePointIndex(this._disabledCuePoints, false, v4.time, v4.name); if (v2 < 0) { if (enabled) { if (!this._metadataLoaded) { v2 = this.getCuePointIndex(this._disabledCuePoints, false, v4.time); if (v2 < 0) { v5 = this.getCuePointIndex(this._disabledCuePointsByNameOnly[v4.name], true, v4.time); if (mx.video.CuePointManager.cuePointCompare(v4.time, null, this._disabledCuePointsByNameOnly[v4.name]) != 0) { this._disabledCuePointsByNameOnly[v4.name] = this.insertCuePoint(v5, this._disabledCuePointsByNameOnly[v4.name], v4); } } else { this._disabledCuePoints.splice(v2, 1); } } return this._metadataLoaded ? 0 : -1; } } else { if (enabled) { this._disabledCuePoints.splice(v2, 1); v6 = 1; } else { v6 = 0; } return this._metadataLoaded ? v6 : -1; } if (this._metadataLoaded) { v2 = this.getCuePointIndex(this.flvCuePoints, false, v4.time, v4.name); if (v2 < 0) { return 0; } if (v11) { v4.name = this.flvCuePoints[v2].name; } } v5 = this.getCuePointIndex(this._disabledCuePoints, true, v4.time); this._disabledCuePoints = this.insertCuePoint(v5, this._disabledCuePoints, v4); v6 = 1; return this._metadataLoaded ? v6 : -1; }; v2.removeCuePoints = function (cuePointArray, cuePoint) { var v2; var v4; var v5 = 0; v2 = this.getCuePointIndex(cuePointArray, true, -1, cuePoint.name); while (v2 >= 0) { v4 = cuePointArray[v2]; cuePointArray.splice(v2, 1); --v2; ++v5; v2 = this.getNextCuePointIndexWithName(v4.name, cuePointArray, v2); } return v5; }; v2.insertCuePoint = function (insertIndex, cuePointArray, cuePoint) { if (insertIndex < 0) { cuePointArray = new Array(); cuePointArray.push(cuePoint); return cuePointArray; } if (cuePointArray[insertIndex].time > cuePoint.time) { insertIndex = 0; } else { ++insertIndex; } cuePointArray.splice(insertIndex, 0, cuePoint); return cuePointArray; }; v2.isFLVCuePointEnabled = function (timeNameOrCuePoint) { if (!this._metadataLoaded) { return true; } var v3; switch (typeof timeNameOrCuePoint) { case 'string': v3 = {'name': timeNameOrCuePoint}; break; case 'number': v3 = {'time': timeNameOrCuePoint}; break; case 'object': v3 = timeNameOrCuePoint; } var v5 = isNaN(v3.time) || v3.time < 0; var v6 = v3.name == null; if (v5 && v6) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number and/or name must not be undefined or null'); } if (v5) { var v2 = this.getCuePointIndex(this.flvCuePoints, true, -1, v3.name); if (v2 < 0) { return true; } while (v2 >= 0) { if (this.getCuePointIndex(this._disabledCuePoints, false, this.flvCuePoints[v2].time, this.flvCuePoints[v2].name) < 0) { return true; } v2 = this.getNextCuePointIndexWithName(v3.name, this.flvCuePoints, v2); } return false; } return this.getCuePointIndex(this._disabledCuePoints, false, v3.time, v3.name) < 0; }; v2.dispatchASCuePoints = function () { var v5 = (this._owner.getVideoPlayer(this._id)).__get__playheadTime(); if ((this._owner.getVideoPlayer(this._id)).__get__stateResponsive() && this.asCuePoints != null) { for (;;) { if (!(this._asCuePointIndex < this.asCuePoints.length && this.asCuePoints[this._asCuePointIndex].time <= v5 + this._asCuePointTolerance)) break; this._owner.dispatchEvent({'type': 'cuePoint', 'info': mx.video.CuePointManager.deepCopyObject(this.asCuePoints[this._asCuePointIndex++]), 'vp': this._id}); } } }; v2.resetASCuePointIndex = function (time) { if (time <= 0 || this.asCuePoints == null) { this._asCuePointIndex = 0; return undefined; } var v2 = this.getCuePointIndex(this.asCuePoints, true, time); this._asCuePointIndex = this.asCuePoints[v2].time < time ? v2 + 1 : v2; }; v2.processFLVCuePoints = function (metadataCuePoints) { this._metadataLoaded = true; if (metadataCuePoints == null || metadataCuePoints.length < 1) { this.flvCuePoints = null; this.navCuePoints = null; this.eventCuePoints = null; return undefined; } this.flvCuePoints = metadataCuePoints; this.navCuePoints = new Array(); this.eventCuePoints = new Array(); var v5; var v6 = -1; var v2; var v4 = this._disabledCuePoints; var v3 = 0; this._disabledCuePoints = new Array(); var v9 = 0; v2 = this.flvCuePoints[v9++]; while (v2 != null) { if (v6 > 0 && v6 >= v2.time) { this.flvCuePoints = null; this.navCuePoints = null; this.eventCuePoints = null; this._disabledCuePoints = null; this._disabledCuePointsByNameOnly = null; throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'Unsorted cuePoint found after time: ' + v6); } v6 = v2.time; for (;;) { if (!(v3 < v4.length && mx.video.CuePointManager.cuePointCompare(v4[v3].time, null, v2) < 0)) break; ++v3; } if (this._disabledCuePointsByNameOnly[v2.name] != null || v3 < v4.length && mx.video.CuePointManager.cuePointCompare(v4[v3].time, v4[v3].name, v2) == 0) { this._disabledCuePoints.push({'time': v2.time, 'name': v2.name}); } if (v2.type == 'navigation') { this.navCuePoints.push(v2); } else { if (v2.type == 'event') { this.eventCuePoints.push(v2); } } if (this.allCuePoints == null || this.allCuePoints.length < 1) { this.allCuePoints = new Array(); this.allCuePoints.push(v2); } else { v5 = this.getCuePointIndex(this.allCuePoints, true, v2.time); v5 = this.allCuePoints[v5].time > v2.time ? 0 : v5 + 1; this.allCuePoints.splice(v5, 0, v2); } } delete this._disabledCuePointsByNameOnly; this._disabledCuePointsByNameOnly = null; }; v2.processCuePointsProperty = function (cuePoints) { if (cuePoints == null || cuePoints.length == 0) { return undefined; } var v4 = 0; var v8; var v6; var v7; var v5; var v9; var v2 = 0; while (v2 < cuePoints.length - 1) { switch (v4) { case 6: this.addOrDisable(v9, v5); v4 = 0; case 0: if (cuePoints[v2++] != 't') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (isNaN(cuePoints[v2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number'); } v5 = new Object(); v5.time = cuePoints[v2] / 1000; ++v4; break; case 1: if (cuePoints[v2++] != 'n') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (cuePoints[v2] == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'name cannot be null or undefined'); } v5.name = this.unescape(cuePoints[v2]); ++v4; break; case 2: if (cuePoints[v2++] != 't') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (isNaN(cuePoints[v2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'type must be number'); } switch (cuePoints[v2]) { case 0: v5.type = 'event'; break; case 1: v5.type = 'navigation'; break; case 2: v5.type = 'actionscript'; break; default: throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'type must be 0, 1 or 2'); } ++v4; break; case 3: if (cuePoints[v2++] != 'd') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (isNaN(cuePoints[v2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'disabled must be number'); } v9 = cuePoints[v2] != 0; ++v4; break; case 4: if (cuePoints[v2++] != 'p') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected cuePoint parameter format'); } if (isNaN(cuePoints[v2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'num params must be number'); } v8 = cuePoints[v2]; ++v4; if (v8 == 0) { ++v4; } else { v5.parameters = new Object(); } break; case 5: v6 = cuePoints[v2++]; v7 = cuePoints[v2]; if (typeof v6 == 'string') { v6 = this.unescape(v6); } if (typeof v7 == 'string') { v7 = this.unescape(v7); } v5.parameters[v6] = v7; --v8; if (v8 == 0) { ++v4; } } ++v2; } if (v4 == 6) { this.addOrDisable(v9, v5); } else { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'unexpected end of cuePoint param string'); } }; v2.addOrDisable = function (disable, cuePoint) { if (disable) { if (cuePoint.type == 'actionscript') { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'Cannot disable actionscript cue points'); } this.setFLVCuePointEnabled(false, cuePoint); } else { if (cuePoint.type == 'actionscript') { this.addASCuePoint(cuePoint); } } }; v2.unescape = function (origStr) { var v3 = origStr; var v1 = 0; while (v1 < mx.video.CuePointManager.cuePointsReplace.length) { var v2 = v3.split(mx.video.CuePointManager.cuePointsReplace[v1++]); if (v2.length > 1) { v3 = v2.join(mx.video.CuePointManager.cuePointsReplace[v1]); } ++v1; } return v3; }; v2.getCuePointIndex = function (cuePointArray, closeIsOK, time, name, start, len) { if (cuePointArray == null || cuePointArray.length < 1) { return -1; } var v13 = isNaN(time) || time < 0; var v16 = name == null; if (v13 && v16) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number and/or name must not be undefined or null'); } if (start == null) { start = 0; } if (len == null) { len = cuePointArray.length; } if (!v16 && (closeIsOK || v13)) { var v8; var v2; if (v13) { v8 = start; } else { v8 = this.getCuePointIndex(cuePointArray, closeIsOK, time); } v2 = v8; while (v2 >= start) { if (cuePointArray[v2].name == name) { break; } --v2; } if (v2 >= start) { return v2; } v2 = v8 + 1; while (v2 < len) { if (cuePointArray[v2].name == name) { break; } ++v2; } if (v2 < len) { return v2; } return -1; } var v6; if (len <= this._linearSearchTolerance) { var v11 = start + len; var v3 = start; while (v3 < v11) { v6 = mx.video.CuePointManager.cuePointCompare(time, name, cuePointArray[v3]); if (v6 == 0) { return v3; } if (v6 < 0) { break; } ++v3; } if (closeIsOK) { if (v3 > 0) { return v3 - 1; } return 0; } return -1; } var v12 = Math.floor(len / 2); var v15 = start + v12; v6 = mx.video.CuePointManager.cuePointCompare(time, name, cuePointArray[v15]); if (v6 < 0) { return this.getCuePointIndex(cuePointArray, closeIsOK, time, name, start, v12); } if (v6 > 0) { return this.getCuePointIndex(cuePointArray, closeIsOK, time, name, v15 + 1, v12 - 1 + len % 2); } return v15; }; v2.getNextCuePointIndexWithName = function (name, array, index) { if (name == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'name cannot be undefined or null'); } if (array == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'cuePoint.array undefined'); } if (isNaN(index) || index < -1 || index >= array.length) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'cuePoint.index must be number between -1 and cuePoint.array.length'); } var v1; v1 = index + 1; while (v1 < array.length) { if (array[v1].name == name) { break; } ++v1; } if (v1 < array.length) { return v1; } return -1; }; v1.cuePointCompare = function (time, name, cuePoint) { var v1 = Math.round(time * 1000); var v2 = Math.round(cuePoint.time * 1000); if (v1 < v2) { return -1; } if (v1 > v2) { return 1; } if (name != null) { if (name == cuePoint.name) { return 0; } if (name < cuePoint.name) { return -1; } return 1; } return 0; }; v2.getCuePoint = function (cuePointArray, closeIsOK, timeNameOrCuePoint) { var v2; switch (typeof timeNameOrCuePoint) { case 'string': v2 = {'name': timeNameOrCuePoint}; break; case 'number': v2 = {'time': timeNameOrCuePoint}; break; case 'object': v2 = timeNameOrCuePoint; } var v3 = this.getCuePointIndex(cuePointArray, closeIsOK, v2.time, v2.name); if (v3 < 0) { return null; } v2 = mx.video.CuePointManager.deepCopyObject(cuePointArray[v3]); v2.array = cuePointArray; v2.index = v3; return v2; }; v2.getNextCuePointWithName = function (cuePoint) { if (cuePoint == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'cuePoint parameter undefined'); } if (isNaN(cuePoint.time) || cuePoint.time < 0) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, 'time must be number'); } var v3 = this.getNextCuePointIndexWithName(cuePoint.name, cuePoint.array, cuePoint.index); if (v3 < 0) { return null; } var v4 = mx.video.CuePointManager.deepCopyObject(cuePoint.array[v3]); v4.array = cuePoint.array; v4.index = v3; return v4; }; v1.deepCopyObject = function (obj, recurseLevel) { if (obj == null || typeof obj != 'object') { return obj; } if (recurseLevel == null) { recurseLevel = 0; } var v2 = new Object(); for (var v4 in obj) { if (recurseLevel == 0 && (v4 == 'array' || v4 == 'index')) { } else { if (typeof obj[v4] == 'object') { v2[v4] = mx.video.CuePointManager.deepCopyObject(obj[v4], recurseLevel + 1); } else { v2[v4] = obj[v4]; } } } return v2; }; v1.DEFAULT_LINEAR_SEARCH_TOLERANCE = 50; v1.cuePointsReplace = ['&quot;', '"', '&#39;', '\'', '&#44;', ',', '&amp;', '&']; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('metadataLoaded', v2.__get__metadataLoaded, function () {}); v2.addProperty('playheadUpdateInterval', function () {}, v2.__set__playheadUpdateInterval); ASSetPropFlags(mx.video.CuePointManager.prototype, null, 1); } #endinitclip } movieClip 253 __Packages.mx.controls.TextInput { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.TextInput) { var v1 = function () { super(); }; mx.controls.TextInput = v1; var v2 = new mx.core.UIComponent(); mx.controls.TextInput.prototype = v2; v2.addEventListener = function (event, handler) { if (event == 'enter') { this.addEnterEvents(); } super.addEventListener(event, handler); }; v2.enterOnKeyDown = function () { if (Key.getAscii() == 13) { this.owner.dispatchEvent({'type': 'enter'}); } }; v2.addEnterEvents = function () { if (this.enterListener == undefined) { this.enterListener = new Object(); this.enterListener.owner = this; this.enterListener.onKeyDown = this.enterOnKeyDown; } }; v2.init = function (Void) { super.init(); this.label.styleName = this; this.tabChildren = true; this.tabEnabled = false; this.focusTextField = this.label; this._color = mx.core.UIObject.textColorList; this.label.onSetFocus = function () { this._parent.onSetFocus(); }; this.label.onKillFocus = function (n) { this._parent.onKillFocus(n); }; this.label.drawFocus = function (b) { this._parent.drawFocus(b); }; this.label.onChanged = this.onLabelChanged; }; v2.setFocus = function () { Selection.setFocus(this.label); }; v2.onLabelChanged = function (Void) { this._parent.dispatchEvent({'type': 'change'}); this._parent.dispatchValueChangedEvent(this.__get__text()); }; v2.createChildren = function (Void) { super.createChildren(); if (this.border_mc == undefined) { this.createClassObject(_global.styles.rectBorderClass, 'border_mc', 0, {'styleName': this}); } this.border_mc.swapDepths(this.label); this.label.autoSize = 'none'; }; v2.__get__html = function () { return this.getHtml(); }; v2.__set__html = function (value) { this.setHtml(value); return this.__get__html(); }; v2.getHtml = function () { return this.label.html; }; v2.setHtml = function (value) { if (value != this.label.html) { this.label.html = value; } }; v2.__get__text = function () { return this.getText(); }; v2.__set__text = function (t) { this.setText(t); return this.__get__text(); }; v2.getText = function () { if (this.initializing) { return this.initText; } if (this.label.html == true) { return this.label.htmlText; } return this.label.text; }; v2.setText = function (t) { if (this.initializing) { this.initText = t; } else { var v2 = this.label; if (v2.html == true) { v2.htmlText = t; } else { v2.text = t; } } this.dispatchValueChangedEvent(t); }; v2.size = function (Void) { this.border_mc.setSize(this.__get__width(), this.__get__height()); var v2 = this.border_mc.__get__borderMetrics(); var v6 = v2.left + v2.right; var v3 = v2.top + v2.bottom; var v5 = v2.left; var v4 = v2.top; this.tfx = v5; this.tfy = v4; this.tfw = this.__get__width() - v6; this.tfh = this.__get__height() - v3; this.label.move(this.tfx, this.tfy); this.label.setSize(this.tfw, this.tfh + 1); }; v2.setEnabled = function (enable) { this.label.type = (this.__editable == true || enable == false) ? 'input' : 'dynamic'; this.label.selectable = enable; var v2 = this.getStyle(enable ? 'color' : 'disabledColor'); if (v2 == undefined) { v2 = enable ? 0 : 8947848; } this.setColor(v2); }; v2.setColor = function (col) { this.label.textColor = col; }; v2.onKillFocus = function (newFocus) { if (this.enterListener != undefined) { Key.removeListener(this.enterListener); } if (this.bind != undefined) { this.updateModel(this.__get__text()); } super.onKillFocus(newFocus); }; v2.onSetFocus = function (oldFocus) { var f = Selection.getFocus(); var o = eval(f); if (o != this.label) { Selection.setFocus(this.label); return undefined; } if (this.enterListener != undefined) { Key.addListener(this.enterListener); } super.onSetFocus(oldFocus); }; v2.draw = function (Void) { var v2 = this.label; var v4 = this.getText(); if (this.initializing) { this.initializing = false; delete this.initText; } var v3 = this._getTextFormat(); v2.embedFonts = v3.embedFonts == true; if (v3 != undefined) { v2.setTextFormat(v3); v2.setNewTextFormat(v3); } v2.multiline = false; v2.wordWrap = false; if (v2.html == true) { v2.setTextFormat(v3); v2.htmlText = v4; } else { v2.text = v4; } v2.type = (this.__editable == true || this.enabled == false) ? 'input' : 'dynamic'; this.size(); }; v2.setEditable = function (s) { this.__editable = s; this.label.type = s ? 'input' : 'dynamic'; }; v2.__get__maxChars = function () { return this.label.maxChars; }; v2.__set__maxChars = function (w) { this.label.maxChars = w; return this.__get__maxChars(); }; v2.__get__length = function () { return this.label.length; }; v2.__get__restrict = function () { return this.label.restrict; }; v2.__set__restrict = function (w) { this.label.restrict = (w == '') ? null : w; return this.__get__restrict(); }; v2.__get__hPosition = function () { return this.label.hscroll; }; v2.__set__hPosition = function (w) { this.label.hscroll = w; return this.__get__hPosition(); }; v2.__get__maxHPosition = function () { return this.label.maxhscroll; }; v2.__get__editable = function () { return this.__editable; }; v2.__set__editable = function (w) { this.setEditable(w); return this.__get__editable(); }; v2.__get__password = function () { return this.label.password; }; v2.__set__password = function (w) { this.label.password = w; return this.__get__password(); }; v2.__get__tabIndex = function () { return this.label.tabIndex; }; v2.__set__tabIndex = function (w) { this.label.tabIndex = w; return this.__get__tabIndex(); }; v2.__set___accProps = function (val) { this.label._accProps = val; return this.__get___accProps(); }; v2.__get___accProps = function () { return this.label._accProps; }; v1.symbolName = 'TextInput'; v1.symbolOwner = mx.controls.TextInput; v1.version = '2.0.2.127'; v2.className = 'TextInput'; v2.initializing = true; v2.clipParameters = {'text': 1, 'editable': 1, 'password': 1, 'maxChars': 1, 'restrict': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2._maxWidth = mx.core.UIComponent.kStretch; v2.__editable = true; v2.initText = ''; v2.addProperty('_accProps', v2.__get___accProps, v2.__set___accProps); v2.addProperty('editable', v2.__get__editable, v2.__set__editable); v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('html', v2.__get__html, v2.__set__html); v2.addProperty('length', v2.__get__length, function () {}); v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars); v2.addProperty('maxHPosition', v2.__get__maxHPosition, function () {}); v2.addProperty('password', v2.__get__password, v2.__set__password); v2.addProperty('restrict', v2.__get__restrict, v2.__set__restrict); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('text', v2.__get__text, v2.__set__text); ASSetPropFlags(mx.controls.TextInput.prototype, null, 1); } #endinitclip } frame 2 { Stage.showMenu = false; } frame 2 { stop(); var myPassword = 'akmb'; submit_btn.onRelease = function () { if (password_txt.text == myPassword) { stopAllSounds(); gotoAndStop(4); } else { gotoAndStop(2); } }; } frame 2 { _root.attachMovie('cursor', 'cursor', this.getNextHighestDepth()); Mouse.hide(); cursor.onMouseMove = function () { cursor._x = _xmouse; cursor._y = _ymouse; cursor.swapDepths(this.getNextHighestDepth()); Stage.showMenu = false; Mouse.hide(); updateAfterEvent(); }; } frame 2 { stop(); } movieClip 257 { } // unknown tag 88 length 42 movieClip 274 { frame 7 { stop(); } } button 275 { on (release) { nextFrame(); } } button 276 { on (release) { gotoAndStop(3); } } button 278 { on (release) { prevFrame(); } } button 280 { on (release) { gotoAndStop(1); } } movieClip 282 { frame 1 { stop(); } } button 284 { on (release) { gotoAndStop(7); } } movieClip 287 { } button 288 { on (release) { gotoAndStop(1); } } movieClip 289 { frame 1 { stop(); } } button 291 { on (release) { gotoAndStop(5); } } movieClip 301 { } movieClip 302 { } button 303 { on (release) { gotoAndStop(1); } } movieClip 304 { frame 1 { stop(); } } movieClip 309 { } movieClip 310 { } movieClip 311 { } movieClip 319 { } movieClip 321 { } movieClip 322 { } button 324 { on (release) { gotoAndStop(6); } } movieClip 326 { } button 327 { on (release) { gotoAndPlay(2); } } button 329 { on (release) { gotoAndPlay(16); } } movieClip 331 { frame 1 { stop(); } frame 15 { stop(); } } button 332 { on (release) { gotoAndStop(1); } } movieClip 333 { frame 1 { stop(); } } button 335 { on (release) { gotoAndStop(3); } } movieClip 347 { } movieClip 348 { } movieClip 349 { } button 350 { on (release) { gotoAndStop(1); } } movieClip 353 { } button 354 { on (rollOver) { gotoAndPlay(2); } } movieClip 355 { frame 1 { stop(); } frame 16 { stop(); } } movieClip 356 { frame 1 { stop(); } } button 358 { on (release) { gotoAndStop(5); } } movieClip 360 { } movieClip 362 { } movieClip 364 { } button 365 { on (release) { gotoAndStop(1); } } movieClip 367 { } movieClip 368 { frame 1 { stop(); } } movieClip 384 { frame 7 { stop(); } } button 385 { on (release) { stopAllSounds(); gotoAndPlay(4); } } movieClip 400 { frame 7 { stop(); } } button 401 { on (release) { stopAllSounds(); gotoAndPlay(3); } } movieClip 416 { frame 7 { stop(); } } button 417 { on (release) { stopAllSounds(); gotoAndPlay(2); } } movieClip 432 { frame 7 { stop(); } } button 433 { on (release) { stopAllSounds(); gotoAndPlay(5); } } movieClip 448 { frame 7 { stop(); } } movieClip 464 { frame 7 { stop(); } } button 465 { on (release) { stopAllSounds(); gotoAndPlay(6); } } movieClip 473 { } movieClip 480 { } movieClip 481 { } movieClip 483 { } button 485 { on (release) { gotoAndStop(30); } } movieClip 487 { } movieClip 490 { } movieClip 493 { } movieClip 495 { } movieClip 496 { } movieClip 498 { } movieClip 501 { } movieClip 504 { } movieClip 505 { } movieClip 508 { } movieClip 509 { } movieClip 511 { } movieClip 513 { } movieClip 514 { } movieClip 518 { } movieClip 519 { } movieClip 520 { } movieClip 523 { } movieClip 524 { } movieClip 527 { } movieClip 528 { } movieClip 531 { } movieClip 532 { } movieClip 535 { } movieClip 536 { } movieClip 539 { } movieClip 540 { } movieClip 544 { } movieClip 546 { } movieClip 547 { } movieClip 550 { } movieClip 551 { } movieClip 554 { } movieClip 555 { } movieClip 558 { } movieClip 559 { } movieClip 561 { } movieClip 562 { } movieClip 565 { } movieClip 566 { } movieClip 569 { } movieClip 570 { } movieClip 573 { } movieClip 574 { } movieClip 578 { } movieClip 580 { } movieClip 581 { } movieClip 584 { } movieClip 585 { } movieClip 588 { } movieClip 589 { } movieClip 592 { } movieClip 593 { } movieClip 596 { } movieClip 597 { } movieClip 600 { } movieClip 601 { } movieClip 604 { } movieClip 605 { } movieClip 608 { } movieClip 609 { } movieClip 612 { } movieClip 613 { } movieClip 615 { } movieClip 616 { } movieClip 619 { } movieClip 620 { } button 621 { on (release) { gotoAndStop(1); } } movieClip 622 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } } button 626 { on (release) { stopAllSounds(); gotoAndPlay(1); } } movieClip 633 { } movieClip 634 { } movieClip 636 { } movieClip 646 { } movieClip 647 { } movieClip 649 { } movieClip 659 { } movieClip 660 { } movieClip 662 { } movieClip 667 { } movieClip 674 { } movieClip 675 { } movieClip 685 { } movieClip 686 { } movieClip 689 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } button 691 { on (release) { gotoAndPlay(4); } } movieClip 697 { } movieClip 705 { } button 706 { on (release) { gotoAndStop(1); } } movieClip 714 { } movieClip 715 { frame 1 { stop(); } } // unknown tag 88 length 66 movieClip 718 { } button 720 { on (press) { _quality = 'low'; } } button 722 { on (press) { _quality = 'medium'; } } button 724 { on (press) { _quality = 'medium'; } } movieClip 725 { } instance of movieClip 725 { onClipEvent (press) { _quality = 'high'; } } movieClip 730 { } movieClip 731 { } movieClip 736 { } movieClip 738 { } movieClip 739 { } movieClip 740 { } // unknown tag 88 length 64 button 744 { on (release) { gotoAndPlay(2); } } movieClip 746 { frame 10 { stop(); } } button 747 { on (release) { gotoAndPlay(12); } } movieClip 748 { frame 1 { stop(); } frame 11 { stop(); } } instance password_txt of movieClip 255 TextInput { onClipEvent (construct) { editable = true; password = false; text = ''; maxChars = 0; restrict = ''; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance submit_btn of movieClip 100 Button { onClipEvent (construct) { icon = ''; label = 'ENTER'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } button 750 { on (release) { gotoAndStop(6); } } movieClip 752 { } movieClip 754 { } movieClip 757 { } button 758 { on (release) { gotoAndStop(1); } } movieClip 759 { frame 1 { stop(); } } button 761 { on (release) { gotoAndStop(6); } } movieClip 764 { } movieClip 766 { } movieClip 767 { } movieClip 769 { } movieClip 770 { } movieClip 772 { } movieClip 773 { } movieClip 775 { } movieClip 776 { } button 777 { on (release) { gotoAndPlay(1); } } movieClip 778 { frame 1 { stop(); } } button 780 { on (release) { gotoAndPlay(2); } } movieClip 782 { } movieClip 785 { } button 788 { on (release) { gotoAndPlay(7); } } movieClip 789 { frame 1 { stop(); } frame 6 { stop(); } } button 791 { on (release) { gotoAndPlay(10); } } movieClip 795 { } button 796 { on (release) { gotoAndPlay(1); } } movieClip 797 { frame 1 { stop(); } } button 799 { on (release) { gotoAndPlay(5); } } movieClip 801 { } movieClip 802 { } button 803 { on (release) { gotoAndStop(1); } } movieClip 804 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } button 806 { on (release) { gotoAndStop(6); } } movieClip 807 { } button 808 { on (release) { gotoAndStop(1); } } movieClip 809 { frame 1 { stop(); } } button 813 { on (release) { stopAllSounds(); } } movieClip 815 { } frame 3 { gotoAndStop(3); } frame 3 { stop(); } button 816 { on (release) { gotoAndPlay(41); } } movieClip 820 { } movieClip 823 { } movieClip 826 { } movieClip 829 { } movieClip 832 { } movieClip 835 { } movieClip 838 { } movieClip 841 { } movieClip 844 { } movieClip 847 { } movieClip 850 { } movieClip 853 { } movieClip 856 { } movieClip 859 { } movieClip 862 { } movieClip 865 { } movieClip 868 { } movieClip 871 { } movieClip 874 { } movieClip 877 { } movieClip 880 { } movieClip 883 { } movieClip 886 { } movieClip 889 { } movieClip 892 { } movieClip 895 { } movieClip 898 { } movieClip 901 { } movieClip 904 { } movieClip 907 { } movieClip 910 { } movieClip 913 { } movieClip 916 { } movieClip 919 { } movieClip 922 { } movieClip 925 { } movieClip 928 { } movieClip 931 { } movieClip 934 { } button 935 { on (release) { gotoAndStop(1); } } movieClip 938 { } movieClip 939 { frame 1 { stop(); } } button 940 { on (release) { gotoAndStop(10); } } movieClip 944 { } movieClip 945 { } movieClip 946 { } button 947 { on (release) { gotoAndStop(1); } } movieClip 948 { frame 1 { stop(); } } button 949 { on (release) { gotoAndStop(4); } } movieClip 952 { } movieClip 954 { } movieClip 956 { } movieClip 957 { } movieClip 959 { } button 960 { on (release) { gotoAndStop(1); } } movieClip 961 { frame 1 { stop(); } } button 962 { on (release) { stopAllSounds(); gotoAndPlay(4); } } button 963 { on (release) { stopAllSounds(); gotoAndPlay(3); } } button 964 { on (release) { stopAllSounds(); gotoAndPlay(2); } } button 965 { on (release) { stopAllSounds(); gotoAndPlay(5); } } button 966 { on (release) { stopAllSounds(); gotoAndPlay(6); } } movieClip 979 { frame 7 { stop(); } } button 980 { on (release) { stopAllSounds(); gotoAndPlay(7); } } movieClip 994 { frame 7 { stop(); } } button 995 { on (release) { stopAllSounds(); gotoAndPlay(8); } } button 996 { on (release) { gotoAndStop(32); } } movieClip 999 { } movieClip 1000 { } button 1001 { on (release) { gotoAndPlay(1); } } movieClip 1002 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } } button 1004 { on (release) { stopAllSounds(); gotoAndPlay(1); } } movieClip 1017 { } movieClip 1018 { } movieClip 1020 { } movieClip 1030 { } movieClip 1031 { } movieClip 1033 { } movieClip 1036 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } button 1037 { on (release) { gotoAndStop(10); } } button 1047 { on (release) { gotoAndStop(1); } } movieClip 1049 { frame 1 { stop(); } } button 1051 { on (release) { gotoAndStop(9); } } movieClip 1052 { } movieClip 1053 { } movieClip 1054 { } movieClip 1055 { } movieClip 1056 { } movieClip 1057 { } movieClip 1058 { } button 1059 { on (release) { gotoAndStop(1); } } movieClip 1060 { } movieClip 1061 { frame 1 { stop(); } } button 1062 { on (release) { gotoAndStop(5); } } movieClip 1066 { } movieClip 1068 { } movieClip 1069 { } movieClip 1079 { } movieClip 1083 { } movieClip 1085 { } movieClip 1086 { } movieClip 1091 { } movieClip 1093 { } movieClip 1094 { } button 1097 { on (release) { gotoAndStop(1); } } movieClip 1100 { } movieClip 1102 { } movieClip 1103 { } movieClip 1106 { frame 1 { stop(); } } movieClip 1108 { frame 11 { stop(); } }




http://swfchan.com/15/74648/info.shtml
Created: 7/4 -2019 00:22:10 Last modified: 7/4 -2019 00:22:10 Server time: 13/05 -2024 09:52:54