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

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

watch_v8-vfl134346.swf

This is the info page for
Flash #254598

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


Text
0123456789 : /

ActionScript [AS1/AS2]

Frame 1
com.google.youtube.players.watch.MainController.main(this);
Symbol 16 MovieClip [preloader] Frame 22
stop();
Symbol 20480 MovieClip [__Packages.com.google.youtube.IBroadcaster] Frame 0
class com.google.youtube.IBroadcaster { function IBroadcaster () { } }
Symbol 20481 MovieClip [__Packages.com.google.youtube.AbstractElement] Frame 0
class com.google.youtube.AbstractElement extends MovieClip implements com.google.youtube.IBroadcaster { var _width, _height, _x, _y, _xscale, _yscale; function AbstractElement () { super(); com.google.chianti.event.EventBroadcaster.initialize(this); } function broadcast(evt) { } function disableBroadcast() { } function enableBroadcast() { } function registerEvent(type, obj) { } function registerEvents() { } function unregisterEvent(type, obj) { } function unregisterEvents() { } function unregisterAll() { } function setSize(newWidth, newHeight) { _width = newWidth; _height = newHeight; } function setLocation(newX, newY) { _x = newX; _y = newY; } function setScale(newXScale, newYScale) { _xscale = newXScale; _yscale = newYScale; } }
Symbol 20482 MovieClip [__Packages.com.google.youtube.ui.BaseButton] Frame 0
class com.google.youtube.ui.BaseButton extends com.google.youtube.AbstractElement { var buttonWidth, buttonHeight, isEnabled, isTooltipEnabled, hit, bg, onRollOver, onRollOut, tooltip, createEmptyMovieClip, getNextHighestDepth; function BaseButton () { super(); buttonWidth = DEFAULT_BUTTON_WIDTH; buttonHeight = DEFAULT_BUTTON_HEIGHT; isEnabled = true; isTooltipEnabled = false; } function enable() { hit.useHandCursor = true; isEnabled = true; } function enableTooltip() { isTooltipEnabled = true; } function disable() { hit.useHandCursor = false; isEnabled = false; } function disableTooltip() { isTooltipEnabled = false; } function drawBgUpState() { bg._visible = false; } function drawBgDownState() { bg._visible = true; } function hover() { } function unhover() { } function dragOver() { onRollOver(); } function dragOut() { onRollOut(); } function press() { bg._visible = true; } function release() { drawBgUpState(); } function releaseOutside() { unhover(); drawBgUpState(); } function rollOver() { hover(); } function rollOut() { unhover(); } function setTooltip(s) { tooltip = s; } function getTooltip() { return(tooltip); } function build(opt_width, opt_height) { if (opt_width != undefined) { buttonWidth = opt_width; } if (opt_height != undefined) { buttonHeight = opt_height; } if (!bg) { bg = createEmptyMovieClip("bg", getNextHighestDepth()); bg._visible = false; } else { bg.clear(); } if (!hit) { hit = createEmptyMovieClip("hit", getNextHighestDepth()); hit._alpha = 0; hit.onRollOver = com.google.chianti.event.EventDelegate.create(this, rollOver); hit.onRollOut = com.google.chianti.event.EventDelegate.create(this, rollOut); hit.onPress = com.google.chianti.event.EventDelegate.create(this, press); hit.onRelease = com.google.chianti.event.EventDelegate.create(this, release); hit.onReleaseOutside = com.google.chianti.event.EventDelegate.create(this, releaseOutside); hit.onDragOver = com.google.chianti.event.EventDelegate.create(this, dragOver); hit.onDragOut = com.google.chianti.event.EventDelegate.create(this, dragOut); } else { hit.clear(); } com.google.youtube.util.Drawing.drawRect(hit, 0, 0, buttonWidth, buttonHeight, 16711680); } static var LINK_NAME = "__Packages.com.google.youtube.ui.BaseButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.ui.BaseButton); static var BUTTON_UP = "up"; static var BUTTON_DOWN = "down"; static var BUTTON_PLAYING = "playing"; static var BUTTON_PAUSED = "paused"; static var BUTTON_DISABLED = "disabled"; static var BUTTON_ERROR = "error"; static var DEFAULT_BUTTON_WIDTH = 28; static var DEFAULT_BUTTON_HEIGHT = 23; static var DISABLED_ALPHA = 45; static var ICON_SHADOW_ALPHA = 60; static var ICON_SHADOW_COLOR = 16777215; }
Symbol 20483 MovieClip [__Packages.com.google.youtube.players.ui.EndScreenButton] Frame 0
class com.google.youtube.players.ui.EndScreenButton extends com.google.youtube.ui.BaseButton { var canvas, createEmptyMovieClip, getNextHighestDepth, bgUp, bgOver, tabChildren, messages, labelKey, broadcast, label_txt, icon, createTextField, _width, _height; function EndScreenButton () { super(); build(); } function build() { super.build(); canvas = createEmptyMovieClip("canvas", getNextHighestDepth()); bgUp = canvas.attachMovie("endScreenButtonUp", "bgUp", canvas.getNextHighestDepth()); var _local3 = {_x:2, _y:2}; bgOver = canvas.attachMovie("endScreenButtonOver", "bgOver", canvas.getNextHighestDepth(), _local3); bgOver._alpha = 0; tabChildren = false; } function init(messagesObj, key, iconSymbol) { messages = messagesObj; messages.registerEvent(com.google.youtube.event.MessagesEvent.UPDATE, com.google.chianti.event.EventDelegate.create(this, onTextUpdate)); labelKey = key; buildExtras(iconSymbol); } function hover() { bgOver._alpha = 100; } function unhover() { bgOver._alpha = 0; } function onRelease() { broadcast({type:com.google.youtube.event.GenericButtonEvent.RELEASE, target:this}); } function hideText() { label_txt._visible = false; } function showText() { label_txt._visible = true; label_txt._x = (-(label_txt._width / 2)) + (bgUp._width / 2); } function getIconBounds() { var _local2 = new com.google.geom.Rect(bgUp._x, bgUp._y, bgUp._width, bgUp._height); return(_local2); } function onTextUpdate(evt) { setText(messages.getMsg(labelKey)); } function setText(newText) { label_txt.text = newText; } function buildExtras(iconSymbol) { icon = canvas.attachMovie(iconSymbol, "icon", canvas.getNextHighestDepth()); icon._x = (canvas._width / 2) - (icon._width / 2); icon._y = (canvas._height / 2) - (icon._height / 2); var _local3 = 100; var _local4 = new TextFormat(); _local4.size = 16; _local4.color = 16777215 /* 0xFFFFFF */; _local4.font = "_sans"; _local4.align = "center"; _local4.bold = true; createTextField("label_txt", getNextHighestDepth(), (-(_local3 / 2)) + (_width / 2), _height + 5, _local3, 25); label_txt.setNewTextFormat(_local4); label_txt.selectable = false; label_txt.autoSize = true; label_txt.text = messages.getMsg(labelKey); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.EndScreenButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.EndScreenButton); }
Symbol 20484 MovieClip [__Packages.com.gs.TweenLite] Frame 0
class com.gs.TweenLite { static var _e, _classInitted, _curTime, _gc, _listening; var tweenID, endTargetID, vars, duration, delay, _active, target, tweens, _subTweens, _hst, _initted, initTime, startTime, _hasUpdate; function TweenLite ($target, $duration, $vars) { _cnt++; tweenID = "tw" + _cnt; endTargetID = getID($target, true); if (($vars.overwrite != false) && ($target != undefined)) { delete _all[endTargetID]; _all[endTargetID] = {info:[$target, endTargetID]}; } _all[endTargetID][tweenID] = this; vars = $vars; duration = $duration || 0.001; delay = $vars.delay || 0; _active = ($duration == 0) && (delay == 0); target = $target; if (typeof(vars.ease) != "function") { vars.ease = defaultEase; } if (vars.easeParams != undefined) { vars.proxiedEase = vars.ease; vars.ease = easeProxy; } if (typeof(vars.autoAlpha) == "number") { vars._alpha = vars.autoAlpha; vars._visible = vars._alpha > 0; } tweens = []; _subTweens = []; _hst = (_initted = false); if ((_e._visible != false) || (!_classInitted)) { _curTime = getTimer(); var _local5 = 999; while (_root.getInstanceAtDepth(_local5) != undefined) { _local5++; } _e = _root.createEmptyMovieClip("__tweenLite_mc", _local5); _e._visible = false; _global.clearInterval(_gc); _gc = _global.setInterval(killGarbage, 2000); _e.onEnterFrame = executeAll; _classInitted = true; } initTime = _curTime; if (_active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) { initTweenVals(); startTime = _curTime; if (_active) { render(startTime + 1); } else { render(startTime); } if ((vars._visible != undefined) && (vars.runBackwards == true)) { target._visible = vars._visible; } } if ((!_active) && (!_listening)) { _listening = true; } } function initTweenVals($hrp, $reservedProps) { var _local4 = typeof(target) == "movieclip"; if (target instanceof Array) { var _local7 = vars.endArray || ([]); var _local6 = 0; for ( ; _local6 < _local7.length ; _local6++) { if ((target[_local6] != _local7[_local6]) && (target[_local6] != undefined)) { tweens[tweens.length] = {o:target, p:_local6.toString(), s:target[_local6], c:_local7[_local6] - target[_local6]}; } } } else { if (((vars.tint != undefined) || (vars.removeTint == true)) && (_local4 || (target instanceof TextField))) { var _local8 = new Color(target); var _local9 = vars._alpha; if (_local9 != undefined) { delete vars._alpha; } else { _local9 = target._alpha; } if ((vars.removeTint == true) || ((vars.tint == null) || (vars.tint == ""))) { addSubTween(tintProxy, _local8.getTransform(), {rb:0, gb:0, bb:0, ab:0, ra:_local9, ga:_local9, ba:_local9, aa:_local9}, {color:_local8}); } else { addSubTween(tintProxy, _local8.getTransform(), {rb:vars.tint >> 16, gb:(vars.tint >> 8) & 255, bb:vars.tint & 255, ra:0, ga:0, ba:0, aa:_local9}, {color:_local8}); } } if ((vars.frame != undefined) && (_local4)) { addSubTween(frameProxy, {frame:target._currentframe}, {frame:vars.frame}, {mc:target}); } if ((vars.volume != undefined) && (_local4 || (target instanceof Sound))) { if (_local4) { var _local10 = new Sound(target); } else { var _local10 = Sound(target); } addSubTween(volumeProxy, {volume:_local10.getVolume()}, {volume:vars.volume}, {sound:_local10}); } for (var _local5 in vars) { if ((_local5 == "ease") || ((_local5 == "delay") || ((_local5 == "overwrite") || ((_local5 == "onComplete") || ((_local5 == "onCompleteParams") || ((_local5 == "onCompleteScope") || ((_local5 == "runBackwards") || ((_local5 == "onUpdate") || ((_local5 == "onUpdateParams") || ((_local5 == "onUpdateScope") || ((_local5 == "persist") || ((_local5 == "volume") || ((_local5 == "onStart") || ((_local5 == "onStartParams") || ((_local5 == "onStartScope") || ((_local5 == "renderOnStart") || ((_local5 == "proxiedEase") || ((_local5 == "easeParams") || ($hrp && ($reservedProps.indexOf((" " + _local5) + " ") != -1)))))))))))))))))))) { } else if ((!(_local4 && ((_local5 == "_visible") || ((_local5 == "autoAlpha") || ((_local5 == "tint") || ((_local5 == "removeTint") || (_local5 == "frame"))))))) && (target[_local5] != undefined)) { if (typeof(vars[_local5]) == "number") { tweens[tweens.length] = {o:target, p:_local5, s:target[_local5], c:vars[_local5] - target[_local5]}; } else { tweens[tweens.length] = {o:target, p:_local5, s:target[_local5], c:Number(vars[_local5])}; } } } } if (vars.runBackwards == true) { var _local6 = tweens.length - 1; for ( ; _local6 > -1 ; _local6--) { var _local11 = tweens[_local6]; _local11.s = _local11.s + _local11.c; _local11.c = _local11.c * -1; } } if (vars._visible == true) { target._visible = true; } if (vars.onUpdate != null) { _hasUpdate = true; } _initted = true; } function addSubTween($proxy, $target, $props, $info) { var _local6 = {proxy:$proxy, target:$target, info:$info}; _subTweens[_subTweens.length] = _local6; for (var p in $props) { if (typeof($props[p]) == "number") { tweens[tweens.length] = {o:$target, p:p, s:$target[p], c:$props[p] - $target[p], sub:_local6}; } else { tweens[tweens.length] = {o:$target, p:p, s:$target[p], c:Number($props[p]), sub:_local6}; } } _hst = true; } static function to($target, $duration, $vars) { return(new com.gs.TweenLite($target, $duration, $vars)); } static function from($target, $duration, $vars) { $vars.runBackwards = true; return(new com.gs.TweenLite($target, $duration, $vars)); } static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) { return(new com.gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:false})); } function render($t) { var _local3 = ($t - startTime) / 1000; if (_local3 >= duration) { _local3 = duration; var _local4 = 1; } else { var _local4 = vars.ease(_local3, 0, 1, duration); } var _local6 = tweens.length - 1; for ( ; _local6 > -1 ; _local6--) { var _local5 = tweens[_local6]; _local5.o[_local5.p] = _local5.s + (_local4 * _local5.c); } if (_hst) { _local6 = _subTweens.length - 1; for ( ; _local6 > -1 ; _local6--) { _subTweens[_local6].proxy(_subTweens[_local6]); } } if (_hasUpdate) { vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams); } if (_local3 == duration) { complete(true); } } static function executeAll() { var _local2 = (_curTime = getTimer()); if (_listening) { var _local3 = _all; for (var _local6 in _local3) { for (var _local5 in _local3[_local6]) { var _local4 = _local3[_local6][_local5]; if (_local4.active) { _local4.render(_local2); } } } } } static function removeTween($t) { _all[$t.endTargetID][$t.tweenID] = {active:false}; delete _all[$t.endTargetID][$t.tweenID]; } static function killTweensOf($tg, $complete) { var _local4 = getID($tg, true); if ($complete) { var _local5 = _all[_local4]; for (var tw in _local5) { _local5[tw].complete(false); } } delete _all[_local4]; } function complete($skipRender) { if ($skipRender != true) { if (!_initted) { initTweenVals(); } startTime = _curTime - (duration * 1000); render(_curTime); return(undefined); } if (vars._visible != undefined) { if ((vars.autoAlpha != undefined) && (target._alpha == 0)) { target._visible = false; } else if (vars.runBackwards != true) { target._visible = vars._visible; } } if (vars.onComplete) { vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams); } if (vars.persist != true) { removeTween(this); } } static function getID($tg, $lookup) { if ($lookup) { var _local5 = _all; if (typeof($tg) == "movieclip") { if (_local5[String($tg)] != undefined) { return(String($tg)); } var _local4 = String($tg); _all[_local4] = {info:[$tg, _local4]}; return(_local4); } for (var p in _local5) { if (_local5[p].info[0] == $tg) { return(p); } } } _cnt++; var _local4 = "t" + _cnt; _all[_local4] = {info:[$tg, _local4]}; return(_local4); } static function killGarbage() { if (_listening) { var _local2 = _all; var _local6 = 0; var _local7 = 0; for (var _local4 in _local2) { _local7 = 0; for (var _local5 in _local2[_local4]) { var _local3 = _local2[_local4][_local5]; if (_local3.tweens == undefined) { } else { _local7++; } } if (_local7 == 0) { delete _local2[_local4]; } else { _local6++; } } if (_local6 == 0) { _listening = false; } } } static function defaultEase($t, $b, $c, $d) { $t = $t / $d; return((((-$c) * $t) * ($t - 2)) + $b); } function easeProxy($t, $b, $c, $d) { var _local6 = this; return(_local6.proxiedEase.apply(null, arguments.concat(_local6.easeParams))); } static function tintProxy($o) { $o.info.color.setTransform($o.target); } static function frameProxy($o) { $o.info.mc.gotoAndStop(Math.round($o.target.frame)); } static function volumeProxy($o) { $o.info.sound.setVolume($o.target.volume); } function get active() { if (_active) { return(true); } if (((_curTime - initTime) / 1000) > delay) { _active = true; startTime = initTime + (delay * 1000); if (!_initted) { initTweenVals(); } else if (vars._visible != undefined) { target._visible = true; } if (duration == 0.001) { startTime = startTime - 1; } if (vars.onStart != undefined) { vars.onStart.apply(vars.onStartScope, vars.onStartParams); } return(true); } return(false); } static var version = 7.01; static var killDelayedCallsTo = killTweensOf; static var _all = new Object(); static var _cnt = -16000; static var _hrp = false; }
Symbol 20485 MovieClip [__Packages.com.google.youtube.config.constants.EventLabel] Frame 0
class com.google.youtube.config.constants.EventLabel { function EventLabel () { } static var ADUNIT = "adunit"; static var CHANNEL_PAGE = "profilepage"; static var DETAIL_PAGE = "detailpage"; static var EDIT_PAGE = "editpage"; static var EMBEDDED = "embedded"; }
Symbol 20486 MovieClip [__Packages.ArrayParam] Frame 0
class ArrayParam { function ArrayParam () { } //ASSetPropFlags(_local1, null, 1); }
Symbol 20487 MovieClip [__Packages.com.google.youtube.players.ui.ThumbnailCarousel] Frame 0
class com.google.youtube.players.ui.ThumbnailCarousel extends com.google.youtube.AbstractElement { var images, imagesIndex, thumbWidth, thumbHeight, transitionDuration, transitionPeriod, thumbnailUrls, timeDisplay, bg, createEmptyMovieClip, getNextHighestDepth, bgMask, attachMovie, transitionInterval; function ThumbnailCarousel () { super(); images = []; imagesIndex = 0; } function init(width, height, interval, period, thumbnails) { thumbWidth = width; thumbHeight = height; transitionDuration = interval; transitionPeriod = period; build(); } function setData(thumbnails, opt_duration) { thumbnailUrls = thumbnails; var _local4 = images.length; var _local5 = 0; for ( ; _local5 < _local4 ; _local5++) { images[_local5].removeMovieClip(); } if (opt_duration) { timeDisplay.setDisplayText(com.google.youtube.util.StringUtil.secondsToTimeString(opt_duration)); timeDisplay._x = (thumbWidth - timeDisplay._width) - 2; timeDisplay._y = thumbHeight - timeDisplay._height; showText(); } buildStack(); } function hideText() { timeDisplay._visible = false; } function showText() { timeDisplay._visible = true; } function build() { bg = createEmptyMovieClip("bg", getNextHighestDepth()); bgMask = createEmptyMovieClip("bgMask", getNextHighestDepth()); bg.clear(); com.google.youtube.util.Drawing.drawRect(bg, 0, 0, thumbWidth, thumbHeight, 0); com.google.youtube.util.Drawing.drawRect(bgMask, 0, 0, thumbWidth, thumbHeight, 0); bg.setMask(bgMask); timeDisplay = com.google.youtube.ui.TextButton(attachMovie(com.google.youtube.ui.TextButton.LINK_NAME, "statusText", getNextHighestDepth())); timeDisplay.disable(); hideText(); var _local2 = new TextFormat(); _local2.size = 11; _local2.font = "Arial,sans-serif"; _local2.align = "right"; _local2.bold = true; _local2.color = 15658734 /* 0xEEEEEE */; timeDisplay.setTextFormat(_local2); timeDisplay.setFillStyle({alpha:75, color:0}); } function buildStack() { var _local2 = thumbnailUrls.length; var _local3 = 0; for ( ; _local3 < _local2 ; _local3++) { bg.attachMovie(com.google.youtube.players.ui.ImageHolder.LINK_NAME, "image" + _local3, bg.getNextHighestDepth()); var _local4 = com.google.youtube.players.ui.ImageHolder(bg["image" + _local3]); _local4.init(thumbWidth, thumbHeight, thumbnailUrls[_local3].toString()); images.push(bg["image" + _local3]); } imagesIndex = Math.max(images.length - 1, 0); showNext(); } function start() { if (!transitionInterval) { transitionInterval = _global.setInterval(this, "showNext", transitionPeriod); } } function stop() { _global.clearInterval(transitionInterval); transitionInterval = 0; } function showNext() { var _local2 = images.length; if (_local2 > 0) { var _local3 = images[imagesIndex]; imagesIndex = ((imagesIndex == (_local2 - 1)) ? 0 : (imagesIndex + 1)); var _local4 = com.google.youtube.players.ui.ImageHolder(images[imagesIndex]); _local4.showImage(); if (_local3 != _local4) { _local4.swapDepths(bg.getNextHighestDepth()); _local4._alpha = 0; com.gs.TweenLite.to(_local4, transitionDuration * 0.001, {_alpha:100, overwrite:false}); } } } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.ThumbnailCarousel"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.ThumbnailCarousel); }
Symbol 20488 MovieClip [__Packages.com.google.utils.FunctionUtils] Frame 0
class com.google.utils.FunctionUtils { function FunctionUtils () { } static function concat(f, g) { if (f) { return(function () { f(); g(); }); } return(g); } }
Symbol 20489 MovieClip [__Packages.com.google.youtube.ui.IVideoControl] Frame 0
class com.google.youtube.ui.IVideoControl implements com.google.youtube.IBroadcaster { function IVideoControl () { } }
Symbol 20490 MovieClip [__Packages.com.google.youtube.ui.BaseVideoControl] Frame 0
class com.google.youtube.ui.BaseVideoControl extends com.google.youtube.AbstractElement implements com.google.youtube.ui.IVideoControl { var color1, color2, _width, _x, _y, disabledOverlay, getNextHighestDepth, broadcast, createEmptyMovieClip; function BaseVideoControl () { super(); } function init(c1, c2) { color1 = c1; color2 = c2; } function build() { buildDisabledOverlay(); } function onBuilt() { setDisabledOverlayWidth(_width); refreshDisabledOverlayDepth(); } function isResizable() { return(false); } function isActive() { return(active); } function hasDivider() { return(true); } function getWidth() { return(_width); } function getMinRequiredControlsWidth() { return(0); } function setWidth(newWidth) { setDisabledOverlayWidth(newWidth); } function setPosition(newX, newY) { _x = newX; _y = newY; } function isDisabled() { return(disabled); } function disable(global) { if (global) { disabledGlobally = true; } else { disabled = true; } disabledOverlay._visible = true; } function enable(global) { if (global) { disabledGlobally = false; disabledOverlay._visible = disabled; } else { disabled = false; disabledOverlay._visible = disabledGlobally; } } function setDisabledOverlayWidth(newWidth) { disabledOverlay._width = newWidth; } function refreshDisabledOverlayDepth() { disabledOverlay.swapDepths(getNextHighestDepth()); } function onDisabledOverlayClicked(evt) { broadcast({type:com.google.youtube.event.VideoControlsEvent.DISABLED_CONTROL_CLICKED}); } function buildDisabledOverlay() { if (disabledOverlayBuilt) { disabledOverlay.removeMovieClip(); } disabledOverlayBuilt = true; disabledOverlay = createEmptyMovieClip("disabledOverlay", getNextHighestDepth()); var _local2 = {colors:[CONTROLS_TOP_GRADIENT_COLOR, color2], fillType:"linear", alphas:[DISABLED_ALPHA, DISABLED_ALPHA], ratios:[0, 225], matrix:{matrixType:"box", x:0, y:0, w:1, h:DISABLED_OVERLAY_HEIGHT, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawRect(disabledOverlay, 0, 0, 1, DISABLED_OVERLAY_HEIGHT, _local2); disabledOverlay.onRelease = com.google.chianti.event.EventDelegate.create(this, onDisabledOverlayClicked); disabledOverlay.useHandCursor = false; disabledOverlay._visible = disabled || (disabledGlobally); } function setDisabledHandCursor(useHandCursorValue) { disabledOverlay.useHandCursor = useHandCursorValue; } static var CONTROLS_TOP_GRADIENT_COLOR = 16777215; static var DISABLED_ALPHA = 45; static var DISABLED_OVERLAY_HEIGHT = 25; var active = false; var disabled = false; var disabledGlobally = false; var disabledOverlayBuilt = false; }
Symbol 20491 MovieClip [__Packages.com.google.youtube.players.ui.SeekBar] Frame 0
class com.google.youtube.players.ui.SeekBar extends com.google.youtube.ui.BaseVideoControl { var bgwidth, bgheight, lastStartPos, lastLoadedBarWidth, lastBarWidth, lastProgressStartPos, lastProgressBarWidth, lastPlayedBarWidth, onBuilt, handle, bg, timeTooltip, hitArea, thumbTiles, createEmptyMovieClip, getNextHighestDepth, currentThumb, thumbTilesPerRow, thumbTilesTotal, duration, loadedBar, playedBar, handleHovered, _xmouse, innerHandleInactive, broadcast, seekBarHovered, prevUpdateX, markers, color1, attachMovie, innerHandleActive; function SeekBar () { super(); } function init(c1, c2) { super.init(c1, c2); bgwidth = -1; bgheight = -1; lastStartPos = -1; lastLoadedBarWidth = -1; lastBarWidth = -1; lastProgressStartPos = -1; lastProgressBarWidth = -1; lastPlayedBarWidth = -1; build(); onBuilt(); handle._accProps = {name:"Seek Slider Bar"}; bg.tabEnabled = false; initTooltip(); } function initTooltip() { timeTooltip = com.google.youtube.players.ui.Tooltip.createTooltip(hitArea, com.google.youtube.util.Drawing.BOTTOM, undefined, undefined, this); } function loadThumbTiles(thumbTilesUrl) { if (thumbTiles) { if (thumbTiles._url == thumbTilesUrl) { return(undefined); } unloadThumbTiles(); } thumbTiles = createEmptyMovieClip("thumbTiles", getNextHighestDepth()); var _local3 = new MovieClipLoader(); _local3.addListener(this); _local3.loadClip(thumbTilesUrl, thumbTiles); } function unloadThumbTiles() { thumbTiles.removeMovieClip(); thumbTiles = null; timeTooltip.clearTooltipIcon(); } function onLoadInit(target) { if (!currentThumb) { currentThumb = new flash.display.BitmapData(THUMB_CROP_WIDTH, THUMB_CROP_HEIGHT, false, 0); } thumbTilesPerRow = thumbTiles._width / THUMB_WIDTH; thumbTilesTotal = (thumbTiles._height / THUMB_HEIGHT) * thumbTilesPerRow; thumbTiles._visible = false; timeTooltip.setTooltipIconFromBitmap(currentThumb); } function onLoadError(target, errorCode, httpStatus) { unloadThumbTiles(); } function isResizable() { return(true); } function isActive() { return(dragging); } function hasDivider() { return(false); } function getWidth() { return(getBarWidth() + (PADDING_SIDE * 2)); } function getMinRequiredControlsWidth() { return(150); } function getXPositionForTime(time) { if (time > duration) { time = duration; } if (time < 0) { time = 0; } var _local3 = Math.round((time / duration) * getBarWidth()); return(bg._x + _local3); } function getTimeForXPosition(xpos) { xpos = constrainXPosToBg(xpos); return((xpos / getBarWidth()) * duration); } function convertHandleX(newX) { return(newX + PADDING_SIDE); } function getHandleX() { return(handle.newX - PADDING_SIDE); } function getSecondsFromHandlePosition() { return((getHandleX() / getBarWidth()) * duration); } function drawLoadedBar(startPos, loadedBarWidth, barWidth) { if ((loadedBarWidth != lastLoadedBarWidth) || ((startPos != lastStartPos) || (barWidth != lastBarWidth))) { lastStartPos = startPos; lastLoadedBarWidth = loadedBarWidth; lastBarWidth = barWidth; var _local5 = {colors:[12945801, 13342871], fillType:"linear", alphas:[100, 100], ratios:[0, 255], matrix:{matrixType:"box", x:0, y:0, w:barWidth, h:DEFAULT_BAR_HEIGHT, r:(90 / 180) * Math.PI}}; loadedBar.clear(); com.google.youtube.util.Drawing.drawRect(loadedBar, startPos, 0, loadedBarWidth, DEFAULT_BAR_HEIGHT, _local5); } } function setPercentLoaded(percent, startPercent) { if (percent && (duration > 0)) { currentPercentLoaded = percent; var _local4 = getBarWidth(); startPosition = Math.ceil((startPercent / 100) * _local4) || 0; var _local5 = Math.ceil((percent / 100) * _local4); var _local6 = Math.min(_local5 - startPosition, _local4); drawLoadedBar(startPosition, _local6, _local4); } } function drawProgress(progressStartPos, progressBarWidth, playedBarWidth) { if ((Math.abs(progressStartPos - lastProgressStartPos) > 1) || ((progressBarWidth != lastProgressBarWidth) || (playedBarWidth != lastPlayedBarWidth))) { lastProgressStartPos = progressStartPos; lastProgressBarWidth = progressBarWidth; lastPlayedBarWidth = playedBarWidth; playedBar.clear(); var _local5 = {colors:[16724787, 13113111], fillType:"linear", alphas:[100, 100], ratios:[0, 255], matrix:{matrixType:"box", x:0, y:0, w:playedBarWidth, h:DEFAULT_BAR_HEIGHT, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawRect(playedBar, progressStartPos, 0, progressBarWidth, DEFAULT_BAR_HEIGHT, _local5); } } function updateProgress(startPercent) { var _local3 = getBarWidth(); if ((!_global.isNaN(startPercent)) && (startPercent != null)) { var _local4 = startPercent; startPosition = Math.ceil((_local4 / 100) * _local3); } var _local5 = Math.max(startPosition + 1, getHandleX()); var _local6 = _local5 - startPosition; if ((_local6 + startPosition) > _local3) { _local6 = _local3 - startPosition; } drawProgress(startPosition, _local6, _local3); } function updateHandlePosition(percent, startPercent, doSmoothTransition) { currentPercent = percent; currentStartPercent = startPercent; var _local5 = 0; _local5 = Math.round((percent / 100) * getBarWidth()); _local5 = Math.min(_local5, getBarWidth()); if ((!dragging) && (percent != undefined)) { handle.newX = convertHandleX(_local5); if (doSmoothTransition) { handle._x = convertHandleX(_local5); } updateProgress(startPercent); } if (handleHovered) { updateTimeTooltipForX(handle._x, currentPercent); } } function startHandleDrag() { dragging = true; handle._x = _xmouse; handle.startDrag(false, bg._x, handle._y, getBarWidth() + bg._x, handle._y); com.gs.TweenLite.to(innerHandleInactive, 0.15, {_alpha:0}); broadcast({type:com.google.youtube.event.GenericButtonEvent.PRESS, target:this}); update(); } function stopHandleDrag() { if (dragging) { dragging = false; handle.newX = handle._x; handle.stopDrag(); com.gs.TweenLite.to(innerHandleInactive, 0.12, {_alpha:100}); var _local2 = getSecondsFromHandlePosition(); if (getHandleX() <= 1) { _local2 = 0; reset(true); } broadcast({type:com.google.youtube.event.GenericButtonEvent.RELEASE, data:_local2, target:this}); } } function constrainXPosToBg(xpos) { return(Math.max(Math.min(xpos - bg._x, getBarWidth()), 0)); } function update() { if (seekBarHovered && (prevUpdateX != _xmouse)) { updateTimeTooltipForX(_xmouse); } else if (handleHovered && (prevUpdateX != _xmouse)) { updateTimeTooltipForX(handle._x); } if (dragging) { onHandleMouseMove(); } } function updateTimeTooltipForX(xpos, opt_forcedPercent) { prevUpdateX = xpos; var _local4 = (opt_forcedPercent ? ((opt_forcedPercent * duration) / 100) : (getTimeForXPosition(xpos))); var _local5 = com.google.youtube.util.StringUtil.secondsToTimeString(Math.round(_local4), 3); timeTooltip.setTooltipText(_local5); if (thumbTiles) { var _local6 = (opt_forcedPercent ? (Math.floor((opt_forcedPercent * thumbTilesTotal) / 100)) : (Math.floor((getTimeForXPosition(xpos) * thumbTilesTotal) / duration))); var _local7 = new flash.geom.Matrix(); _local7.translate((-THUMB_WIDTH) * (_local6 % thumbTilesPerRow), (-THUMB_HEIGHT) * Math.floor(_local6 / thumbTilesPerRow)); _local7.translate((THUMB_CROP_WIDTH - THUMB_WIDTH) / 2, (THUMB_CROP_HEIGHT - THUMB_HEIGHT) / 2); currentThumb.draw(thumbTiles, _local7); } var _local8 = xpos - hitArea._x; timeTooltip.setOffset(_local8, 10); timeTooltip.showTooltip(0); if (dragging) { broadcast({type:com.google.youtube.event.UIEvent.CHANGE, data:_local4, target:this}); } } function showResumeTooltip(timeOffset, message) { timeTooltip.setTooltipText(message); timeTooltip.setOffset(getXPositionForTime(timeOffset), 10); timeTooltip.showTooltip(0); } function startMouseUpdates(barHovered) { handleHovered = !barHovered; seekBarHovered = barHovered; bg.onEnterFrame = com.google.chianti.event.EventDelegate.create(this, update); update(); } function stopMouseUpdates() { handleHovered = false; seekBarHovered = false; bg.onEnterFrame = null; timeTooltip.hideTooltip(); } function onHandleMouseMove() { var _local2 = getSecondsFromHandlePosition(); handle.newX = handle._x; if (getHandleX() < 1) { _local2 = 0; } broadcast({type:com.google.youtube.event.UIEvent.SEEK, data:_local2, target:this}); } function onHandleEnterFrame() { if (!dragging) { handle._x = handle._x + ((handle.newX - handle._x) * HANDLE_SPEED); updateProgress(); } } function onBarPress() { startHandleDrag(); } function onBarHover() { startMouseUpdates(true); } function onBarUnhover() { stopMouseUpdates(); } function onHandleHover() { startMouseUpdates(false); } function onHandleUnhover() { stopHandleDrag(); stopMouseUpdates(); } function onBarRelease() { var _local2 = _xmouse; var _local3 = ((_local2 - PADDING_SIDE) / getBarWidth()) * duration; if (_local2 <= convertHandleX(1)) { _local3 = 0; } broadcast({type:com.google.youtube.event.GenericButtonEvent.RELEASE, data:_local3, target:this}); } function getBarWidth() { return(bg._width - 2); } function setBarWidth(newWidth) { if (bgwidth == newWidth) { return(undefined); } drawBg(newWidth, DEFAULT_BAR_HEIGHT); markers.resize(newWidth); updateHandlePosition(currentPercent, currentStartPercent, true); setPercentLoaded(currentPercentLoaded, currentStartPercent); } function setWidth(newWidth) { setBarWidth(newWidth - (PADDING_SIDE * 2)); super.setWidth(newWidth); } function setDuration(newDuration) { if (newDuration > 0) { duration = newDuration; } } function getDuration() { return(duration); } function onMetaLoaded(evt) { duration = evt.duration; markers.redraw(); } function reset(softReset) { if (!softReset) { markers.clear(); loadedBar.clear(); currentPercent = 0; currentStartPercent = 0; duration = 0; } handle._x = (handle.newX = convertHandleX(0)); updateProgress(); } function drawBg(width, height) { if ((width != bgwidth) || (height != bgheight)) { bgwidth = width; bgheight = height; bg.clear(); var _local4 = {colors:[11447982, 13553358], fillType:"linear", alphas:[100, 100], ratios:[0, 150], matrix:{matrixType:"box", x:0, y:0, w:width, h:height, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawRect(bg, -1, -1, width + 2, height + 1, color1); com.google.youtube.util.Drawing.drawRect(bg, 0, 0, width, height, _local4); com.google.youtube.util.Drawing.drawRect(bg, 0, height, width, 1, 15658734); hitArea.clear(); com.google.youtube.util.Drawing.drawRect(hitArea, 0, 0, width, height + (2 * PADDING_TOP), 0); } } function drawTimeSpan(newStartTime, newEndTime) { var _local4 = new com.google.youtube.players.ui.SeekBarMarker(newStartTime, newEndTime, null); markers.addVariableWidthMarker(_local4); showMarkers(); } function clearMarkers() { markers.clear(); } function drawFixedWidthMarker(newStartTime, newMarkerWidth) { var _local4 = new com.google.youtube.players.ui.SeekBarMarker(newStartTime, null, newMarkerWidth); markers.addFixedWidthMarker(_local4); showMarkers(); } function disableMarker(newMarkerTime) { markers.disableMarker(newMarkerTime); } function removeMarker(newMarkerTime) { markers.removeMarker(newMarkerTime); } function hideMarkers() { markers._visible = false; } function showMarkers() { markers._visible = true; } function build() { super.build(); markers = com.google.youtube.players.ui.SeekBarMarkerManager(attachMovie(com.google.youtube.players.ui.SeekBarMarkerManager.LINK_NAME, "markers", getNextHighestDepth())); markers.init(this); markers._x = PADDING_SIDE; hideMarkers(); hitArea = createEmptyMovieClip("hitArea", getNextHighestDepth()); hitArea._alpha = 0; hitArea._x = PADDING_SIDE; hitArea.useHandCursor = false; hitArea.onRelease = com.google.chianti.event.EventDelegate.create(this, onBarRelease); hitArea.onPress = com.google.chianti.event.EventDelegate.create(this, onBarPress); hitArea.onRollOver = com.google.chianti.event.EventDelegate.create(this, onBarHover); hitArea.onRollOut = com.google.chianti.event.EventDelegate.create(this, onBarUnhover); hitArea.onReleaseOutside = hitArea.onRollOut; hitArea.tabEnabled = false; bg = createEmptyMovieClip("bg", getNextHighestDepth()); bg._alpha = 80; drawBg(DEFAULT_BAR_WIDTH, DEFAULT_BAR_HEIGHT); loadedBar = createEmptyMovieClip("loadedBar", getNextHighestDepth()); playedBar = createEmptyMovieClip("playedBar", getNextHighestDepth()); loadedBar._x = (playedBar._x = (bg._x = PADDING_SIDE)); loadedBar._y = (playedBar._y = (bg._y = PADDING_TOP)); handle = createEmptyMovieClip("handle", getNextHighestDepth()); var _local3 = handle.createEmptyMovieClip("outerHandle", 1); innerHandleActive = handle.createEmptyMovieClip("innerHandleActive", 2); innerHandleInactive = handle.createEmptyMovieClip("innerHandleInactive", 3); var _local4 = handle.createEmptyMovieClip("mask", 4); var _local5 = {colors:[16777215, 6710886], fillType:"linear", alphas:[100, 100], ratios:[0, 255], matrix:{matrixType:"box", x:(-HANDLE_DIAMETER) / 4, y:(-HANDLE_DIAMETER) / 4, w:HANDLE_DIAMETER / 2, h:HANDLE_DIAMETER / 2, r:(90 / 180) * Math.PI}}; var _local6 = {colors:[6710886, 13553358], fillType:"linear", alphas:[100, 100], ratios:[100, 255], matrix:{matrixType:"box", x:-5.5, y:-5.5, w:9.5, h:9.5, r:(90 / 180) * Math.PI}}; var _local7 = {colors:[8421504, 4342338], fillType:"linear", alphas:[100, 100], ratios:[20, 190], matrix:{matrixType:"box", x:-3, y:-3, w:3, h:3, r:(60 / 180) * Math.PI}}; var _local8 = {colors:[16330800, 11677230], fillType:"linear", alphas:[100, 100], ratios:[0, 255], matrix:{matrixType:"box", x:-3, y:-3, w:3, h:3, r:(60 / 180) * Math.PI}}; var _local9 = {alpha:90, rgb:5066061, thickness:0}; var _local10 = {alpha:0}; com.google.youtube.util.Drawing.drawCircle(_local3, 0, 0, HANDLE_DIAMETER, _local5, _local9); com.google.youtube.util.Drawing.drawCircle(_local3, 0, 0, 12, _local6, _local10); com.google.youtube.util.Drawing.drawCircle(innerHandleActive, 0, 0, 6.5, _local8); com.google.youtube.util.Drawing.drawCircle(innerHandleInactive, 0, 0, 6.5, _local7); com.google.youtube.util.Drawing.drawCircle(_local4, 0, 0, 18, _local5); _local4._alpha = 0; handle._y = 11; handle._x = (handle.newX = convertHandleX(0)); handle.onPress = com.google.chianti.event.EventDelegate.create(this, startHandleDrag); handle.onRelease = (handle.onMouseUp = com.google.chianti.event.EventDelegate.create(this, stopHandleDrag)); handle.onRollOver = com.google.chianti.event.EventDelegate.create(this, onHandleHover); handle.onRollOut = com.google.chianti.event.EventDelegate.create(this, onHandleUnhover); handle.onReleaseOutside = handle.onRollOut; handle.onEnterFrame = com.google.chianti.event.EventDelegate.create(this, onHandleEnterFrame); reset(); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.SeekBar"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.SeekBar); static var DEFAULT_BAR_HEIGHT = 7; static var DEFAULT_BAR_WIDTH = 200; static var HANDLE_SPEED = 0.5; static var HANDLE_DIAMETER = 15; static var PADDING_SIDE = 12; static var PADDING_TOP = 8; static var THUMB_WIDTH = 64; static var THUMB_HEIGHT = 48; static var THUMB_CROP_WIDTH = 64; static var THUMB_CROP_HEIGHT = 36; var dragging = false; var startPosition = 0; var currentPercent = 0; var currentStartPercent = 0; var currentPercentLoaded = 0; }
Symbol 20492 MovieClip [__Packages.com.google.youtube.players.ui.VideoControlType] Frame 0
class com.google.youtube.players.ui.VideoControlType { function VideoControlType () { } static var FULL_SCREEN = "fullscreen"; static var PLAY = "play"; static var PAUSE = "pause"; static var VOLUME = "volume"; }
Symbol 20493 MovieClip [__Packages.com.google.youtube.event.ModuleEvent] Frame 0
class com.google.youtube.event.ModuleEvent { function ModuleEvent () { } static var PLAY = "onPlay"; static var PAUSE = "onPause"; static var ENABLE = "onEnable"; static var DISABLE = "onDisable"; static var ENABLE_KEYBOARD = "onEnableKeyboard"; static var DISABLE_KEYBOARD = "onDisableKeyboard"; static var ADD_MARKER = "onAddMarker"; static var DISABLE_MARKER = "onDisableMarker"; static var REMOVE_MARKER = "onRemoveMarker"; static var REMOVE_MARKERS = "onRemoveMarkers"; static var SEEK = "onSeek"; static var HIDE_END_SCREEN = "onHideEndScreen"; static var SHOW_END_SCREEN = "onShowEndScreen"; static var POST_ROLL_PRESENT = "onPostRollPresent"; static var POST_ROLL_ABSENT = "onPostRollAbsent"; static var POST_ROLL_DONE = "onPostRollDone"; static var REQUEST_UNLOAD = "onRequestUnload"; static var LOG = "onLog"; }
Symbol 20494 MovieClip [__Packages.com.google.youtube.ui.CompoundButton] Frame 0
class com.google.youtube.ui.CompoundButton extends com.google.youtube.ui.BaseButton { var mouseActivity, monitorMouse, activated, timeoutDueToIdle, jumpInterval, broadcast, registerEvent, rollOver, rollOut; function CompoundButton () { super(); mouseActivity = new com.google.youtube.util.MouseActivity(true); mouseActivity.registerEvent(com.google.youtube.util.MouseActivity.MOUSE_ACTIVE, com.google.chianti.event.EventDelegate.create(this, attemptActivate)); monitorMouse = false; activated = false; timeoutDueToIdle = false; jumpInterval = 0; } function hover() { if (!timeoutDueToIdle) { broadcast({type:com.google.youtube.event.GenericButtonEvent.ROLL_OVER, target:this}); monitorMouse = true; _global.clearInterval(jumpInterval); attemptActivate(); } } function unhover() { broadcast({type:com.google.youtube.event.GenericButtonEvent.ROLL_OUT, target:this}); monitorMouse = false; _global.clearInterval(jumpInterval); jumpInterval = _global.setInterval(this, "attemptDeactivate", JUMP_TIMEOUT); } function attemptActivate() { timeoutDueToIdle = false; if (monitorMouse && (!activated)) { activate(); activated = true; } } function attemptDeactivate(opt_mouseIdle) { if (activated) { timeoutDueToIdle = opt_mouseIdle; deactivate(); activated = false; } _global.clearInterval(jumpInterval); } function isActive() { return(activated); } function activate() { broadcast({type:com.google.youtube.event.GenericButtonEvent.ACTIVATE, target:this}); } function deactivate() { broadcast({type:com.google.youtube.event.GenericButtonEvent.DEACTIVATE, target:this}); } function registerParentButton(parent) { registerEvent(com.google.youtube.event.GenericButtonEvent.ROLL_OVER, com.google.chianti.event.EventDelegate.create(parent, parent.hover)); registerEvent(com.google.youtube.event.GenericButtonEvent.ROLL_OUT, com.google.chianti.event.EventDelegate.create(parent, parent.unhover)); } function includeMouseActivityOf(target, opt_recurse) { if (opt_recurse && (!hasMouseListeners(target))) { for (var child in target) { if (typeof(target[child]) == "movieclip") { includeMouseActivityOf(target[child], opt_recurse); } } } else { target.onRollOver = com.google.utils.FunctionUtils.concat(com.google.chianti.event.EventDelegate.create(target, target.onRollOver), com.google.chianti.event.EventDelegate.create(this, rollOver)); target.onRollOut = com.google.utils.FunctionUtils.concat(com.google.chianti.event.EventDelegate.create(target, target.onRollOut), com.google.chianti.event.EventDelegate.create(this, rollOut)); target.onReleaseOutside = com.google.utils.FunctionUtils.concat(com.google.chianti.event.EventDelegate.create(target, target.onReleaseOutside), com.google.chianti.event.EventDelegate.create(this, rollOut)); } } function hasMouseListeners(target) { return(target.onPress || (target.onRelease || (target.onReleaseOutside || (target.onRollOver || (target.onRollOut))))); } static var LINK_NAME = "__Packages.com.google.youtube.ui.CompoundButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.ui.CompoundButton); static var JUMP_TIMEOUT = 500; }
Symbol 20495 MovieClip [__Packages.com.google.youtube.players.ui.MenuArrowButton] Frame 0
class com.google.youtube.players.ui.MenuArrowButton extends com.google.youtube.ui.CompoundButton { var descriptor, buttonWidth, buttonHeight, hovered, myColor, autoGetSubmenuFn, highlightClip, mySubmenu, icon, createEmptyMovieClip, getNextHighestDepth; function MenuArrowButton () { super(); } function init(moduleDescriptor) { if (descriptor) { descriptor.unregisterEvent(com.google.youtube.event.DataEvent.SET, com.google.chianti.event.EventDelegate.create(this, onDescriptorChange)); } descriptor = moduleDescriptor; descriptor.registerEvent(com.google.youtube.event.DataEvent.SET, com.google.chianti.event.EventDelegate.create(this, onDescriptorChange)); buttonWidth = ARROW_WIDTH; buttonHeight = ARROW_HEIGHT; build(); hovered = false; myColor = COLOR_DEFAULT; drawArrow(myColor); drawState(); autoGetSubmenuFn = com.google.chianti.event.EventDelegate.create(this, getSubmenu); } function getSize() { return({width:ARROW_WIDTH, height:ARROW_HEIGHT}); } function highlight() { myColor = COLOR_HIGHLIGHT; if (!hovered) { drawArrow(myColor); } } function unhighlight() { myColor = COLOR_DEFAULT; drawArrow(myColor); } function hover() { com.gs.TweenLite.delayedCall(AUTO_SHOW_SUBMENU_DELAY, autoGetSubmenuFn); super.hover(); if (descriptor.getStatus() == com.google.youtube.players.modules.ModuleStatus.LOADED) { hovered = true; drawArrow(COLOR_HOVER); if (highlightClip) { highlightClip._visible = true; } } } function unhover() { com.gs.TweenLite.killDelayedCallsTo(autoGetSubmenuFn); super.unhover(); hovered = false; drawArrow(myColor); if (highlightClip) { highlightClip._visible = false; } } function deactivate() { hideSubmenu(); } function onDescriptorChange(evt) { drawState(); } function release() { drawArrow(COLOR_CLICKED); if (mySubmenu && (mySubmenu.active())) { mySubmenu.hide(); return(undefined); } getSubmenu(); } function getSubmenu() { if (descriptor.getStatus() == com.google.youtube.players.modules.ModuleStatus.LOADED) { mySubmenu = descriptor.getSubmenu(this); if (mySubmenu) { mySubmenu.setParentButton(this); showSubmenu(); } } } function drawArrow(color) { icon.clear(); var _local3 = [{x:8, y:6}, {x:3, y:10}, {x:8, y:14}]; if (descriptor.hasSubmenu) { com.google.youtube.util.Drawing.drawPoly(icon, _local3, color); } else { com.google.youtube.util.Drawing.drawPoly(icon, _local3, COLOR_UNAVAILABLE); } } function drawState() { if (descriptor.hasSubmenu) { if (descriptor.getStatus() == com.google.youtube.players.modules.ModuleStatus.LOADED) { myColor = COLOR_DEFAULT; } else { myColor = COLOR_UNAVAILABLE; } } else { myColor = COLOR_UNAVAILABLE; } drawArrow(myColor); } function showSubmenu() { mySubmenu.onSelect(this, hideSubmenu); repositionSubmenu(); mySubmenu.show(); } function repositionSubmenu() { if (mySubmenu) { var _local2 = (-mySubmenu.getWidth()) - 1; var _local3 = getSize().height - mySubmenu.getHeight(); mySubmenu.moveTo(_local2, _local3); } } function hideSubmenu() { if (mySubmenu && (mySubmenu.active())) { mySubmenu.hide(); } } function build() { super.build(); icon = createEmptyMovieClip("icon", getNextHighestDepth()); drawArrow(myColor); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.MenuArrowButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.MenuArrowButton); static var ARROW_WIDTH = 10; static var ARROW_HEIGHT = 22; static var COLOR_HIGHLIGHT = 3355443; static var COLOR_HOVER = 16777215; static var COLOR_CLICKED = 0; static var COLOR_DEFAULT = 3355443; static var COLOR_UNAVAILABLE = 10066329; static var AUTO_SHOW_SUBMENU_DELAY = 0.2; }
Symbol 20496 MovieClip [__Packages.com.google.youtube.players.PlayerConfigData] Frame 0
class com.google.youtube.players.PlayerConfigData { var experiments, flashVars, playNext, customEventLabel, eventLabel, customPlayerLayoutStyle, playerLayoutStyle, customAdType, adType, source, eurl, trackingToken, partnerTrackingToken, playerId, videoStatsPlayerId, sourceId, sdetail, videoPubId, data, dataType, loop, loadRelatedVideos, enhancedGenieMenu, relatedResults, searchEnabled, metadataBarEnabled, suppressNext, suppressShare, enableRecord, enableSeekBarThumbs, autohide, infringe, favoriteToken, videoQualityPref, requestedDelay, fullScreen, enableCsiLogging, imageUrl, interstitial, thumbnailTilesUrl, interfaceLanguage, contentRegion, enableJsApi, autoPlay, startSeconds, jsApiCallback, playerApiId, contentXml, videoId, creator, token, lengthInSeconds, color1, color2, showCuePoints, border, appendVars, allowSeekAhead, disableKeyboard, BASE_YT_URL, BASE_GDATA_URL, query, sessionToken, experiment, samplingWeight, playerStyle, flvurl, formatMap, formatUrlMap, defaultHd, disableClickThrough, conn, stream, experimentBufferFull, experimentBufferEmpty, experimentSearchSite, experimentAdBlockPing, experimentClickToPauseEmbed, ivModule, adModule, ccModule, ratingsModule, karaokeModule, captions_video_id, watermarkList, flip, keywords, videoRecorderModule, ccLoadPolicy, ivLoadPolicy, sourceFeature, clientId, encryptedApiDevKey, avgRating, videoTitle, allowRatings, framer, cycToken, embedToken, audioSwapToken, resumingLongformWatch, csiPageType, isDoubleclickTracked; function PlayerConfigData (mc) { super(); experiments = new com.google.youtube.players.Experiments(); flashVars = getFlashVars(mc); copyPlayerParams(flashVars); } static function createFromDictionary(dict) { var _local2 = new com.google.youtube.players.PlayerConfigData(null); _local2.copyPlayerParams(dict); return(_local2); } function getUntypedFlashVars() { return(flashVars); } function isPlayNext() { if (_root.playnext != undefined) { playNext = _root.playnext == "1"; } return(playNext); } function overridePlayerIdentifiers() { if (customEventLabel.length) { for (var _local2 in com.google.youtube.config.constants.EventLabel) { if (customEventLabel == com.google.youtube.config.constants.EventLabel[_local2]) { eventLabel = customEventLabel; } } } if (customPlayerLayoutStyle.length) { for (var _local2 in com.google.youtube.config.constants.PlayerStyle) { if (customPlayerLayoutStyle == com.google.youtube.config.constants.PlayerStyle[_local2]) { playerLayoutStyle = customPlayerLayoutStyle; } } } if (customAdType.length) { adType = customAdType; } } function getFlashVars(mc) { var _local4 = {}; source = ((!mc) ? _root : (mc)); for (var _local5 in source) { if (((typeof(source[_local5]) == "string") || (typeof(source[_local5]) == "number")) && ((source[_local5] != "") || (_local5 == "eurl"))) { _local4[_local5] = source[_local5]; } } if (((_local4.eurl == "") || (_local4.eurl == undefined)) && (mc._parent._url != undefined)) { _local4.eurl = mc._parent._url; } if ((_local4.eurl == "") && (flash.external.ExternalInterface.available)) { _local4.eurl = flash.external.ExternalInterface.call("document.location.toString"); } return(_local4); } function copyObject(src) { var _local2 = {}; for (var _local3 in src) { _local2[_local3] = src[_local3]; } return(_local2); } function copyPlayerParams(source) { source = copyObject(source); customEventLabel = source.el; delete source.el; customAdType = source.adtype; delete source.adtype; customPlayerLayoutStyle = source.ps; delete source.ps; eurl = source.eurl; delete source.eurl; trackingToken = source.tk; delete source.tk; partnerTrackingToken = source.ptk; delete source.ptk; playerId = source.player_id; delete source.player_id; videoStatsPlayerId = source.plid; delete source.plid; sourceId = source.sourceid; delete source.sourceid; sdetail = source.sdetail; delete source.sdetail; videoPubId = source.video_pub_id; delete source.video_pub_id; data = source.data; delete source.data; dataType = source.datatype; delete source.datatype; loop = source.loop == "1"; delete source.loop; loadRelatedVideos = source.rel != "0"; delete source.rel; enhancedGenieMenu = loadRelatedVideos && (source.egm == "1"); delete source.egm; relatedResults = source.onscreensearch; delete source.onscreensearch; searchEnabled = ((source.showsearch != "0") ? "1" : (source.showsearch)); delete source.showsearch; if (loadRelatedVideos) { searchEnabled = "0"; } metadataBarEnabled = source.showinfo != "0"; delete source.showinfo; suppressNext = source.sn; delete source.sn; suppressShare = source.ss == "1"; delete source.ss; enableRecord = source.record == "1"; delete source.record; enableSeekBarThumbs = source.seekbar_thumbs == "1"; delete source.seekbar_thumbs; autohide = source.autohide == "1"; delete source.autohide; infringe = source.infringe; delete source.infringe; favoriteToken = source.ftoken; delete source.ftoken; videoQualityPref = com.google.youtube.config.constants.VideoQuality.validate(source.vq); delete source.vq; requestedDelay = source.dtst; delete source.dtst; fullScreen = source.fs; delete source.fs; enableCsiLogging = source.enablecsi; delete source.enablecsi; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(source.iurl)) { imageUrl = source.iurl; delete source.iurl; } if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(source.interstitial)) { interstitial = source.interstitial; delete source.interstitial; } delete source.hqt; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(source.thumbnail_tiles_url)) { thumbnailTilesUrl = source.thumbnail_tiles_url; delete source.thumbnail_tiles_url; } interfaceLanguage = com.google.youtube.util.Messages.parseLocale(source.hl); delete source.hl; contentRegion = source.cr; delete source.cr; enableJsApi = source.enablejsapi; delete source.enablejsapi; autoPlay = source.autoplay; delete source.autoplay; startSeconds = _global.parseInt(source.start); delete source.start; jsApiCallback = source.jsapicallback; delete source.jsapicallback; playerApiId = source.playerapiid; delete source.playerapiid; contentXml = source.content_xml; delete source.content_xml; videoId = source.video_id; delete source.video_id; creator = source.creator; delete source.creator; if (source.token != undefined) { token = source.token; delete source.token; } else { token = source.t; delete source.t; } if (source.length_seconds != undefined) { lengthInSeconds = source.length_seconds; delete source.length_seconds; } if (source.color1 != undefined) { color1 = _global.parseInt(source.color1, 16); delete source.color1; } else { color1 = DEFAULT_COLOR_1; } if (source.color2 != undefined) { color2 = _global.parseInt(source.color2, 16); delete source.color2; } else { color2 = DEFAULT_COLOR_2; } showCuePoints = source.showcuepoints; delete source.showcuepoints; border = source.border; delete source.border; delete source.ax; if (source.ap != undefined) { appendVars = _global.unescape(source.ap); delete source.ap; } allowSeekAhead = source.allowseekahead; delete source.allowseekahead; disableKeyboard = source.disablekb; delete source.disablekb; playNext = source.playnext == "1"; delete source.playnext; var _local4 = source.BASE_YT_URL; delete source.BASE_YT_URL; BASE_YT_URL = ((!com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local4)) ? (_local4) : (LIVE_BASE_URL)); var _local5 = source.BASE_GDATA_URL; delete source.BASE_GDATA_URL; BASE_GDATA_URL = ((!com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local5)) ? (_local5) : (LIVE_GDATA_URL)); query = source.q; delete source.q; sessionToken = source.sk; delete source.sk; experiment = source.e; delete source.e; samplingWeight = source.sw; delete source.sw; playerStyle = source.ps; delete source.ps; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(source.flvurl)) { flvurl = source.flvurl; } delete source.flvurl; formatMap = source.fmt_map; delete source.fmt_map; formatUrlMap = source.fmt_url_map; delete source.fmt_url_map; defaultHd = source.hd == "1"; delete source.hd; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(eurl)) { disableClickThrough = source.disable_click_through == "1"; delete source.disable_click_through; } if (source.conn && (com.google.webutil.url.YouTubeUtils.isValidRtmpUrl(source.conn))) { conn = source.conn; delete source.conn; if (source.stream != undefined) { stream = source.stream; delete source.stream; } } experiments.importExperimentIdsFromSrc(source.fexp, com.google.youtube.players.Experiments.SRC_YT); delete source.fexp; experimentBufferFull = experiments.isExperimentActive("904402"); experimentBufferEmpty = experiments.isExperimentActive("904405"); experimentSearchSite = experiments.isExperimentActive("904403"); experimentAdBlockPing = experiments.isExperimentActive("905500"); experimentClickToPauseEmbed = experiments.isExperimentActive("904404"); var _local6 = source.iv_module; delete source.iv_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local6)) { ivModule = _local6; } _local6 = source.ad_module; delete source.ad_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local6)) { adModule = _local6; } _local6 = source.cc_module; delete source.cc_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local6)) { ccModule = _local6; } _local6 = source.ratings_module; delete source.ratings_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local6)) { ratingsModule = _local6; } _local6 = source.karaoke_module; delete source.karaoke_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local6)) { karaokeModule = _local6; captions_video_id = source.captions_video_id; delete source.captions_video_id; } watermarkList = source.watermark; delete source.watermark; flip = source.flip == "1"; keywords = source.keywords; delete source.keywords; _local6 = source.video_recorder_module; delete source.video_recorder_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local6)) { videoRecorderModule = _local6; } ccLoadPolicy = _global.parseInt(source.cc_load_policy); delete source.cc_load_policy; ivLoadPolicy = _global.parseInt(source.iv_load_policy); delete source.iv_load_policy; delete source.$version; delete source.swf; if (source.f != undefined) { sourceFeature = source.f; } else { sourceFeature = source.feature; } clientId = source.c; delete source.c; encryptedApiDevKey = source.d; delete source.d; if (source.avg_rating != undefined) { avgRating = source.avg_rating; delete source.avg_rating; } if (source.title != undefined) { videoTitle = source.title; delete source.title; } if (source.allow_ratings != undefined) { allowRatings = source.allow_ratings == "1"; delete source.allow_ratings; } framer = source.framer; delete source.framer; cycToken = source.cyc; delete source.cyc; embedToken = source.et; delete source.et; audioSwapToken = source.aswap; delete source.aswap; resumingLongformWatch = source.resume == "1"; delete source.resume; csiPageType = source.csi_page_type; delete source.csi_page_type; if (source.is_doubleclick_tracked != undefined) { isDoubleclickTracked = source.is_doubleclick_tracked == "1"; delete source.is_doubleclick_tracked; } for (var _local7 in source) { if (_local7.indexOf("rv.") == 0) { this[_local7] = source[_local7]; delete source.x; } } validateNoRemainingFlashvars(source); } function validateNoRemainingFlashvars(obj) { var _local2 = ""; for (var _local3 in obj) { _local2 = _local2 + (((_local3 + ": ") + obj[_local3]) + ", "); } if (_local2.length > 0) { } } function toString() { var _local2 = "PlayerConfigData{"; for (var _local3 in this) { if ((this[_local3] != undefined) && (this[_local3])) { _local2 = _local2 + (((_local3 + ": ") + this[_local3]) + ", "); } } _local2 = _local2 + "}"; return(_local2); } var LIVE_BASE_URL = "http://sniper.noncities.com/bitview/"; var LIVE_BASE_IMG_URL = "http://i.ytimg.com/"; var EMBED_HEIGHT_BORDER = "349"; var EMBED_HEIGHT_NOBORDER = "344"; var EMBED_HTML = ((((((("<object width=\"425\" height=\"{embed_height}\">" + "<param name=\"movie\" value=\"{video_url}\"></param>") + "<param name=\"allowFullScreen\" value=\"true\"></param>") + "<param name=\"allowScriptAccess\" value=\"always\"></param>") + "<embed src=\"{video_url}\" type=\"application/x-shockwave-flash\" ") + "allowfullscreen=\"true\" ") + "allowScriptAccess=\"always\" ") + "width=\"425\" height=\"{embed_height}\">") + "</embed></object>"; var REST_EMBED_API_URL = "embed_api_rest?"; var GET_VIDEO_INFO_URL = "get_video_info"; var LIVE_GDATA_URL = "http://gdata.youtube.com/"; var GDATA_VIDEO_FEEDS = "feeds/api/videos/"; var GDATA_USER_FEEDS = "feeds/api/users/"; var GDATA_PLAYLIST_FEEDS = "feeds/api/playlists/"; var GDATA_STANDARD_FEEDS = "feeds/api/standardfeeds/"; var GDATA_POPULAR_VIDEOS_POSTFIX = "most_popular/?time=today&"; var GDATA_RELATED_POSTFIX = "/related/?"; var GDATA_RESPONSES_POSTFIX = "/responses/?"; var GDATA_FAVORITE_POSTFIX = "/favorites/?"; var GDATA_VIDEOS_POSTFIX = "/uploads/?"; var REST_LIST = "list_recs"; var GET_VIDEO_URL = "redir.php?video_id="; var PAGE_SIZE_PARAMETER = "per_page"; var PLAYLIST_PAGE_SIZE = 8; var PLAYLIST_PAGES_TO_LOAD = 6; var PAGE_NUM_URL = "page"; var AD_TYPE_IMAGE = "image"; var AD_SIZE_728x90 = "728x90"; var AD_SERVER = "http://pagead2.googlesyndication.com"; var VIDEO_WATCH_URL = "watch?v="; var SHORT_EMBED_URL = "v/"; var DEFAULT_COLOR_1 = 11645361; var DEFAULT_COLOR_2 = 13619151; var useGetVideoInfo = false; }
Symbol 20497 MovieClip [__Packages.com.google.youtube.event.VideoControlsEvent] Frame 0
class com.google.youtube.event.VideoControlsEvent { function VideoControlsEvent () { } static var DISABLED_CONTROL_CLICKED = "onDisabledControlClicked"; static var VIDEO_CONTROL_EVENT = "onVideoControlEvent"; }
Symbol 20498 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModuleMediator] Frame 0
class com.google.youtube.players.modules.IPlayerModuleMediator { function IPlayerModuleMediator () { } }
Symbol 20499 MovieClip [__Packages.com.google.youtube.players.modules.ModuleMediator] Frame 0
class com.google.youtube.players.modules.ModuleMediator extends com.google.youtube.AbstractElement implements com.google.youtube.players.modules.IPlayerModuleMediator { var playerController, playerConfigData, currentVideoData, moduleDescriptorMap, moduleHasDisabledKeyboard, moduleSharedObject, moduleSharedObjectData; function ModuleMediator (ipc, config, videoData) { super(); playerController = ipc; playerConfigData = config; currentVideoData = videoData; moduleDescriptorMap = {}; moduleHasDisabledKeyboard = {}; } function updateVideoData(newVideoData) { currentVideoData = newVideoData; } function registerModule(descriptor) { if (descriptor && (!moduleDescriptorMap[descriptor.label])) { moduleDescriptorMap[descriptor.label] = descriptor; if (descriptor instanceof com.google.youtube.players.modules.VisibleModuleDescriptor) { descriptor.registerEvent(com.google.youtube.event.GenericButtonEvent.RELEASE, com.google.chianti.event.EventDelegate.create(playerController, playerController.onDescriptorEvent)); } descriptor.registerEvent(com.google.youtube.event.DataEvent.ERROR, com.google.chianti.event.EventDelegate.create(playerController, playerController.onDescriptorEvent)); } } function unregisterModule(descriptor) { if (descriptor && (moduleDescriptorMap[descriptor.label])) { descriptor.unregisterAll(); delete moduleDescriptorMap[descriptor.label]; } } function unregisterAllModules(opt_forceUnloadIntrinsic) { for (var module in moduleDescriptorMap) { if ((moduleDescriptorMap[module].loadPolicy != com.google.youtube.players.modules.ModuleLoadPolicy.MODULE_LOAD_INTRINSIC) || (opt_forceUnloadIntrinsic)) { unregisterModule(moduleDescriptorMap[module]); } } } function createFromLabel(label, videoPlayer, baseClip) { var _local5 = moduleDescriptorMap[label]; if (_local5 && (_local5.isEnabled() && (!_local5.instance))) { switch (_local5.loadPolicy) { case com.google.youtube.players.modules.ModuleLoadPolicy.MODULE_LOAD_ALWAYS : var _local6 = create(_local5, videoPlayer, baseClip); break; case com.google.youtube.players.modules.ModuleLoadPolicy.MODULE_LOAD_BY_PREFERENCE : moduleSharedObject = SharedObject.getLocal(MODULE_DATA_SO_KEY, "/"); moduleSharedObjectData = moduleSharedObject.data; if ((moduleSharedObjectData[_local5.label].loadPolicy == com.google.youtube.players.modules.ModuleLoadPolicy.MODULE_LOAD_ALWAYS) || (_local5.activated)) { _local6 = create(_local5, videoPlayer, baseClip); } break; case com.google.youtube.players.modules.ModuleLoadPolicy.MODULE_LOAD_BY_REQUEST : if (!_local5.activated) { break; } _local6 = create(_local5, videoPlayer, baseClip); } if (_local6) { _local5.instance = _local6; } } } function destroyFromLabel(label, videoPlayer, baseClip) { var _local5 = moduleDescriptorMap[label]; if (_local5) { switch (_local5.loadPolicy) { case com.google.youtube.players.modules.ModuleLoadPolicy.MODULE_LOAD_INTRINSIC : break; default : destroy(_local5.label, videoPlayer, baseClip); } _local5.instance = undefined; } } function create(descriptor, videoPlayer, baseClip) { var _local5 = com.google.youtube.players.modules.ModuleAdapter(baseClip[descriptor.label]); if (_local5) { } else { var _local6 = descriptor.moduleDepth; _local5 = com.google.youtube.players.modules.ModuleAdapter(baseClip.attachMovie(com.google.youtube.players.modules.ModuleAdapter.LINK_NAME, descriptor.label, _local6)); if (_local5) { _local5.init(this, playerController, videoPlayer, descriptor); } } return(_local5); } function destroy(moduleName, videoPlayer, baseClip) { var _local5 = com.google.youtube.players.modules.IPlayerModuleAdapter(baseClip[moduleName]); if (_local5) { _local5.destroy(); if (moduleHasDisabledKeyboard[_local5]) { playerController.monitorKeyboardControls(); } delete moduleHasDisabledKeyboard[_local5]; MovieClip(_local5).removeMovieClip(); } } function getModuleConfigData(videoPlayer) { return(new com.google.youtube.players.modules.ModuleConfigData(playerConfigData, videoPlayer, currentVideoData)); } function getVisibleModuleDescriptors() { var _local2 = []; for (var i in moduleDescriptorMap) { var _local3 = moduleDescriptorMap[i]; if (_local3 instanceof com.google.youtube.players.modules.VisibleModuleDescriptor) { _local2.push(_local3); } } return(_local2.sortOn("menuIndex", Array.NUMERIC)); } function getReservedRectangleList(topMostModulesOnly) { var _local3 = [getPlayerReservedRect()]; for (var i in moduleDescriptorMap) { var _local4 = moduleDescriptorMap[i]; var _local5 = _local4.instance; if (_local4.isTopmost || (topMostModulesOnly == false)) { var _local6 = _local5.getReservedRect(); if ((_local6.width > 0) && (_local6.height > 0)) { _local3.push(_local6); } } } return(_local3); } function getPlayerReservedRect() { return(playerController.getReservedRect()); } function onModuleEvent(evt, descriptor, videoPlayer) { switch (evt.type) { case com.google.youtube.event.ModuleEvent.PLAY : videoPlayer.play(); break; case com.google.youtube.event.ModuleEvent.PAUSE : videoPlayer.pause(); break; case com.google.youtube.event.ModuleEvent.SEEK : videoPlayer.seekTo(evt.data, evt.allowSeekAhead, evt.precise); break; case com.google.youtube.event.ModuleEvent.ENABLE : playerController.enableControls(); break; case com.google.youtube.event.ModuleEvent.DISABLE : playerController.disableControls(evt.except); break; case com.google.youtube.event.ModuleEvent.ENABLE_KEYBOARD : if (moduleHasDisabledKeyboard[evt.target]) { moduleHasDisabledKeyboard[evt.target] = false; playerController.monitorKeyboardControls(); } break; case com.google.youtube.event.ModuleEvent.DISABLE_KEYBOARD : if (moduleHasDisabledKeyboard[evt.target]) { } else { moduleHasDisabledKeyboard[evt.target] = true; playerController.ignoreKeyboardControls(); } break; case com.google.youtube.event.ModuleEvent.ADD_MARKER : if (evt.time && (evt.markerWidth)) { playerController.addMarker(evt.time, evt.markerWidth); } break; case com.google.youtube.event.ModuleEvent.REMOVE_MARKERS : playerController.clearMarkers(); break; case com.google.youtube.event.ModuleEvent.DISABLE_MARKER : if (evt.time) { playerController.disableMarker(evt.time); } break; case com.google.youtube.event.ModuleEvent.REMOVE_MARKER : if (evt.time) { playerController.removeMarker(evt.time); } break; case com.google.youtube.event.ModuleEvent.HIDE_END_SCREEN : playerController.onHideEndScreen(); break; case com.google.youtube.event.ModuleEvent.SHOW_END_SCREEN : playerController.onShowEndScreen(); break; case com.google.youtube.event.ModuleEvent.POST_ROLL_PRESENT : playerController.onPostRollPresent(); break; case com.google.youtube.event.ModuleEvent.POST_ROLL_ABSENT : playerController.onPostRollAbsent(); break; case com.google.youtube.event.ModuleEvent.POST_ROLL_DONE : playerController.onPostRollDone(); break; case com.google.youtube.event.ModuleEvent.REQUEST_UNLOAD : playerController.onRequestUnload(descriptor.label); break; case com.google.youtube.event.ModuleEvent.LOG : evt.args.module = descriptor.uid; playerController.logPlayerEvent(evt.event, evt.args); } } function onVideoControlEvent(evt) { for (var module in moduleDescriptorMap) { moduleDescriptorMap[module].instance.onVideoControlEvent(evt); } } static var MODULE_DATA_SO_KEY = "moduleData"; }
Symbol 20500 MovieClip [__Packages.com.google.youtube.players.IVideoPlayer] Frame 0
class com.google.youtube.players.IVideoPlayer implements com.google.youtube.IBroadcaster { function IVideoPlayer () { } }
Symbol 20501 MovieClip [__Packages.com.google.youtube.ui.BaseVideoControlButton] Frame 0
class com.google.youtube.ui.BaseVideoControlButton extends com.google.youtube.ui.BaseVideoControl { var buttonWidth, buttonHeight, isTooltipEnabled, tooltipHolder, _parent, bg, createEmptyMovieClip, getNextHighestDepth, hit, tooltip, setDisabledOverlayWidth, refreshDisabledOverlayDepth, color2, color1, onRollOver, onRollOut, broadcast; function BaseVideoControlButton () { super(); buttonWidth = DEFAULT_BUTTON_WIDTH; buttonHeight = DEFAULT_BUTTON_HEIGHT; isTooltipEnabled = false; } function init(c1, c2) { super.init(c1, c2); } function build() { tooltipHolder = _parent.createEmptyMovieClip("tooltipHolder", _parent.getNextHighestDepth()); bg = createEmptyMovieClip("bg", getNextHighestDepth()); buildBgDownState(); bg._visible = false; hit = createEmptyMovieClip("hit", getNextHighestDepth()); com.google.youtube.util.Drawing.drawRect(hit, 0, 0, buttonWidth, buttonHeight, 16711680); hit._alpha = 0; hit.onRollOver = com.google.chianti.event.EventDelegate.create(this, rollOver); hit.onRollOut = com.google.chianti.event.EventDelegate.create(this, rollOut); hit.onPress = com.google.chianti.event.EventDelegate.create(this, press); hit.onRelease = com.google.chianti.event.EventDelegate.create(this, release); hit.onReleaseOutside = com.google.chianti.event.EventDelegate.create(this, releaseOutside); hit.onDragOver = com.google.chianti.event.EventDelegate.create(this, dragOver); hit.onDragOut = com.google.chianti.event.EventDelegate.create(this, dragOut); tooltip = com.google.youtube.players.ui.MovingTooltip.createTooltip(this, com.google.youtube.util.Drawing.BOTTOM, undefined, undefined, tooltipHolder); super.build(); } function onBuilt() { setDisabledOverlayWidth(buttonWidth); refreshDisabledOverlayDepth(); } function getWidth() { return(buttonWidth); } function enable() { super.enable(); } function enableTooltip() { isTooltipEnabled = true; } function disable() { super.disable(); } function disableTooltip() { isTooltipEnabled = false; } function drawBgUpState() { bg._visible = false; } function drawBgDownState() { bg._visible = true; } function buildBgDownState() { var _local2 = {colors:[color2, color1], fillType:"linear", alphas:[100, 100], ratios:[35, 255], matrix:{matrixType:"box", x:0, y:0, w:buttonWidth, h:buttonHeight, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawRect(bg, 0, 0, buttonWidth, buttonHeight, _local2); } function hover() { if (isTooltipEnabled) { tooltip.showTooltip(); } } function unhover() { tooltip.hideTooltip(); } function dragOver() { onRollOver(); } function dragOut() { onRollOut(); } function press() { bg._visible = true; } function release() { drawBgUpState(); hover(); broadcast({target:this, type:com.google.youtube.event.GenericButtonEvent.RELEASE}); } function releaseOutside() { unhover(); drawBgUpState(); } function rollOver() { hover(); } function rollOut() { unhover(); } function setTooltip(s) { tooltip.setTooltipText(s); } function getTooltip() { return(tooltip.getTooltipText()); } static var LINK_NAME = "__Packages.com.google.youtube.ui.BaseVideoControlButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.ui.BaseVideoControlButton); static var DEFAULT_BUTTON_WIDTH = 28; static var DEFAULT_BUTTON_HEIGHT = 23; static var DISABLED_ALPHA = 45; static var ICON_SHADOW_ALPHA = 60; static var ICON_SHADOW_COLOR = 16777215; static var ACTIVE = "active"; static var INACTIVE = "inactive"; }
Symbol 20502 MovieClip [__Packages.com.google.youtube.players.ui.QualityButton] Frame 0
class com.google.youtube.players.ui.QualityButton extends com.google.youtube.ui.BaseVideoControlButton { var buttonWidth, enableTooltip, onBuilt, hit, currentIcon, hqIcon, hdIcon, tooltip, tooltipHolder, currentState, drawBgDownState, drawBgUpState, createEmptyMovieClip, getNextHighestDepth; function QualityButton () { super(); buttonWidth = 31; enableTooltip(); } function init(c1, c2) { super.init(c1, c2); build(); onBuilt(); hit._accProps = {name:"Watch in higher quality"}; } function getMinRequiredControlsWidth() { return(300); } function updateIndicators() { if (currentIcon == ICON_HQ) { hqIcon._visible = true; hdIcon._visible = false; } else { hqIcon._visible = false; hdIcon._visible = true; } } function animateTooltip() { tooltip.showTooltip(); var _local2 = SharedObject.getLocal(SO_KEY, "/"); var _local3 = _local2.data; _local3.count = ((_local3.count > 0) ? (_local3.count + 1) : 1); if (_local3.count > ANIMATE_LIMIT) { return(undefined); } _local2.flush(); tooltipHolder.filters = [FORCE_BITMAP]; com.gs.TweenLite.from(tooltipHolder, 1, {_y:"-30", _alpha:0, delay:1, onComplete:onAnimateInComplete, onCompleteScope:this}); } function onAnimateInComplete() { com.gs.TweenLite.to(tooltipHolder, 1, {_alpha:0, delay:1, onComplete:onAnimateOutComplete, onCompleteScope:this}); } function onAnimateOutComplete() { tooltip.hideTooltip(); tooltipHolder.filters = []; tooltipHolder._alpha = 100; } function hover() { super.hover(); drawHdIcon(true); drawHqIcon(true); updateIndicators(); } function unhover() { super.unhover(); if (currentState != com.google.youtube.ui.BaseVideoControlButton.ACTIVE) { drawHdIcon(); drawHqIcon(); } updateIndicators(); } function setIconType(newIconType) { currentIcon = newIconType; updateIndicators(); } function setState(newState) { currentState = newState; if (currentState == com.google.youtube.ui.BaseVideoControlButton.ACTIVE) { drawBgDownState(); drawHqIcon(true); drawHdIcon(true); } else { drawBgUpState(); drawHqIcon(); drawHdIcon(); } updateIndicators(); } function drawHqIcon(drawDownState) { hqIcon.icon.removeMovieClip(); if (drawDownState) { hqIcon.attachMovie("videoQualityHqOn", "icon", 1); } else { hqIcon.attachMovie("videoQualityHqOff", "icon", 1); } } function drawHdIcon(drawDownState) { hdIcon.icon.removeMovieClip(); if (drawDownState) { hdIcon.attachMovie("videoQualityHdOn", "icon", 1); } else { hdIcon.attachMovie("videoQualityHdOff", "icon", 1); } } function build() { super.build(); hqIcon = createEmptyMovieClip("hqIcon", getNextHighestDepth()); drawHqIcon(); hqIcon._x = 5; hqIcon._y = 3; hdIcon = createEmptyMovieClip("hdIcon", getNextHighestDepth()); drawHdIcon(); hdIcon._x = 5; hdIcon._y = 3; setIconType(ICON_HQ); updateIndicators(); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.QualityButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.QualityButton); static var FORCE_BITMAP = new flash.filters.BlurFilter(0.1, 0.1); static var ANIMATE_LIMIT = 5; static var SO_KEY = "hdTooltipClue"; static var ICON_HQ = "hq"; static var ICON_HD = "hd"; }
Symbol 20503 MovieClip [__Packages.com.google.youtube.players.IPlayerController] Frame 0
class com.google.youtube.players.IPlayerController implements com.google.youtube.IBroadcaster { function IPlayerController () { } }
Symbol 20504 MovieClip [__Packages.com.google.youtube.AbstractBroadcaster] Frame 0
class com.google.youtube.AbstractBroadcaster implements com.google.youtube.IBroadcaster { function AbstractBroadcaster () { com.google.chianti.event.EventBroadcaster.initialize(this); } function broadcast(evt) { } function disableBroadcast() { } function enableBroadcast() { } function registerEvent(type, obj) { } function registerEvents() { } function unregisterEvent(type, obj) { } function unregisterEvents() { } function unregisterAll() { } }
Symbol 20505 MovieClip [__Packages.com.google.youtube.data.RestRequest] Frame 0
class com.google.youtube.data.RestRequest extends com.google.youtube.AbstractBroadcaster { var params, _restUrl, xmlData, broadcast; function RestRequest (restUrl, opt_useSystemSuccessStatus) { super(); params = []; _restUrl = restUrl; xmlData = new com.google.youtube.data.XMLData(opt_useSystemSuccessStatus); xmlData.registerEvent(com.google.youtube.event.DataEvent.LOAD, com.google.chianti.event.EventDelegate.create(this, onDataLoad)); xmlData.registerEvent(com.google.youtube.event.DataEvent.ERROR, com.google.chianti.event.EventDelegate.create(this, onDataLoadError)); } function addParameter(param, value) { params.push((param + "=") + value); } function send() { var _local2 = _restUrl; if (params.length > 0) { if (_local2.indexOf("?") == -1) { _local2 = _local2 + "?"; } _local2 = _local2 + ("&" + params.join("&")); } xmlData.loadXML(_local2); } function onDataLoad(evt) { broadcast(evt); } function onDataLoadError(evt) { broadcast(evt); } }
Symbol 20506 MovieClip [__Packages.com.google.youtube.players.ui.PlayPauseButton] Frame 0
class com.google.youtube.players.ui.PlayPauseButton extends com.google.youtube.ui.BaseVideoControlButton { var onBuilt, hit, currentState, playIndicator, playIndicatorShadow, pauseIndicator, pauseIndicatorShadow, broadcast, createEmptyMovieClip, getNextHighestDepth; function PlayPauseButton () { super(); } function init(c1, c2) { super.init(c1, c2); build(); onBuilt(); hit._accProps = {name:"Play/Pause"}; } function getMinRequiredControlsWidth() { return(0); } function updateIndicators() { if (currentState == PLAYING) { playIndicator._visible = false; playIndicatorShadow._visible = false; pauseIndicator._visible = true; pauseIndicatorShadow._visible = true; } else { playIndicator._visible = true; playIndicatorShadow._visible = true; pauseIndicator._visible = false; pauseIndicatorShadow._visible = false; } } function hover() { super.hover(); drawPauseIndicator(true); drawPlayIndicator(true); updateIndicators(); } function unhover() { super.unhover(); drawPauseIndicator(); drawPlayIndicator(); updateIndicators(); } function release() { super.release(); if (currentState == PLAYING) { broadcast({type:com.google.youtube.event.GenericButtonEvent.PAUSE, target:TARGET}); } else if (currentState == PAUSED) { broadcast({type:com.google.youtube.event.GenericButtonEvent.PLAY, target:TARGET}); } hover(); } function setState(newState) { currentState = newState; updateIndicators(); } function drawPlayIndicator(drawDownState) { playIndicator.clear(); var _local3 = (drawDownState ? 16724787 : 9539985); var _local4 = (drawDownState ? 12193808 : 3355443); var _local5 = (drawDownState ? 12193808 : 3355443); var _local6 = [{x:1.5, y:0.5}, {x:13.5, y:7}, {x:1.5, y:14.5}]; var _local7 = {colors:[_local3, _local4], fillType:"linear", alphas:[100, 100], ratios:[0, 130], matrix:{matrixType:"box", x:0, y:0, w:14, h:16, r:(90 / 180) * Math.PI}}; var _local8 = {thickness:0, alpha:100, rgb:_local5}; com.google.youtube.util.Drawing.drawPoly(playIndicator, _local6, _local7, _local8); } function drawPauseIndicator(drawDownState) { pauseIndicator.clear(); var _local3 = (drawDownState ? 16724787 : 9539985); var _local4 = (drawDownState ? 12193808 : 3355443); var _local5 = (drawDownState ? 12193808 : 3355443); var _local6 = {colors:[_local3, _local4], fillType:"linear", alphas:[100, 100], ratios:[0, 150], matrix:{matrixType:"box", x:0, y:0, w:3, h:12, r:(90 / 180) * Math.PI}}; var _local7 = {thickness:0, alpha:100, rgb:_local5}; com.google.youtube.util.Drawing.drawRect(pauseIndicator, 1, 0.5, 3, 12, _local6, _local7); com.google.youtube.util.Drawing.drawRect(pauseIndicator, 8, 0.5, 3, 12, _local6, _local7); } function build() { super.build(); playIndicator = createEmptyMovieClip("playIndicator", getNextHighestDepth()); drawPlayIndicator(); playIndicator._x = 8; playIndicator._y = 4; pauseIndicator = createEmptyMovieClip("pauseIndicator", getNextHighestDepth()); drawPauseIndicator(); pauseIndicator._x = 8; pauseIndicator._y = 5; playIndicatorShadow = playIndicator.duplicateMovieClip("playIndicatorShadow", getNextHighestDepth()); playIndicatorShadow._x = playIndicatorShadow._x + 1; playIndicatorShadow._y = playIndicatorShadow._y + 1; playIndicatorShadow._alpha = com.google.youtube.ui.BaseVideoControlButton.ICON_SHADOW_ALPHA; playIndicatorShadow.swapDepths(playIndicator); var _local3 = new Color(playIndicatorShadow); _local3.setRGB(com.google.youtube.ui.BaseVideoControlButton.ICON_SHADOW_COLOR); pauseIndicatorShadow = pauseIndicator.duplicateMovieClip("pauseIndicatorShadow", getNextHighestDepth()); pauseIndicatorShadow._x = pauseIndicatorShadow._x + 1; pauseIndicatorShadow._y = pauseIndicatorShadow._y + 1; pauseIndicatorShadow._alpha = com.google.youtube.ui.BaseVideoControlButton.ICON_SHADOW_ALPHA; pauseIndicatorShadow.swapDepths(pauseIndicator); var _local4 = new Color(pauseIndicatorShadow); _local4.setRGB(com.google.youtube.ui.BaseVideoControlButton.ICON_SHADOW_COLOR); setState(PAUSED); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.PlayPauseButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.PlayPauseButton); static var PLAYING = "playing"; static var PAUSED = "paused"; static var TARGET = "PlayPauseButton"; }
Symbol 20507 MovieClip [__Packages.com.google.chianti.event.EventBroadcaster] Frame 0
class com.google.chianti.event.EventBroadcaster { static var self; var _eb_enabled, _eb_listeners, _eb_all_listeners, _eb_name; function EventBroadcaster () { } static function initialize(obj, opt_ename) { if (self == undefined) { self = new com.google.chianti.event.EventBroadcaster(); } for (var i in methods) { obj[methods[i]] = self[methods[i]]; _global.ASSetPropFlags(obj, methods, 1); } obj._eb_listeners = new Object(); obj._eb_all_listeners = new Array(); obj._eb_enabled = true; obj._eb_name = opt_ename; _global.ASSetPropFlags(obj, ["_eb_listeners", "_eb_all_listeners", "_eb_enabled", "_eb_name"], 1); } static function bubbleEvent(event, target) { event.bubbles = true; var _local4 = target._parent; while (_local4) { if (_local4.broadcast != undefined) { event.currentTarget = _local4; _local4.broadcast(event); break; } _local4 = _local4._parent; } } function disableBroadcast() { _eb_enabled = false; } function enableBroadcast() { _eb_enabled = true; } function broadcast(event) { if (_eb_enabled) { if (event.target == undefined) { event.target = this; } if (_eb_listeners[event.type] == undefined) { _eb_listeners[event.type] = _eb_all_listeners.slice(); } var _local3 = _eb_listeners[event.type].slice(); var _local4 = _local3.length; if (_local4 > 0) { var _local5 = 0; for ( ; _local5 < _local4 ; _local5++) { _local3[_local5](event); } } if (event.bubbles) { bubbleEvent(event, this); } } } function registerEvent(type, obj) { if (typeof(obj) != "function") { if (obj[_eb_name] == undefined) { return(undefined); } obj = com.google.chianti.event.EventDelegate.create(obj, obj[_eb_name]); } if (type == ALL) { _eb_all_listeners.push(obj); for (var i in _eb_listeners) { _eb_listeners[i].push(obj); } } else { if (_eb_listeners[type] == undefined) { _eb_listeners[type] = _eb_all_listeners.slice(); } _eb_listeners[type].push(obj); } } function registerEvents() { var _local2 = arguments.pop(); var _local3 = arguments.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { registerEvent(arguments[_local4], _local2); } } function unregisterEvent(type, obj) { if (type == ALL) { for (var i in _eb_listeners) { unregisterEvent(i, obj); } var _local4 = _eb_all_listeners; } else { var _local4 = _eb_listeners[type]; } var _local5 = _local4.length; var _local6 = 0; for ( ; _local6 < _local5 ; _local6++) { if (_local4[_local6] == obj) { _local4.splice(_local6, 1); break; } } } function unregisterEvents() { var _local2 = arguments.pop(); var _local3 = arguments.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { unregisterEvent(arguments[_local4], _local2); } } function unregisterAll(opt_type) { if (opt_type == undefined) { delete _eb_listeners; _eb_listeners = new Object(); } else { delete _eb_listeners[opt_type]; } } function setEventName(name) { _eb_name = name; } function getEventName() { return(_eb_name); } static var ALL = "ALL"; static var methods = ["broadcast", "registerEvent", "unregisterEvent", "registerEvents", "unregisterEvents", "unregisterAll", "setEventName", "getEventName", "disableBroadcast", "enableBroadcast"]; }
Symbol 20508 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModule] Frame 0
class com.google.youtube.players.modules.IPlayerModule implements com.google.youtube.IBroadcaster { function IPlayerModule () { } }
Symbol 20509 MovieClip [__Packages.com.google.youtube.players.ui.SplitMenuButtonHolder] Frame 0
class com.google.youtube.players.ui.SplitMenuButtonHolder extends com.google.youtube.ui.CompoundButton { var drawArrow, descriptor, myHeight, myWidth, highlightLayer, createEmptyMovieClip, getNextHighestDepth, arrowHighlight, iconButton, attachMovie, arrow; function SplitMenuButtonHolder () { super(); } function init(moduleDescriptor, shouldDrawArrow) { drawArrow = shouldDrawArrow; descriptor = moduleDescriptor; build(); } function getSize() { return({width:myWidth, height:myHeight}); } function hover() { super.hover(); highlightLayer._visible = true; } function unhover() { super.unhover(); highlightLayer._visible = false; } function build() { var _local2 = (drawArrow ? (com.google.youtube.players.ui.MenuArrowButton.ARROW_WIDTH) : 0); var _local3 = (drawArrow ? (SPLIT_PADDING) : (NO_ARROW_PADDING)); myWidth = 0; myHeight = 0; highlightLayer = createEmptyMovieClip("highlightClip", getNextHighestDepth()); arrowHighlight = createEmptyMovieClip("arrowHighlight", getNextHighestDepth()); arrowHighlight._visible = false; iconButton = com.google.youtube.players.ui.IconMenuButton(attachMovie(descriptor.iconClass, descriptor.label, getNextHighestDepth())); iconButton.registerParentButton(this); iconButton.init(descriptor, _local2 + _local3); iconButton._y = Y_TOP_OFFSET; iconButton._x = X_LEFT_OFFSET; descriptor.iconButton = iconButton; myWidth = ((iconButton.getSize().width + X_LEFT_OFFSET) + X_RIGHT_OFFSET) + PADDING_RIGHT; myHeight = (iconButton.getSize().height + Y_TOP_OFFSET) + Y_BOTTOM_OFFSET; if (descriptor.hasSubmenu) { arrow = com.google.youtube.players.ui.MenuArrowButton(attachMovie(com.google.youtube.players.ui.MenuArrowButton.LINK_NAME, "arrowButton", getNextHighestDepth())); arrow.registerParentButton(this); arrow.init(descriptor); arrow.highlightClip = arrowHighlight; arrow._x = X_LEFT_OFFSET; arrow._y = Y_TOP_OFFSET; com.google.youtube.util.Drawing.drawRect(highlightLayer, X_LEFT_OFFSET, Y_TOP_OFFSET, myWidth - (X_LEFT_OFFSET + X_RIGHT_OFFSET), myHeight - (Y_TOP_OFFSET + Y_BOTTOM_OFFSET), 6710886); com.google.youtube.util.Drawing.drawRect(highlightLayer, X_LEFT_OFFSET, Y_TOP_OFFSET, myWidth - (X_LEFT_OFFSET + X_RIGHT_OFFSET), (myHeight - (Y_TOP_OFFSET - Y_BOTTOM_OFFSET)) - 1, 10066329); com.google.youtube.util.Drawing.drawRect(highlightLayer, X_LEFT_OFFSET, Y_TOP_OFFSET, _local2 + _local3, (myHeight - (Y_TOP_OFFSET - Y_BOTTOM_OFFSET)) - 1, 12303291); com.google.youtube.util.Drawing.drawRect(arrowHighlight, X_LEFT_OFFSET, Y_TOP_OFFSET, myWidth - (X_LEFT_OFFSET + X_RIGHT_OFFSET), myHeight - (Y_TOP_OFFSET + Y_BOTTOM_OFFSET), 6710886); com.google.youtube.util.Drawing.drawRect(arrowHighlight, X_LEFT_OFFSET, Y_TOP_OFFSET + 1, myWidth - (X_LEFT_OFFSET + X_RIGHT_OFFSET), (myHeight - (Y_TOP_OFFSET - Y_BOTTOM_OFFSET)) - 2, 10066329); com.google.youtube.util.Drawing.drawDivider(arrowHighlight, (X_LEFT_OFFSET + _local2) + _local3, Y_TOP_OFFSET + 1, (myHeight - (Y_TOP_OFFSET + Y_BOTTOM_OFFSET)) - 2, com.google.youtube.util.Drawing.VERTICAL, 6710886, 13421772, 100); } else { com.google.youtube.util.Drawing.drawRect(highlightLayer, X_LEFT_OFFSET, Y_TOP_OFFSET, myWidth - (X_LEFT_OFFSET + X_RIGHT_OFFSET), myHeight - (Y_TOP_OFFSET + Y_BOTTOM_OFFSET), 6710886); com.google.youtube.util.Drawing.drawRect(highlightLayer, X_LEFT_OFFSET, Y_TOP_OFFSET, myWidth - (X_LEFT_OFFSET + X_RIGHT_OFFSET), (myHeight - (Y_TOP_OFFSET - Y_BOTTOM_OFFSET)) - 1, 10066329); } highlightLayer._visible = false; } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.SplitMenuButtonHolder"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.SplitMenuButtonHolder); static var X_LEFT_OFFSET = 2; static var X_RIGHT_OFFSET = 2; static var Y_TOP_OFFSET = 2; static var Y_BOTTOM_OFFSET = 0; static var PADDING_RIGHT = 0; static var SPLIT_PADDING = 3; static var NO_ARROW_PADDING = 2; }
Symbol 20510 MovieClip [__Packages.com.google.youtube.players.ui.ITooltip] Frame 0
class com.google.youtube.players.ui.ITooltip { function ITooltip () { } }
Symbol 20511 MovieClip [__Packages.com.google.youtube.util.Drawing] Frame 0
class com.google.youtube.util.Drawing { function Drawing () { } static function drawRect(target, x, y, width, height, fill, lineStyle, radii, leaveFillOpen) { drawRectWithPointer(target, x, y, width, height, fill, lineStyle, radii, leaveFillOpen); } static function drawRectWithPointer(target, x, y, width, height, fill, lineStyle, radii, leaveFillOpen, pointerWidth, pointerHeight, pointerOrientation, pointerOffset) { if (fill != null) { setFill(target, fill); } setLineStyle(target, lineStyle); var _local15 = []; if (typeof(radii) == "number") { var _local16 = 0; for ( ; _local16 < 4 ; _local16++) { _local15[_local16] = radii; } } else { _local15 = Array(radii); } if (!radii) { target.moveTo(x, y); if (pointerOrientation == TOP) { target.lineTo((x + pointerOffset) + ((width - pointerWidth) / 2), y); target.lineTo((x + pointerOffset) + (width / 2), y - pointerHeight); target.lineTo((x + pointerOffset) + ((width + pointerWidth) / 2), y); } target.lineTo(x + width, y); if (pointerOrientation == RIGHT) { target.lineTo(x + width, (y + pointerOffset) + ((height - pointerWidth) / 2)); target.lineTo((x + width) + pointerHeight, (y + pointerOffset) + (height / 2)); target.lineTo(x + width, (y + pointerOffset) + ((height + pointerWidth) / 2)); } target.lineTo(x + width, y + height); if (pointerOrientation == BOTTOM) { target.lineTo((x + pointerOffset) + ((width + pointerWidth) / 2), y + height); target.lineTo((x + pointerOffset) + (width / 2), (y + height) + pointerHeight); target.lineTo((x + pointerOffset) + ((width - pointerWidth) / 2), y + height); } target.lineTo(x, y + height); if (pointerOrientation == LEFT) { target.lineTo(x, (y + pointerOffset) + ((height + pointerWidth) / 2)); target.lineTo(x - pointerHeight, (y + pointerOffset) + (height / 2)); target.lineTo(x, (y + pointerOffset) + ((height - pointerWidth) / 2)); } target.lineTo(x, y); } else { target.moveTo(x + _local15[0], y); if (pointerOrientation == TOP) { target.lineTo((x + pointerOffset) + ((width - pointerWidth) / 2), y); target.lineTo((x + pointerOffset) + (width / 2), y - pointerHeight); target.lineTo((x + pointerOffset) + ((width + pointerWidth) / 2), y); } target.lineTo((x + width) - _local15[1], y); target.curveTo(x + width, y, x + width, y + _local15[1]); if (pointerOrientation == RIGHT) { target.lineTo(x + width, (y + pointerOffset) + ((height - pointerWidth) / 2)); target.lineTo((x + width) + pointerHeight, (y + pointerOffset) + (height / 2)); target.lineTo(x + width, (y + pointerOffset) + ((height + pointerWidth) / 2)); } target.lineTo(x + width, (y + height) - _local15[2]); target.curveTo(x + width, y + height, (x + width) - _local15[2], y + height); if (pointerOrientation == BOTTOM) { target.lineTo((x + pointerOffset) + ((width + pointerWidth) / 2), y + height); target.lineTo((x + pointerOffset) + (width / 2), (y + height) + pointerHeight); target.lineTo((x + pointerOffset) + ((width - pointerWidth) / 2), y + height); } target.lineTo(x + _local15[3], y + height); target.curveTo(x, y + height, x, (y + height) - _local15[3]); if (pointerOrientation == LEFT) { target.lineTo(x, (y + pointerOffset) + ((height + pointerWidth) / 2)); target.lineTo(x - pointerHeight, (y + pointerOffset) + (height / 2)); target.lineTo(x, (y + pointerOffset) + ((height - pointerWidth) / 2)); } target.lineTo(x, y + _local15[0]); target.curveTo(x, y, x + _local15[0], y); } if ((fill != null) && (!leaveFillOpen)) { target.endFill(); } } static function drawPoly(target, points, fill, lineStyle) { if (fill != null) { setFill(target, fill); } setLineStyle(target, lineStyle); target.moveTo(points[0].x, points[0].y); var _local6 = 1; for ( ; _local6 < points.length ; _local6++) { target.lineTo(points[_local6].x, points[_local6].y); } if (fill != null) { target.endFill(); } } static function drawCircle(target, x, y, diameter, fill, lineStyle, leaveFillOpen) { if (fill != null) { setFill(target, fill); } setLineStyle(target, lineStyle); var _local9 = Math.PI / 180; var _local10 = diameter / 2; var _local11 = 45 * _local9; var _local12 = _local10 / Math.cos(_local11 / 2); var _local13 = 0; var _local14 = (-_local11) / 2; target.moveTo(x + _local10, y); var _local15 = 0; for ( ; _local15 < 8 ; _local15++) { _local13 = _local13 + _local11; _local14 = _local14 + _local11; var _local16 = _local10 * Math.cos(_local13); var _local17 = _local10 * Math.sin(_local13); var _local18 = _local12 * Math.cos(_local14); var _local19 = _local12 * Math.sin(_local14); target.curveTo(x + _local18, y + _local19, x + _local16, y + _local17); } if ((fill != null) && (!leaveFillOpen)) { target.endFill(); } } static function drawDivider(target, x, y, size, orientation, topColor, bottomColor, linealpha) { linealpha = (linealpha ? (linealpha) : 100); target.moveTo(x, y); setLineStyle(target, {thickness:0, alpha:linealpha, rgb:topColor}); if (orientation == VERTICAL) { target.lineTo(x, y + size); setLineStyle(target, {thickness:0, alpha:linealpha, rgb:bottomColor}); target.moveTo(x + 1, y); target.lineTo(x + 1, y + size); } else if (orientation == HORIZONTAL) { target.lineTo(x + size, y); setLineStyle(target, {thickness:0, alpha:linealpha, rgb:bottomColor}); target.moveTo(x, y + 1); target.lineTo(x + size, y + 1); } } static function drawArrow(target, x, y, orientation, fill, lineStyle) { var _local8 = 9; if (orientation == "left") { x = x + _local8; _local8 = -_local8; } var _local9 = [{x:x + (_local8 / 3), y:y}, {x:x + _local8, y:y + 7}, {x:x + (_local8 / 3), y:y + 14}, {x:x, y:y + 11.5}, {x:x + (_local8 / 2), y:y + 7}, {x:x, y:y + 2}]; drawPoly(target, _local9, fill, lineStyle); } static function drawPlus(target, x, y, plusSize, fill, lineStyle) { var _local8 = []; _local8 = [{x:x + (plusSize * 1), y:y + (plusSize * 0)}, {x:x + (plusSize * 2), y:y + (plusSize * 0)}, {x:x + (plusSize * 2), y:y + (plusSize * 1)}, {x:x + (plusSize * 3), y:y + (plusSize * 1)}, {x:x + (plusSize * 3), y:y + (plusSize * 2)}, {x:x + (plusSize * 2), y:y + (plusSize * 2)}, {x:x + (plusSize * 2), y:y + (plusSize * 3)}, {x:x + (plusSize * 1), y:y + (plusSize * 3)}, {x:x + (plusSize * 1), y:y + (plusSize * 2)}, {x:x + (plusSize * 0), y:y + (plusSize * 2)}, {x:x + (plusSize * 0), y:y + (plusSize * 1)}, {x:x + (plusSize * 1), y:y + (plusSize * 1)}, {x:x + (plusSize * 1), y:y + (plusSize * 0)}]; drawPoly(target, _local8, fill, lineStyle); } static function drawT(target, x, y, tSize, fill, lineStyle) { var _local8 = []; _local8 = [{x:x + (tSize * 0), y:y + (tSize * 0)}, {x:x + (tSize * 5), y:y + (tSize * 0)}, {x:x + (tSize * 5), y:y + (tSize * 1)}, {x:x + (tSize * 3), y:y + (tSize * 1)}, {x:x + (tSize * 3), y:y + (tSize * 5)}, {x:x + (tSize * 2), y:y + (tSize * 5)}, {x:x + (tSize * 2), y:y + (tSize * 1)}, {x:x + (tSize * 0), y:y + (tSize * 1)}, {x:x + (tSize * 0), y:y + (tSize * 0)}]; drawPoly(target, _local8, fill, lineStyle); } static function drawX(target, x, y, size, thickness, fill, lineStyle) { var _local9 = thickness * Math.sin(45); var _local10 = []; _local10 = [{x:x + _local9, y:y}, {x:x + (size / 2), y:y + ((size - (_local9 * 2)) / 2)}, {x:x + (size - _local9), y:y}, {x:x + size, y:y + _local9}, {x:x + (size - ((size - (_local9 * 2)) / 2)), y:y + (size / 2)}, {x:x + size, y:y + (size - _local9)}, {x:x + (size - _local9), y:y + size}, {x:x + (size / 2), y:y + (size - ((size - (_local9 * 2)) / 2))}, {x:x + _local9, y:y + size}, {x:x, y:y + (size - _local9)}, {x:x + ((size - (_local9 * 2)) / 2), y:y + (size / 2)}, {x:x, y:y + _local9}]; drawPoly(target, _local10, fill, lineStyle); } static function drawStar(target, x, y, fill, lineStyle, points, innerRadius, outerRadius) { var _local10 = points * 2; if (fill != null) { setFill(target, fill); } setLineStyle(target, lineStyle); var _local11 = 360 / _local10; var _local12 = 0; while (_local12 <= _local10) { var _local13 = ((_local11 * _local12) / 180) * Math.PI; var _local14 = ((_local11 * (_local12 + 1)) / 180) * Math.PI; var _local15 = innerRadius * Math.sin(_local13); var _local16 = innerRadius * Math.cos(_local13); var _local17 = outerRadius * Math.sin(_local14); var _local18 = outerRadius * Math.cos(_local14); if (_local12 == 0) { target.moveTo(_local15, _local16); target.moveTo(_local17, _local18); } else { target.lineTo(_local15, _local16); target.lineTo(_local17, _local18); } _local12 = _local12 + 2; } if (fill != null) { target.endFill(); } if ((x != null) && (y != null)) { target._x = outerRadius + x; target._y = outerRadius + y; } } static function setFill(target, fill) { if (typeof(fill) == "number") { target.beginFill(Number(fill)); } else if (fill != null) { if ((!_global.isNaN(fill.color)) && (!_global.isNaN(fill.alpha))) { target.beginFill(fill.color, fill.alpha); } else { target.beginGradientFill(fill.fillType, fill.colors, fill.alphas, fill.ratios, fill.matrix); } } } static function setLineStyle(target, lineStyle) { if (lineStyle != undefined) { target.lineStyle(lineStyle.thickness, lineStyle.rgb, lineStyle.alpha, lineStyle.pixelHinting, lineStyle.noScale, lineStyle.capsStyle, lineStyle.jointStyle, lineStyle.miterLimit); } } static var VERTICAL = "vertical"; static var HORIZONTAL = "horizontal"; static var TOP = "top"; static var BOTTOM = "bottom"; static var LEFT = "left"; static var RIGHT = "right"; static var TO_RADIANS = Math.PI / 180; }
Symbol 20512 MovieClip [__Packages.com.google.youtube.players.ui.Tooltip] Frame 0
class com.google.youtube.players.ui.Tooltip implements com.google.youtube.players.ui.ITooltip { static var stageRect; var targetMc, localParent, displayDuration, isActive, tooltipTextColor, tooltipBgFill, tooltipBgPointerOrientation, tooltipTextFormat, tooltipText, offsetX, offsetY, tooltipIconClip, tooltipClip, alertInterval, hideInterval, tooltipTextField, width, height, pointerOffset; function Tooltip (target, opt_pointerOrientation, opt_bgFill, opt_textColor, opt_localParent) { targetMc = target; localParent = (opt_localParent ? (opt_localParent) : (parentClips[_root])); displayDuration = TOOLTIP_DURATION; isActive = false; tooltipTextColor = ((opt_textColor == undefined) ? (TOOLTIP_TEXT_COLOR) : (opt_textColor)); tooltipBgFill = ((opt_bgFill == undefined) ? (TOOLTIP_BG_COLOR) : (opt_bgFill)); tooltipBgPointerOrientation = opt_pointerOrientation || (TOOLTIP_BG_POINTER_ORIENTATION); tooltipTextFormat = buildTextFormat(); buildTooltipClip(); } static function createTooltip(target, opt_pointerOrientation, opt_bgFill, opt_textColor, opt_localParent) { return(new com.google.youtube.players.ui.Tooltip(target, opt_pointerOrientation, opt_bgFill, opt_textColor, opt_localParent)); } static function createErrorTooltip(target, opt_pointerOrientation, opt_localParent) { return(new com.google.youtube.players.ui.Tooltip(target, opt_pointerOrientation, ERROR_TOOLTIP_BG_COLOR, undefined, opt_localParent)); } function getTooltipText() { return(tooltipText); } function setTooltipText(text) { tooltipText = text; makeTooltip(); } function clearTooltipText() { tooltipText = null; makeTooltip(); } function setOffset(x, y) { offsetX = x; offsetY = y; repositionTooltip(); } function setTooltipIcon(resourceId) { if (tooltipIconClip) { tooltipIconClip.removeMovieClip(); tooltipIconClip = null; } tooltipIconClip = tooltipClip.attachMovie(resourceId, "tooltipIconClip", tooltipClip.getNextHighestDepth()); if (!tooltipIconClip) { } makeTooltip(); } function setTooltipIconFromBitmap(bmp) { if (tooltipIconClip) { tooltipIconClip.removeMovieClip(); tooltipIconClip = null; } tooltipIconClip = tooltipClip.createEmptyMovieClip("tooltipIconClip", tooltipClip.getNextHighestDepth()); tooltipIconClip.attachBitmap(bmp, tooltipIconClip.getNextHighestDepth()); makeTooltip(); } function clearTooltipIcon() { tooltipIconClip.removeMovieClip(); tooltipIconClip = null; makeTooltip(); } function showTooltip(opt_delay) { if (isActive) { return(undefined); } if (tooltipText.length > 0) { isActive = true; if (opt_delay == 0) { doRealShow(); } else { startShowTimer(opt_delay); } } } function hideTooltip() { isActive = false; clearTimers(); tooltipClip._visible = false; } function startShowTimer(opt_delay) { if (alertInterval) { clearTimers(); } localParent.onMouseMove = com.google.chianti.event.EventDelegate.create(this, clearTimers, opt_delay); if (opt_delay == 0) { doRealShow(); } else { alertInterval = _global.setInterval(this, "doRealShow", opt_delay || (TOOLTIP_DELAY)); } } function clearTimers(opt_delay) { localParent.onMouseMove = null; if (hideInterval) { _global.clearInterval(hideInterval); hideInterval = null; } if (alertInterval) { _global.clearInterval(alertInterval); alertInterval = null; } if (isActive) { startShowTimer(opt_delay); } else { tooltipClip._visible = false; } } function doRealShow() { tooltipClip._visible = true; _global.clearInterval(alertInterval); if (displayDuration) { _global.clearInterval(hideInterval); hideInterval = _global.setInterval(this, "hideTooltip", displayDuration); } } function buildTooltipClip() { tooltipClip = getTooltipClip(localParent); if (!tooltipClip) { return(undefined); } makeTooltip(); hideTooltip(); } function makeTooltip() { if (tooltipText.length <= 0) { return(undefined); } if (tooltipClip.tooltipTextField) { tooltipClip.tooltipTextField.removeTextField(); } if (needWordWrap(tooltipText)) { tooltipTextField = tooltipClip.createTextField("tooltipTextField", tooltipClip.getNextHighestDepth(), 0, 0, getTextFieldMaxWidth(), 0); tooltipTextField.wordWrap = true; } else { tooltipTextField = tooltipClip.createTextField("tooltipTextField", tooltipClip.getNextHighestDepth(), 0, 0, 0, 0); } tooltipTextField.autoSize = TOOLTIP_TEXT_FIELD_AUTO_SIZE; tooltipTextField.selectable = false; tooltipTextField.setNewTextFormat(tooltipTextFormat); tooltipTextField.text = tooltipText; width = getWidth(tooltipTextField); height = getHeight(tooltipTextField); repositionTooltip(); if (tooltipIconClip) { drawTooltipIcon(); } drawTooltipTextField(); } function needWordWrap(text) { var _local3 = getTextFieldMaxWidth(); var _local4 = tooltipClip.createTextField("testTextField", tooltipClip.getNextHighestDepth(), 0, 0, 0, 0); _local4._alpha = 0; _local4.text = text; _local4.setTextFormat(tooltipTextFormat); var _local5 = _local4.textWidth; var _local6 = false; if (_local5 > _local3) { _local6 = true; } else { _local6 = false; } _local4.removeTextField(); return(_local6); } function getTextFieldMaxWidth() { var _local2 = TOOLTIP_MAX_WIDTH - (TOOLTIP_TEXT_LEFT_PAD + TOOLTIP_TEXT_RIGHT_PAD); if (tooltipIconClip) { _local2 = _local2 - ((tooltipIconClip._width + TOOLTIP_ICON_LEFT_PAD) + TOOLTIP_ICON_RIGHT_PAD); } return(_local2); } function repositionTooltip() { var _local2 = {x:0, y:0}; targetMc.localToGlobal(_local2); pointerOffset = 0; switch (tooltipBgPointerOrientation) { case com.google.youtube.util.Drawing.LEFT : _local2.x = _local2.x + (targetMc._width + TOOLTIP_OFFSET); var _local3 = true; break; case com.google.youtube.util.Drawing.RIGHT : _local2.x = _local2.x - (width + TOOLTIP_OFFSET); _local3 = true; break; case com.google.youtube.util.Drawing.TOP : _local2.y = _local2.y + (targetMc._height + TOOLTIP_OFFSET); _local3 = false; break; case com.google.youtube.util.Drawing.BOTTOM : _local2.y = _local2.y - (height + TOOLTIP_OFFSET); _local3 = false; break; default : return(undefined); } if (_local3) { if (!_global.isNaN(offsetX)) { _local2.x = _local2.x + offsetX; } if (_global.isNaN(offsetY)) { _local2.y = _local2.y + ((targetMc._height - height) / 2); } else { _local2.y = _local2.y + (offsetY - (height / 2)); } } else { if (_global.isNaN(offsetX)) { _local2.x = _local2.x + ((targetMc._width - width) / 2); } else { _local2.x = _local2.x + (offsetX - (width / 2)); } if (!_global.isNaN(offsetY)) { _local2.y = _local2.y + offsetY; } } var _local4 = getStageRect(); var _local5 = ((_local2.x + width) + TOOLTIP_MARGIN) - (_local4.x + _local4.width); if (_local5 > 0) { if (!_local3) { pointerOffset = _local5; } _local2.x = _local2.x - _local5; } _local5 = ((_local2.y + height) + TOOLTIP_MARGIN) - (_local4.y + _local4.height); if (_local5 > 0) { if (_local3) { pointerOffset = _local5; } _local2.y = _local2.y - _local5; } _local5 = _local2.x - (TOOLTIP_MARGIN + _local4.x); if (_local5 < 0) { if (!_local3) { pointerOffset = _local5; } _local2.x = _local2.x - _local5; } _local5 = _local2.y - (TOOLTIP_MARGIN + _local4.y); if (_local5 < 0) { if (_local3) { pointerOffset = _local5; } _local2.y = _local2.y - _local5; } localParent.globalToLocal(_local2); tooltipClip._x = Math.round(_local2.x); tooltipClip._y = Math.round(_local2.y); drawTooltipBackground(); } function getHeight(textField) { var _local3 = (textField._height + TOOLTIP_TEXT_TOP_PAD) + TOOLTIP_TEXT_BOTTOM_PAD; if (tooltipIconClip) { var _local4 = (tooltipIconClip._height + TOOLTIP_ICON_TOP_PAD) + TOOLTIP_ICON_BOTTOM_PAD; _local3 = Math.max(_local3, _local4); } return(_local3); } function getWidth(textField) { var _local3 = (textField._width + TOOLTIP_TEXT_LEFT_PAD) + TOOLTIP_TEXT_RIGHT_PAD; if (tooltipIconClip) { _local3 = _local3 + ((tooltipIconClip._width + TOOLTIP_ICON_LEFT_PAD) + TOOLTIP_ICON_RIGHT_PAD); } return(_local3); } function drawTooltipBackground() { tooltipClip.clear(); var _local2 = Math.round(width); var _local3 = Math.round(height); var _local4 = 0 + TOOLTIP_BG_SHARPNESS_X_OFFSET; var _local5 = 0 + TOOLTIP_BG_SHARPNESS_Y_OFFSET; var _local6 = {thickness:TOOLTIP_BG_BORDER_LINESTYLE_THICKNESS, rgb:TOOLTIP_BG_SHADOW_COLOR, alpha:TOOLTIP_BG_OUTER_SHADOW_ALPHA, noScale:TOOLTIP_BG_BORDER_LINESTYLE_NO_SCALE}; var _local7 = _local4 - TOOLTIP_BG_OUTER_SHADOW_UPPER_LEFT_OFFSET; var _local8 = _local5 - TOOLTIP_BG_OUTER_SHADOW_UPPER_LEFT_OFFSET; var _local9 = (_local2 + TOOLTIP_BG_OUTER_SHADOW_UPPER_LEFT_OFFSET) + TOOLTIP_BG_OUTER_SHADOW_LOWER_RIGHT_OFFSET; var _local10 = (_local3 + TOOLTIP_BG_OUTER_SHADOW_UPPER_LEFT_OFFSET) + TOOLTIP_BG_OUTER_SHADOW_LOWER_RIGHT_OFFSET; var _local11 = TOOLTIP_BG_BORDER_CORNER_RADIUS + TOOLTIP_BG_OUTER_SHADOW_LOWER_RIGHT_OFFSET; var _local12 = [_local11, _local11, _local11, _local11]; com.google.youtube.util.Drawing.drawRectWithPointer(tooltipClip, _local7, _local8, _local9, _local10, null, _local6, _local12, false, TOOLTIP_BG_POINTER_WIDTH, TOOLTIP_BG_POINTER_HEIGHT, tooltipBgPointerOrientation, pointerOffset); var _local13 = {thickness:TOOLTIP_BG_BORDER_LINESTYLE_THICKNESS, rgb:TOOLTIP_BG_SHADOW_COLOR, alpha:TOOLTIP_BG_MIDDLE_SHADOW_ALPHA, noScale:TOOLTIP_BG_BORDER_LINESTYLE_NO_SCALE}; var _local14 = _local4 + TOOLTIP_BG_MIDDLE_SHADOW_OFFSET; var _local15 = _local5 + TOOLTIP_BG_MIDDLE_SHADOW_OFFSET; var _local16 = TOOLTIP_BG_BORDER_CORNER_RADIUS + TOOLTIP_BG_MIDDLE_SHADOW_OFFSET; var _local17 = [_local16, _local16, _local16, _local16]; com.google.youtube.util.Drawing.drawRectWithPointer(tooltipClip, _local14, _local15, _local2, _local3, null, _local13, _local17, false, TOOLTIP_BG_POINTER_WIDTH, TOOLTIP_BG_POINTER_HEIGHT, tooltipBgPointerOrientation, pointerOffset); var _local18 = {thickness:TOOLTIP_BG_BORDER_LINESTYLE_THICKNESS, rgb:TOOLTIP_BG_SHADOW_COLOR, alpha:TOOLTIP_BG_INNER_SHADOW_ALPHA, noScale:TOOLTIP_BG_BORDER_LINESTYLE_NO_SCALE}; var _local19 = _local4 + TOOLTIP_BG_INNER_SHADOW_OFFSET; var _local20 = _local5 + TOOLTIP_BG_INNER_SHADOW_OFFSET; var _local21 = TOOLTIP_BG_BORDER_CORNER_RADIUS + TOOLTIP_BG_INNER_SHADOW_OFFSET; var _local22 = [_local21, _local21, _local21, _local21]; com.google.youtube.util.Drawing.drawRectWithPointer(tooltipClip, _local19, _local20, _local2, _local3, null, _local18, _local22, false, TOOLTIP_BG_POINTER_WIDTH, TOOLTIP_BG_POINTER_HEIGHT, tooltipBgPointerOrientation, pointerOffset); var _local23 = {thickness:TOOLTIP_BG_BORDER_LINESTYLE_THICKNESS, rgb:TOOLTIP_BG_BORDER_LINESTYLE_COLOR, alpha:TOOLTIP_BG_BORDER_LINESTYLE_ALPHA, noScale:TOOLTIP_BG_BORDER_LINESTYLE_NO_SCALE}; var _local24 = [TOOLTIP_BG_BORDER_CORNER_RADIUS, TOOLTIP_BG_BORDER_CORNER_RADIUS, TOOLTIP_BG_BORDER_CORNER_RADIUS, TOOLTIP_BG_BORDER_CORNER_RADIUS]; com.google.youtube.util.Drawing.drawRectWithPointer(tooltipClip, _local4, _local5, _local2, _local3, tooltipBgFill, _local23, _local24, false, TOOLTIP_BG_POINTER_WIDTH, TOOLTIP_BG_POINTER_HEIGHT, tooltipBgPointerOrientation, pointerOffset); } function drawTooltipIcon() { if (!tooltipIconClip) { return(undefined); } tooltipIconClip._x = TOOLTIP_ICON_LEFT_PAD; tooltipIconClip._y = TOOLTIP_ICON_TOP_PAD; } function drawTooltipTextField() { var _local2 = TOOLTIP_TEXT_LEFT_PAD; var _local3 = TOOLTIP_TEXT_TOP_PAD; if (tooltipIconClip) { _local2 = _local2 + ((tooltipIconClip._width + TOOLTIP_ICON_LEFT_PAD) + TOOLTIP_ICON_RIGHT_PAD); } tooltipTextField._x = _local2; tooltipTextField._y = _local3; tooltipTextField._visible = true; } static function setParentClip(tooltipParent) { parentClips[_root] = tooltipParent; } static function setStageRect(newStageRect) { stageRect = newStageRect; } static function getStageRect() { if (stageRect) { return(stageRect); } return(new com.google.geom.Rect(0, 0, Stage.width, Stage.height)); } static function getTooltipClip(opt_localParent) { var _local3 = (opt_localParent ? (opt_localParent) : (parentClips[_root])); if (_local3) { var _local4 = _local3.getNextHighestDepth(); return(_local3.createEmptyMovieClip("tooltip" + _local4, _local4)); } } function buildTextFormat() { var _local2 = new TextFormat(); _local2.font = TOOLTIP_TEXT_FONT; _local2.size = TOOLTIP_TEXT_SIZE; _local2.color = tooltipTextColor; return(_local2); } function setDisplayDuration(newDisplayDuration) { if (newDisplayDuration >= 0) { displayDuration = newDisplayDuration; } } static var TOOLTIP_MAX_WIDTH = 185; static var TOOLTIP_DELAY = 500; static var TOOLTIP_DURATION = 5 * 1000; static var TOOLTIP_MARGIN = 5; static var TOOLTIP_OFFSET = 15; static var TOOLTIP_BG_SHARPNESS_X_OFFSET = 0.5; static var TOOLTIP_BG_SHARPNESS_Y_OFFSET = 0.5; static var TOOLTIP_BG_COLOR = 1052688; static var TOOLTIP_BG_BORDER_CORNER_RADIUS = 5; static var TOOLTIP_BG_BORDER_LINESTYLE_COLOR = 16777215; static var TOOLTIP_BG_BORDER_LINESTYLE_THICKNESS = 1; static var TOOLTIP_BG_BORDER_LINESTYLE_ALPHA = 25; static var TOOLTIP_BG_BORDER_LINESTYLE_NO_SCALE = "none"; static var TOOLTIP_BG_POINTER_WIDTH = 10; static var TOOLTIP_BG_POINTER_HEIGHT = 5; static var TOOLTIP_BG_POINTER_ORIENTATION = com.google.youtube.util.Drawing.BOTTOM; static var ERROR_TOOLTIP_BG_COLOR = 5570560; static var TOOLTIP_BG_SHADOW_COLOR = 0; static var TOOLTIP_BG_INNER_SHADOW_ALPHA = 47; static var TOOLTIP_BG_INNER_SHADOW_OFFSET = 1; static var TOOLTIP_BG_MIDDLE_SHADOW_ALPHA = 27; static var TOOLTIP_BG_MIDDLE_SHADOW_OFFSET = 2; static var TOOLTIP_BG_OUTER_SHADOW_ALPHA = 7; static var TOOLTIP_BG_OUTER_SHADOW_UPPER_LEFT_OFFSET = 1; static var TOOLTIP_BG_OUTER_SHADOW_LOWER_RIGHT_OFFSET = 3; static var TOOLTIP_ICON_LEFT_PAD = 5; static var TOOLTIP_ICON_RIGHT_PAD = 0; static var TOOLTIP_ICON_TOP_PAD = 4; static var TOOLTIP_ICON_BOTTOM_PAD = 3; static var TOOLTIP_TEXT_LEFT_PAD = 5; static var TOOLTIP_TEXT_RIGHT_PAD = 5; static var TOOLTIP_TEXT_TOP_PAD = 2; static var TOOLTIP_TEXT_BOTTOM_PAD = 2; static var TOOLTIP_TEXT_SIZE = 10; static var TOOLTIP_TEXT_FONT = "Arial,_sans"; static var TOOLTIP_TEXT_COLOR = 16777215; static var TOOLTIP_TEXT_FIELD_AUTO_SIZE = "left"; static var parentClips = {}; }
Symbol 20513 MovieClip [__Packages.com.google.youtube.players.ui.MovingTooltip] Frame 0
class com.google.youtube.players.ui.MovingTooltip extends com.google.youtube.players.ui.Tooltip { var repositionTooltip; function MovingTooltip (target, opt_pointerOrientation, opt_bgFill, opt_textColor, opt_localParent) { super(target, opt_pointerOrientation, opt_bgFill, opt_textColor, opt_localParent); } static function createTooltip(target, opt_pointerOrientation, opt_bgFill, opt_textColor, opt_localParent) { return(new com.google.youtube.players.ui.MovingTooltip(target, opt_pointerOrientation, opt_bgFill, opt_textColor, opt_localParent)); } static function createErrorTooltip(target, opt_pointerOrientation) { return(new com.google.youtube.players.ui.MovingTooltip(target, opt_pointerOrientation, com.google.youtube.players.ui.Tooltip.ERROR_TOOLTIP_BG_COLOR)); } function doRealShow() { repositionTooltip(); super.doRealShow(); } }
Symbol 20514 MovieClip [__Packages.com.google.youtube.players.modules.ISubmenu] Frame 0
class com.google.youtube.players.modules.ISubmenu { function ISubmenu () { } }
Symbol 20515 MovieClip [__Packages.com.google.youtube.util.StringUtil] Frame 0
class com.google.youtube.util.StringUtil { function StringUtil () { } static function secondsToTimeString(totalSeconds, opt_minRequiredPositions) { if (!opt_minRequiredPositions) { opt_minRequiredPositions = 1; } var _local4 = 0; var _local5 = 0; var _local6 = Math.max(totalSeconds, 0); _local4 = Math.floor(_local6 / 3600); _local6 = _local6 % 3600; _local5 = Math.floor(_local6 / 60); _local6 = _local6 % 60; var _local7 = (((_local4 ? (_local4 + ":") : "") + (((_local4 > 0) && (_local5 < 10)) ? ("0" + _local5) : (_local5))) + ":") + ((_local6 < 10) ? ("0" + _local6) : (_local6)); var _local8 = _local7.split(":").join("").length; while (_local8 < opt_minRequiredPositions) { _local7 = ((_local8 % 2) ? ("0" + _local7) : ("0:" + _local7)); _local8 = _local7.split(":").join("").length; } return(_local7); } static function ellipsis(str, _textField, opt_textFormat) { str = str.toString(); var _local5 = str; if (opt_textFormat) { _textField.setNewTextFormat(opt_textFormat); } var _local6 = _textField.text; _textField.text = str; if ((_textField.textWidth > _textField._width) || (_textField.textHeight > _textField._height)) { var _local7 = Math.round(str.length / 2); var _local8 = _local7; do { _local7 = Math.floor(_local7 / 2); _textField.text = str.substr(0, _local8) + "..."; if ((_textField.textWidth > _textField._width) || (_textField.textHeight > _textField._height)) { _local8 = _local8 - _local7; } else { _local8 = _local8 + _local7; _local5 = _textField.text; } } while (_local7); } _textField.text = _local6; return(_local5); } static function getLongestString(stringArray) { var _local3 = stringArray.length; var _local4 = ""; var _local5 = 0; for ( ; _local5 < _local3 ; _local5++) { if (stringArray[_local5].length > _local4.length) { _local4 = stringArray[_local5]; } } return(_local4); } }
Symbol 20516 MovieClip [__Packages.com.google.youtube.players.VideoPlayer] Frame 0
class com.google.youtube.players.VideoPlayer extends com.google.youtube.AbstractElement implements com.google.youtube.players.IVideoPlayer { var isSized, configData, playbackState, playState, cuedVideoData, videoLoader, unregisterAll, broadcast, videoDisplay, videoDisplayBg, error_txt, videoDisplayButton, still, stillMask, preloader, errorDisplay, playbackStateLocked, akamaiXML, attachMovie, alternateDisplay, createEmptyMovieClip, moduleDisplay, topmostModuleDisplay; function VideoPlayer () { super(); setPlayState(UNSTARTED); isSized = false; } function init(configDataObj, soundController) { configData = configDataObj; build(soundController); } function play() { playbackState = PLAYING; if ((playState == ENDED) && (!getCurrentVideoData().startingFromOffset)) { seekTo(0, true); } else if (cuedVideoData) { loadVideoByVideoData(cuedVideoData); cuedVideoData = null; } else { videoLoader.play(); } } function pause() { videoLoader.pause(); } function getCurrentTime() { return(videoLoader.getCurrentTime()); } function getVideoSize() { return(videoLoader.getVideoSize()); } function destroy() { unregisterAll(); videoLoader.close(); } function getBufferEmptyEvents() { return(videoLoader.getBufferEmptyEvents()); } function getNSBytesLoaded() { return(videoLoader.getNSBytesLoaded()); } function getNSBytesTotal() { return(videoLoader.getNSBytesTotal()); } function getStartPosition() { return(videoLoader.getStartPosition()); } function getDuration() { return(videoLoader.getDuration()); } function isMetaDataLoaded() { return(videoLoader.isMetaDataLoaded()); } function getSourceData() { return(videoLoader.getSourceData()); } function seekTo(seconds, allowSeekAhead, precise) { if (!videoLoader.isMetaDataLoaded()) { getCurrentVideoData().startSeconds = seconds; getCurrentVideoData().startingFromOffset = true; loadVideoByVideoData(getCurrentVideoData()); } else { videoLoader.seekTo(seconds, allowSeekAhead, precise); if (videoLoader.getState() != com.google.youtube.players.VideoLoader.SEEKING) { broadcast({type:com.google.youtube.event.VideoPlayerEvent.SEEK, target:this}); } } } function getDisplayRect() { return(new com.google.geom.Rect(videoDisplay._x, videoDisplay._y, videoDisplay._width, videoDisplay._height)); } function getViewportRect() { return(new com.google.geom.Rect(videoDisplayBg._x, videoDisplayBg._y, videoDisplayBg._width, videoDisplayBg._height)); } function getViewportScale(opt_useUiScale) { var _local5 = getViewportRect(); if ((_local5.width / STILL_ASPECT_RATIO) > _local5.height) { var _local3 = _local5.height; var _local4 = (opt_useUiScale ? (DEFAULT_UI_HEIGHT) : (DEFAULT_HEIGHT)); } else { var _local3 = _local5.width; var _local4 = (opt_useUiScale ? (DEFAULT_UI_WIDTH) : (DEFAULT_WIDTH)); } return((_local3 / _local4) * 100); } function setViewportSize(newX, newY, newWidth, newHeight, doSmoothTransition) { newX = Math.round(newX); newY = Math.round(newY); newWidth = Math.round(newWidth); newHeight = Math.round(newHeight); var _local7 = new com.google.geom.Rect(newX, newY, newWidth, newHeight); var _local8 = getVideoSize(); var _local9 = _local8.width; var _local10 = _local8.height; if ((!_local9) || (!_local10)) { _local9 = videoDisplay.video.width; _local10 = videoDisplay.video.height; if ((!_local9) || (!_local10)) { _local9 = com.google.youtube.players.VideoLoader.DEFAULT_VIDEO_WIDTH; _local10 = com.google.youtube.players.VideoLoader.DEFAULT_VIDEO_HEIGHT; } } if (getCurrentVideoData().stretch == 0) { _local9 = (_local10 * 4) / 3; } else if (getCurrentVideoData().stretch == 1) { _local9 = (_local10 * 16) / 9; } var _local11 = _local9 / _local10; var _local12 = _local11; var _local13 = newWidth; var _local14 = newHeight; if (getCurrentVideoData().aspect == 1) { _local12 = 16 / 9; } if (_local13 > (_local12 * newHeight)) { _local13 = _local12 * newHeight; } _local14 = _local13 / _local11; var _local15 = Math.floor((_local7.width - _local13) / 2) + _local7.x; var _local16 = Math.floor((_local7.height - _local14) / 2) + _local7.y; _local15 = Math.round(_local15); _local16 = Math.round(_local16); _local13 = Math.round(_local13); _local14 = Math.round(_local14); setSmoothing((_local13 != _local9) || (_local14 != _local10)); if (((_local7.y - _local16) < BLACK_BAR_FUDGE_PIXELS) && ((_local7.height - _local14) < (BLACK_BAR_FUDGE_PIXELS * 2))) { _local16 = _local7.y; _local14 = _local7.height; } if (((_local7.x - _local15) < BLACK_BAR_FUDGE_PIXELS) && ((_local7.width - _local13) < (BLACK_BAR_FUDGE_PIXELS * 2))) { _local15 = _local7.x; _local13 = _local7.width; } var _local17 = _local7.width; var _local18 = _local17 / STILL_ASPECT_RATIO; var _local19 = Math.round((_local7.width - _local17) / 2) + _local7.x; var _local20 = Math.round((_local7.height - _local18) / 2) + _local7.y; if (doSmoothTransition) { broadcast({type:com.google.youtube.event.UIEvent.START_RESIZE, target:this}); if (recoverableErrorActive) { error_txt._visible = false; } com.gs.TweenLite.to(videoDisplay, MENU_TRANSITION_SPEED, {_width:_local13, _height:_local14, _x:_local15, _y:_local16, onComplete:com.google.chianti.event.EventDelegate.create(this, broadcastViewportSizeChange)}); com.gs.TweenLite.to(videoDisplayButton, MENU_TRANSITION_SPEED, {_width:_local7.width, _height:_local7.height, _x:_local7.x, _y:_local7.y}); com.gs.TweenLite.to(still, MENU_TRANSITION_SPEED, {_width:_local17, _height:_local18, _x:_local19, _y:_local20}); com.gs.TweenLite.to(stillMask, MENU_TRANSITION_SPEED, {_width:_local7.width, _height:_local7.height, _x:_local7.x, _y:_local7.y}); com.gs.TweenLite.to(preloader, MENU_TRANSITION_SPEED, {_x:(_local13 / 2) + _local15, _y:(_local14 / 2) + _local16}); com.gs.TweenLite.to(errorDisplay, MENU_TRANSITION_SPEED, {_x:_local7.x, _y:_local7.y}); com.gs.TweenLite.to(errorDisplay.bg, MENU_TRANSITION_SPEED, {_width:_local7.width, _height:_local7.height}); com.gs.TweenLite.to(videoDisplayBg, MENU_TRANSITION_SPEED, {_width:_local7.width, _height:_local7.height, _x:_local7.x, _y:_local7.y}); } else { videoDisplay._x = _local15; videoDisplay._y = _local16; videoDisplay._width = _local13; videoDisplay._height = _local14; videoDisplayButton._x = _local7.x; videoDisplayButton._y = _local7.y; videoDisplayButton._width = _local7.width; videoDisplayButton._height = _local7.height; errorDisplay._x = _local7.x; errorDisplay._y = _local7.y; errorDisplay.bg._width = _local7.width; errorDisplay.bg._height = _local7.height; preloader._x = (_local7.width / 2) + _local7.x; preloader._y = (_local7.height / 2) + _local7.y; still._x = _local19; still._y = _local20; still._width = _local17; still._height = _local18; stillMask._x = _local7.x; stillMask._y = _local7.y; stillMask._width = _local7.width; stillMask._height = _local7.height; videoDisplayBg._x = _local7.x; videoDisplayBg._y = _local7.y; videoDisplayBg._width = _local7.width; videoDisplayBg._height = _local7.height; broadcastViewportSizeChange(); } } function broadcastViewportSizeChange() { centerErrorText(); if (recoverableErrorActive) { error_txt._visible = true; } broadcast({type:com.google.youtube.event.UIEvent.RESIZE, target:this}); } function getPlaybackFramerate() { return(videoLoader.getPlaybackFramerate()); } function getPlayState() { return(playState); } function getPlaybackState() { return(playbackState); } function lockPlaybackState(locked) { playbackStateLocked = locked; } function setPlayState(newPlayState) { if (!playbackStateLocked) { switch (newPlayState) { case PAUSED : case ENDED : case VIDEO_CUED : case UNSTARTED : playbackState = PAUSED; break; case PLAYING : case BUFFERING : playbackState = PLAYING; } } if (newPlayState != getPlayState()) { playState = newPlayState; broadcast({type:com.google.youtube.event.VideoPlayerEvent.STATE_CHANGE, data:playState, target:this}); } } function getPlaybackDelay() { return(videoLoader.getPlaybackDelay()); } function loadVideoByVideoData(videoData) { prepareNextVideoData(videoData, false); } function cueVideoByVideoData(videoData) { prepareNextVideoData(videoData, true); } function prepareNextVideoData(videoData, cued) { if ((!videoData.id) && (!videoData.flvurl)) { return(undefined); } var _local4 = getCurrentVideoData().id != videoData.id; var _local5 = (getPlayState() != UNSTARTED) && ((getPlayState() != VIDEO_CUED) && (getPlayState() != ENDED)); isSized = false; hideErrorDisplay(); clearBackground(videoData.bgcolor || 0); if (_local4) { clear(); } if (cued) { videoLoader.close(); } else { videoLoader.reset(); } var _local6 = cued && (videoData.thumbnailUrl); var _local7 = _local4 && (videoData.interstitial); if ((_local4 || (!_local5)) && (_local6 || (_local7))) { clear(); still._visible = true; still.holder.removeMovieClip(); still.createEmptyMovieClip("holder", 1); var _local8 = new com.google.utils.ImageLoader(true); _local8.addListener({onLoadInit:com.google.chianti.event.EventDelegate.create(this, onStillLoaded)}); var _local9 = (_local7 ? (videoData.interstitial) : (videoData.getHighQualityThumbnailUrl())); var _local10 = _local9.substr(-4) != ".swf"; still.holder._alpha = 0; _local8.loadImage(_local9, still.holder, _local10); } else { still._visible = false; } if (cued) { cuedVideoData = videoData; setPlayState(VIDEO_CUED); broadcast({type:com.google.youtube.event.VideoPlayerEvent.VIDEO_CUED, data:videoData, target:this}); if (videoData.conn.length && (!akamaiXML)) { akamaiXML = new com.google.youtube.data.XMLData(true); akamaiXML.registerEvent(com.google.youtube.event.DataEvent.LOAD, com.google.chianti.event.EventDelegate.create(this, onAkamaiData)); akamaiXML.registerEvent(com.google.youtube.event.DataEvent.ERROR, com.google.chianti.event.EventDelegate.create(this, onAkamaiData)); var _local11 = _global.unescape(videoData.conn).split("/")[2]; akamaiXML.loadXML(("http://" + _local11) + "/fcs/ident"); } } else { cuedVideoData = null; videoLoader.loadVideoByVideoData(videoData, videoData.startSeconds, false); getCurrentVideoData().startingFromOffset = true; } } function onAkamaiData(evt) { var _local3 = evt.data.ip; if (_local3.length) { var _local4 = _global.unescape(cuedVideoData.conn); var _local5 = _local4.split("/"); var _local6 = _local5[2]; _local5[2] = _local3; cuedVideoData.conn = (_local5.join("/") + "&_fcs_vhost=") + _local6; _local5[0] = "rtmpte:"; cuedVideoData.fallbackConn = (_local5.join("/") + "&_fcs_vhost=") + _local6; } akamaiXML.unregisterAll(); } function clear() { videoDisplay.video.clear(); } function hideErrorDisplay() { if (recoverableErrorActive) { recoverableErrorActive = false; error_txt.htmlText = ""; errorDisplay._visible = false; } } function showRecoverableError(msg) { showFatalError(msg); recoverableErrorActive = true; } function showFatalError(msg) { errorDisplay._visible = true; error_txt.htmlText = msg; centerErrorText(); } function centerErrorText() { error_txt.autoSize = "center"; var _local2 = getViewportRect(); error_txt._width = _local2.width - ERROR_MARGIN; error_txt._x = _local2.x + (ERROR_MARGIN / 2); error_txt._y = (_local2.height / 2) - (error_txt._height / 2); } function onStillLoaded(mc) { mc._alpha = 100; var _local3 = getViewportRect(); setViewportSize(_local3.x, _local3.y, _local3.width, _local3.height); } function onLoadNewVideo(evt) { setNetStream(videoLoader.getNetStream()); broadcast({type:com.google.youtube.event.VideoPlayerEvent.LOAD_NEW_VIDEO, data:evt.data, target:this}); } function onUnloadVideo(evt) { broadcast({type:com.google.youtube.event.VideoPlayerEvent.UNLOAD_VIDEO, target:this}); } function onProgress(evt) { broadcast({type:com.google.youtube.event.VideoPlayerEvent.PROGRESS, data:evt.data, target:this}); if ((!isSized) && (videoDisplay.video.width && (videoDisplay.video.height))) { isSized = true; var _local3 = getViewportRect(); setViewportSize(_local3.x, _local3.y, _local3.width, _local3.height); } } function onBytesLoaded(evt) { broadcast({type:com.google.youtube.event.VideoPlayerEvent.BYTES_LOADED, data:evt.data, target:this}); } function onMetaLoaded(evt) { if ((!videoLoader.canSeekOnTime()) && ((!videoLoader.transportIsRtmp()) && (getCurrentVideoData().startingFromOffset))) { getCurrentVideoData().startingFromOffset = false; seekTo(getCurrentVideoData().startSeconds, true); } var _local3 = getViewportRect(); setViewportSize(_local3.x, _local3.y, _local3.width, _local3.height); broadcast({type:com.google.youtube.event.VideoPlayerEvent.META_LOAD, data:evt.data, target:this}); } function onVideoLoaderStateChange(evt) { var _local3 = getPlayState(); switch (evt.type) { case com.google.youtube.event.VideoLoaderEvent.SEEKING : if (_local3 != SEEKING) { captureStill(); setPlayState(SEEKING); setPreloaderVisibility(true); broadcast({type:com.google.youtube.event.VideoPlayerEvent.SEEKING, target:this}); } break; case com.google.youtube.event.VideoLoaderEvent.PLAY : if (getPlayState() != PLAYING) { setPlayState(PLAYING); setPreloaderVisibility(false); if (_local3 == SEEKING) { releaseStill(); broadcast({type:com.google.youtube.event.VideoPlayerEvent.SEEK, target:this}); } else { broadcast({type:com.google.youtube.event.VideoPlayerEvent.PLAY, target:this}); } } break; case com.google.youtube.event.VideoLoaderEvent.BUFFERING : if (getPlayState() != BUFFERING) { setPlayState(BUFFERING); setPreloaderVisibility(getPlaybackState() != PAUSED); broadcast({type:com.google.youtube.event.VideoPlayerEvent.BUFFERING, target:this}); } break; case com.google.youtube.event.VideoLoaderEvent.PAUSE : setPlayState(PAUSED); setPreloaderVisibility(false); if (_local3 == SEEKING) { releaseStill(); broadcast({type:com.google.youtube.event.VideoPlayerEvent.SEEK, target:this}); } else { broadcast({type:com.google.youtube.event.VideoPlayerEvent.PAUSE, target:this}); } break; case com.google.youtube.event.VideoLoaderEvent.END : setPlayState(ENDED); setPreloaderVisibility(false); getCurrentVideoData().startingFromOffset = false; broadcast({type:com.google.youtube.event.VideoPlayerEvent.END, target:this}); } } function getCurrentVideoData() { return(cuedVideoData || (videoLoader.getCurrentVideoData())); } function getCuedVideoData() { return(cuedVideoData); } function getVideoUrl() { var _local2 = getCurrentVideoData(); var _local3 = _local2.getVideoWatchUrl(configData); var _local4 = Math.round(getCurrentTime()); if (_local4 && ((_local4 > 10) && ((_local2.duration - _local4) > 10))) { _local3 = _local3 + ("#at=" + _local4); } return(_local3); } function setPreloaderVisibility(visible) { if (visible) { preloader = attachMovie("preloader", "preloader", PRELOADER_DEPTH); preloader._xscale = (preloader._yscale = 200); var _local3 = getDisplayRect(); preloader._x = _local3.x + (_local3.width / 2); preloader._y = _local3.y + (_local3.height / 2); } else { preloader.removeMovieClip(); still.holder.unloadMovie(); } } function captureStill() { releaseStill(); alternateDisplay = videoDisplay; alternateDisplay.video.attachVideo(null); displayIndex = 1 - displayIndex; videoDisplay = alternateDisplay.duplicateMovieClip("videoDisplay" + displayIndex, VIDEO_DISPLAY_DEPTH + displayIndex); videoDisplay._visible = false; setNetStream(videoLoader.getNetStream()); } function releaseStill() { videoDisplay._visible = true; alternateDisplay.removeMovieClip(); } function onVideoDisplayRelease() { broadcast({type:com.google.youtube.event.GenericButtonEvent.RELEASE, target:this}); } function getVideoEmbedCode() { return(getCurrentVideoData().getEmbedHtml(configData)); } function onStreamNotFound(evt) { setPreloaderVisibility(false); broadcast(evt); } function onVideoDataError(evt) { setPreloaderVisibility(false); broadcast(evt); } function setNetStream(ns) { videoDisplay.video.attachVideo(ns); } function setSmoothing(enable) { videoDisplay.video.smoothing = enable; } function build(soundController) { still = createEmptyMovieClip("still", STILL_DEPTH); stillMask = createEmptyMovieClip("mask", STILL_MASK_DEPTH); com.google.youtube.util.Drawing.drawRect(stillMask, 0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT, 6684672); still.setMask(stillMask); videoLoader = new com.google.youtube.players.VideoLoader(configData, soundController); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.PLAY, com.google.chianti.event.EventDelegate.create(this, onVideoLoaderStateChange)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.PAUSE, com.google.chianti.event.EventDelegate.create(this, onVideoLoaderStateChange)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.BUFFERING, com.google.chianti.event.EventDelegate.create(this, onVideoLoaderStateChange)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.SEEKING, com.google.chianti.event.EventDelegate.create(this, onVideoLoaderStateChange)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.NET_STREAM_STATUS, com.google.chianti.event.EventDelegate.create(this, onVideoLoaderStateChange)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.END, com.google.chianti.event.EventDelegate.create(this, onVideoLoaderStateChange)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.PROGRESS, com.google.chianti.event.EventDelegate.create(this, onProgress)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.BYTES_LOADED, com.google.chianti.event.EventDelegate.create(this, onBytesLoaded)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.META_LOAD, com.google.chianti.event.EventDelegate.create(this, onMetaLoaded)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.LOAD_NEW_VIDEO, com.google.chianti.event.EventDelegate.create(this, onLoadNewVideo)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.UNLOAD_VIDEO, com.google.chianti.event.EventDelegate.create(this, onUnloadVideo)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.STREAM_NOT_FOUND, com.google.chianti.event.EventDelegate.create(this, onStreamNotFound)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.VIDEO_DATA_ERROR, com.google.chianti.event.EventDelegate.create(this, onVideoDataError)); videoLoader.registerEvent(com.google.youtube.event.VideoLoaderEvent.VIDEO_DATA_LOADED, com.google.chianti.event.EventDelegate.create(this, broadcast)); videoDisplayBg = createEmptyMovieClip("videoDisplayBg", VIDEO_DISPLAY_BG_DEPTH); clearBackground(0); videoDisplay = attachMovie("VideoDisplay", "videoDisplay", VIDEO_DISPLAY_DEPTH); videoDisplayButton = createEmptyMovieClip("videoDisplayButton", DISPLAY_BUTTON_DEPTH); com.google.youtube.util.Drawing.drawRect(videoDisplayButton, 0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT, 16711680); videoDisplayButton.onRelease = com.google.chianti.event.EventDelegate.create(this, onVideoDisplayRelease); videoDisplayButton._alpha = 0; moduleDisplay = createEmptyMovieClip("moduleDisplay", MODULE_DISPLAY_DEPTH); topmostModuleDisplay = createEmptyMovieClip("topmostModuleDisplay", TOPMOST_MODULE_DISPLAY_DEPTH); errorDisplay = createEmptyMovieClip("errorDisplay", ERROR_DISPLAY_DEPTH); var _local3 = errorDisplay.createEmptyMovieClip("bg", 1); com.google.youtube.util.Drawing.drawRect(_local3, 0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT, 0); _local3._alpha = 90; var _local4 = new TextFormat(); _local4.color = 16777215 /* 0xFFFFFF */; _local4.size = 15; _local4.font = "_sans"; _local4.align = "center"; errorDisplay.createTextField("error_txt", errorDisplay.getNextHighestDepth(), 0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT); error_txt = errorDisplay.error_txt; error_txt.multiline = true; error_txt.wordWrap = true; error_txt.html = true; error_txt.setNewTextFormat(_local4); errorDisplay._visible = false; } function clearBackground(bgcolor) { com.google.youtube.util.Drawing.drawRect(videoDisplayBg, 0, 0, com.google.youtube.players.VideoLoader.DEFAULT_VIDEO_WIDTH, com.google.youtube.players.VideoLoader.DEFAULT_VIDEO_HEIGHT, bgcolor); } function disableVideoDisplayButton() { delete videoDisplayButton.onRelease; } function getModuleDisplay() { return(moduleDisplay); } function getTopmostModuleDisplay() { return(topmostModuleDisplay); } static var LINK_NAME = "__Packages.com.google.youtube.players.VideoPlayer"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.VideoPlayer); static var DEFAULT_WIDTH = 480; static var DEFAULT_HEIGHT = 360; static var DEFAULT_UI_WIDTH = 300; static var DEFAULT_UI_HEIGHT = 225; static var MENU_TRANSITION_SPEED = 0.5; static var UNSTARTED = -1; static var ENDED = 0; static var PLAYING = 1; static var PAUSED = 2; static var BUFFERING = 3; static var SEEKING = 4; static var VIDEO_CUED = 5; static var VIDEO_DISPLAY_BG_DEPTH = 10; static var STILL_DEPTH = 20; static var STILL_MASK_DEPTH = 21; static var VIDEO_DISPLAY_DEPTH = 30; static var DISPLAY_BUTTON_DEPTH = 40; static var MODULE_DISPLAY_DEPTH = 50; static var PLAY_PAUSE_BEVEL_DEPTH = 55; static var ERROR_DISPLAY_DEPTH = 60; static var END_SCREEN_DEPTH = 70; static var TOPMOST_MODULE_DISPLAY_DEPTH = 90; static var PRELOADER_DEPTH = 100; static var LARGE_PLAY_BUTTON_DEPTH = 110; static var STILL_ASPECT_RATIO = 4 / 3; static var BLACK_BAR_FUDGE_PIXELS = 2; static var ERROR_MARGIN = 60; var recoverableErrorActive = false; var displayIndex = 0; }
Symbol 20517 MovieClip [__Packages.com.google.youtube.data.XMLDataNode] Frame 0
class com.google.youtube.data.XMLDataNode extends com.google.youtube.AbstractBroadcaster { var ASSetPropFlags, _value; function XMLDataNode () { super(); } function get length() { if (!lengthSet) { lengthSet = true; this[0] = {}; for (var p in this) { this[0][p] = this[p]; } _length = 1; ASSetPropFlags(this, ["_length", 0, "lengthSet"], 1); } return(_length); } function toString() { return(_value); } var _length = 0; var lengthSet = false; }
Symbol 20518 MovieClip [__Packages.com.google.youtube.players.modules.ModuleDescriptor] Frame 0
class com.google.youtube.players.modules.ModuleDescriptor extends com.google.youtube.AbstractBroadcaster { var path, enabled, instance, broadcast; function ModuleDescriptor () { super(); } function getPath() { return(path); } function setEnabled(isEnabled) { enabled = isEnabled; } function isEnabled() { return(enabled); } function getLoggingOptions() { if (instance && (instance.getLoggingOptions)) { return(instance.getLoggingOptions()); } return({}); } function notify() { broadcast({target:this, type:com.google.youtube.event.DataEvent.SET}); } }
Symbol 20519 MovieClip [__Packages.com.google.youtube.players.modules.KaraokeModuleDescriptor] Frame 0
class com.google.youtube.players.modules.KaraokeModuleDescriptor extends com.google.youtube.players.modules.ModuleDescriptor { var loadPolicy, isTopmost, label, path, locale, moduleDepth; function KaraokeModuleDescriptor () { super(); loadPolicy = com.google.youtube.players.modules.ModuleLoadPolicy.MODULE_LOAD_ALWAYS; isTopmost = false; label = "karaoke_module"; path = "http://www.youtube.com/swf/subtitle_module.swf"; locale = "en"; moduleDepth = 90; } }
Symbol 20520 MovieClip [__Packages.com.google.chianti.event.EventDelegate] Frame 0
class com.google.chianti.event.EventDelegate extends Object { function EventDelegate () { super(); } static function create(scope, handler, data) { var _local2 = function () { if (data != undefined) { arguments.push(data); } return(handler.apply(scope, arguments)); }; _local2.scope = scope; return(_local2); } }
Symbol 20521 MovieClip [__Packages.com.google.youtube.players.modules.ISubmenuObservable] Frame 0
class com.google.youtube.players.modules.ISubmenuObservable { function ISubmenuObservable () { } }
Symbol 20522 MovieClip [__Packages.com.google.utils.DownloadTimer] Frame 0
class com.google.utils.DownloadTimer { var startBytes, endBytes, startTime, endTime, firstSample; function DownloadTimer (curBytes, curTime) { resetEstimator(curBytes, curTime); } function clearHistory() { startBytes = endBytes; startTime = endTime; } function resetEstimator(curBytes, curTime) { startBytes = (endBytes = curBytes); startTime = (endTime = curTime); firstSample = true; } function addData(curBytes, curTime) { if (curBytes < endBytes) { resetEstimator(curBytes, curTime); } else if (curBytes > endBytes) { endBytes = curBytes; endTime = curTime; if (firstSample) { clearHistory(); firstSample = false; } } } function getDuration() { return(endTime - startTime); } function getSize() { return(endBytes - startBytes); } }
Symbol 20523 MovieClip [__Packages.com.google.utils.StringUtils] Frame 0
class com.google.utils.StringUtils { function StringUtils () { } static function beginsWith(str, beginning) { if ((str == undefined) || ((str == null) || ((!str.length) || ((beginning == undefined) || ((beginning == null) || ((!beginning.length) || (str.length < beginning.length))))))) { return(false); } var _local4 = 0; for ( ; _local4 < beginning.length ; _local4++) { if (str.charAt(_local4) != beginning.charAt(_local4)) { return(false); } } return(true); } static function endsWith(str, ending) { if ((str == undefined) || ((str == null) || ((!str.length) || ((ending == undefined) || ((ending == null) || ((!ending.length) || (str.length < ending.length))))))) { return(false); } return(str.lastIndexOf(ending) == (str.length - ending.length)); } static function FormatTime(time, opt_skipZeros) { time = Math.floor(time); var _local4 = time % 60; var _local5 = Math.floor((time / 60) % 60); var _local6 = Math.floor(time / 3600); var _local7 = ""; if (_local6 > 0) { _local7 = _local7 + (_local6 + ":"); } if ((_local5 < 10) && ((_local6 > 0) || (!opt_skipZeros))) { _local7 = _local7 + "0"; } _local7 = _local7 + (_local5 + ":"); if (_local4 < 10) { _local7 = _local7 + "0"; } _local7 = _local7 + String(_local4); return(_local7); } static function trim(str) { if ((str == undefined) || (str == null)) { return(str); } var _local3 = " \t\n\r"; var _local4 = 0; // unexpected jump do { _local4++; if (_local4 >= str.length) { break; } } while (_local3.indexOf(str.charAt(_local4)) >= 0); var _local5 = str.length - 1; // unexpected jump do { _local5--; if (_local5 < _local4) { break; } } while (_local3.indexOf(str.charAt(_local5)) >= 0); if (_local4 > _local5) { return(""); } return(str.substring(_local4, _local5 + 1)); } static function truncate(str, num) { if (str.length <= num) { return(str); } return(str.substr(0, num - 3) + "..."); } static function replace(str, pat, rep) { if ((str == undefined) || ((pat == undefined) || (pat == ""))) { return(str); } if (rep == undefined) { rep = ""; } return(str.split(pat).join(rep)); } static function isEmpty(str) { return((str == null) || ((str == undefined) || (str == ""))); } static function isAlphaNumeric(ascii) { return(((ascii > 64) && (ascii < 91)) || (((ascii > 96) && (ascii < 123)) || ((ascii > 47) && (ascii < 58)))); } static function xmlDecode(str) { str = replace(str, "&amp;", "&"); str = replace(str, "&quot;", "\""); str = replace(str, "&apos;", "'"); str = replace(str, "&gt;", ">"); str = replace(str, "&lt;", "<"); return(str); } static function parseTime(str) { var _local3 = parseColonTime(str); if (_global.isNaN(_local3)) { _local3 = parseEnglishTime(str); } return(_local3); } static function parseColonTime(str) { var _local3 = str.split(":"); if ((!_local3) || ((!_local3.length) || (_local3.length > 3))) { return(_global.NaN); } var _local4 = ((_global.parseFloat(_local3[0] + "1") < 0) ? -1 : 1); var _local5 = _local3.length; var _local6 = Math.max(0, _local3.length - 1); var _local7 = Math.max(0, _local3.length - 2); var _local8 = Math.abs(_global.parseFloat(_local3[_local5 - 1])); if (_local6) { _local8 = _local8 + (Math.abs(_global.parseInt(_local3[_local6 - 1])) * 60); } if (_local7) { _local8 = _local8 + (Math.abs(_global.parseInt(_local3[_local7 - 1])) * 3600); } return(_local4 * _local8); } static function parseEnglishTime(str) { var _local3 = 0; if (str.indexOf("h") != -1) { var _local4 = str.split("h"); if (!_local5) { var _local5 = ((_global.parseFloat(_local4[0] + "1") < 0) ? -1 : 1); } _local3 = _local3 + (Math.abs(_global.parseInt(_local4[0])) * 3600); str = _local4[1]; } if (str.indexOf("m") != -1) { var _local4 = str.split("m"); if (!_local5) { var _local5 = ((_global.parseFloat(_local4[0] + "1") < 0) ? -1 : 1); } _local3 = _local3 + (Math.abs(_global.parseInt(_local4[0])) * 60); str = _local4[1]; } if (str.indexOf("s") != -1) { var _local4 = str.split("s"); if (!_local5) { var _local5 = ((_global.parseFloat(_local4[0] + "1") < 0) ? -1 : 1); } _local3 = _local3 + Math.abs(_global.parseFloat(_local4[0])); } if (!_local3) { return(_global.parseFloat(str)); } return(_local5 * _local3); } }
Symbol 20524 MovieClip [__Packages.com.google.youtube.players.ui.NextPanelButton] Frame 0
class com.google.youtube.players.ui.NextPanelButton extends com.google.youtube.ui.BaseButton { var messages, fromKey, viewsKey, featuredKey, videoData, thumbnailCarousel, starsMask, fadeMc, starsOutline, bgUp, wipeMc, bgOver, broadcast, title_txt, fromLabel_txt, viewsLabel_txt, featured_txt, revealableMc, from_txt, views_txt, bgFadeBitmapHolder, canvas, createEmptyMovieClip, getNextHighestDepth, _accProps; function NextPanelButton () { super(); build(); } function init(messagesObj, from, views, featured) { messages = messagesObj; fromKey = from; viewsKey = views; featuredKey = featured; buildTextElements(); } function setData(suggestedData) { videoData = suggestedData; setText(); thumbnailCarousel.setData(videoData.getThumbnailUrls(), videoData.duration); starsMask._xscale = 1; } function drawStars() { var _local2 = fadeMc.createEmptyMovieClip("stars", fadeMc.getNextHighestDepth()); starsMask = fadeMc.createEmptyMovieClip("starsMask", fadeMc.getNextHighestDepth()); starsOutline = fadeMc.createEmptyMovieClip("starsOutline", fadeMc.getNextHighestDepth()); var _local3 = {thickness:1, rgb:10354688, alpha:90}; var _local4 = 5; var _local5 = 0; for ( ; _local5 < _local4 ; _local5++) { var _local6 = _local2.createEmptyMovieClip("star" + _local5, _local2.getNextHighestDepth()); var _local7 = starsOutline.createEmptyMovieClip("outline" + _local5, starsOutline.getNextHighestDepth()); com.google.youtube.util.Drawing.drawStar(_local6, 0, 0, 15871277, null, 5, STAR_INNER_RADIUS, STAR_OUTER_RADIUS); com.google.youtube.util.Drawing.drawStar(_local7, 0, 0, {color:16777215, alpha:0}, _local3, 5, STAR_INNER_RADIUS, STAR_OUTER_RADIUS); _local6._x = (_local7._x = STARS_X + ((_local5 * (STAR_OUTER_RADIUS + 1)) * 2)); _local6._y = (_local7._y = STARS_Y); } com.google.youtube.util.Drawing.drawRect(starsMask, 0, STARS_Y - STAR_OUTER_RADIUS, _local2._width, _local2._height, 16777215, _local3); _local2.setMask(starsMask); starsMask._xscale = 1; starsMask._x = STARS_X - STAR_OUTER_RADIUS; } function drawBgUpState() { var _local2 = {thickness:0, rgb:6710886, alpha:85}; bgUp.clear(); com.google.youtube.util.Drawing.drawRect(bgUp, 0.5, 0, BACKGROUND_WIDTH + 1, BACKGROUND_HEIGHT + 1, null, _local2, 5); var _local3 = {thickness:0, rgb:15658734, alpha:25}; com.google.youtube.util.Drawing.drawRect(bgUp, 0.5, 0, BACKGROUND_WIDTH, BACKGROUND_HEIGHT, BACKGROUND_FILL, _local3, 5); com.google.youtube.util.Drawing.drawRect(wipeMc, 0.5, 0, BACKGROUND_WIDTH, BACKGROUND_HEIGHT, 16711680, null, 5); } function drawBgOverState() { bgOver.clear(); com.google.youtube.util.Drawing.drawRect(bgOver, 0.5, 0, BACKGROUND_WIDTH, BACKGROUND_HEIGHT, BACKGROUND_FILL, null, 5); } function hover() { bgOver._visible = true; thumbnailCarousel.start(); broadcast({target:this, type:com.google.youtube.event.GenericButtonEvent.ROLL_OVER}); } function unhover() { bgOver._visible = false; thumbnailCarousel.stop(); broadcast({target:this, type:com.google.youtube.event.GenericButtonEvent.ROLL_OUT}); } function hideText() { title_txt._visible = false; fromLabel_txt._visible = false; viewsLabel_txt._visible = false; featured_txt._visible = false; wipeMc._x = -wipeMc._width; revealableMc._visible = false; hideCanvas(); } function showText() { } function setText(newText) { var _local3 = com.google.youtube.util.StringUtil.ellipsis(videoData.title, title_txt); title_txt.text = (fadeMc.title_txt.text = _local3); fromLabel_txt.text = messages.getMsg(fromKey); from_txt.text = (fadeMc.from_txt.text = videoData.author); viewsLabel_txt.text = messages.getMsg(viewsKey); views_txt.text = (fadeMc.views_txt.text = videoData.viewCount.toString()); featured_txt.text = messages.getMsg(featuredKey); } function buildTextElements() { revealableMc.createTextField("title_txt", revealableMc.getNextHighestDepth(), TEXT_X, INNER_PADDING - 2, (BACKGROUND_WIDTH - TEXT_X) + LEFT_MARGIN, LEADING * 2); title_txt = revealableMc.title_txt; title_txt.selectable = false; title_txt.multiline = true; title_txt.wordWrap = true; fadeMc.createTextField("title_txt", fadeMc.getNextHighestDepth(), TEXT_X - LEFT_MARGIN, INNER_PADDING - 2, (BACKGROUND_WIDTH - TEXT_X) + LEFT_MARGIN, LEADING * 2); fadeMc.title_txt.selectable = false; fadeMc.title_txt.multiline = true; fadeMc.title_txt.wordWrap = true; fadeMc.createTextField("fromLabel_txt", fadeMc.getNextHighestDepth(), TEXT_X - LEFT_MARGIN, LEADING * 2, BACKGROUND_WIDTH - TEXT_X, LEADING); fromLabel_txt = fadeMc.fromLabel_txt; fromLabel_txt.selectable = false; fromLabel_txt.autoSize = true; revealableMc.createTextField("from_txt", revealableMc.getNextHighestDepth(), TEXT_X + 50, LEADING * 2, BACKGROUND_WIDTH - TEXT_X, LEADING); from_txt = revealableMc.from_txt; from_txt.selectable = false; fadeMc.createTextField("from_txt", fadeMc.getNextHighestDepth(), (TEXT_X + 50) - LEFT_MARGIN, LEADING * 2, BACKGROUND_WIDTH - TEXT_X, LEADING); fadeMc.from_txt.selectable = false; fadeMc.from_txt._visible = false; fadeMc.createTextField("viewsLabel_txt", fadeMc.getNextHighestDepth(), TEXT_X - LEFT_MARGIN, LEADING * 3, BACKGROUND_WIDTH - TEXT_X, LEADING); viewsLabel_txt = fadeMc.viewsLabel_txt; viewsLabel_txt.selectable = false; viewsLabel_txt.autoSize = true; revealableMc.createTextField("views_txt", revealableMc.getNextHighestDepth(), TEXT_X + 50, LEADING * 3, BACKGROUND_WIDTH - TEXT_X, LEADING); views_txt = revealableMc.views_txt; views_txt.selectable = false; fadeMc.createTextField("views_txt", fadeMc.getNextHighestDepth(), (TEXT_X - LEFT_MARGIN) + 50, LEADING * 3, BACKGROUND_WIDTH - TEXT_X, LEADING); fadeMc.views_txt.selectable = false; fadeMc.views_txt._visible = false; revealableMc.createTextField("featured_txt", revealableMc.getNextHighestDepth(), TEXT_X - LEFT_MARGIN, LEADING * 3, (BACKGROUND_WIDTH - TEXT_X) + (LEFT_MARGIN * 2), LEADING); featured_txt = revealableMc.featured_txt; featured_txt.selectable = false; var _local2 = new TextFormat(); _local2.size = 13; _local2.color = 4473924 /* 0x444444 */; _local2.font = "Arial,sans-serif"; _local2.align = "right"; featured_txt.setNewTextFormat(_local2); _local2.align = "left"; from_txt.setNewTextFormat(_local2); fadeMc.from_txt.setNewTextFormat(_local2); views_txt.setNewTextFormat(_local2); fadeMc.views_txt.setNewTextFormat(_local2); _local2.bold = true; title_txt.setNewTextFormat(_local2); fadeMc.title_txt.setNewTextFormat(_local2); fromLabel_txt.setNewTextFormat(_local2); viewsLabel_txt.setNewTextFormat(_local2); } function wipeOn(wipeDuration_opt) { views_txt._x = ((viewsLabel_txt._x + viewsLabel_txt.textWidth) + LABEL_SPACE) + LEFT_MARGIN; fadeMc.views_txt._x = (viewsLabel_txt._x + viewsLabel_txt.textWidth) + LABEL_SPACE; from_txt._x = ((fromLabel_txt._x + fromLabel_txt.textWidth) + LABEL_SPACE) + LEFT_MARGIN; fadeMc.from_txt._x = (fromLabel_txt._x + fromLabel_txt.textWidth) + LABEL_SPACE; revealableMc._visible = true; bgFadeBitmapHolder.unloadMovie(); canvas._alpha = 100; canvas._visible = true; wipeMc._x = -wipeMc._width; viewsLabel_txt._visible = true; fromLabel_txt._visible = true; title_txt._visible = true; from_txt._visible = true; views_txt._visible = true; thumbnailCarousel.showText(); var _local3 = (wipeDuration_opt ? (wipeDuration_opt) : 1.8); com.gs.TweenLite.to(wipeMc, _local3, {_x:LEFT_MARGIN}); starsOutline._visible = false; starsMask._visible = false; featured_txt._visible = false; if (videoData.featuredVideo) { featured_txt._visible = true; } else if (videoData.rating) { starsOutline._visible = true; starsMask._visible = true; com.gs.TweenLite.to(starsMask, _local3, {_xscale:100 * (videoData.rating / 5)}); } } function fadeOff() { fadeMc.title_txt._visible = true; fadeMc.duration_txt._visible = true; fadeMc.title_txt._visible = true; fadeMc.from_txt._visible = true; fadeMc.views_txt._visible = true; fadeMc.title_txt._visible = false; fadeMc.duration_txt._visible = false; fadeMc.title_txt._visible = false; fadeMc.from_txt._visible = false; fadeMc.fromLabel_txt._visible = false; fadeMc.views_txt._visible = false; title_txt._visible = false; fromLabel_txt._visible = false; from_txt._visible = false; viewsLabel_txt._visible = false; views_txt._visible = false; featured_txt._visible = false; thumbnailCarousel.hideText(); bgFadeBitmapHolder._visible = true; com.gs.TweenLite.to(canvas, 0.8, {_alpha:0, onComplete:com.google.chianti.event.EventDelegate.create(this, hideCanvas)}); } function onDragOver() { onRollOver(); } function onDragOut() { onRollOut(); } function onRelease() { if (videoData.url.length) { broadcast({target:this, type:com.google.youtube.event.PlaylistEvent.CLIP_SELECTED, data:videoData}); } drawBgUpState(); } function onReleaseOutside() { unhover(); drawBgUpState(); } function onRollOver() { hover(); } function onRollOut() { unhover(); } function hideCanvas() { canvas._visible = false; } function getRect() { return(new com.google.geom.Rect(0, 0, BACKGROUND_WIDTH + (LEFT_MARGIN * 2), BACKGROUND_HEIGHT)); } function build() { canvas = createEmptyMovieClip("canvas", getNextHighestDepth()); canvas._visible = false; bgUp = canvas.createEmptyMovieClip("bgUp", canvas.getNextHighestDepth()); bgUp._x = LEFT_MARGIN; bgOver = canvas.createEmptyMovieClip("bgOver", canvas.getNextHighestDepth()); bgOver._x = LEFT_MARGIN; thumbnailCarousel = com.google.youtube.players.ui.ThumbnailCarousel(canvas.attachMovie(com.google.youtube.players.ui.ThumbnailCarousel.LINK_NAME, "thumbnailCarousel", canvas.getNextHighestDepth())); thumbnailCarousel.init(THUMB_WIDTH, THUMB_HEIGHT, CAROUSEL_TRANSITION_DURATION, CAROUSEL_PERIOD); thumbnailCarousel._x = LEFT_MARGIN + INNER_PADDING; thumbnailCarousel._y = INNER_PADDING; var _local2 = canvas.createEmptyMovieClip("thumbMask", canvas.getNextHighestDepth()); _local2._x = LEFT_MARGIN + INNER_PADDING; _local2._y = INNER_PADDING; com.google.youtube.util.Drawing.drawRect(_local2, 0, 0, THUMB_WIDTH, THUMB_HEIGHT, 0, undefined, 5); thumbnailCarousel.setMask(_local2); revealableMc = canvas.createEmptyMovieClip("revealableMc", canvas.getNextHighestDepth()); wipeMc = canvas.createEmptyMovieClip("wipeMc", canvas.getNextHighestDepth()); fadeMc = canvas.createEmptyMovieClip("fadeMc", canvas.getNextHighestDepth()); fadeMc._x = LEFT_MARGIN; bgFadeBitmapHolder = fadeMc.createEmptyMovieClip("bgFadeBitmapHolder", fadeMc.getNextHighestDepth()); revealableMc.setMask(wipeMc); drawStars(); drawBgUpState(); drawBgOverState(); unhover(); _accProps = {name:"Related Video"}; } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.NextPanelButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.NextPanelButton); static var BACKGROUND_HEIGHT = 83; static var BACKGROUND_WIDTH = 387; static var BACKGROUND_X = 83; static var LABEL_SPACE = 5; static var LEADING = 20; static var LEFT_MARGIN = 42; static var INNER_PADDING = 6; static var BACKGROUND_FILL = {colors:[15856113, 12895428], fillType:"linear", alphas:[85, 85], ratios:[0, 255], matrix:{matrixType:"box", x:0, y:0, w:BACKGROUND_WIDTH, h:BACKGROUND_HEIGHT, r:Math.PI / 2}}; static var STAR_INNER_RADIUS = 2.5; static var STAR_OUTER_RADIUS = 6.5; static var STARS_X = 315; static var STARS_Y = 71; static var TEXT_X = 146; static var THUMB_HEIGHT = 70; static var THUMB_WIDTH = 93; static var CAROUSEL_TRANSITION_DURATION = 1000; static var CAROUSEL_PERIOD = 3000; }
Symbol 20525 MovieClip [__Packages.com.google.youtube.players.ui.FullscreenButton] Frame 0
class com.google.youtube.players.ui.FullscreenButton extends com.google.youtube.ui.BaseVideoControlButton { var buttonWidth, iconAnimating, onBuilt, hit, currentState, activeIcon, activeIconBg, inactiveIconBg, inactiveIcon, createEmptyMovieClip, getNextHighestDepth; function FullscreenButton () { super(); buttonWidth = 32; iconAnimating = false; } function init(c1, c2) { super.init(c1, c2); build(); onBuilt(); hit._accProps = {name:"Fullscreen"}; } function getMinRequiredControlsWidth() { return(240); } function setState(newState) { currentState = newState; updateIcons(); } function updateIcons() { if (currentState == com.google.youtube.ui.BaseVideoControlButton.ACTIVE) { activeIcon._visible = true; activeIconBg._visible = true; inactiveIconBg._visible = false; inactiveIcon._visible = false; } else if (currentState == com.google.youtube.ui.BaseVideoControlButton.INACTIVE) { activeIcon._visible = false; activeIconBg._visible = false; inactiveIconBg._visible = true; inactiveIcon._visible = true; } } function hover() { super.hover(); drawInactiveIcon(true); drawActiveIcon(true); startIconAnimation(); } function unhover() { super.unhover(); drawInactiveIcon(); drawActiveIcon(); stopIconAnimation(); } function drawActiveIcon(drawHoverState) { var _local3 = (drawHoverState ? 16724787 : 9737364); var _local4 = (drawHoverState ? 12193808 : 4276545); var _local5 = (drawHoverState ? 12193808 : 3355443); var _local6 = {colors:[_local3, _local4], fillType:"linear", alphas:[100, 100], ratios:[100, 255], matrix:{matrixType:"box", x:0, y:0, w:ICON_BG_WIDTH, h:ICON_BG_HEIGHT, r:(90 / 180) * Math.PI}}; var _local7 = {thickness:0, alpha:70, rgb:_local5}; com.google.youtube.util.Drawing.drawRect(activeIconBg, 0, 0, ICON_BG_WIDTH, ICON_BG_HEIGHT, _local6, _local7, 2); } function drawInactiveIcon(drawHoverState) { var _local3 = (drawHoverState ? 12456466 : 3750201); var _local4 = (drawHoverState ? 16068142 : 9145227); var _local5 = (drawHoverState ? 12193808 : 3355443); var _local6 = {colors:[_local3, _local4], fillType:"linear", alphas:[100, 100], ratios:[100, 255], matrix:{matrixType:"box", x:0, y:0, w:ICON_BG_WIDTH, h:ICON_BG_HEIGHT, r:(90 / 180) * Math.PI}}; var _local7 = {thickness:0, alpha:70, rgb:_local5}; var _local8 = (drawHoverState ? 16425120 : 12698049); var _local9 = (drawHoverState ? 16146014 : 10855845); var _local10 = {colors:[_local8, _local9], fillType:"linear", alphas:[100, 100], ratios:[100, 255], matrix:{matrixType:"box", x:0, y:0, w:ICON_ANIMATION_OFF_WIDTH, h:ICON_ANIMATION_OFF_HEIGHT, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawRect(inactiveIconBg, 0, 0, ICON_BG_WIDTH, ICON_BG_HEIGHT, _local6, _local7, 2); com.google.youtube.util.Drawing.drawRect(inactiveIcon, 0, 0, ICON_ANIMATION_OFF_WIDTH, ICON_ANIMATION_OFF_HEIGHT, _local10, _local7, 2); } function stopIconAnimation() { iconAnimating = false; } function startIconAnimation() { iconAnimating = true; animateIcon(); } function animateIcon() { if (iconAnimating) { com.gs.TweenLite.to(inactiveIcon, 0.4, {_width:ICON_ANIMATION_ON_WIDTH, _height:ICON_ANIMATION_ON_HEIGHT}); com.gs.TweenLite.to(inactiveIcon, 0.15, {_width:ICON_ANIMATION_OFF_WIDTH, _height:ICON_ANIMATION_OFF_HEIGHT, delay:0.7, onComplete:com.google.chianti.event.EventDelegate.create(this, animateIcon), overwrite:false}); } else { com.gs.TweenLite.to(inactiveIcon, 0.2, {_width:ICON_ANIMATION_OFF_WIDTH, _height:ICON_ANIMATION_OFF_HEIGHT}); } } function build() { super.build(); inactiveIconBg = createEmptyMovieClip("inactiveIconBg", getNextHighestDepth()); inactiveIcon = createEmptyMovieClip("inactiveIcon", getNextHighestDepth()); activeIconBg = createEmptyMovieClip("activeIconBg", getNextHighestDepth()); activeIcon = createEmptyMovieClip("activeIcon", getNextHighestDepth()); activeIcon._alpha = 90; inactiveIcon._x = (inactiveIconBg._x = (activeIconBg._x = 6.5)); inactiveIcon._y = (inactiveIconBg._y = (activeIconBg._y = 4.5)); com.google.youtube.util.Drawing.drawX(activeIcon, 12, 6, 10, 2, 15724527); drawActiveIcon(); drawInactiveIcon(); updateIcons(); setState(com.google.youtube.ui.BaseVideoControlButton.INACTIVE); unhover(); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.FullscreenButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.FullscreenButton); static var ICON_BG_WIDTH = 20; static var ICON_BG_HEIGHT = 13; static var ICON_ANIMATION_OFF_WIDTH = 11; static var ICON_ANIMATION_OFF_HEIGHT = 7; static var ICON_ANIMATION_ON_WIDTH = 20; static var ICON_ANIMATION_ON_HEIGHT = 13; }
Symbol 20526 MovieClip [__Packages.com.google.youtube.event.MessagesEvent] Frame 0
class com.google.youtube.event.MessagesEvent { function MessagesEvent () { } static var UPDATE = "onUpdate"; }
Symbol 20527 MovieClip [__Packages.com.google.utils.UrlConstructor] Frame 0
class com.google.utils.UrlConstructor { var baseUrl_, hasParameter_; function UrlConstructor (baseUrl) { baseUrl_ = baseUrl; hasParameter_ = true; if (baseUrl_.indexOf("?") < 0) { hasParameter_ = false; baseUrl_ = baseUrl_ + "?"; } } function addGlobalParameters(args) { baseUrl_ = makeUrl(args); hasParameter_ = true; } function get url() { return(baseUrl_); } function makeUrl(args) { var _local3 = baseUrl_; var _local4 = hasParameter_; for (var key in args) { if (_local4) { _local3 = _local3 + "&"; } _local3 = _local3 + ((key + "=") + args[key]); _local4 = true; } return(_local3); } }
Symbol 20528 MovieClip [__Packages.com.google.youtube.players.ui.IconMenuButton] Frame 0
class com.google.youtube.players.ui.IconMenuButton extends com.google.youtube.ui.CompoundButton { var buttonHeight, descriptor, state, paddingWidth, buttonWidth, tooltip, useHandCursor, errorIcon, upIcon, overIcon, icon, createEmptyMovieClip, getNextHighestDepth, upIconSymbol, overIconSymbol; function IconMenuButton () { super(); buttonHeight = 22; } function init(moduleDescriptor, newPaddingWidth) { if (descriptor) { descriptor.unregisterEvent(com.google.youtube.event.DataEvent.SET, com.google.chianti.event.EventDelegate.create(this, onDescriptorChange)); } descriptor = moduleDescriptor; descriptor.registerEvent(com.google.youtube.event.DataEvent.SET, com.google.chianti.event.EventDelegate.create(this, onDescriptorChange)); state = com.google.youtube.players.modules.ModuleStatus.NOT_LOADED; paddingWidth = newPaddingWidth; buttonWidth = com.google.youtube.ui.BaseButton.DEFAULT_BUTTON_WIDTH + paddingWidth; tooltip = com.google.youtube.players.ui.Tooltip.createTooltip(this, com.google.youtube.util.Drawing.RIGHT); build(); refreshState(); } function getSize() { return({width:buttonWidth, height:buttonHeight}); } function hover() { super.hover(); refreshTooltipState(); tooltip.showTooltip(); } function unhover() { super.unhover(); tooltip.hideTooltip(); } function onDescriptorChange(evt) { refreshState(); } function refreshState() { setState(descriptor.getStatus()); } function release() { descriptor.onRelease(); } function setState(newState) { state = newState; refreshTooltipState(); drawState(); } function refreshTooltipState() { if ((state == com.google.youtube.players.modules.ModuleStatus.UNAVAILABLE) || (state == com.google.youtube.players.modules.ModuleStatus.ERROR)) { tooltip.setTooltipText(descriptor.getUnavailableTooltip()); } else if (state == com.google.youtube.players.modules.ModuleStatus.NOT_LOADED) { tooltip.setTooltipText(descriptor.getEnableTooltip()); } else if (state == com.google.youtube.players.modules.ModuleStatus.LOADED) { tooltip.setTooltipText(descriptor.getDisableTooltip()); } else { tooltip.clearTooltipText(); } } function drawState() { useHandCursor = true; errorIcon._visible = false; switch (state) { case com.google.youtube.players.modules.ModuleStatus.LOADED : upIcon._alpha = 0; overIcon._alpha = 100; break; case com.google.youtube.players.modules.ModuleStatus.ERROR : errorIcon._visible = true; upIcon._alpha = ERROR_ALPHA; overIcon._alpha = 0; break; case com.google.youtube.players.modules.ModuleStatus.UNAVAILABLE : upIcon._alpha = UNAVAILABLE_ALPHA; overIcon._alpha = 0; useHandCursor = false; break; case com.google.youtube.players.modules.ModuleStatus.NOT_LOADED : default : upIcon._alpha = 100; overIcon._alpha = 0; } } function build() { super.build(); icon = createEmptyMovieClip("icon", getNextHighestDepth()); icon._x = paddingWidth + PADDING_LEFT; icon._y = PADDING_TOP; if (upIconSymbol) { upIcon = icon.attachMovie(upIconSymbol, "upIcon", icon.getNextHighestDepth()); } if (overIconSymbol) { overIcon = icon.attachMovie(overIconSymbol, "overIcon", icon.getNextHighestDepth()); } errorIcon = icon.attachMovie(ERROR_SYMBOL, "error_symbol", icon.getNextHighestDepth()); errorIcon._width = ERROR_SIZE; errorIcon._height = ERROR_SIZE; errorIcon._visible = false; } function getIconSymbols() { return({upIconSymbol:upIconSymbol, overIconSymbol:overIconSymbol}); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.IconMenuButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.IconMenuButton); static var ICON_BG_WIDTH = 20; static var ICON_BG_HEIGHT = 15; static var ERROR_SYMBOL = "tooltip_error_icon"; static var ERROR_SIZE = 12; static var ERROR_ALPHA = 30; static var UNAVAILABLE_ALPHA = 30; static var PADDING_TOP = 3; static var PADDING_LEFT = 3; }
Symbol 20529 MovieClip [__Packages.com.google.youtube.players.ui.IvIconMenuButton] Frame 0
class com.google.youtube.players.ui.IvIconMenuButton extends com.google.youtube.players.ui.IconMenuButton { var upIconSymbol, overIconSymbol; function IvIconMenuButton () { super(); upIconSymbol = "interactiveVideoUp"; overIconSymbol = "interactiveVideoOver"; } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.IvIconMenuButton"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.IvIconMenuButton); }
Symbol 20530 MovieClip [__Packages.com.google.youtube.players.ui.SeekBarMarkerManager] Frame 0
class com.google.youtube.players.ui.SeekBarMarkerManager extends MovieClip { var markerArray, seekBar, createEmptyMovieClip, getNextHighestDepth, storedWidth; function SeekBarMarkerManager () { super(); } function init(newSeekBar) { clear(); markerArray = []; seekBar = newSeekBar; } function addFixedWidthMarker(newMarkerObj) { if (newMarkerObj.startTime < 0) { return(undefined); } checkForDuplicate(newMarkerObj); markerArray.push(newMarkerObj); addMarker(newMarkerObj); } function addVariableWidthMarker(newMarkerObj) { var _local3 = newMarkerObj.startTime; var _local4 = newMarkerObj.endTime; if ((_local3 > _local4) || ((_local3 < 0) || (_local4 > seekBar.getDuration()))) { return(undefined); } checkForDuplicate(newMarkerObj); markerArray.push(newMarkerObj); addMarker(newMarkerObj); } function checkForDuplicate(newMarkerObj) { if (getMarkerIndex(newMarkerObj.startTime) > -1) { removeMarker(newMarkerObj.startTime); } } function getXPositionFromTime(newTime) { return((newTime / seekBar.getDuration()) * seekBar.getBarWidth()); } function addMarker(newMarkerObj) { if (seekBar.getDuration() <= 0) { return(undefined); } var _local3 = getXPositionFromTime(newMarkerObj.startTime); if (newMarkerObj.endTime) { var _local4 = getXPositionFromTime(newMarkerObj.endTime); } else { var _local4 = _local3 + newMarkerObj.markerWidth; } var _local5 = newMarkerObj.isEnabled; var _local6 = (_local5 ? (ENABLED_FILL) : null); var _local7 = (_local5 ? (getEnabledLineStyle()) : (getDisabledLineStyle())); newMarkerObj.targetClip = createEmptyMovieClip("marker" + newMarkerObj.startTime, getNextHighestDepth()); com.google.youtube.util.Drawing.drawRect(newMarkerObj.targetClip, Math.round(_local3), Math.round((com.google.youtube.players.ui.VideoControls.CONTROLS_DEFAULT_HEIGHT / 2) + (com.google.youtube.players.ui.SeekBar.DEFAULT_BAR_HEIGHT / 2)) - 1, Math.round(_local4 - _local3), getMarkerHeight(), _local6, _local7, 0); } function getMarkerHeight() { return(Math.round(com.google.youtube.players.ui.VideoControls.CONTROLS_DEFAULT_HEIGHT - ((com.google.youtube.players.ui.VideoControls.CONTROLS_DEFAULT_HEIGHT / 2) + (com.google.youtube.players.ui.SeekBar.DEFAULT_BAR_HEIGHT / 2))) - 0.5); } function clear() { while (markerArray.length) { var _local2 = markerArray[0]; _local2.targetClip.removeMovieClip(); _local2 = null; markerArray.splice(0, 1); } } function resize(newWidth) { if (newWidth != storedWidth) { storedWidth = newWidth; redraw(); } } function redraw() { var _local2 = markerArray.length; var _local3 = 0; for ( ; _local3 < _local2 ; _local3++) { var _local4 = markerArray[_local3]; redrawMarker(_local4); } } function redrawMarker(markerObj) { markerObj.targetClip.removeMovieClip(); addMarker(markerObj); } function disableMarker(startTime) { var _local3 = getMarkerIndex(startTime); var _local4 = markerArray[_local3]; if (!_local4.isEnabled) { return(undefined); } _local4.isEnabled = false; redrawMarker(_local4); } function removeMarker(startTime) { var _local3 = getMarkerIndex(startTime); var _local4 = markerArray[_local3]; _local4.targetClip.removeMovieClip(); _local4 = null; markerArray.splice(_local3, 1); } function getMarkerIndex(startTime) { var _local3 = markerArray.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { if (markerArray[_local4].startTime == startTime) { return(_local4); } } return(-1); } function getEnabledLineStyle() { return(new com.google.youtube.util.LineStyle(100, 0, 8421504)); } function getDisabledLineStyle() { return(new com.google.youtube.util.LineStyle(30, 0, 6316128)); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.SeekBarMarkerManager"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.SeekBarMarkerManager); static var ENABLED_FILL = 16763904; }
Symbol 20531 MovieClip [__Packages.com.google.youtube.players.modules.RatingsModuleDescriptor] Frame 0
class com.google.youtube.players.modules.RatingsModuleDescriptor extends com.google.youtube.players.modules.ModuleDescriptor { var loadPolicy, label, path, isTopmost, moduleDepth, setEnabled; function RatingsModuleDescriptor () { super(); loadPolicy = com.google.youtube.players.modules.ModuleLoadPolicy.MODULE_LOAD_ALWAYS; label = "ratings_module"; path = "http://www.youtube.com/swf/ratings.swf"; isTopmost = true; moduleDepth = 300; setEnabled(true); } }
Symbol 20532 MovieClip [__Packages.com.google.utils.SecurityUtils] Frame 0
class com.google.utils.SecurityUtils { function SecurityUtils () { } static function hasValidUrlScheme(url) { return(com.google.utils.StringUtils.beginsWith(url, "http:") || (com.google.utils.StringUtils.beginsWith(url, "https:") || (com.google.utils.StringUtils.beginsWith(url, "ftp:")))); } static function hasUrlDirectoryTraversal(url) { var _local3 = _global.unescape(url).toUpperCase(); return((_local3.indexOf("..") >= 0) || ((_local3.indexOf(".%2E") >= 0) || ((_local3.indexOf("%2E.") >= 0) || (_local3.indexOf("%2E%2E") >= 0)))); } static function isSafeUrl(url) { return(hasValidUrlScheme(url) && (!hasUrlDirectoryTraversal(url))); } }
Symbol 20533 MovieClip [__Packages.com.google.utils.VideoStats] Frame 0
class com.google.utils.VideoStats { static var downloadPerfLoaded_, downloadPerf_; var urlBase_, namespace_, parameters_, playbackStarted_, startTimes_, endTimes_, sendSegments_, lastBufferEmptyEvents_, thresholdCount_, multipleInterval_, eventReporter_, sendDownloadData_, getBytesDownloaded, recordedDownloadPerformance_, downloadTimer_, downloadPerformanceTimer_, numSegments_, numSegmentsSent_, startTime_, lastMediaTime_, getMediaTime, lastRealTime_, segmentStart_, sendInterval_, lastReportedPlaybackDelay, totalPlaybackDelay, lastPlaybackDelay, sentInitialPing_, sentTimeoutPing_, mediaInterval_, count_, lastBytes_, getPlayerState, getMediaDuration, getVideoDownloadRetries, getBufferEmptyEvents; function VideoStats (urlBase, namespace, parameters) { urlBase_ = urlBase; namespace_ = namespace; parameters_ = {}; for (var key in parameters) { if ((typeof(parameters[key]) == "string") || (typeof(parameters[key]) == "number")) { parameters_[key] = parameters[key]; } } playbackStarted_ = false; startTimes_ = new Array(); endTimes_ = new Array(); sendSegments_ = false; lastBufferEmptyEvents_ = 0; downloadPerfLoaded_ = false; thresholdCount_ = 3; multipleInterval_ = 4; } function setEventReporterParameters(eventReporter, docid, sw) { if ((namespace_ != undefined) && (namespace_ != "")) { eventReporter.addGlobalParameters({ns:namespace_}); } eventReporter.addGlobalParameters({docid:docid}); if (sw != undefined) { eventReporter.addGlobalParameters({sw:sw}); } eventReporter.addGlobalParameters(parameters_); } function sendEventPoint(docid, samplingWeight, args) { var _local5 = new com.google.utils.EventReporter(urlBase_); setEventReporterParameters(_local5, docid, samplingWeight); _local5.send(args); } function startPlayback(docid, sw) { if (playbackStarted_) { endPlayback(); } playbackStarted_ = true; if (eventReporter_ == undefined) { eventReporter_ = new com.google.utils.EventReporter(urlBase_); setEventReporterParameters(eventReporter_, docid, sw); } if (sw != undefined) { sendSegments_ = true; } loadBandwidthData(); var _local4 = 0; var _local5 = 0; for (var index in downloadPerf_) { _local4 = _local4 + downloadPerf_[index].bytes; _local5 = _local5 + downloadPerf_[index].time; } if ((_local4 > 0) && (_local5 > 0)) { eventReporter_.addGlobalParameters({hbd:_local4}); eventReporter_.addGlobalParameters({hbt:_local5}); } sendDownloadData_ = false; var _local6 = getBytesDownloaded(); var _local7 = getTimerInSeconds(); recordedDownloadPerformance_ = false; downloadTimer_ = new com.google.utils.DownloadTimer(_local6, _local7); downloadPerformanceTimer_ = new com.google.utils.DownloadTimer(_local6, _local7); numSegments_ = 0; numSegmentsSent_ = 0; startTime_ = _local7; lastMediaTime_ = getMediaTime(); lastRealTime_ = startTime_; segmentStart_ = lastMediaTime_; sendInterval_ = null; lastReportedPlaybackDelay = 0; totalPlaybackDelay = 0; lastPlaybackDelay = 0; sentInitialPing_ = false; sentTimeoutPing_ = false; mediaInterval_ = _global.setInterval(this, "mediaUpdate", 100); } function endPlayback() { if (playbackStarted_) { playbackStarted_ = false; if (mediaInterval_ != null) { _global.clearInterval(mediaInterval_); } if (sendInterval_ != null) { _global.clearInterval(sendInterval_); } addSegment(); sendSegments(); delete eventReporter_; } } function get playbackStarted() { return(playbackStarted_); } function sendReport(forced) { addSegment(); sendSegments(forced); } function onInterval() { if ((count_ <= thresholdCount_) || (((count_ - thresholdCount_) % multipleInterval_) == 0)) { sendReport(); } count_++; } function mediaUpdate() { var _local2 = getBytesDownloaded(); var _local3 = getMediaTime(); var _local4 = getTimerInSeconds(); downloadTimer_.addData(_local2, _local4); downloadPerformanceTimer_.addData(_local2, _local4); lastBytes_ = _local2; if ((!recordedDownloadPerformance_) && (downloadPerformanceTimer_.getSize() >= BW_SAMPLE_SIZE)) { recordedDownloadPerformance_ = true; var _local5 = new Object(); _local5.bytes = downloadPerformanceTimer_.getSize(); _local5.time = downloadPerformanceTimer_.getDuration(); if (downloadPerf_.length > BW_MAX_SAMPLES) { downloadPerf_.shift(); } downloadPerf_.push(_local5); sendDownloadData_ = true; var _local6 = SharedObject.getLocal("videostats", "/"); if (_local6 != null) { _local6.data.perf = downloadPerf_; _local6.flush(); } } if (sendSegments_ && ((!sentInitialPing_) && ((!sentTimeoutPing_) && ((_local2 <= 0) && ((_local4 - startTime_) > PLAYBACK_TIMEOUT))))) { sentTimeoutPing_ = true; var _local7 = {st:_local3, et:_local3, pt:1}; setStandardArgs(_local7, true); eventReporter_.send(_local7); } if ((!sentInitialPing_) && (_local3 > 0)) { sentInitialPing_ = true; var _local8 = {st:_local3, et:_local3, fv:_global.escape(System.capabilities.version)}; setStandardArgs(_local8, true); eventReporter_.send(_local8); count_ = 1; sendInterval_ = _global.setInterval(this, "onInterval", 10000); } var _local9 = _local3 - lastMediaTime_; if (_local9 != 0) { var _local10 = _local4 - lastRealTime_; if ((_local9 < 0) || (_local9 > (_local10 + 0.2))) { addSegment(); segmentStart_ = _local3; } lastRealTime_ = _local4; } lastMediaTime_ = _local3; if (getPlayerState) { var _local11 = getPlayerState().pd; if (_local11 < lastPlaybackDelay) { totalPlaybackDelay = totalPlaybackDelay + lastPlaybackDelay; } lastPlaybackDelay = _local11; } } function getTotalPlaybackDelay() { if (getPlayerState != undefined) { return(totalPlaybackDelay + getPlayerState().pd); } return(0); } function setStandardArgs(args, sendStatefulArgs) { var _local4 = getMediaDuration(); if (_local4 != undefined) { args.len = _local4; } if (getVideoDownloadRetries != undefined) { var _local5 = getVideoDownloadRetries(); if (_local5 > 0) { args.retries = _local5; } } if (sendStatefulArgs) { if (getBufferEmptyEvents != undefined) { var _local6 = getBufferEmptyEvents(); var _local7 = _local6 - lastBufferEmptyEvents_; if (_local7 > 0) { args.nbe = _local7; } lastBufferEmptyEvents_ = _local6; } if (sendDownloadData_) { args.hcbd = downloadPerf_[downloadPerf_.length - 1].bytes; args.hcbt = downloadPerf_[downloadPerf_.length - 1].time; sendDownloadData_ = false; } if (lastBytes_ > 0) { args.bc = lastBytes_; } var _local8 = downloadTimer_.getSize(); if (_local8 > 0) { args.bd = _local8; args.bt = downloadTimer_.getDuration(); downloadTimer_.clearHistory(); } var _local9 = getTotalPlaybackDelay(); if (_local9 > lastReportedPlaybackDelay) { args.pd = Math.round((_local9 - lastReportedPlaybackDelay) * 1000) / 1000; lastReportedPlaybackDelay = _local9; } } if (getPlayerState != undefined) { var _local10 = getPlayerState(); if (_local10) { delete _local10.pd; for (var i in _local10) { args[i] = _local10[i]; } } } var _local11 = getTimerInSeconds() - startTime_; args.rt = _local11; } function addSegment() { if (numSegmentsSent_ > MAX_REQ) { return(undefined); } if ((lastMediaTime_ - segmentStart_) > 3) { startTimes_[numSegments_] = segmentStart_; endTimes_[numSegments_] = lastMediaTime_; numSegments_++; segmentStart_ = lastMediaTime_; } } function sendSegments(forced) { if ((numSegments_ > 0) || (forced)) { var _local3 = String(startTimes_[0]); var _local4 = String(endTimes_[0]); var _local5 = 1; for ( ; _local5 < numSegments_ ; _local5++) { _local3 = _local3 + ("," + String(startTimes_[_local5])); _local4 = _local4 + ("," + String(endTimes_[_local5])); } if (sendSegments_ || (forced)) { var _local6 = {st:_local3, et:_local4}; setStandardArgs(_local6, true); eventReporter_.send(_local6); } numSegmentsSent_++; numSegments_ = 0; } } function sendWatchPoint(altBaseUrl, opt_args) { var _local4 = getMediaTime(); var _local5 = (opt_args ? (opt_args) : ({})); _local5.st = _local4; _local5.et = _local4; _local5.yttk = 1; setStandardArgs(_local5, false); eventReporter_.send(_local5, altBaseUrl); } static function loadBandwidthData() { if (downloadPerfLoaded_) { return(undefined); } downloadPerf_ = []; var _local2 = SharedObject.getLocal("videostats", "/"); if ((_local2 != null) && (_local2.data.perf != undefined)) { var _local3 = _local2.data.perf; for (var index in _local3) { var _local4 = new Object(); _local4.bytes = _local3[index].bytes; _local4.time = _local3[index].time; downloadPerf_.push(_local4); } } downloadPerfLoaded_ = true; } static function predictedBandwidthInBitsPerSecond() { loadBandwidthData(); var _local2 = 0; var _local3 = 0; for (var index in downloadPerf_) { _local2 = _local2 + downloadPerf_[index].bytes; _local3 = _local3 + downloadPerf_[index].time; } if (_local3 < 0.1) { return(0); } return(((_local2 * 8) / _local3) * 0.636717); } static function getTimerInSeconds() { return(getTimer() / 1000); } var MAX_REQ = 400; var BW_SAMPLE_SIZE = 1048576; var BW_MAX_SAMPLES = 3; var PLAYBACK_TIMEOUT = 5; }
Symbol 20534 MovieClip [__Packages.com.google.utils.EventReporter] Frame 0
class com.google.utils.EventReporter extends com.google.utils.UrlConstructor { var makeUrl; function EventReporter (baseUrl) { super(baseUrl); } function send(args, altBaseUrl) { var _local4 = makeUrl(args); if (altBaseUrl != undefined) { _local4 = altBaseUrl + _local4.substr(_local4.indexOf("?")); } sendUrl(_local4); } function sendUrl(url) { var _local3 = new MovieClipLoader(); var _local4 = _root.createEmptyMovieClip("junkClip", 999999); _local3.loadClip(url, _local4); } }
Symbol 20535 MovieClip [__Packages.com.google.webutil.url.YouTubeUtils] Frame 0
class com.google.webutil.url.YouTubeUtils { function YouTubeUtils () { } static function isValidYouTubeHost(host) { host = host.split(":")[0]; if ((host.indexOf("?") > -1) || ((host.indexOf("%") > -1) || (host.indexOf("#") > -1))) { return(false); } var _local3 = host.split("."); if ((((_local3[_local3.length - 2] == "youtube") || ((_local3[_local3.length - 2] == "ytimg") || ((_local3[_local3.length - 2] == "googlevideo") || ((_local3[_local3.length - 3] == "corp") && (_local3[_local3.length - 2] == "google"))))) && (_local3[_local3.length - 1] == "com")) || ((_local3[_local3.length - 2] == "google") && (_local3[_local3.length - 1] == "org"))) { return(true); } return(false); } static function isValidYouTubeUrl(url) { var _local3 = url.split("/")[2]; return(com.google.utils.SecurityUtils.isSafeUrl(url) && (isValidYouTubeHost(_local3))); } static function isValidRtmpUrl(url) { if ((url.indexOf("rtmpe://") == 0) || (url.indexOf("rtmp://") == 0)) { var _local3 = url.split("//"); if (_local3.length >= 2) { var _local4 = _local3[1].split("/"); var _local5 = _local4[0]; if ((_local5 == "cp73594.edgefcs.net") || ((_local5 == "cp59009.edgefcs.net") || (isValidYouTubeHost(_local5)))) { return(true); } } } return(false); } }
Symbol 20536 MovieClip [__Packages.com.google.youtube.players.ui.VolumeControl] Frame 0
class com.google.youtube.players.ui.VolumeControl extends com.google.youtube.ui.BaseVideoControlButton { var buttonWidth, currentState, onBuilt, sliderBg, hit, broadcast, iconMask, iconShadowMask, iconMutedX, volumeSlider, drawBgDownState, drawBgUpState, active, sliderHolder, sliderVisibleY, sliderOriginalY, icon, attachMovie, getNextHighestDepth, createEmptyMovieClip; function VolumeControl () { super(); buttonWidth = 29; currentState = UNMUTED; } function init(c1, c2) { super.init(c1, c2); build(); onBuilt(); sliderBg.tabEnabled = false; hit._accProps = {name:"Volume/Mute"}; } function onSliderChange(evt) { broadcast({type:com.google.youtube.event.VolumeControlEvent.CHANGE, data:evt.data, target:this}); updateIconMask(evt.data); } function updateIconMask(newVolume) { iconMask._xscale = ((newVolume / 100) * 37) + 63; iconShadowMask._xscale = ((newVolume / 100) * 37) + 63; iconMutedX._visible = newVolume == 0; } function getMinRequiredControlsWidth() { return(0); } function setValue(newValue, opt_instantly) { setState(((newValue == 0) ? (MUTED) : (UNMUTED))); volumeSlider.setValue(newValue, opt_instantly); updateIconMask(newValue); } function getValue() { return(volumeSlider.getValue()); } function setState(newState) { if (newState == MUTED) { drawBgDownState(); drawIcon(true); } else if (newState == UNMUTED) { drawBgUpState(); drawIcon(false); } currentState = newState; } function activate() { active = true; showSlider(); drawIcon(true); } function deactivate() { active = false; hideSlider(); if (currentState != MUTED) { drawIcon(false); } } function showSlider() { com.gs.TweenLite.to(sliderHolder, SLIDER_SHOW_HIDE_SPEED, {_y:sliderVisibleY}); } function hideSlider() { com.gs.TweenLite.to(sliderHolder, SLIDER_SHOW_HIDE_SPEED, {_y:sliderOriginalY}); } function release() { if (currentState == MUTED) { broadcast({type:com.google.youtube.event.VolumeControlEvent.UNMUTE, target:this}); } else if (currentState == UNMUTED) { broadcast({type:com.google.youtube.event.VolumeControlEvent.MUTE, target:this}); } } function drawIcon(drawDownState) { icon.clear(); var _local3 = (drawDownState ? 16724787 : 7960953); var _local4 = (drawDownState ? 12193808 : 3355443); var _local5 = [{x:0, y:6}, {x:1, y:4}, {x:4, y:4}, {x:4, y:9}, {x:1, y:9}, {x:0, y:7}]; var _local6 = {colors:[_local3, _local4], fillType:"linear", alphas:[100, 80], ratios:[0, 255], matrix:{matrixType:"box", x:0, y:0, w:4, h:5, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawPoly(icon, _local5, _local6); var _local7 = [{x:5, y:3}, {x:9, y:1}, {x:10, y:1}, {x:10, y:12}, {x:9, y:12}, {x:5, y:10}]; var _local8 = {colors:[_local3, _local4], fillType:"linear", alphas:[100, 100], ratios:[0, 255], matrix:{matrixType:"box", x:0, y:0, w:5, h:11, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawPoly(icon, _local7, _local8); var _local9 = {colors:[_local3, _local4], fillType:"linear", alphas:[100, 100], ratios:[0, 255], matrix:{matrixType:"box", x:0, y:0, w:1, h:13, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawRect(icon, 12, 5, 1, 3, _local9); com.google.youtube.util.Drawing.drawRect(icon, 14, 3, 1, 7, _local9); com.google.youtube.util.Drawing.drawRect(icon, 16, 2, 1, 9, _local9); com.google.youtube.util.Drawing.drawRect(icon, 18, -1, 1, 14, _local9); com.google.youtube.util.Drawing.drawX(iconMutedX, 0, 0, 7, 2, _local6, null); } function build() { super.build(); sliderHolder = com.google.youtube.ui.CompoundButton(attachMovie(com.google.youtube.ui.CompoundButton.LINK_NAME, "sliderHolder", getNextHighestDepth())); sliderHolder.registerEvent(com.google.youtube.event.GenericButtonEvent.ACTIVATE, com.google.chianti.event.EventDelegate.create(this, activate)); sliderHolder.registerEvent(com.google.youtube.event.GenericButtonEvent.DEACTIVATE, com.google.chianti.event.EventDelegate.create(this, deactivate)); sliderHolder.includeMouseActivityOf(hit); sliderBg = sliderHolder.createEmptyMovieClip("sliderBg", sliderHolder.getNextHighestDepth()); sliderHolder.includeMouseActivityOf(sliderBg); sliderBg.useHandCursor = false; volumeSlider = com.google.youtube.ui.SliderControl(sliderHolder.attachMovie(com.google.youtube.ui.SliderControl.LINK_NAME, "slider", getNextHighestDepth())); volumeSlider.registerParentButton(sliderHolder); volumeSlider.registerEvent(com.google.youtube.event.UIEvent.CHANGE, com.google.chianti.event.EventDelegate.create(this, onSliderChange)); volumeSlider.setValues(SLIDER_MIN_VALUE, SLIDER_MAX_VALUE); volumeSlider.setSize(SLIDER_WIDTH); volumeSlider._x = (buttonWidth - volumeSlider._width) / 2; volumeSlider._y = SLIDER_VERTICAL_PADDING / 2; com.google.youtube.util.Drawing.drawRect(sliderBg, 0, 0, buttonWidth, (volumeSlider._height + SLIDER_VERTICAL_PADDING) + 1, 16777215); com.google.youtube.util.Drawing.drawRect(sliderBg, 1, 1, buttonWidth - 2, (volumeSlider._height + SLIDER_VERTICAL_PADDING) - 2, 11645361); var _local3 = {colors:[15461355, 12369084], fillType:"linear", alphas:[100, 100], ratios:[0, 255], matrix:{matrixType:"box", x:0, y:0, w:buttonWidth, h:(volumeSlider._height + SLIDER_VERTICAL_PADDING) - 4, r:(90 / 180) * Math.PI}}; com.google.youtube.util.Drawing.drawRect(sliderBg, 2, 2, buttonWidth - 4, (volumeSlider._height + SLIDER_VERTICAL_PADDING) - 4, _local3); var _local4 = createEmptyMovieClip("volumeSliderMask", getNextHighestDepth()); com.google.youtube.util.Drawing.drawRect(_local4, -2, -(sliderBg._height + 2), buttonWidth + 4, (volumeSlider._height + SLIDER_VERTICAL_PADDING) + 2, 16750848); sliderHolder.setMask(_local4); sliderOriginalY = sliderHolder._y + 1; sliderVisibleY = sliderHolder._y - sliderHolder._height; icon = createEmptyMovieClip("icon", getNextHighestDepth()); icon._x = 5; icon._y = 5; iconMutedX = createEmptyMovieClip("iconMutedX", getNextHighestDepth()); iconMutedX._x = 16; iconMutedX._y = 8; drawIcon(); var _local5 = icon.duplicateMovieClip("iconShadow", getNextHighestDepth()); _local5._x = _local5._x + 1; _local5._y = _local5._y + 1; _local5._alpha = com.google.youtube.ui.BaseVideoControlButton.ICON_SHADOW_ALPHA; _local5.swapDepths(icon); var _local6 = new Color(_local5); _local6.setRGB(com.google.youtube.ui.BaseVideoControlButton.ICON_SHADOW_COLOR); iconMask = createEmptyMovieClip("iconMask", getNextHighestDepth()); com.google.youtube.util.Drawing.drawRect(iconMask, icon._x, icon._y, icon._width + 2, icon._height + 2, 16711680); icon.setMask(iconMask); iconShadowMask = createEmptyMovieClip("iconShadowMask", getNextHighestDepth()); com.google.youtube.util.Drawing.drawRect(iconShadowMask, _local5._x, _local5._y, _local5._width + 2, _local5._height + 2, 16711680); _local5.setMask(iconShadowMask); } static var LINK_NAME = "__Packages.com.google.youtube.players.ui.VolumeControl"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.ui.VolumeControl); static var MUTED = "muted"; static var UNMUTED = "unmuted"; static var SLIDER_MIN_VALUE = 0; static var SLIDER_MAX_VALUE = 100; static var SLIDER_WIDTH = 53; static var SLIDER_VERTICAL_PADDING = 10; static var SLIDER_SHOW_HIDE_SPEED = 0.3; }
Symbol 20537 MovieClip [__Packages.com.google.youtube.players.SuggestedVideoRequest] Frame 0
class com.google.youtube.players.SuggestedVideoRequest extends com.google.youtube.AbstractElement { var id, restRequest; function SuggestedVideoRequest (requestPath, suggestedParams) { super(); id = suggestedParams.id; restRequest = new com.google.youtube.data.RestRequest(requestPath); restRequest.addParameter("video_id", id); restRequest.addParameter("l", suggestedParams.duration); restRequest.addParameter("t", suggestedParams.t); var _local5 = Math.min(Math.max(suggestedParams.currentTime / suggestedParams.duration, 0), 1); restRequest.addParameter("w", _local5); if (suggestedParams.ps.length) { restRequest.addParameter("ps", suggestedParams.ps); } if (suggestedParams.el.length) { restRequest.addParameter("el", suggestedParams.el); } if (suggestedParams.feature.length) { restRequest.addParameter("feature", suggestedParams.feature);




http://swfchan.com/51/254598/info.shtml
Created: 17/9 -2023 08:02:17 Last modified: 17/9 -2023 08:02:17 Server time: 31/10 -2024 23:31:33