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

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

iv_module-vfl57292.swf

This is the info page for
Flash #43437

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


ActionScript [AS1/AS2]
Frame 1
com.google.youtube.videoclick.viewer.ModuleMainRelease.main(this);
Symbol 20480 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 20481 MovieClip [__Packages.ArrayParam] Frame 0
class ArrayParam { function ArrayParam () { } //ASSetPropFlags(_local1, null, 1); }
Symbol 20482 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 ADD_MARKER = "onAddMarker"; static var REMOVE_MARKERS = "onRemoveMarkers"; static var SEEK = "onSeek"; static var HIDE_END_SCREEN = "onHideEndScreen"; static var SHOW_END_SCREEN = "onShowEndScreen"; }
Symbol 20483 MovieClip [__Packages.com.google.youtube.IBroadcaster] Frame 0
class com.google.youtube.IBroadcaster { function IBroadcaster () { } }
Symbol 20484 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 20485 MovieClip [__Packages.com.google.youtube.players.PlayerConfigData] Frame 0
class com.google.youtube.players.PlayerConfigData extends com.google.youtube.AbstractBroadcaster { var flashVars, compareInterval, source, eurl, trackingToken, playerId, videoStatsPlayerId, sourceId, sdetail, videoPubId, data, dataType, loop, enhancedGenieMenu, loadRelatedVideos, suppressNext, infringe, videoQuality, requestedDelay, fullScreen, enableCsiLogging, imageUrl, interfaceLanguage, enableJsApi, autoPlay, startTime, jsApiCallback, playerApiId, videoQuery, channelId, contentXml, videoId, token, lengthInSeconds, useFeaturedForSuggested, color1, color2, loadModules, showCuePoints, border, mustangDocKey, useGetVideoInfo, acdcExperiment, appendVars, allowSeekAhead, disableKeyboard, playNext, BASE_YT_URL, query, sessionToken, experiment, samplingWeight, playerStyle, flvurl, ivModule, adModule, ccModule, karaokeModule, captions_video_id, broadcast; function PlayerConfigData (mc) { super(); flashVars = getFlashVars(mc); copyPlayerParams(flashVars); compareInterval = _global.setInterval(this, "compareSettings", 250); } function getUntypedFlashVars() { return(flashVars); } function getFlashVars(mc) { var _local3 = {}; source = ((!mc) ? (_root) : (mc)); for (var x in source) { if (((typeof(source[x]) == "string") || (typeof(source[x]) == "number")) && ((source[x] != "") || (x == "eurl"))) { _local3[x] = source[x]; } } if ((_local3.eurl == "") && (mc._parent._url != undefined)) { _local3.eurl = mc._parent._url; } return(_local3); } function copyObject(src) { var _local3 = {}; for (var i in src) { _local3[i] = src[i]; } return(_local3); } function copyPlayerParams(source) { source = copyObject(source); eurl = source.eurl; delete source.eurl; trackingToken = source.tk; delete source.tk; 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; delete source.loop; enhancedGenieMenu = source.egm; delete source.egm; loadRelatedVideos = source.rel; delete source.rel; suppressNext = source.sn; delete source.sn; infringe = source.infringe; delete source.infringe; videoQuality = 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; } interfaceLanguage = source.hl; delete source.hl; enableJsApi = source.enablejsapi; delete source.enablejsapi; autoPlay = source.autoplay; delete source.autoplay; startTime = source.start; delete source.start; jsApiCallback = source.jsapicallback; delete source.jsapicallback; playerApiId = source.playerapiid; delete source.playerapiid; videoQuery = source.video_query; delete source.video_query; channelId = source.channel_id; delete source.channel_id; contentXml = source.content_xml; delete source.content_xml; videoId = source.video_id; delete source.video_id; token = source.t; delete source.t; lengthInSeconds = source.l; delete source.l; useFeaturedForSuggested = source.usef; delete source.usef; 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; } loadModules = source.load_modules; delete source.load_modules; showCuePoints = source.showcuepoints; delete source.showcuepoints; border = source.border; delete source.border; mustangDocKey = source.doc_key; delete source.doc_key; useGetVideoInfo = source.use_get_video_info; delete source.use_get_video_info; acdcExperiment = source.ax; 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; delete source.playnext; var _local3 = source.BASE_YT_URL; delete source.BASE_YT_URL; BASE_YT_URL = (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local3) ? (_local3) : (LIVE_BASE_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; flvurl = source.flvurl; delete source.flvurl; var _local4 = source.iv_module; delete source.iv_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local4)) { ivModule = _local4; } _local4 = source.ad_module; delete source.ad_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local4)) { adModule = _local4; } _local4 = source.subtitle_module; delete source.subtitle_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local4)) { ccModule = _local4; } _local4 = source.karaoke_module; delete source.karaoke_module; if (com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(_local4)) { karaokeModule = _local4; captions_video_id = source.captions_video_id; delete source.captions_video_id; } delete source.$version; delete source.swf; validateNoRemainingFlashvars(source); } function validateNoRemainingFlashvars(obj) { var _local3 = ""; for (var i in obj) { _local3 = _local3 + (((i + ": ") + obj[i]) + ", "); } if (_local3.length > 0) { } } function compareSettings() { if ((source.setVideoQuality != undefined) && (source.vq != source.setVideoQuality)) { videoQuality = source.setVideoQuality; source.setVideoQuality = undefined; broadcast({type:com.google.youtube.event.DataEvent.LOAD, target:this}); } } function getVideoFormat() { var _local2 = ""; var _local3 = Math.max(0, com.google.utils.VideoStats.predictedBandwidthInBitsPerSecond()); var _local4 = VIDEO_QUALITY_SETTING_AUTO; var _local5 = Math.max(0, _global.parseInt(videoQuality)); var _local6 = ""; var _local7 = flashVars.fmt_map.split(","); var _local8 = 0; for ( ; _local8 < _local7.length ; _local8++) { if (_local7[_local8] == "default") { break; } var _local9 = _local7[_local8].split("/"); var _local10 = _local9[0]; var _local11 = _global.parseInt(_local9[1]); var _local12 = _global.parseInt(_local9[2]); var _local13 = _global.parseInt(_local9[3]); var _local14 = _global.parseInt(_local9[4]); for ( ; _local10 == undefined ; _local8++) { } for ( ; _global.isNaN(_local12) || (_global.isNaN(_local13) || (_global.isNaN(_local14) || (_global.isNaN(_local11)))) ; _local8++) { } var _local15 = com.google.youtube.util.PlayerCapabilities.getPlayerVersion(); for ( ; !_local15.isAtLeastVersion(new com.google.youtube.util.PlayerVersion(_local12, _local13, _local14)) ; _local8++) { } if (_local11 == 0) { _local6 = _local10; break; } _local4 = VIDEO_QUALITY_SETTING_LOW; if (((_local5 == VIDEO_QUALITY_SETTING_AUTO) && (_local11 <= _local3)) || (_local5 == VIDEO_QUALITY_SETTING_HIGH)) { _local4 = VIDEO_QUALITY_SETTING_HIGH; _local6 = _local10; break; } } flashVars.vq = _local4.toString(); broadcast({type:com.google.youtube.event.DataEvent.SET, target:this}); videoQuality = flashVars.vq; return(_local6); } function getEmbedHtml(videoId) { if (!videoId) { return(""); } var _local3 = BASE_YT_URL; _local3 = _local3 + ("v/" + videoId); _local3 = _local3 + ((loadRelatedVideos == "0") ? "&rel=0" : ""); _local3 = _local3 + ((border == "1") ? "&border=1" : ""); _local3 = _local3 + ((!(color1 === undefined)) ? ("&color1=0x" + color1.toString(16)) : ""); _local3 = _local3 + ((!(color2 === undefined)) ? ("&color2=0x" + color2.toString(16)) : ""); _local3 = _local3 + ((!(interfaceLanguage === undefined)) ? ("&hl=" + interfaceLanguage) : ""); _local3 = _local3 + "&fs=1"; var _local4 = ((border == "1") ? (EMBED_HEIGHT_BORDER) : (EMBED_HEIGHT_NOBORDER)); var _local5 = EMBED_HTML.split("{video_url}").join(_local3).split("{embed_height}").join(_local4); return(_local5); } function toString() { var _local2 = "PlayerConfigData{"; for (var i in this) { if ((this[i] != undefined) && (this[i] != _global.NaN)) { _local2 = _local2 + (((i + ": ") + this[i]) + ", "); } } _local2 = _local2 + "}"; return(_local2); } static var VIDEO_QUALITY_SETTING_AUTO = 0; static var VIDEO_QUALITY_SETTING_LOW = 1; static var VIDEO_QUALITY_SETTING_HIGH = 2; var LIVE_BASE_URL = "http://www.youtube.com/"; 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>") + "<embed src=\"{video_url}\" type=\"application/x-shockwave-flash\" ") + "allowfullscreen=\"true\" ") + "width=\"425\" height=\"{embed_height}\">") + "</embed></object>"; var REST_API_URL = "api2_rest?"; var REST_GET_PLAYLIST = "youtube.videos.list_by_playlist"; var REST_GET_VIDEO_DETAILS = "youtube.videos.get_video_info"; var REST_GET_FAVORITES = "youtube.users.list_user_favorite_videos"; var REST_GET_USER_VIDEOS = "youtube.videos.list_by_user"; var REST_EMBED_API_URL = "embed_api_rest?"; var GET_VIDEO_INFO_URL = "get_video_info"; var BASE_GDATA_URL = "http://gdata.youtube.com/"; var GDATA_VIDEO_FEEDS = "feeds/api/videos/"; var GDATA_RELATED_POSTFIX = "/related/?"; var GDATA_REQUEST_ONLY_EMBEDDED = "&format=5"; var REST_API_LIST_BY_RELATED = "youtube.videos.list_by_related"; var REST_LIST = "list_recs"; var REST_GET_VIDEO_TOKEN = "youtube.videos.get_video_token"; var GET_VIDEO_URL = "get_video?video_id="; var TRACKER_URL = "tracker?"; 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 DEFAULT_COLOR_1 = 11645361; var DEFAULT_COLOR_2 = 13619151; var CONTROLS_TOP_GRADIENT_COLOR = 16777215; }
Symbol 20486 MovieClip [__Packages.com.google.youtube.videoclick.beans.IdedList] Frame 0
class com.google.youtube.videoclick.beans.IdedList extends Array { var idMap, length; function IdedList () { super(); idMap = {}; } function reset() { idMap = {}; super.splice(0); } function addElements(elementsToAdd) { var _local3 = elementsToAdd.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { push(elementsToAdd[_local4]); } } function getById(id) { return(idMap[id]); } function generateUniqueId() { do { var _local2 = String(Math.round(Math.random() * 1000000)); _local2 = getClassPrefix() + _local2; } while (getById(_local2) != null); return(_local2); } function removeElement(elementId) { removeElementFromIdMap(elementId); var _local4 = 0; for ( ; _local4 < length ; _local4++) { if (this[_local4].getId() == elementId) { super.splice(_local4, 1); break; } } } function getClassPrefix() { return(""); } function splice(startIndex, opt_deleteCount) { var _local5 = super.splice.apply(this, arguments); var _local6 = 0; for ( ; _local6 < _local5.length ; _local6++) { removeElementFromIdMap(_local5[_local6].getId()); } var _local7 = 2; for ( ; _local7 < arguments.length ; _local7++) { addElementToIdMap(arguments[_local7], arguments[_local7].getId()); } return(_local5); } function push(idedElement) { var _local4 = 0; for ( ; _local4 < arguments.length ; _local4++) { addElementToIdMap(arguments[_local4], arguments[_local4].getId()); } return(super.push.apply(this, arguments)); } function pop() { var _local3 = super.pop(); removeElementFromIdMap(_local3.getId()); return(_local3); } function addElementToIdMap(element, id) { if (!id) { } else { idMap[id] = element; } } function removeElementFromIdMap(id) { if (!idMap[id]) { } else { delete idMap[id]; } } function concat(value) { return([]); } function join(delimiter) { return(""); } function reverse() { } function shift() { return({}); } function slice(startIndex, endIndex) { return([]); } function unshift(value) { return(_global.NaN); } }
Symbol 20487 MovieClip [__Packages.com.google.youtube.videoclick.beans.DirtyBitElementsList] Frame 0
class com.google.youtube.videoclick.beans.DirtyBitElementsList extends com.google.youtube.videoclick.beans.IdedList { var length; function DirtyBitElementsList () { super(); } function push(element) { if (!(element instanceof com.google.youtube.videoclick.beans.DirtyBitSupporter)) { return(undefined); } if (!(element instanceof com.google.youtube.videoclick.beans.XmlSerializationSupporter)) { return(undefined); } super.push(element); } function isDirty() { var _local2 = 0; for ( ; _local2 < length ; _local2++) { var _local3 = com.google.youtube.videoclick.beans.DirtyBitSupporter(this[_local2]); if (_local3.isDirty()) { return(true); } } return(false); } function getDirtyXml(doc) { var _local3 = doc.createElement(getXmlElementName()); var _local4 = 0; for ( ; _local4 < length ; _local4++) { var _local5 = com.google.youtube.videoclick.beans.DirtyBitSupporter(this[_local4]); if (_local5.isDirty()) { var _local6 = com.google.youtube.videoclick.beans.XmlSerializationSupporter(_local5).getXml(doc); _local3.appendChild(_local6); _local5.markAsClean(); } } return(_local3); } function getXmlElementName() { return(null); } }
Symbol 20488 MovieClip [__Packages.com.google.youtube.videoclick.beans.SegmentsList] Frame 0
class com.google.youtube.videoclick.beans.SegmentsList extends com.google.youtube.videoclick.beans.DirtyBitElementsList { var displayRect, push; function SegmentsList () { super(); } function setDisplayRect(displayRect) { this.displayRect = displayRect; } function addSegmentsFromObject(segmentsObject) { var _local3 = segmentsObject[com.google.youtube.videoclick.beans.Segment.XML_ELEMENT_NAME].length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { var _local5 = new com.google.youtube.videoclick.beans.Segment(segmentsObject[com.google.youtube.videoclick.beans.Segment.XML_ELEMENT_NAME][_local4], displayRect); push(_local5); } } function addSegment(segment) { push(segment); } function getXmlElementName() { return(XML_ELEMENT_NAME); } function getClassPrefix() { return("segment_"); } function toString() { return(("Segments(" + super.toString()) + ")"); } static var XML_ELEMENT_NAME = "segments"; }
Symbol 20489 MovieClip [__Packages.com.google.youtube.players.IVideoPlayer] Frame 0
class com.google.youtube.players.IVideoPlayer implements com.google.youtube.IBroadcaster { function IVideoPlayer () { } }
Symbol 20490 MovieClip [__Packages.com.google.youtube.videoclick.beans.DirtyBitSupporter] Frame 0
class com.google.youtube.videoclick.beans.DirtyBitSupporter { function DirtyBitSupporter () { } }
Symbol 20491 MovieClip [__Packages.com.google.youtube.videoclick.beans.XmlSerializationSupporter] Frame 0
class com.google.youtube.videoclick.beans.XmlSerializationSupporter { function XmlSerializationSupporter () { } }
Symbol 20492 MovieClip [__Packages.com.google.youtube.videoclick.beans.ServerDataAware] Frame 0
class com.google.youtube.videoclick.beans.ServerDataAware { function ServerDataAware () { } }
Symbol 20493 MovieClip [__Packages.com.google.youtube.videoclick.beans.Segment] Frame 0
class com.google.youtube.videoclick.beans.Segment implements com.google.youtube.videoclick.beans.ServerDataAware, com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var id, displayRect, type, dirty, isOnServer, movingRegions; function Segment (segmentNode, displayRect) { id = segmentNode[XML_ATTRIBUTE_ID]; this.displayRect = displayRect; type = segmentNode[XML_ATTRIBUTE_TYPE]; dirty = false; isOnServer = true; movingRegions = []; var _local4 = segmentNode[com.google.youtube.videoclick.beans.MovingRegion.XML_ELEMENT_NAME].length; var _local5 = 0; for ( ; _local5 < _local4 ; _local5++) { var _local6 = new com.google.youtube.videoclick.beans.MovingRegion(segmentNode[com.google.youtube.videoclick.beans.MovingRegion.XML_ELEMENT_NAME][_local5], displayRect); movingRegions.push(_local6); } } function getId() { return(id); } function getAbsoluteStartTime() { if (movingRegions && (movingRegions[0])) { return(movingRegions[0].getStartTime()); } return(null); } function getAbsoluteEndTime() { if (movingRegions && (movingRegions[movingRegions.length - 1])) { return(movingRegions[movingRegions.length - 1].getEndTime()); } return(null); } function setAbsoluteStartTime(startTime) { if (movingRegions && (movingRegions[0])) { var _local3 = movingRegions[0].setStartTime(startTime); com.google.youtube.videoclick.beans.EventsList.getInstance().reportChange(this, com.google.youtube.videoclick.beans.EventsList.EVENT_SEGMENT_TIME_CHANGED, this); return(_local3); } return(false); } function setAbsoluteEndTime(endTime) { if (movingRegions && (movingRegions[0])) { var _local3 = movingRegions[0].setEndTime(endTime); com.google.youtube.videoclick.beans.EventsList.getInstance().reportChange(this, com.google.youtube.videoclick.beans.EventsList.EVENT_SEGMENT_TIME_CHANGED, this); return(_local3); } return(false); } function findNextRegion(time) { var _local3 = findVisibleMovingRegion(time); if (_local3) { return(_local3.findNextRegion(time)); } var _local4 = findNextMovingRegion(time); if (_local4) { return(_local4.first()); } return(null); } function findPrevRegion(time) { var _local3 = findVisibleMovingRegion(time); if (_local3) { return(_local3.findPrevRegion(time)); } var _local4 = findPrevMovingRegion(time); if (_local4) { return(_local4.last()); } return(null); } function isVisibleNow(time) { return(findVisibleMovingRegion(time) != null); } function existsOnServer() { return(isOnServer); } function findVisibleMovingRegion(time) { var _local3 = movingRegions.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { if (((movingRegions[_local4].getStartTime().getTime() - com.google.youtube.videoclick.VideoclickConfig.START_TIME_INSENSITIVITY) <= time.getTime()) && (movingRegions[_local4].getEndTime().getTime() > time.getTime())) { return(movingRegions[_local4]); } } return(null); } function findNextMovingRegion(time) { var _local3 = movingRegions.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { if (movingRegions[_local4].getStartTime().getTime() >= time.getTime()) { return(movingRegions[_local4]); } } return(null); } function setRectangle(rect) { var _local3 = movingRegions.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { movingRegions[_local4].setRectangle(rect); } } function getFirstRectangle() { if (movingRegions && (movingRegions[0])) { return(movingRegions[0].getFirstRectangle()); } return(null); } function findPrevMovingRegion(time) { var _local3 = movingRegions.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { if (time.getTime() > movingRegions[_local4].getEndTime().getTime()) { return(movingRegions[_local4]); } } return(null); } function getRegionRelativeToTime(prevRegion, nextRegion, currentTime) { var _local5 = prevRegion.getTime(); var _local6 = nextRegion.getTime(); var _local7 = (currentTime.getTime() - _local5.getTime()) / (_local6.getTime() - _local5.getTime()); return(new com.google.youtube.videoclick.beans.Region(calcIntermediateValue(prevRegion.getX(), nextRegion.getX(), _local7), calcIntermediateValue(prevRegion.getY(), nextRegion.getY(), _local7), calcIntermediateValue(prevRegion.getW(), nextRegion.getW(), _local7), calcIntermediateValue(prevRegion.getH(), nextRegion.getH(), _local7), Math.floor(calcIntermediateValue(prevRegion.getDepth(), nextRegion.getDepth(), _local7)), currentTime, displayRect)); } static function calcIntermediateValue(start, end, relativeTimePortion) { return(((end - start) * relativeTimePortion) + start); } function isDirty() { if (dirty) { return(true); } var _local2 = movingRegions.length; var _local3 = 0; for ( ; _local3 < _local2 ; _local3++) { if (movingRegions[_local3].isDirty()) { return(true); } } return(false); } function markAsClean() { var _local2 = movingRegions.length; var _local3 = 0; for ( ; _local3 < _local2 ; _local3++) { movingRegions[_local3].markAsClean(); } dirty = false; isOnServer = true; } function getXml(doc) { var _local3 = doc.createElement(XML_ELEMENT_NAME); var _local4 = movingRegions.length; var _local5 = 0; for ( ; _local5 < _local4 ; _local5++) { var _local6 = movingRegions[_local5]; _local3.appendChild(_local6.getXml(doc)); } _local3.attributes[XML_ATTRIBUTE_ID] = getId(); _local3.attributes[XML_ATTRIBUTE_TYPE] = type; return(_local3); } function markAsNew() { dirty = true; isOnServer = false; } function toString() { return(("Segment(" + movingRegions) + ")"); } static var SEGMENT_TYPE_OBJECT = "object"; static var SEGMENT_TYPE_FACE = "face"; static var XML_ELEMENT_NAME = "segment"; static var XML_ATTRIBUTE_ID = "id"; static var XML_ATTRIBUTE_TYPE = "type"; }
Symbol 20494 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 20495 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 20496 MovieClip [__Packages.com.google.youtube.players.modules.base.BasePlayerModule] Frame 0
class com.google.youtube.players.modules.base.BasePlayerModule extends com.google.youtube.AbstractElement implements com.google.youtube.players.modules.IPlayerModule { var overallHolder, moduleStatus, moduleAdapter, configData, videoData; function BasePlayerModule (mc) { super() overallHolder = mc; moduleStatus = com.google.youtube.players.modules.ModuleStatus.LOADING; } function init(ma, moduleConfigData) { moduleStatus = com.google.youtube.players.modules.ModuleStatus.LOADING; moduleAdapter = ma; configData = moduleConfigData; initData(ma); onInited(); if (moduleStatus == com.google.youtube.players.modules.ModuleStatus.LOADING) { setStatus(com.google.youtube.players.modules.ModuleStatus.LOADED); } } function initData(ma) { } function onInited() { build(); } function build() { } function onPlay(evt) { } function onPause(evt) { } function onEnd(evt) { } function onNewVideoLoad(evt) { videoData = com.google.youtube.players.VideoData(evt.data); } function onSeek(evt) { } function onPlaylistScroll(evt) { } function onPlaylistClipSelected(evt) { } function onProgress(evt) { } function onMarker(evt) { } function onResize(evt) { } function onStartResize(evt) { } function getReservedRect() { return(new com.google.geom.Rect()); } function getStatus() { return(moduleStatus); } function setStatus(state) { if (moduleStatus != state) { moduleStatus = state; moduleAdapter.notify(); } } function getSubmenu(holder) { return(undefined); } function getLoggingOptions() { return({}); } function destroy() { } static var LINK_NAME = "__Packages.com.google.youtube.players.modules.base.BasePlayerModule"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.players.modules.base.BasePlayerModule); }
Symbol 20497 MovieClip [__Packages.com.google.youtube.players.IPlayerController] Frame 0
class com.google.youtube.players.IPlayerController implements com.google.youtube.IBroadcaster { function IPlayerController () { } }
Symbol 20498 MovieClip [__Packages.com.google.youtube.videoclick.components.ElementsListBase] Frame 0
class com.google.youtube.videoclick.components.ElementsListBase extends com.google.youtube.videoclick.beans.IdedList { var playerAdapter, annotationsLayer; function ElementsListBase () { super(); } function setVideoPlayer(playerAdapter) { this.playerAdapter = playerAdapter; } function setAnnotationsLayer(layer) { annotationsLayer = layer; } }
Symbol 20499 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 20500 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 (_local2.indexOf("?") == -1) { _local2 = _local2 + "?"; } _local2 = _local2 + ("&" + params.join("&")); xmlData.loadXML(_local2); } function onDataLoad(evt) { broadcast(evt); } function onDataLoadError(evt) { broadcast(evt); } }
Symbol 20501 MovieClip [__Packages.com.google.youtube.videoclick.beans.SourcePoint] Frame 0
class com.google.youtube.videoclick.beans.SourcePoint implements com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var displayRect, dirty, x, y, initSourcePointObject; function SourcePoint (sourcePointObject, displayRect) { this.displayRect = displayRect; readFromObject(sourcePointObject); dirty = false; } function readFromObject(sourcePointNode) { x = percentsToPixelsX(_global.parseFloat(sourcePointNode[XML_ATTRIBUTE_X])); y = percentsToPixelsY(_global.parseFloat(sourcePointNode[XML_ATTRIBUTE_Y])); initSourcePointObject = sourcePointNode; } function updateDisplayRect(newDisplayRect) { if (initSourcePointObject == null) { return(undefined); } displayRect = newDisplayRect; readFromObject(initSourcePointObject); } function getX() { return(x); } function getY() { return(y); } function setX(value) { initSourcePointObject = null; x = value; dirty = true; } function setY(value) { initSourcePointObject = null; y = value; dirty = true; } function clone() { var _local2 = new com.google.youtube.videoclick.beans.SourcePoint({x:"0", y:"0"}, displayRect); _local2.x = x; _local2.y = y; return(_local2); } function percentsToPixelsX(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(value, displayRect)); } function percentsToPixelsY(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(value, displayRect)); } function pixelsToPercentsX(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.pixelsToPercentsX(value, displayRect)); } function pixelsToPercentsY(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.pixelsToPercentsY(value, displayRect)); } function getXml(doc) { var _local3 = doc.createElement(XML_ELEMENT_NAME); _local3.attributes[XML_ATTRIBUTE_X] = pixelsToPercentsX(getX()); _local3.attributes[XML_ATTRIBUTE_Y] = pixelsToPercentsY(getY()); return(_local3); } function isDirty() { return(dirty); } function markAsClean() { dirty = false; } function toString() { return(((("SourcePoint(" + x) + ",") + y) + ")"); } static var XML_ELEMENT_NAME = "sourcePoint"; static var XML_ATTRIBUTE_X = "x"; static var XML_ATTRIBUTE_Y = "y"; }
Symbol 20502 MovieClip [__Packages.com.google.youtube.videoclick.components.EventsListDisplay] Frame 0
class com.google.youtube.videoclick.components.EventsListDisplay extends com.google.youtube.videoclick.components.ElementsListBase { var eventsList, setVideoPlayer, setAnnotationsLayer, playerAdapter, annotationsLayer, length, push; function EventsListDisplay (events, playerAdapter, annotationsLayer) { super(); eventsList = events; setVideoPlayer(playerAdapter); setAnnotationsLayer(annotationsLayer); } function drawRecent() { var _local2 = eventsList.getRecentlyAdded(); var _local3 = _local2.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { var _local5 = new com.google.youtube.videoclick.components.EventDisplay(_local2[_local4], playerAdapter, annotationsLayer); addEvent(_local5); _local5.draw(); } } function end() { } function pause() { var _local2 = 0; for ( ; _local2 < length ; _local2++) { var _local3 = com.google.youtube.videoclick.components.EventDisplay(this[_local2]); _local3.pause(); } } function reset() { var _local2 = 0; for ( ; _local2 < length ; _local2++) { var _local3 = com.google.youtube.videoclick.components.EventDisplay(this[_local2]); _local3.reset(); } } function resume() { var _local2 = 0; for ( ; _local2 < length ; _local2++) { var _local3 = com.google.youtube.videoclick.components.EventDisplay(this[_local2]); _local3.resume(); } } function addEvent(eventDisplay) { push(eventDisplay); } function destroy() { var _local3 = 0; for ( ; _local3 < length ; _local3++) { var _local4 = com.google.youtube.videoclick.components.EventDisplay(this[_local3]); _local4.removeFromDisplay(); } super.reset(); eventsList.reset(); } function getDisplayObjectFor(bean) { var _local3 = ((bean instanceof com.google.youtube.videoclick.beans.Annotation) ? (com.google.youtube.videoclick.beans.Annotation(bean)) : null); var _local4 = ((bean instanceof com.google.youtube.videoclick.beans.Segment) ? (com.google.youtube.videoclick.beans.Segment(bean)) : null); if ((!_local4) && (!_local3)) { return(null); } var _local5 = 0; for ( ; _local5 < length ; _local5++) { var _local6 = com.google.youtube.videoclick.components.EventDisplay(this[_local5]); var _local7 = _local6.getBean(); if (_local3 && (_local7.hasAnnotation() && (_local7.getAnnotation().getId() == _local3.getId()))) { return(_local6); } if (_local4 && (_local7.hasSegment() && (_local7.getSegment().getId() == _local4.getId()))) { return(_local6); } } return(null); } function toString() { return(("EventsListDisplay(" + super.toString) + ")"); } }
Symbol 20503 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModuleDescriptor] Frame 0
class com.google.youtube.players.modules.IPlayerModuleDescriptor { function IPlayerModuleDescriptor () { } }
Symbol 20504 MovieClip [__Packages.com.google.youtube.players.modules.ISubmenu] Frame 0
class com.google.youtube.players.modules.ISubmenu { function ISubmenu () { } }
Symbol 20505 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 playMode, isSized, configData, soundController, dataType, data, playState, videoLoader, still, cuedVideoData, currentVideoData, broadcast, videoDisplay, videoDisplayBg, topmostModuleDisplay, moduleDisplay, videoDisplayButton, preloader, errorDisplay, stillLoaderListener, attachMovie, createEmptyMovieClip; function VideoPlayer () { super(); playMode = PLAY_ONE; setPlayState(UNSTARTED); isSized = false; } function init(configDataObj, soundController_, opt_layout, opt_dataType, opt_data) { configData = configDataObj; soundController = soundController_; dataType = opt_dataType; data = opt_data; build(); } function play() { if ((playState != PLAYING) && (playState != BUFFERING)) { if ((playState == ENDED) && (!getCurrentVideoData().startingFromOffset)) { seekTo(0, true); } if (isVideoLoaded()) { videoLoader.play(); } else if (getCuedVideoData() != null) { loadVideoByVideoData(getCuedVideoData()); } } still._visible = false; } function pause() { if (getPlayState() == PLAYING) { videoLoader.pause(); } } function getCurrentTime() { return(videoLoader.getCurrentTime()); } function getVideoSize() { return(videoLoader.getVideoSize()); } function close() { videoLoader.close(); cuedVideoData = null; currentVideoData = null; videoLoaded = false; still.holder.unloadMovie(); } 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 seekTo(seconds, allowSeekAhead) { if (!videoLoader.isMetaDataLoaded()) { getCurrentVideoData().startSeconds = seconds; getCurrentVideoData().startingFromOffset = true; play(); } else { videoLoader.seekTo(seconds, allowSeekAhead); if (getPlayState() == ENDED) { videoLoader.pause(); } } broadcast({type:com.google.youtube.event.VideoPlayerEvent.SEEKING}); } function testHit(x, y) { return(videoDisplay.hitTest(x, y)); } 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; } } var _local11 = _local9 / _local10; var _local12 = newWidth; var _local13 = newHeight; if (_local12 > (_local11 * newHeight)) { _local12 = _local11 * newHeight; } else { _local13 = newWidth / _local11; } var _local14 = newX; var _local15 = newY; if (_local12 < _local7.width) { _local14 = Math.floor((_local7.width - _local12) / 2) + _local7.x; } if (_local13 < _local7.height) { _local15 = Math.floor((_local7.height - _local13) / 2) + _local7.y; } _local14 = Math.round(_local14); _local15 = Math.round(_local15); _local12 = Math.round(_local12); _local13 = Math.round(_local13); if ((_local12 == _local9) && (_local13 == _local10)) { setSmoothing(false); } else { setSmoothing(true); } var _local16 = _local7.width; var _local17 = _local7.height; if (_local16 > (STILL_ASPECT_RATIO * _local7.height)) { _local16 = STILL_ASPECT_RATIO * _local17; } else { _local17 = _local16 / STILL_ASPECT_RATIO; } var _local18 = Math.round((_local7.width - _local16) / 2) + _local7.x; var _local19 = Math.round((_local7.height - _local17) / 2) + _local7.y; moduleDisplay._x = (topmostModuleDisplay._x = _local7.x); moduleDisplay._y = (topmostModuleDisplay._y = _local7.y); if (doSmoothTransition) { broadcast({type:com.google.youtube.event.UIEvent.START_RESIZE, target:this}); com.gs.TweenLite.to(videoDisplay, MENU_TRANSITION_SPEED, {_width:_local12, _height:_local13, _x:_local14, _y:_local15, onComplete:com.google.chianti.event.EventDelegate.create(this, broadcastViewportSizeChange)}); com.gs.TweenLite.to(videoDisplayButton, MENU_TRANSITION_SPEED, {_width:_local12, _height:_local13, _x:_local14, _y:_local15}); com.gs.TweenLite.to(still, MENU_TRANSITION_SPEED, {_width:_local16, _height:_local17, _x:_local18, _y:_local19}); com.gs.TweenLite.to(preloader, MENU_TRANSITION_SPEED, {_x:(_local12 / 2) + _local14, _y:(_local13 / 2) + _local15}); com.gs.TweenLite.to(errorDisplay, MENU_TRANSITION_SPEED, {_width:_local7.width, _height:_local7.height, _x:_local7.x, _y:_local7.y}); com.gs.TweenLite.to(videoDisplayBg, MENU_TRANSITION_SPEED, {_width:_local7.width, _height:_local7.height, _x:_local7.x, _y:_local7.y}); } else { videoDisplay._x = (videoDisplayButton._x = _local14); videoDisplay._y = (videoDisplayButton._y = _local15); videoDisplay._width = (videoDisplayButton._width = _local12); videoDisplay._height = (videoDisplayButton._height = _local13); errorDisplay._x = _local7.x; errorDisplay._y = _local7.y; errorDisplay._width = _local7.width; errorDisplay._height = _local7.height; preloader._x = (_local7.width / 2) + _local7.x; preloader._y = (_local7.height / 2) + _local7.y; still._x = _local18; still._y = _local19; still._width = _local16; still._height = _local17; videoDisplayBg._x = _local7.x; videoDisplayBg._y = _local7.y; videoDisplayBg._width = _local7.width; videoDisplayBg._height = _local7.height; broadcastViewportSizeChange(); } } function broadcastViewportSizeChange() { broadcast({type:com.google.youtube.event.UIEvent.RESIZE, target:this}); } function isVideoLoaded() { return(videoLoaded); } function getPlayState() { return(playState); } function setPlayState(newPlayState) { if (newPlayState != getPlayState()) { playState = newPlayState; broadcast({type:com.google.youtube.event.VideoPlayerEvent.STATE_CHANGE, data:playState, target:this}); } } function loadVideoByVideoData(videoData) { if ((!videoData.id) && (!videoData.flvurl)) { return(undefined); } clear(); videoLoader.reset(); videoLoaded = false; currentVideoData = null; cuedVideoData = null; isSized = false; if (recoverableErrorActive) { errorDisplay.error_txt.text = ""; errorDisplay._visible = false; } still._visible = false; if (videoData.loadingFromOffset) { cuedVideoData = videoData; getCurrentVideoData().loadingFromOffset = null; seekTo(getCurrentVideoData().startSeconds, true); } else { currentVideoData = videoData; videoLoaded = true; videoLoader.loadVideoByVideoData(videoData); setPreloaderVisibility(true); } } function cueVideoByVideoData(videoData) { if (!videoData.id) { return(undefined); } clear(); videoLoader.reset(); videoLoaded = false; still._visible = true; var _local3 = new com.google.utils.ImageLoader(true); stillLoaderListener = {}; stillLoaderListener.onLoadInit = com.google.chianti.event.EventDelegate.create(this, onStillLoaded); _local3.addListener(stillLoaderListener); still.holder.removeMovieClip(); still.createEmptyMovieClip("holder", 1); still.holder._alpha = 0; if (videoData.thumbnailUrlHighQuality != undefined) { _local3.loadImage(videoData.thumbnailUrlHighQuality, still.holder); } else { _local3.loadImage(videoData.thumbnailUrl.toString(), still.holder); } cuedVideoData = videoData; currentVideoData = null; setPlayState(VIDEO_CUED); broadcast({type:com.google.youtube.event.VideoPlayerEvent.VIDEO_CUED, data:videoData, target:this}); } function clear() { videoDisplay.video.clear(); } function getCuedVideoData() { return(cuedVideoData); } function showRecoverableError(msg) { errorDisplay._visible = true; errorDisplay.error_txt.text = msg; recoverableErrorActive = true; } function showFatalError(msg) { errorDisplay._visible = true; errorDisplay.error_txt.text = msg; } function setPlayMode(newMode) { playMode = newMode; broadcast({type:com.google.youtube.event.VideoPlayerEvent.PLAY_MODE_CHANGE, data:{mode:newMode}, target:this}); } function getPlayMode() { return(playMode); } function onStillLoaded(mc) { mc._width = DEFAULT_WIDTH; mc._height = DEFAULT_HEIGHT; mc._alpha = 100; } 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 (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) { switch (evt.type) { case com.google.youtube.event.VideoLoaderEvent.PLAY : if (getPlayState() != PLAYING) { setPlayState(PLAYING); setPreloaderVisibility(false); broadcast({type:com.google.youtube.event.VideoPlayerEvent.PLAY, target:this}); } break; case com.google.youtube.event.VideoLoaderEvent.BUFFERING : if (getPlayState() != BUFFERING) { setPlayState(BUFFERING); setPreloaderVisibility(true); broadcast({type:com.google.youtube.event.VideoPlayerEvent.BUFFERING, target:this}); } break; case com.google.youtube.event.VideoLoaderEvent.PAUSE : setPlayState(PAUSED); broadcast({type:com.google.youtube.event.VideoPlayerEvent.PAUSE, target:this}); break; case com.google.youtube.event.VideoLoaderEvent.END : setPlayState(ENDED); setPreloaderVisibility(false); broadcast({type:com.google.youtube.event.VideoPlayerEvent.END, target:this}); } } function getCurrentVideoData() { if (videoLoaded) { return(currentVideoData); } return(cuedVideoData); } function getVideoUrl() { var _local2 = configData.BASE_YT_URL + "watch?v="; var _local3 = getCurrentVideoData().id; if (_local3) { _local2 = _local2 + _local3; _local2 = _local2 + (configData.eurl ? ("&eurl=" + configData.eurl) : ""); return(_local2); } return(""); } 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(); } } function onVideoDisplayRelease() { broadcast({type:com.google.youtube.event.GenericButtonEvent.RELEASE, target:this}); } function getVideoEmbedCode() { return(configData.getEmbedHtml(getCurrentVideoData().id)); } function onStreamNotFound(evt) { setPreloaderVisibility(false); broadcast(evt); } function onVideoDataError(evt) { setPreloaderVisibility(false); broadcast(evt); } function onVideoDataLoaded(evt) { broadcast(evt); } function setNetStream(ns) { videoDisplay.video.attachVideo(ns); } function setSmoothing(enable) { videoDisplay.video.smoothing = enable; } function onKeyUp() { switch (Key.getCode()) { case Key.SPACE : if (getPlayState() == PLAYING) { pause(); } else { play(); } break; case Key.LEFT : seekTo(0, true); break; case Key.RIGHT : var _local2 = getDuration() / 10; seekTo(Math.min(getCurrentTime() + _local2, getDuration()), true); } } function enableKeyboardControls() { Key.addListener(this); } function createVideoLoader() { return(new com.google.youtube.players.VideoLoader(configData, soundController, dataType, data)); } function build() { still = createEmptyMovieClip("still", STILL_DEPTH); var _local2 = still.createEmptyMovieClip("mask", 2); com.google.youtube.util.Drawing.drawRect(_local2, 0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT, 6684672); still.setMask(_local2); videoLoader = createVideoLoader(); 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.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, onVideoDataLoaded)); videoDisplayBg = createEmptyMovieClip("videoDisplayBg", VIDEO_DISPLAY_BG_DEPTH); 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, 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); enableVideoDisplayButton(); videoDisplayButton._alpha = 0; moduleDisplay = createEmptyMovieClip("moduleDisplay", MODULE_DISPLAY_DEPTH); topmostModuleDisplay = createEmptyMovieClip("topmostModuleDisplay", TOPMOST_MODULE_DISPLAY_DEPTH); errorDisplay = createEmptyMovieClip("errorDisplay", ERROR_DISPLAY_DEPTH); com.google.youtube.util.Drawing.drawRect(errorDisplay, 0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT, 0); errorDisplay._alpha = 90; var _local3 = new TextFormat(); _local3.color = 16777215 /* 0xFFFFFF */; _local3.size = 15; _local3.font = "_sans"; _local3.align = "center"; errorDisplay.createTextField("error_txt", errorDisplay.getNextHighestDepth(), 0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT); errorDisplay.error_txt.multiline = true; errorDisplay.error_txt.wordWrap = true; errorDisplay.error_txt.setNewTextFormat(_local3); errorDisplay._visible = false; if (configData.disableKeyboard != "1") { enableKeyboardControls(); } } function enableVideoDisplayButton() { videoDisplayButton.onRelease = com.google.chianti.event.EventDelegate.create(this, onVideoDisplayRelease); } 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 = 1; 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 PLAY_ONE = "playone"; static var PLAY_ALL = "playall"; static var VIDEO_DISPLAY_BG_DEPTH = 10; static var STILL_DEPTH = 20; static var VIDEO_DISPLAY_DEPTH = 30; static var DISPLAY_BUTTON_DEPTH = 40; static var MODULE_DISPLAY_DEPTH = 50; static var ERROR_DISPLAY_DEPTH = 60; static var END_SCREEN_DEPTH = 70; static var TOPMOST_MODULE_DISPLAY_DEPTH = 80; static var PRELOADER_DEPTH = 90; static var LARGE_PLAY_BUTTON_DEPTH = 100; static var STILL_ASPECT_RATIO = 4 / 3; var videoLoaded = false; var recoverableErrorActive = false; }
Symbol 20506 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 20507 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 20508 MovieClip [__Packages.com.google.youtube.videoclick.components.PauseManager] Frame 0
class com.google.youtube.videoclick.components.PauseManager extends com.google.youtube.AbstractBroadcaster { static var instance; var videoPlayer, broadcast; function PauseManager () { super(); } static function getInstance() { if (!instance) { instance = new com.google.youtube.videoclick.components.PauseManager(); } return(instance); } function getCurrentTime() { var _local2 = new Date(); return(_local2.getTime() / 1000); } function reset() { pauseStartTime = 0; pauseDuration = 0; clearPauseTimeout(); } function setVideoPlayer(newVideoPlayer) { videoPlayer = newVideoPlayer; } function clearPauseTimeout() { if (!_global.isNaN(pauseTimeoutId)) { com.google.youtube.videoclick.util.TimeoutUtil.clearTimeout(pauseTimeoutId); pauseTimeoutId = _global.NaN; broadcast({type:EVENT_UNPAUSED, target:this}); } } function setPauseTimeout(duration, callbackName) { if (!_global.isNaN(pauseTimeoutId)) { com.google.youtube.videoclick.util.TimeoutUtil.clearTimeout(pauseTimeoutId); } pauseTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, callbackName, duration * 1000); } function pause(duration) { if (videoPlayer == undefined) { return(undefined); } setPauseTimeout(duration, "play"); pauseStartTime = getCurrentTime(); pauseDuration = duration; videoPlayer.pause(); } function play() { if (videoPlayer == undefined) { return(undefined); } videoPlayer.play(); } function onPlay() { reset(); } function precentTimeElapsed() { if (pauseDuration == 0) { return(100); } return(((getCurrentTime() - pauseStartTime) / pauseDuration) * 100); } function pauseIndefinitly() { videoPlayer.pause(); } static var EVENT_UNPAUSED = "pauseManagerUnpaused"; var pauseTimeoutId = _global.NaN; var pauseStartTime = 0; var pauseDuration = 0; }
Symbol 20509 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back { function Back () { } static function easeIn(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / d; return((((c * t) * t) * (((s + 1) * t) - s)) + b); } static function easeOut(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = (t / d) - 1; return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b); } static function easeInOut(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / (d / 2); if (t < 1) { s = s * 1.525; return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b); } t = t - 2; s = s * 1.525; return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b); } }
Symbol 20510 MovieClip [__Packages.com.google.youtube.players.modules.ISubmenuObservable] Frame 0
class com.google.youtube.players.modules.ISubmenuObservable { function ISubmenuObservable () { } }
Symbol 20511 MovieClip [__Packages.com.google.youtube.videoclick.beans.Url] Frame 0
class com.google.youtube.videoclick.beans.Url implements com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var parent, url, type, dirty; function Url (urlObject, parent) { this.parent = parent; url = urlObject._value; type = urlObject[XML_ATTRIBUTE_TYPE]; if (type == URL_TYPE_EXTERNAL_LINK) { setFromFullyQualifiedUrl(url); } dirty = false; } static function createDefault(parent) { var _local3 = new com.google.youtube.videoclick.beans.Url(); _local3.url = com.google.youtube.videoclick.VideoclickConfig.DEFAULT_VIDEO; _local3.type = URL_TYPE_VIDEO; _local3.parent = parent; return(_local3); } function isValid() { return((url != null) && ((type == URL_TYPE_CHANNEL) || ((type == URL_TYPE_SEARCH) || ((type == URL_TYPE_EXTERNAL_LINK) || ((type == URL_TYPE_RESP_UPLOAD) || ((type == URL_TYPE_GROUP) || ((type == URL_TYPE_VIDEO) || ((type == URL_TYPE_PLAYLIST) || (type == URL_TYPE_COMPOSE))))))))); } function getUrlType() { return(type); } function getUrlCode() { return(url); } function setFromFullyQualifiedUrl(fullUrl) { var _local3 = fullUrl; if (setUrlFromShortCode(fullUrl)) { return(true); } fullUrl = removeLocalePrefixes(fullUrl); fullUrl = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.YOUTUBE_DOMAINS, true); if (fullUrl == null) { var _local5 = com.google.youtube.videoclick.VideoclickConfig.getYoutubeBaseUrl(); var _local6 = _local5.substring(0, _local5.length - 1); fullUrl = removePrefix(_local3, [_local6]); if (fullUrl == null) { return(false); } } var _local4 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.VIDEO_PAGES, false); if (_local4) { var _local7 = getUrlParameterValue(_local4, com.google.youtube.videoclick.VideoclickConfig.VIDEO_PARAM); if (testVideoCode(_local7)) { type = URL_TYPE_VIDEO; setUrl(_local7); } else { return(false); } return(true); } _local4 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.RESP_UPLOAD_PAGES, false); if (_local4) { var _local8 = getUrlParameterValue(_local4, com.google.youtube.videoclick.VideoclickConfig.RESP_UPLOAD_PARAM); if (_local8 == com.google.youtube.videoclick.VideoclickConfig.getCurrentVideoId()) { type = URL_TYPE_RESP_UPLOAD; setUrl(_local8); } else { return(false); } return(true); } _local4 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.RESULT_PAGES, false); if (_local4) { var _local9 = getUrlParameterValue(_local4, com.google.youtube.videoclick.VideoclickConfig.RESULT_PARAM); if (_local9) { type = URL_TYPE_SEARCH; setUrl(_local9); return(true); } return(false); } _local4 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.USER_PAGES, false); if (_local4) { var _local10 = getUrlParameterValue(_local4, com.google.youtube.videoclick.VideoclickConfig.USER_PARAM); if (_local10 && (testUserCode(_local10))) { type = URL_TYPE_CHANNEL; setUrl(_local10); return(true); } return(false); } _local4 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.PLAYLIST_PAGES, false); if (_local4) { var _local11 = getUrlParameterValue(_local4, com.google.youtube.videoclick.VideoclickConfig.PLAYLIST_PARAM); if (_local11 && (testPlaylistCode(_local11))) { type = URL_TYPE_PLAYLIST; setUrl(_local11); return(true); } return(false); } _local4 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.INBOX_PAGES, false); if (_local4) { var _local12 = getUrlParameterValue(_local4, com.google.youtube.videoclick.VideoclickConfig.COMPOSE_PARAM); if (_local12 == "1") { var _local13 = getUrlParameterValue(_local4, com.google.youtube.videoclick.VideoclickConfig.COMPOSE_TO_PARAM); if (_local13 && (testUserCode(_local13))) { type = URL_TYPE_COMPOSE; setUrl(_local13); return(true); } } else { return(false); } } _local4 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.CHANNEL_PAGES, false); if (_local4) { var _local14 = removeFlags(_local4); if (_local14 && (testUserCode(_local14))) { type = URL_TYPE_CHANNEL; setUrl(_local14); return(true); } return(false); } _local4 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.GROUP_PAGES, false); if (_local4) { var _local15 = removeFlags(_local4); if (_local15 && (testUserCode(_local15))) { type = URL_TYPE_GROUP; setUrl(_local15); return(true); } return(false); } var _local16 = removeFlags(fullUrl); if (_local16.charAt(0) == "/") { _local16 = _local16.slice(1); if (testUserCode(_local16)) { type = URL_TYPE_CHANNEL; setUrl(_local16); return(true); } } return(false); } function getFullyQualifiedUrl() { if (!isValid()) { return(null); } return(buildUrl(type, url)); } function setUrlFromShortCode(urlShortCode) { if (!(urlShortCode === com.google.youtube.videoclick.VideoclickConfig.RESP_UPLOAD_SHORT_CODE)) { } else { type = URL_TYPE_RESP_UPLOAD; setUrl(com.google.youtube.videoclick.VideoclickConfig.getCurrentVideoId()); return(true); } return(false); } function removeLocalePrefixes(fullUrl) { var _local3 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.HTTP_PREFIXES, true); if (_local3) { fullUrl = _local3; } _local3 = removePrefix(fullUrl, com.google.youtube.videoclick.VideoclickConfig.DOMAIN_PREFIXES, true); if (_local3) { fullUrl = _local3; } else { var _local4 = fullUrl.indexOf("."); if (_local4 == 2) { fullUrl = fullUrl.slice(3); } } return(fullUrl); } function isAlphaNumeric(str, opt_moreChars) { if (!opt_moreChars) { opt_moreChars = ""; } var _local4 = 0; for ( ; _local4 < str.length ; _local4++) { if (((("0" <= str.charAt(_local4)) && (str.charAt(_local4) <= "9")) || ((("a" <= str.charAt(_local4)) && (str.charAt(_local4) <= "z")) || ((("A" <= str.charAt(_local4)) && (str.charAt(_local4) <= "Z")) || (opt_moreChars.indexOf(str.charAt(_local4)) != -1)))) == false) { return(false); } } return(true); } function removePrefix(testUrl, patterns, caseInsensitive) { var _local5 = 0; for ( ; _local5 < patterns.length ; _local5++) { var _local6 = testUrl.substr(0, patterns[_local5].length); if (caseInsensitive) { _local6 = _local6.toLowerCase(); } if (_local6 == patterns[_local5]) { return(testUrl.slice(patterns[_local5].length)); } } return(null); } function getUrlParameterValue(testUrl, parameter) { var _local4 = testUrl.split("&"); var _local5 = 0; for ( ; _local5 < _local4.length ; _local5++) { var _local6 = _local4[_local5].substr(0, parameter.length); if (_local6 == parameter) { return(_local4[_local5].slice(parameter.length)); } } return(null); } function removeFlags(testUrl) { var _local3 = testUrl.indexOf("&"); if (_local3 != -1) { return(testUrl.substr(0, _local3)); } return(testUrl); } function testVideoCode(videoCode) { return((videoCode.length == 11) && (isAlphaNumeric(videoCode, "_-"))); } function testUserCode(userCode) { return((1 < userCode.length) && ((userCode.length <= 20) && (isAlphaNumeric(userCode)))); } function testPlaylistCode(playListCode) { return((playListCode.length == 16) && (isAlphaNumeric(playListCode, "_"))); } function setUrl(value) { url = value; dirty = true; com.google.youtube.videoclick.beans.EventsList.getInstance().reportChange(parent, com.google.youtube.videoclick.beans.EventsList.EVENT_ANNOTATION_URL_CHANGE, this); } function getXmlType() { switch (type) { case URL_TYPE_RESP_UPLOAD : return(URL_TYPE_EXTERNAL_LINK); case URL_TYPE_GROUP : return(URL_TYPE_EXTERNAL_LINK); case URL_TYPE_PLAYLIST : return(URL_TYPE_EXTERNAL_LINK); case URL_TYPE_COMPOSE : return(URL_TYPE_EXTERNAL_LINK); } return(type); } function getXmlUrl() { switch (type) { case URL_TYPE_RESP_UPLOAD : case URL_TYPE_GROUP : case URL_TYPE_PLAYLIST : case URL_TYPE_COMPOSE : return(buildUrl(type, url)); } return(url); } function getXml(doc) { var _local3 = doc.createElement(XML_ELEMENT_NAME); if (isValid()) { _local3.attributes[XML_ATTRIBUTE_TYPE] = getXmlType(); _local3.appendChild(doc.createTextNode(getXmlUrl())); } return(_local3); } function isDirty() { return(dirty); } function markAsClean() { dirty = false; } function toString() { return(((("Url(" + url) + ",") + type) + ")"); } static function buildUrl(newType, newUrl) { switch (newType) { case URL_TYPE_EXTERNAL_LINK : return(newUrl); case URL_TYPE_SEARCH : return(com.google.youtube.videoclick.VideoclickConfig.getYoutubeSearchUrlPrefix() + newUrl); case URL_TYPE_VIDEO : return(com.google.youtube.videoclick.VideoclickConfig.getYoutubeVideoWatchUrlPrefix() + newUrl); case URL_TYPE_RESP_UPLOAD : return(com.google.youtube.videoclick.VideoclickConfig.getYoutubeUploadRespUrlPrefix() + newUrl); case URL_TYPE_GROUP : return(com.google.youtube.videoclick.VideoclickConfig.getYoutubeGroupUrlPrefix() + newUrl); case URL_TYPE_CHANNEL : return(com.google.youtube.videoclick.VideoclickConfig.getYoutubeUserPageUrlPrefix() + newUrl); case URL_TYPE_PLAYLIST : return(com.google.youtube.videoclick.VideoclickConfig.getYoutubePlaylistUrlPrefix() + newUrl); case URL_TYPE_COMPOSE : return(com.google.youtube.videoclick.VideoclickConfig.getYoutubeComposeUrlPrefix() + newUrl); } return(null); } static var URL_TYPE_SEARCH = "search"; static var URL_TYPE_VIDEO = "video"; static var URL_TYPE_CHANNEL = "userChannel"; static var URL_TYPE_EXTERNAL_LINK = "hyperlink"; static var URL_TYPE_RESP_UPLOAD = "responseUpload"; static var URL_TYPE_GROUP = "group"; static var URL_TYPE_PLAYLIST = "playlist"; static var URL_TYPE_COMPOSE = "compose"; static var XML_ELEMENT_NAME = "url"; static var XML_ATTRIBUTE_TYPE = "type"; }
Symbol 20512 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 20513 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 FormatTime(time) { time = Math.floor(time); var _local3 = time % 60; var _local4 = Math.floor((time / 60) % 60); var _local5 = Math.floor(time / 3600); var _local6 = ""; if (_local5 > 0) { _local6 = _local6 + (_local5 + ":"); } if (_local4 < 10) { _local6 = _local6 + "0"; } _local6 = _local6 + (_local4 + ":"); if (_local3 < 10) { _local6 = _local6 + "0"; } _local6 = _local6 + String(_local3); return(_local6); } 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 == ""))); } }
Symbol 20514 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 20515 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 20516 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) { var _local3 = makeUrl(args); sendUrl(_local3); } function sendUrl(url) { var _local3 = new MovieClipLoader(); var _local4 = _root.createEmptyMovieClip("junkClip", 999999); _local3.loadClip(url, _local4); } }
Symbol 20517 MovieClip [__Packages.com.google.youtube.videoclick.beans.Annotation] Frame 0
class com.google.youtube.videoclick.beans.Annotation implements com.google.youtube.videoclick.beans.ServerDataAware, com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var initAnnotationObject, id, text, url, isOnServer, dirty, segment; function Annotation (annotationNode, displayRect) { initAnnotationObject = annotationNode; id = annotationNode[XML_ATTRIBUTE_ID]; text = new com.google.youtube.videoclick.beans.Text(annotationNode[com.google.youtube.videoclick.beans.Text.XML_ELEMENT_NAME], displayRect, this); if (annotationNode[com.google.youtube.videoclick.beans.Url.XML_ELEMENT_NAME]) { url = new com.google.youtube.videoclick.beans.Url(annotationNode[com.google.youtube.videoclick.beans.Url.XML_ELEMENT_NAME], this); } else { url = null; } isOnServer = true; dirty = false; } function setSegment(segment) { if (this.segment != null) { return(undefined); } this.segment = segment; } function getText() { return(text); } function setText(inText, source) { text.setText(inText, source); return(true); } function getId() { return(id); } function getUrl() { return(url); } function setUrl(urlString) { if (!urlString) { if (url) { url = null; dirty = true; com.google.youtube.videoclick.beans.EventsList.getInstance().reportChange(this, com.google.youtube.videoclick.beans.EventsList.EVENT_ANNOTATION_URL_CHANGE, this); } return(true); } if (!url) { url = com.google.youtube.videoclick.beans.Url.createDefault(this); } if (!url.setFromFullyQualifiedUrl(urlString)) { url = null; dirty = true; com.google.youtube.videoclick.beans.EventsList.getInstance().reportChange(this, com.google.youtube.videoclick.beans.EventsList.EVENT_ANNOTATION_URL_CHANGE, this); return(false); } return(true); } function hasUrl() { return(url != null); } function getUrlString() { if (!url) { return(null); } return(url.getFullyQualifiedUrl()); } function isDirty() { return(dirty || (url.isDirty() || (text.isDirty()))); } function markAsClean() { url.markAsClean(); text.markAsClean(); dirty = false; isOnServer = true; } function markAsNew() { dirty = true; isOnServer = false; } function addAnnotationXmlParts(annotationXml, doc) { annotationXml.appendChild(getText().getXml(doc)); if (hasUrl()) { annotationXml.appendChild(url.getXml(doc)); } } function getXml(doc) { var _local3 = doc.createElement(getXmlElementName()); _local3.attributes[XML_ATTRIBUTE_ID] = getId(); addAnnotationXmlParts(_local3, doc); dirty = false; isOnServer = true; return(_local3); } function existsOnServer() { return(isOnServer); } function getXmlElementName() { return(null); } function toString() { var _local2 = ("Annotation(" + text) + ","; if (segment != null) { _local2 = _local2 + (segment + ","); } _local2 = _local2 + (url + ")"); return(_local2); } function equals(another) { return(id == another.id); } static var XML_ELEMENT_TEXT = "text"; static var XML_ATTRIBUTE_ID = "id"; }
Symbol 20518 MovieClip [__Packages.com.google.youtube.videoclick.beans.PopupAnnotation] Frame 0
class com.google.youtube.videoclick.beans.PopupAnnotation extends com.google.youtube.videoclick.beans.Annotation implements com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var displayPosition, dirty; function PopupAnnotation (popupAnnotationObject, displayRect) { super(popupAnnotationObject); displayPosition = new com.google.youtube.videoclick.beans.DisplayPosition(popupAnnotationObject[com.google.youtube.videoclick.beans.DisplayPosition.XML_ELEMENT_NAME], displayRect, this); } function getDisplayPosition() { return(displayPosition); } function setDisplayPosition(newDisplayPosition) { displayPosition = newDisplayPosition; } function setDisplayRect(rect) { displayPosition.setRectangle(rect); dirty = true; } function setDisplayRegion(r) { displayPosition.setX(r.getX()); displayPosition.setY(r.getY()); displayPosition.setW(r.getW()); displayPosition.setH(r.getH()); displayPosition.setT(r.getTime()); displayPosition.setDepth(r.getDepth()); } function getXmlElementName() { return(XML_ELEMENT_NAME); } function addAnnotationXmlParts(annotationXml, doc) { super.addAnnotationXmlParts(annotationXml, doc); annotationXml.appendChild(displayPosition.getXml(doc)); return(annotationXml); } function isDirty() { return(super.isDirty() || (displayPosition.isDirty())); } function markAsClean() { super.markAsClean(); displayPosition.markAsClean(); } function toString() { return(((("PopupAnnotation(" + displayPosition) + ",") + super.toString()) + ")"); } static var XML_ELEMENT_NAME = "popupAnnotation"; }
Symbol 20519 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_, sentInitialPing_, sentTimeoutPing_, mediaInterval_, count_, lastBytes_, getMediaDuration, getVideoDownloadRetries, getBufferEmptyEvents, getPlayerState; 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(docid, format, sw) { if ((namespace_ != undefined) && (namespace_ != "")) { eventReporter_.addGlobalParameters({ns:namespace_}); } eventReporter_.addGlobalParameters({docid:docid}); if (sw != undefined) { eventReporter_.addGlobalParameters({sw:sw}); } if ((format != undefined) && (format != "")) { eventReporter_.addGlobalParameters({fmt:format}); } eventReporter_.addGlobalParameters(parameters_); } function registerImpression(docid, format, sw) { if (playbackStarted_) { endPlayback(); } if (eventReporter_) { delete eventReporter_; } eventReporter_ = new com.google.utils.EventReporter(urlBase_); setEventReporterParameters(docid, sw, format); var _local5 = {}; _local5.vi = "1"; eventReporter_.send(_local5); } function startPlayback(docid, format, sw) { if (playbackStarted_) { endPlayback(); } playbackStarted_ = true; if (eventReporter_ == undefined) { eventReporter_ = new com.google.utils.EventReporter(urlBase_); setEventReporterParameters(docid, format, sw); } if (sw != undefined) { sendSegments_ = true; } loadBandwidthData(); var _local5 = 0; var _local6 = 0; for (var index in downloadPerf_) { _local5 = _local5 + downloadPerf_[index].bytes; _local6 = _local6 + downloadPerf_[index].time; } if ((_local5 > 0) && (_local6 > 0)) { eventReporter_.addGlobalParameters({hbd:_local5}); eventReporter_.addGlobalParameters({hbt:_local6}); } sendDownloadData_ = false; var _local7 = getBytesDownloaded(); var _local8 = getTimerInSeconds(); recordedDownloadPerformance_ = false; downloadTimer_ = new com.google.utils.DownloadTimer(_local7, _local8); downloadPerformanceTimer_ = new com.google.utils.DownloadTimer(_local7, _local8); numSegments_ = 0; numSegmentsSent_ = 0; startTime_ = _local8; lastMediaTime_ = getMediaTime(); lastRealTime_ = startTime_; segmentStart_ = lastMediaTime_; sendInterval_ = null; 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_); } 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); eventReporter_.send(_local7); } if ((!sentInitialPing_) && (_local3 > 0)) { sentInitialPing_ = true; var _local8 = {st:_local3, et:_local3, fv:_global.escape(System.capabilities.version)}; setStandardArgs(_local8); 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; } function setStandardArgs(args) { var _local3 = getMediaDuration(); if (_local3 != undefined) { args.len = _local3; } if (getVideoDownloadRetries != undefined) { var _local4 = getVideoDownloadRetries(); if (_local4 > 0) { args.retries = _local4; } } if (getBufferEmptyEvents != undefined) { var _local5 = getBufferEmptyEvents(); var _local6 = _local5 - lastBufferEmptyEvents_; if (_local6 > 0) { args.nbe = _local6; } lastBufferEmptyEvents_ = _local5; } 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 _local7 = downloadTimer_.getSize(); if (_local7 > 0) { args.bd = _local7; args.bt = downloadTimer_.getDuration(); downloadTimer_.clearHistory(); } if (getPlayerState != undefined) { var _local8 = getPlayerState(); if (_local8) { for (var i in _local8) { args[i] = _local8[i]; } } } var _local9 = getTimerInSeconds() - startTime_; args.rt = _local9; } 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); eventReporter_.send(_local6); } numSegmentsSent_++; numSegments_ = 0; } } function sendWatchPoint() { var _local2 = getMediaTime(); var _local3 = {st:_local2, et:_local2, yttk:1}; setStandardArgs(_local3); eventReporter_.send(_local3); } 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 20520 MovieClip [__Packages.com.google.youtube.videoclick.util.TimeoutUtil] Frame 0
class com.google.youtube.videoclick.util.TimeoutUtil { function TimeoutUtil () { } static function setTimeout(context, method, timeout) { return(_global.setTimeout(context, method, getSafeTimeout(timeout))); } static function clearTimeout(timeoutId) { if (!_global.isNaN(timeoutId)) { _global.clearTimeout(timeoutId); } } static function setTimeoutFunction(func, timeout) { return(_global.setTimeout(func, getSafeTimeout(timeout))); } static function getSafeTimeout(timeout) { if (timeout > MAX_TIMEOUT) { timeout = MAX_TIMEOUT; } if (timeout <= MIN_TIMEOUT) { timeout = MIN_TIMEOUT; } return(timeout); } static var MAX_TIMEOUT = ((10 * 60) * 60) * 1000; static var MIN_TIMEOUT = 10; }
Symbol 20521 MovieClip [__Packages.com.google.webutil.url.YouTubeUtils] Frame 0
class com.google.webutil.url.YouTubeUtils { function YouTubeUtils () { } static function isValidYouTubeHost(host) { 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 - 3] == "corp") && (_local3[_local3.length - 2] == "google")))) && (_local3[_local3.length - 1] == "com")) { return(true); } return(false); } static function isValidYouTubeUrl(url) { var _local3 = url.split("/")[2]; return(com.google.utils.SecurityUtils.isSafeUrl(url) && (isValidYouTubeHost(_local3))); } }
Symbol 20522 MovieClip [__Packages.com.google.youtube.videoclick.components.AnnotationsManager] Frame 0
class com.google.youtube.videoclick.components.AnnotationsManager { var playerAdapter, eventsListDisplay, annotationsLoaded; function AnnotationsManager (playerAdapter, annotationsLayer) { this.playerAdapter = playerAdapter; var _local4 = playerAdapter.getDisplayRect(); com.google.youtube.videoclick.beans.EventsList.getInstance().setDisplayRect(_local4); eventsListDisplay = new com.google.youtube.videoclick.components.EventsListDisplay(com.google.youtube.videoclick.beans.EventsList.getInstance(), playerAdapter, annotationsLayer); registerLoadEvents(); annotationsLoaded = false; } function registerLoadEvents() { com.google.youtube.videoclick.backendadapters.AnnotationsLoader.getInstance().registerEvent(com.google.youtube.videoclick.backendadapters.AnnotationsLoader.EVENT_ANNOTATIONS_LOADED, com.google.chianti.event.EventDelegate.create(this, onAnnotationsLoaded)); com.google.youtube.videoclick.backendadapters.AnnotationsLoader.getInstance().registerEvent(com.google.youtube.videoclick.backendadapters.AnnotationsLoader.EVENT_ANNOTATIONS_LOAD_ERROR, com.google.chianti.event.EventDelegate.create(this, onAnnotationsLoadError)); } function unregisterLoadEvents() { com.google.youtube.videoclick.backendadapters.AnnotationsLoader.getInstance().unregisterAll(); } function isAnnotationsLoaded() { return(annotationsLoaded); } function loadAnnotations(videoId) { var _local3 = com.google.youtube.videoclick.VideoclickConfig.getAnnotationsUrl(videoId); if (playerAdapter.isEmbeddedPlayer()) { _local3 = _local3 + "&source=embed"; } com.google.youtube.videoclick.backendadapters.AnnotationsLoader.getInstance().loadAnnotations(_local3); annotationsLoaded = true; } function unloadAnnotations() { eventsListDisplay.destroy(); annotationsLoaded = false; com.google.youtube.videoclick.backendadapters.AnnotationsLoader.getInstance().reset(); } function onAnnotationsLoaded(evt) { var _local3 = evt.data.rootNode; addAnnotations(_local3); com.google.youtube.videoclick.beans.EventsList.getInstance().reportReady(true); } function onAnnotationsLoadError(evt) { com.google.youtube.videoclick.beans.EventsList.getInstance().reportReady(false); } function addAnnotations(rootNode) { com.google.youtube.videoclick.beans.EventsList.getInstance().readFromXml(rootNode); addDebugInformation(com.google.youtube.videoclick.beans.EventsList.getInstance()); drawRecentAnnotations(); } function drawRecentAnnotations() { eventsListDisplay.drawRecent(); } function addDebugInformation(obj) { } function pause() { eventsListDisplay.pause(); } function resume() { eventsListDisplay.resume(); } function end() { eventsListDisplay.end(); } function reset() { eventsListDisplay.reset(); } function onSeek() { reset(); } function destroy() { unregisterLoadEvents(); unloadAnnotations(); } }
Symbol 20523 MovieClip [__Packages.com.google.youtube.videoclick.components.TimedUiComponent] Frame 0
class com.google.youtube.videoclick.components.TimedUiComponent { function TimedUiComponent () { } }
Symbol 20524 MovieClip [__Packages.com.google.youtube.videoclick.components.TimedUiComponentBase] Frame 0
class com.google.youtube.videoclick.components.TimedUiComponentBase implements com.google.youtube.videoclick.components.TimedUiComponent { var id, playerAdapter, annotationsLayer, shapeMc, containerMc; function TimedUiComponentBase (id, playerAdapter, annotationsLayer) { this.id = id; this.playerAdapter = playerAdapter; this.annotationsLayer = annotationsLayer; } function draw(opt_isSeek) { } function pause() { } function resume() { } function reset() { removeFromDisplay(); draw(true); } function attachUrl(url) { if (shapeMc) { shapeMc.onRelease = com.google.chianti.event.EventDelegate.create(this, onReleaseHandler, url); } isLink = true; } function pausePlayback() { com.google.youtube.videoclick.components.PauseManager.getInstance().pauseIndefinitly(); } function onReleaseHandler(url) { if (playerAdapter.isEmbeddedPlayer()) { var _local3 = "_blank"; pausePlayback(); } else { var _local3 = "_top"; } openUrl(url, _local3); } function openUrl(url, opt_target) { var _local4 = getTrackingObjectType() + "Clicked"; if (opt_target) { _local4 = _local4 + opt_target; } com.google.youtube.videoclick.util.TrackUtil.trackEventUnsafeParams(_local4, url); if (opt_target) { getURL (url, opt_target); } else { getURL (url, "_self"); } } function isVideoPlaying() { var _local2 = playerAdapter.getPlayState(); return((_local2 == com.google.youtube.players.VideoPlayer.PLAYING) || ((_local2 == com.google.youtube.players.VideoPlayer.BUFFERING) || ((_local2 == com.google.youtube.players.VideoPlayer.VIDEO_CUED) || (_local2 == com.google.youtube.players.VideoPlayer.SEEKING)))); } function isVideoProgressing() { var _local2 = playerAdapter.getPlayState(); return(_local2 == com.google.youtube.players.VideoPlayer.PLAYING); } function drawLater(when) { clearRedrawTimeout(); var _local3 = when.getTime() - getPlayheadTime(); drawLaterTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "draw", _local3 * 1000); } function clearRedrawTimeout() { if (!_global.isNaN(drawLaterTimeoutId)) { _global.clearTimeout(drawLaterTimeoutId); drawLaterTimeoutId = _global.NaN; } } function removeFromDisplay() { destroy(); } function destroy() { if (shapeMc) { shapeMc.removeMovieClip(); shapeMc = undefined; } if (containerMc) { containerMc.removeMovieClip(); containerMc = undefined; } } function isVisibleNow() { return((shapeMc != undefined) && (shapeMc != null)); } function getUniqueId() { return((id + "_") + (++serial)); } function getPlayheadTime() { return(playerAdapter.getCurrentTime()); } function getTrackingObjectType() { return("Component"); } function onRollOver() { com.google.youtube.videoclick.util.TrackUtil.trackEvent(getTrackingObjectType() + "MouseOver", (isLink ? "link" : "notLink")); } function onRollOut() { com.google.youtube.videoclick.util.TrackUtil.trackEvent(getTrackingObjectType() + "MouseOff", (isLink ? "link" : "notLink")); } static var serial = 0; var isLink = false; var drawLaterTimeoutId = _global.NaN; }
Symbol 20525 MovieClip [__Packages.com.google.youtube.videoclick.components.AnnotationDisplay] Frame 0
class com.google.youtube.videoclick.components.AnnotationDisplay extends com.google.youtube.videoclick.components.TimedUiComponentBase implements com.google.youtube.videoclick.components.TimedUiComponent { var annotationBean, segmentDisplay, textField, containerMc, annotationsLayer, getUniqueId, shapeMc, linkIcon, clearRedrawTimeout, displayRect, playerAdapter; function AnnotationDisplay (annotationBean, playerAdapter, annotationsLayer) { super(annotationBean.getId(), playerAdapter, annotationsLayer); this.annotationBean = annotationBean; } static function create(annotation, playerAdapter, annotationsLayer) { if (annotation instanceof com.google.youtube.videoclick.beans.PopupAnnotation) { return(new com.google.youtube.videoclick.components.PopupAnnotationDisplay(com.google.youtube.videoclick.beans.PopupAnnotation(annotation), playerAdapter, annotationsLayer)); } if (annotation instanceof com.google.youtube.videoclick.beans.SpeechBubbleAnnotation) { return(new com.google.youtube.videoclick.components.SpeechBubbleAnnotationDisplay(com.google.youtube.videoclick.beans.SpeechBubbleAnnotation(annotation), playerAdapter, annotationsLayer)); } if (annotation instanceof com.google.youtube.videoclick.beans.HighlightAnnotation) { return(new com.google.youtube.videoclick.components.HighlightAnnotationDisplay(com.google.youtube.videoclick.beans.HighlightAnnotation(annotation), playerAdapter, annotationsLayer)); } if (annotation instanceof com.google.youtube.videoclick.beans.PauseAnnotation) { return(new com.google.youtube.videoclick.components.PauseAnnotationDisplay(com.google.youtube.videoclick.beans.PauseAnnotation(annotation), playerAdapter, annotationsLayer)); } return(null); } function setSegmentDisplay(segmentDisplay) { if (this.segmentDisplay != null) { return(undefined); } this.segmentDisplay = segmentDisplay; annotationBean.setSegment(segmentDisplay.getBean()); } function getTextField() { return(textField); } function animateIn() { com.gs.TweenLite.from(containerMc, com.google.youtube.videoclick.VideoclickConfig.SHOW_UP_ANIMATION_TIME, {_alpha:0, ease:mx.transitions.easing.None.easeNone}); } function createContainerMc() { if (!containerMc) { containerMc = annotationsLayer.createEmptyMovieClip(getUniqueId(), annotationsLayer.getNextHighestDepth()); } } function drawFollowup() { } function removeFromDisplay() { if (containerMc) { com.gs.TweenLite.killTweensOf(containerMc); if (!_global.isNaN(lastAnimateTimeoutId)) { _global.clearTimeout(lastAnimateTimeoutId); lastAnimateTimeoutId = _global.NaN; } } if (shapeMc) { com.gs.TweenLite.killTweensOf(shapeMc); } if (linkIcon) { com.gs.TweenLite.killTweensOf(linkIcon); } if (textField) { textField.removeTextField(); textField = undefined; } clearLastOnTimeout(); clearRedrawTimeout(); super.removeFromDisplay(); } function clearLastOnTimeout() { if (!_global.isNaN(lastOnTimeoutTimeoutId)) { _global.clearTimeout(lastOnTimeoutTimeoutId); lastOnTimeoutTimeoutId = _global.NaN; } } function drawText(parentMc, text, x, y, width, height) { textField = parentMc.createTextField("textField", parentMc.getNextHighestDepth(), x, y, width, height); textField.multiline = true; textField.wordWrap = true; textField.setNewTextFormat(com.google.youtube.videoclick.VideoclickConfig.DEFAULT_TEXT_FORMAT); textField.text = text; textField.selectable = false; } function reduceTextSizeUntilItFits(targetHeight) { if ((!textField.autoSize) || (textField.autoSize == "none")) { return(undefined); } var _local3 = textField._height; while (textField._height >= targetHeight) { var _local4 = textField.getTextFormat(); _local4.size--; textField.setTextFormat(_local4); if (_local3 == textField._height) { break; } _local3 = textField._height; } } function updateDisplayPartsOnResize(curDisplayRect) { } function updateDisplayOnResize() { var _local2 = com.google.youtube.videoclick.beans.EventsList.getInstance().getDisplayRect(); if (_local2 == null) { return(false); } if (displayRect.equals(_local2)) { return(false); } updateDisplayPartsOnResize(_local2); displayRect = _local2; return(true); } function updateTextSize(textSizePrec) { var _local3 = textField.getTextFormat(); var _local4 = com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(textSizePrec, displayRect); _local3.size = _local4; textField.setTextFormat(_local3); } function attachIcon(x, y, rollover) { var _local5 = (rollover ? (com.google.youtube.videoclick.components.UrlDisplay.getAssociatedRolloverImage(annotationBean.getUrl())) : (com.google.youtube.videoclick.components.UrlDisplay.getAssociatedImage(annotationBean.getUrl()))); if (linkIcon) { linkIcon.removeMovieClip(); } linkIcon = shapeMc.attachMovie(_local5, _local5 + getUniqueId(), shapeMc.getNextHighestDepth()); linkIcon._x = x - linkIcon._width; linkIcon._y = y - linkIcon._height; } function attachUrl(url) { if (url) { url = url + com.google.youtube.videoclick.VideoclickConfig.FEATURE_EQUALS_IV_URL_PARAM; var _local4 = com.google.youtube.videoclick.beans.EventsList.getInstance().getEventsByAnnotation(annotationBean); url = url + ((("&" + SOURCE_FLAG) + "=") + _local4[0].getId()); super.attachUrl(url); attachIconHelper(false); } else { shapeMc.useHandCursor = false; } } function attachIconHelper(rollover) { } function getTextInUi() { return(textField.text); } function toString() { return(annotationBean.toString()); } function equals(another) { return((another != null) && (annotationBean.equals(another.annotationBean))); } function optionallyAttachUrl() { attachUrl(getAnnotationBean().getUrlString()); } function getAnnotationBean() { return(annotationBean); } function getDisplaySize() { var _local2 = playerAdapter.getDisplayRect(); _local2.x = 0; return(_local2); } function isKeyboardActive() { return(false); } function handleKeyboardUp() { } function handleKeyboardDown() { } function handleKeyboardLeft() { } function handleKeyboardRight() { } function onKeyUp() { } function onKeyDown() { if (!isKeyboardActive()) { return(undefined); } switch (Key.getCode()) { case Key.UP : handleKeyboardUp(); break; case Key.DOWN : handleKeyboardDown(); break; case Key.LEFT : handleKeyboardLeft(); break; case Key.RIGHT : handleKeyboardRight(); } } static var TEXT_SIZE_PREC = 2.708; static var SOURCE_FLAG = "annotation_id"; var lastAnimateTimeoutId = _global.NaN; var lastOnTimeoutTimeoutId = _global.NaN; }
Symbol 20526 MovieClip [__Packages.com.google.youtube.videoclick.components.SpeechBubbleAnnotationDisplay] Frame 0
class com.google.youtube.videoclick.components.SpeechBubbleAnnotationDisplay extends com.google.youtube.videoclick.components.AnnotationDisplay implements com.google.youtube.videoclick.components.TimedUiComponent { var displayRect, getPlayheadTime, destroy, isVideoPlaying, drawLater, isVisibleNow, updateDisplayOnResize, createContainerMc, optionallyAttachUrl, drawFollowup, textField, linkIcon, clearLastOnTimeout, lastOnTimeoutTimeoutId, containerMc, shapeMc, lastAnimateTimeoutId, reduceTextSizeUntilItFits, drawText, updateTextSize, attachIcon, annotationBean; function SpeechBubbleAnnotationDisplay (speechBubbleAnnotationBean, playerAdapter, annotationsLayer) { super(speechBubbleAnnotationBean, playerAdapter, annotationsLayer); } function getPaddingX() { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(TEXT_PADDING_PREC_X, displayRect)); } function getPaddingY() { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(TEXT_PADDING_PREC_Y, displayRect)); } function draw(opt_isSeek) { var _local3 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); if (_local3.getTime() < (getBean().getDisplayPosition().getT1().getTime() - com.google.youtube.videoclick.VideoclickConfig.START_TIME_INSENSITIVITY)) { destroy(); if (isVideoPlaying()) { drawLater(getBean().getDisplayPosition().getT1()); } return(undefined); } if (_local3.getTime() > getBean().getDisplayPosition().getT2().getTime()) { destroy(); return(undefined); } if (isVisibleNow()) { createTimeoutForDestroy(_local3); return(undefined); } updateDisplayOnResize(); createContainerMc(); drawSpeechBubble(opt_isSeek); drawTextHelp(); optionallyAttachUrl(); if (opt_isSeek) { drawFollowup(); } if ((!opt_isSeek) && (isVideoPlaying())) { if (textField) { textField._visible = false; } if (linkIcon) { linkIcon._alpha = 0; } } if (isVideoPlaying()) { createTimeoutForDestroy(_local3); } } function createTimeoutForDestroy(currentTime) { clearLastOnTimeout(); lastOnTimeoutTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "onTimeout", 1000 * getFadeOutTimeInterval(currentTime)); } function updateDisplayPartsOnResize(curDisplayRect) { var _local3 = getBean().getDisplayPosition(); var _local4 = getBean().getSourcePoint(); _local3.updateDisplayRect(curDisplayRect); _local4.updateDisplayRect(curDisplayRect); getBean().setDisplayPosition(_local3); getBean().setSourcePoint(_local4); } function getFadeOutTimeInterval(time) { return(getFadeOutTime() - time.getTime()); } function getFadeOutTime() { return(getBean().getDisplayPosition().getT2().getTime() - com.google.youtube.videoclick.VideoclickConfig.FADE_OUT_TIME); } function fadeOut() { com.gs.TweenLite.to(containerMc, com.google.youtube.videoclick.VideoclickConfig.FADE_OUT_TIME, {_alpha:0}); textField._visible = false; } function drawSpeechBubble(opt_isSeek) { if (!shapeMc) { shapeMc = containerMc.createEmptyMovieClip("shapeMc", containerMc.getNextHighestDepth()); shapeMc.onRollOver = com.google.chianti.event.EventDelegate.create(this, onRollOver); shapeMc.onRollOut = com.google.chianti.event.EventDelegate.create(this, onRollOut); } containerMc._x = getBean().getDisplayPosition().getX(); containerMc._y = getBean().getDisplayPosition().getY(); if ((!opt_isSeek) && (isVideoPlaying())) { animateIn(); } else { drawRegularBubble(); } } function animateIn() { if (textField) { textField._visible = false; } if (linkIcon) { linkIcon._alpha = 0; } com.google.youtube.videoclick.util.DrawingUtil.drawSpeechBubbleSourcePointTip(shapeMc, 0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), getBean().getSourcePoint().getX() - getBean().getDisplayPosition().getX(), getBean().getSourcePoint().getY() - getBean().getDisplayPosition().getY(), BACKGROUND_FILL, BORDER_ROLLOVER_LINE_STYLE, com.google.youtube.videoclick.VideoclickConfig.ROUND_CORNER_RADIUS, true); lastAnimateTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "drawSourcePoint", 20); } function drawSourcePoint() { shapeMc.clear(); com.google.youtube.videoclick.util.DrawingUtil.drawSpeechBubbleSourcePoint(shapeMc, 0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), getBean().getSourcePoint().getX() - getBean().getDisplayPosition().getX(), getBean().getSourcePoint().getY() - getBean().getDisplayPosition().getY(), BACKGROUND_FILL, BORDER_ROLLOVER_LINE_STYLE, com.google.youtube.videoclick.VideoclickConfig.ROUND_CORNER_RADIUS, true); lastAnimateTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "drawSourcePointExtension", 20); } function drawSourcePointExtension() { shapeMc.clear(); com.google.youtube.videoclick.util.DrawingUtil.drawSpeechBubbleSourcePointWithSmallBubble(shapeMc, 0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), getBean().getSourcePoint().getX() - getBean().getDisplayPosition().getX(), getBean().getSourcePoint().getY() - getBean().getDisplayPosition().getY(), BACKGROUND_FILL, BORDER_ROLLOVER_LINE_STYLE, com.google.youtube.videoclick.VideoclickConfig.ROUND_CORNER_RADIUS); lastAnimateTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "animateBubbleIn", 20); } function animateBubbleIn() { var _local2 = com.google.youtube.videoclick.util.DrawingUtil.drawSpeechBubbleSourcePointWithSmallBubble(shapeMc, 0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), getBean().getSourcePoint().getX() - getBean().getDisplayPosition().getX(), getBean().getSourcePoint().getY() - getBean().getDisplayPosition().getY(), BACKGROUND_FILL, BORDER_ROLLOVER_LINE_STYLE, com.google.youtube.videoclick.VideoclickConfig.ROUND_CORNER_RADIUS); shapeMc.clear(); drawRegularBubble(); com.gs.TweenLite.from(shapeMc, 0.08, {_x:_local2[com.google.youtube.videoclick.util.DrawingUtil.TOP_LEFT_X], _y:_local2[com.google.youtube.videoclick.util.DrawingUtil.TOP_LEFT_Y], _width:_local2[com.google.youtube.videoclick.util.DrawingUtil.WIDTH], _height:_local2[com.google.youtube.videoclick.util.DrawingUtil.HEIGHT], onComplete:com.google.chianti.event.EventDelegate.create(this, showText)}); if (linkIcon) { com.gs.TweenLite.to(linkIcon, 0.12, {_alpha:100}); } lastAnimateTimeoutId = _global.NaN; } function fixHeightForLargerFonts() { var _local2 = getBean().getDisplayPosition().getH(); reduceTextSizeUntilItFits(_local2); } function showText() { if (textField) { textField._visible = true; } drawFollowup(); } function onRollOver() { super.onRollOver(); if (getBean().hasUrl()) { shapeMc.clear(); drawRolloverBubble(); attachIconHelper(true); } } function onRollOut() { super.onRollOut(); if (getBean().hasUrl()) { shapeMc.clear(); drawRegularBubble(); attachIconHelper(false); } } function drawRegularBubble() { com.google.youtube.videoclick.util.DrawingUtil.drawSpeechBubble(shapeMc, 0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), getBean().getSourcePoint().getX() - getBean().getDisplayPosition().getX(), getBean().getSourcePoint().getY() - getBean().getDisplayPosition().getY(), getRegularBackgroundFill(), BORDER_LINE_STYLE, com.google.youtube.videoclick.VideoclickConfig.ROUND_CORNER_RADIUS); var _local2 = new flash.filters.GlowFilter(BORDER_OUTLINE_COLOR, BORDER_GLOW_ALPHA, com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(BORDER_GLOW_BLUR_PREC_X, displayRect), com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(BORDER_GLOW_BLUR_PREC_Y, displayRect), BORDER_GLOW_STRENGTH, BORDER_GLOW_QUALITY); shapeMc.filters = [_local2]; } function drawRolloverBubble() { com.google.youtube.videoclick.util.DrawingUtil.drawSpeechBubble(shapeMc, 0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), getBean().getSourcePoint().getX() - getBean().getDisplayPosition().getX(), getBean().getSourcePoint().getY() - getBean().getDisplayPosition().getY(), BACKGROUND_ROLLOVER_FILL, BORDER_ROLLOVER_LINE_STYLE, com.google.youtube.videoclick.VideoclickConfig.ROUND_CORNER_RADIUS); shapeMc.filters = null; } function getRegularBackgroundFill() { var _local2 = getBean().getSourcePoint().getX() - getBean().getDisplayPosition().getX(); var _local3 = getBean().getSourcePoint().getY() - getBean().getDisplayPosition().getY(); var _local4 = com.google.youtube.videoclick.util.DrawingUtil.determineSpeechDirection(0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), _local2, _local3); var _local5 = BACKGROUND_FILL; switch (_local4) { case com.google.youtube.videoclick.util.DrawingUtil.LEFT_DIRECTION : var _local6 = Math.min(0, _local2); var _local7 = Math.min(0, _local3); var _local8 = getBean().getDisplayPosition().getW(); var _local9 = Math.max(getBean().getDisplayPosition().getH(), _local3); _local5.matrix = {matrixType:"box", x:_local6, y:_local7, w:_local8 - _local6, h:_local9 - _local7, r:(90 / 180) * Math.PI}; break; case com.google.youtube.videoclick.util.DrawingUtil.RIGHT_DIRECTION : var _local10 = 0; var _local11 = Math.min(0, _local3); var _local12 = _local2; var _local13 = Math.max(getBean().getDisplayPosition().getH(), _local3); _local5.matrix = {matrixType:"box", x:_local10, y:_local11, w:_local12 - _local10, h:_local13 - _local11, r:(90 / 180) * Math.PI}; break; case com.google.youtube.videoclick.util.DrawingUtil.DOWN_DIRECTION : _local5.matrix = {matrixType:"box", x:0, y:0, w:getBean().getDisplayPosition().getW(), h:getBean().getDisplayPosition().getH(), r:(90 / 180) * Math.PI}; break; case com.google.youtube.videoclick.util.DrawingUtil.UP_DIRECTION : _local5 = FLIPPED_BACKGROUND_FILL; _local5.matrix = {matrixType:"box", x:0, y:0, w:getBean().getDisplayPosition().getW(), h:getBean().getDisplayPosition().getH() - _local3, r:(90 / 180) * Math.PI}; } return(_local5); } function getExtraXPadding() { var _local2 = getPaddingX(); if (getBean().hasUrl()) { _local2 = _local2 + (com.google.youtube.videoclick.VideoclickConfig.ICON_PADDING * 2); _local2 = _local2 + com.google.youtube.videoclick.VideoclickConfig.LINK_ICON_WIDTH; } else { _local2 = _local2 + getPaddingX(); } return(_local2); } function getExtraYPadding() { var _local2 = getPaddingY(); if (getBean().hasUrl()) { _local2 = _local2 + com.google.youtube.videoclick.VideoclickConfig.ICON_PADDING; } else { _local2 = _local2 + getPaddingY(); } return(_local2); } function drawTextHelp() { var _local2 = getPaddingX(); var _local3 = getPaddingY(); drawText(containerMc, getBean().getText().getText(), _local2, _local3, getBean().getDisplayPosition().getW() - getExtraXPadding(), getBean().getDisplayPosition().getH() - getExtraYPadding()); textField.autoSize = "left"; updateTextSize(com.google.youtube.videoclick.components.AnnotationDisplay.TEXT_SIZE_PREC); fixHeightForLargerFonts(); } function attachIconHelper(rollover) { if (getBean().hasUrl()) { attachIcon(getBean().getDisplayPosition().getW() - com.google.youtube.videoclick.VideoclickConfig.ICON_PADDING, getBean().getDisplayPosition().getH() - com.google.youtube.videoclick.VideoclickConfig.ICON_PADDING, rollover); } } function onTimeout() { var _local2 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); if (_local2.getTime() < getFadeOutTime()) { if (_local2.getTime() < (getBean().getDisplayPosition().getT1().getTime() - com.google.youtube.videoclick.VideoclickConfig.START_TIME_INSENSITIVITY)) { destroy(); drawLater(getBean().getDisplayPosition().getT1()); return(undefined); } var _local3 = getFadeOutTimeInterval(_local2); lastOnTimeoutTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "onTimeout", _local3 * 1000); return(undefined); } if (_local2.getTime() < getBean().getDisplayPosition().getT2().getTime()) { fadeOut(); var _local4 = (getBean().getDisplayPosition().getT2().getTime() - _local2.getTime()) + com.google.youtube.videoclick.VideoclickConfig.EPSILON; lastOnTimeoutTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "onTimeout", _local4 * 1000); return(undefined); } destroy(); } function pause() { } function resume() { draw(true); } function getBean() { return(com.google.youtube.videoclick.beans.SpeechBubbleAnnotation(annotationBean)); } function getTrackingObjectType() { return("Bubble"); } static var TEXT_PADDING_PREC_X = 1.667; static var TEXT_PADDING_PREC_Y = 1.667; static var BACKGROUND_START_ALPHA = 95; static var BACKGROUND_END_ALPHA = 70; static var BACKGROUND_ROLLOVER_ALPHA = 90; static var BACKGROUND_COLOR = 16777215; static var BORDER_OUTLINE_COLOR = 0; static var BORDER_OUTLINE_ALPHA = 20; static var BORDER_ROLLOVER_OUTLINE_ALPHA = 70; static var BORDER_GLOW_STRENGTH = 0.5; static var BORDER_GLOW_QUALITY = 1; static var BORDER_GLOW_BLUR_PREC_X = 5 / 3.6; static var BORDER_GLOW_BLUR_PREC_Y = 5 / 4.8; static var BORDER_GLOW_ALPHA = 50; static var BORDER_WIDTH = 10; static var BACKGROUND_FILL = {colors:[BACKGROUND_COLOR, BACKGROUND_COLOR], fillType:"linear", alphas:[BACKGROUND_START_ALPHA, BACKGROUND_END_ALPHA], ratios:[0, 255]}; static var FLIPPED_BACKGROUND_FILL = {colors:[BACKGROUND_COLOR, BACKGROUND_COLOR], fillType:"linear", alphas:[BACKGROUND_END_ALPHA, BACKGROUND_START_ALPHA], ratios:[0, 255]}; static var BACKGROUND_ROLLOVER_FILL = {colors:[BACKGROUND_COLOR], fillType:"linear", alphas:[BACKGROUND_ROLLOVER_ALPHA], ratios:[1], matrix:{matrixType:"box", x:0, y:0, w:0, h:0, r:0}}; static var BORDER_LINE_STYLE = {thickness:0, rgb:BORDER_OUTLINE_COLOR, alpha:BORDER_OUTLINE_ALPHA}; static var BORDER_ROLLOVER_LINE_STYLE = {thickness:0, rgb:BORDER_OUTLINE_COLOR, alpha:BORDER_ROLLOVER_OUTLINE_ALPHA}; }
Symbol 20527 MovieClip [__Packages.com.google.youtube.videoclick.util.VideoclickUrlValidator] Frame 0
class com.google.youtube.videoclick.util.VideoclickUrlValidator { function VideoclickUrlValidator () { } static function isValidStorageServer(url) { var _local3 = new com.google.utils.UrlValidator(PROTOCOL_WHITE_LIST, STORAGE_DOMAIN_WHITE_LIST, STORAGE_PATH_WHITE_LIST); return(_local3.validateUrl(url)); } static function isValidBaseYoutubeUrl(url) { return(com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(url)); } static var PROTOCOL_WHITE_LIST = ["http"]; static var STORAGE_DOMAIN_WHITE_LIST = ["google.com"]; static var STORAGE_PATH_WHITE_LIST = ["/reviews/y/"]; }
Symbol 20528 MovieClip [__Packages.com.google.youtube.videoclick.beans.PauseAnnotation] Frame 0
class com.google.youtube.videoclick.beans.PauseAnnotation extends com.google.youtube.videoclick.beans.Annotation implements com.google.youtube.videoclick.beans.DirtyBitSupporter { var displayPosition, duration, initAnnotationObject, dirty; function PauseAnnotation (pauseAnnotationObject, displayRect) { super(pauseAnnotationObject); setDurationFromString(pauseAnnotationObject[XML_ATTRIBUTE_DURATION]); createDisplayPosition(pauseAnnotationObject, displayRect); } function createDisplayPosition(pauseAnnotationObject, displayRect) { var _local4 = new Object(); _local4[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_X] = DEFAULT_X.toString(); _local4[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_Y] = DEFAULT_Y.toString(); _local4[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_W] = DEFAULT_W.toString(); _local4[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_H] = DEFAULT_H.toString(); _local4[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_D] = DEFAULT_D.toString(); _local4[com.google.youtube.videoclick.beans.DisplayPosition.XML_ATTRIBUTE_T1] = pauseAnnotationObject[XML_ATTRIBUTE_START_TIME]; _local4[com.google.youtube.videoclick.beans.DisplayPosition.XML_ATTRIBUTE_T2] = pauseAnnotationObject[XML_ATTRIBUTE_START_TIME]; displayPosition = new com.google.youtube.videoclick.beans.DisplayPosition(_local4, displayRect, this); } function getDisplayPosition() { return(displayPosition); } function getDuration() { if ((duration == undefined) && (initAnnotationObject != undefined)) { setDurationFromString(initAnnotationObject[XML_ATTRIBUTE_DURATION]); } return(duration); } function setDurationFromString(newDuration) { if (duration == undefined) { duration = new com.google.youtube.videoclick.beans.TimePoint(0); } duration.setTimeFromString(newDuration, false); dirty = true; } function setDuration(newDuration) { if (duration == undefined) { duration = new com.google.youtube.videoclick.beans.TimePoint(0); } duration.setTime(newDuration.getTime(), false); dirty = true; } function isDirty() { return(super.isDirty() || (displayPosition.isDirty())); } function markAsClean() { super.markAsClean(); displayPosition.markAsClean(); } function getXmlElementName() { return(XML_ELEMENT_NAME); } function addAnnotationXmlParts(annotationXml, doc) { annotationXml.attributes[XML_ATTRIBUTE_DURATION] = getDuration().toString(); var _local4 = displayPosition.getXml(doc); annotationXml.attributes[XML_ATTRIBUTE_START_TIME] = _local4.attributes[com.google.youtube.videoclick.beans.DisplayPosition.XML_ATTRIBUTE_T1]; } function toString() { return(((("PauseAnnotation(" + displayPosition) + ",") + super.toString()) + ")"); } static var XML_ELEMENT_NAME = "pauseAnnotation"; static var XML_ATTRIBUTE_DURATION = "duration"; static var XML_ATTRIBUTE_START_TIME = "start"; static var DEFAULT_X = (35 / com.google.youtube.players.VideoPlayer.DEFAULT_WIDTH) * 100; static var DEFAULT_Y = (35 / com.google.youtube.players.VideoPlayer.DEFAULT_HEIGHT) * 100; static var DEFAULT_W = (35 / com.google.youtube.players.VideoPlayer.DEFAULT_WIDTH) * 100; static var DEFAULT_H = (35 / com.google.youtube.players.VideoPlayer.DEFAULT_HEIGHT) * 100; static var DEFAULT_D = 0; static var DEFAULT_DURATION = 5; static var DEFAULT_SENSITIVITY = 0.5; static var DEFAULT_START_TIME_INACTIVITY = 0.9; static var DEFAULT_END_TIME_INACTIVITY = 0.9; static var PAUSE_MAX_DURATION = 5 * 60; }
Symbol 20529 MovieClip [__Packages.com.google.youtube.players.VideoData] Frame 0
class com.google.youtube.players.VideoData { var author, duration, runTime, url, id, title, description, index, viewCount, rating, thumbnailUrls, token, lengthInSeconds, mustangDocKey, flvurl, ivModule, adModule, ccModule, karaokeModule, captions_video_id, muted, averageRating, formatMap, thumbnailUrl, thumbnailUrlHighQuality, allowRating, trackEmbed, startSeconds, loadingFromOffset, hideLargePlayButton; function VideoData () { } static function createFromDictionary(dict) { var _local3 = new com.google.youtube.players.VideoData(); _local3.applyData(dict); return(_local3); } static function createFromLoadVars(lv) { var _local3 = new com.google.youtube.players.VideoData(); _local3.applyData(lv); _local3.untypedVideoData = copyParameters(lv); return(_local3); } static function createFromConfigData(configData) { var _local3 = new com.google.youtube.players.VideoData(); _local3.applyData({id:configData.videoId, token:configData.token, lengthInSeconds:configData.lengthInSeconds, mustangDocKey:configData.mustangDocKey, imageUrl:(configData.imageUrl ? (configData.imageUrl) : (((configData.LIVE_BASE_IMG_URL + "vi/") + configData.videoId) + "/default.jpg")), flvurl:configData.flvurl, iv_module:configData.ivModule, ad_module:configData.adModule, cc_module:configData.ccModule, karaoke_module:configData.karaokeModule, captions_video_id:configData.captions_video_id}); _local3.untypedVideoData = copyParameters(configData.getUntypedFlashVars()); removeVideoDataFromPlayerConfigData(configData); return(_local3); } static function removeVideoDataFromPlayerConfigData(configData) { configData.videoId = undefined; configData.token = undefined; configData.lengthInSeconds = undefined; configData.mustangDocKey = undefined; configData.imageUrl = undefined; configData.flvurl = undefined; configData.ivModule = undefined; configData.ccModule = undefined; configData.karaokeModule = undefined; configData.captions_video_id = undefined; } function getLength(configObject) { if (configObject.lengthInSeconds != undefined) { var _local3 = _global.parseInt(configObject.lengthInSeconds); } else if (configObject.length_seconds.toString() != undefined) { var _local3 = _global.parseInt(configObject.length_seconds.toString()); } else if (configObject.length.toString() != undefined) { var _local3 = _global.parseInt(configObject.length.toString()); } return(_local3); } static function copyParameters(src) { var _local3 = {}; for (var i in src) { if ((typeof(src[i]) == "string") || (typeof(src[i]) == "number")) { _local3[i] = src[i]; } } return(_local3); } function applyData(data) { author = data.author.toString(); if (data.length != undefined) { duration = _global.parseFloat(data.length); } runTime = data.run_time; url = data.url.toString(); id = data.id.toString(); title = data.title.toString(); description = data.description.toString(); index = data.index; viewCount = data.view_count; rating = Math.max(0, _global.parseFloat(data.rating)); thumbnailUrls = []; if (data.thumbnail_url1) { thumbnailUrls.push(data.thumbnail_url1.toString()); } if (data.thumbnail_url2) { thumbnailUrls.push(data.thumbnail_url2.toString()); } if (data.thumbnail_url3) { thumbnailUrls.push(data.thumbnail_url3.toString()); } token = data.token.toString(); lengthInSeconds = getLength(data); mustangDocKey = data.mustangDocKey; flvurl = data.flvurl; ivModule = data.iv_module; adModule = data.ad_module; ccModule = data.cc_module; karaokeModule = data.karaoke_module; captions_video_id = data.captions_video_id; muted = data.muted; averageRating = data.avg_rating; formatMap = data.fmt_map; thumbnailUrl = data.thumbnail_url.toString(); if (data.thumbnailUrl) { thumbnailUrl = data.thumbnailUrl.toString(); } if (data.thumbnailUrlHighQuality) { thumbnailUrlHighQuality = data.thumbnailUrlHighQuality.toString(); } if (data.imageUrl) { thumbnailUrl = data.imageUrl.toString(); } if (!com.google.webutil.url.YouTubeUtils.isValidYouTubeUrl(thumbnailUrl)) { thumbnailUrl = undefined; } allowRating = data.allow_ratings; trackEmbed = data.track_embed; startSeconds = data.startSeconds; loadingFromOffset = data.loadingFromOffset; hideLargePlayButton = data.hideLargePlayButton; } function isLoadIvModule() { return(ivModule != undefined); } function getIvModulePath() { return(ivModule); } function isLoadAdModule() { return(adModule != undefined); } function getAdModulePath() { return(adModule); } function isLoadCaptionsModule() { return(ccModule != undefined); } function isLoadKaraokeModule() { return(karaokeModule != undefined); } function getCaptionsModulePath() { return(ccModule); } function getKaraokeModulePath() { return(karaokeModule); } function getCaptionsVideoId() { return(captions_video_id); } function getUntypedVideoData() { return(untypedVideoData); } function toString() { var _local2 = "VideoData{"; for (var i in this) { if ((this[i] != undefined) && (this[i] != _global.NaN)) { _local2 = _local2 + (((i + ": ") + this[i]) + ", "); } } _local2 = _local2 + "}"; return(_local2); } var untypedVideoData = {}; }
Symbol 20530 MovieClip [__Packages.com.google.youtube.players.VideoLoader] Frame 0
class com.google.youtube.players.VideoLoader extends com.google.youtube.AbstractBroadcaster { var configData, dataType, data, soundController, netStream, duration, videoMetaData, videoWidth, videoHeight, videoSource, broadcast, currentVideoData, seekTime, getVideoInfoLoadVars, restRequest, netConnection, state, loaderInterval, keyframeFileLocations; function VideoLoader (configData, soundController, dataType, data) { super(); this.configData = configData; this.dataType = dataType; this.data = data; this.soundController = soundController; setState(UNSTARTED); netStream = getNetStream(); } function reset() { resetNetStream(); metaDataLoaded = false; startSeconds = 0; videoFileStartLocation = 0; duration = null; totalBytes = -1; videoMetaData = null; videoWidth = null; videoHeight = null; bufferEmptyCount = 0; videoSource = null; if (videoLoadStatus != VIDEO_LOAD_STATUS_UNLOADED) { broadcast({type:com.google.youtube.event.VideoLoaderEvent.UNLOAD_VIDEO, target:this}); } videoLoadStatus = VIDEO_LOAD_STATUS_UNLOADED; } function loadVideoByVideoData(videoData, seekToTime, loadingFromMiddle) { currentVideoData = videoData; if (!loadingFromMiddle) { reset(); if (videoData.id) { firstVideoPlayed = true; } } seekTime = seekToTime; if (videoData.flvurl) { playNetStream(videoData.flvurl); } else if (!currentVideoData.token) { getVideoDataByVideoId(currentVideoData.id); } else { var _local5 = getVideoUrl(videoData, seekTime); playNetStream(_local5); } setState(BUFFERING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.BUFFERING, target:this}); } function loadVideoByURLWithNetstream(the_netstream, the_name, the_duration) { netStream = the_netstream; duration = the_duration; netStream.onStatus = com.google.chianti.event.EventDelegate.create(this, onNsStatus); netStream.onMetaData = com.google.chianti.event.EventDelegate.create(this, onMetaData); netStream.play(the_name); netStream.setBufferTime(2); setState(BUFFERING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.BUFFERING, target:this}); } function getVideoDataByVideoId(videoId) { if (configData.useGetVideoInfo == "1") { loadVideoDataFromGetVideoInfo(videoId); } else { loadVideoDataFromApi2Rest(videoId); } } function loadVideoDataFromGetVideoInfo(videoId) { getVideoInfoLoadVars = new LoadVars(); var _local3 = configData.BASE_YT_URL + configData.GET_VIDEO_INFO_URL; _local3 = _local3 + "?"; _local3 = _local3 + ("&video_id=" + videoId); if (configData.playerType == com.google.youtube.logging.YouTubeStatsLogger.IMPRESSION_TYPE_ACDC) { _local3 = _local3 + ("&w=" + configData.playerType); } if ((configData.eurl != undefined) || (configData.eventLabel == com.google.youtube.logging.YouTubeStatsLogger.EVENT_LABEL_EMBEDDED)) { _local3 = _local3 + "&eurl="; _local3 = _local3 + ((configData.eurl != undefined) ? (_global.escape(configData.eurl)) : ""); } getVideoInfoLoadVars.onLoad = com.google.chianti.event.EventDelegate.create(this, onVideoDataFromGetVideoInfoLoaded); getVideoInfoLoadVars.load(_local3); } function loadVideoDataFromApi2Rest(videoId) { restRequest = new com.google.youtube.data.RestRequest(configData.BASE_YT_URL + configData.REST_API_URL); restRequest.addParameter("method", configData.REST_GET_VIDEO_TOKEN); restRequest.addParameter("video_id", videoId); restRequest.registerEvent(com.google.youtube.event.DataEvent.LOAD, com.google.chianti.event.EventDelegate.create(this, onVideoDataLoaded)); restRequest.registerEvent(com.google.youtube.event.DataEvent.ERROR, com.google.chianti.event.EventDelegate.create(this, onVideoDataError)); restRequest.send(); } function playNetStream(flvUrl) { getNetStream().play(flvUrl); currentVideoData.duration = getDuration(); if (videoLoadStatus != VIDEO_LOAD_STATUS_LOADED) { videoLoadStatus = VIDEO_LOAD_STATUS_LOADED; broadcast({type:com.google.youtube.event.VideoLoaderEvent.LOAD_NEW_VIDEO, data:currentVideoData, target:this}); } } function onVideoDataLoaded(evt) { currentVideoData.token = evt.data.t.toString(); var _local3 = getVideoUrl(currentVideoData, seekTime); playNetStream(_local3); setState(BUFFERING); } function onVideoDataFromGetVideoInfoLoaded(success) { if (!success) { fallbackToOldApi2Rest(); return(undefined); } if (getVideoInfoLoadVars.status != "ok") { var _local3 = _global.parseInt(getVideoInfoLoadVars.errorcode); var _local4 = getVideoInfoLoadVars.reason; broadcast({type:com.google.youtube.event.VideoLoaderEvent.VIDEO_DATA_ERROR, errorCode:_local3, description:_local4}); return(undefined); } currentVideoData.token = getVideoInfoLoadVars.token; var _local5 = getVideoUrl(currentVideoData, seekTime); playNetStream(_local5); setState(BUFFERING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.VIDEO_DATA_LOADED, target:this, data:getVideoInfoLoadVars}); } function fallbackToOldApi2Rest() { if (configData.useGetVideoInfo == "1") { configData.useGetVideoInfo = "0"; loadVideoDataFromApi2Rest(currentVideoData.id); } } function onVideoDataError(evt) { broadcast({type:com.google.youtube.event.VideoLoaderEvent.VIDEO_DATA_ERROR}); } function getVideoUrl(videoData, startValue) { var _local4 = configData.BASE_YT_URL + configData.GET_VIDEO_URL; _local4 = _local4 + ((videoData.id != undefined) ? (videoData.id) : ""); if (startValue > 0) { if (videoMetaData.canseekontime) { _local4 = _local4 + ("&begin=" + startValue); } else { _local4 = _local4 + ("&start=" + startValue); } } _local4 = _local4 + ((currentVideoData.token != undefined) ? ("&t=" + currentVideoData.token) : ""); currentVideoData.token = null; if (configData.playerType == com.google.youtube.logging.YouTubeStatsLogger.IMPRESSION_TYPE_ACDC) { _local4 = _local4 + ("&w=" + configData.playerType); } if ((configData.eurl != undefined) || (configData.eventLabel == com.google.youtube.logging.YouTubeStatsLogger.EVENT_LABEL_EMBEDDED)) { _local4 = _local4 + "&eurl="; _local4 = _local4 + ((configData.eurl != undefined) ? (_global.escape(configData.eurl)) : ""); } _local4 = _local4 + ((configData.autoPlay == "1") ? "&autoplay=1" : ""); _local4 = _local4 + (configData.scriptedPlayback ? "&splay=1" : ""); _local4 = _local4 + ((configData.appendVars != undefined) ? (configData.appendVars) : ""); var _local5 = configData.getVideoFormat(); if (_local5.length) { _local4 = _local4 + ("&fmt=" + _local5); } return(_local4); } function getVideoSize() { return(new com.google.geom.Rect(0, 0, videoWidth, videoHeight)); } function getStartPosition() { return(videoFileStartLocation); } function seekTo(seconds, allowSeekAhead) { if (videoMetaData.canseekontime) { var _local4 = getNSBytesTotal() / getDuration(); var _local5 = (getNSBytesLoaded() / _local4) + startSeconds; if (((seconds > _local5) || (seconds < startSeconds)) && (allowSeekAhead)) { videoFileStartLocation = seconds * _local4; var _local6 = seconds * 1000; loadVideoByVideoData(currentVideoData, Math.round(_local6), true); stopLoaderInterval(); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PROGRESS, data:{currentTime:seconds, duration:getDuration(), startSeconds:seconds}, target:this}); } else { getNetStream().seek(seconds); } } else if (videoMetaData.keyframes) { var _local7 = findClosestCuePointBefore(seconds); var _local8 = getFileLocationForKeyframeTime(_local7); _local8 = ((seconds == 0) ? 0 : (_local8)); if ((configData.allowSeekAhead != "0") && ((_local8 <= (getNSBytesLoaded() + getStartPosition())) && (_local8 >= videoFileStartLocation))) { getNetStream().seek(_local7); } else if (allowSeekAhead) { stopLoaderInterval(); loadVideoByVideoData(currentVideoData, _local8, true); videoFileStartLocation = _local8; startSeconds = _local7; broadcast({type:com.google.youtube.event.VideoLoaderEvent.PROGRESS, data:{currentTime:startSeconds, duration:getDuration(), startSeconds:startSeconds}, target:this}); } } else { getNetStream().seek(seconds); } } function findClosestCuePointBefore(seconds) { var _local3 = videoMetaData.keyframes.times; return(findKeyframeForSeconds(_local3, seconds, 0, _local3.length - 1)); } function findKeyframeForSeconds(kf, targetSeconds, startIndex, endIndex) { if (!targetSeconds) { return(0); } if (startIndex >= endIndex) { if (targetSeconds < kf[endIndex]) { return(kf[endIndex - 1]); } return(kf[endIndex]); } var _local6 = Math.floor((startIndex + endIndex) / 2); if (targetSeconds < kf[_local6]) { return(findKeyframeForSeconds(kf, targetSeconds, startIndex, _local6)); } if (targetSeconds > kf[_local6]) { return(findKeyframeForSeconds(kf, targetSeconds, _local6 + 1, endIndex)); } return(kf[_local6]); } function getNetStream() { if (!netStream) { netConnection = null; netConnection = new NetConnection(); netConnection.connect(null); netStream = new NetStream(netConnection); soundController.getSoundMC().attachAudio(netStream); netStream.setBufferTime(2); netStream.onStatus = com.google.chianti.event.EventDelegate.create(this, onNsStatus); netStream.onMetaData = com.google.chianti.event.EventDelegate.create(this, onMetaData); } return(netStream); } function resetNetStream() { netStream.close(); netStream = null; netStream = getNetStream(); } function setState(newState) { state = newState; } function getState() { return(state); } function play() { if (getState() != BUFFERING) { getNetStream().pause(false); setState(PLAYING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PLAY, target:this}); } } function pause() { getNetStream().pause(true); setState(PAUSED); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PAUSE, target:this}); } function close() { seekTo(0); reset(); if (getState() != UNSTARTED) { broadcast({type:com.google.youtube.event.VideoLoaderEvent.END, target:this}); } setState(ENDED); } function getDuration() { if (duration != undefined) { return(duration); } if (currentVideoData.lengthInSeconds != undefined) { return(currentVideoData.lengthInSeconds); } return(getNSBytesTotal() / presumedBytesPerSecond); } function getBufferEmptyEvents() { return(bufferEmptyCount); } function getCurrentTime() { var _local2 = getNetStream().time; return(Math.min(_local2, getDuration())); } function getNSBytesLoaded() { var _local2 = getNSBytesTotal() - videoFileStartLocation; return(Math.min(_local2, getNetStream().bytesLoaded)); } function getNSBytesTotal() { return(totalBytes); } function stopLoaderInterval() { _global.clearInterval(loaderInterval); loaderInterval = null; } function startLoaderInterval() { if (loaderInterval == null) { loaderInterval = _global.setInterval(this, "onProgress", PROGRESS_INTERVAL); } } function onNsStatus(infoObject) { switch (infoObject.code) { case "NetStream.Play.Start" : var _local3 = new com.google.youtube.util.FrameWaiter(_root, 4, com.google.chianti.event.EventDelegate.create(this, startLoaderInterval)); break; case "NetStream.Buffer.Empty" : if (getState() == ENDED) { break; } if (Math.ceil(getDuration()) != Math.ceil(getCurrentTime())) { bufferEmptyCount++; setState(BUFFERING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.BUFFERING, target:this}); } else { setState(ENDED); broadcast({type:com.google.youtube.event.VideoLoaderEvent.END, data:infoObject, target:this}); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PROGRESS, data:{currentTime:getDuration(), duration:getDuration(), startSeconds:startSeconds}, target:this}); break; if (getState() == BUFFERING) { setState(PLAYING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PLAY, data:infoObject, target:this}); } break; if ((getDuration() < netStream.bufferTime) && (getState != PAUSED)) { setState(PLAYING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PLAY, data:infoObject, target:this}); } break; if ((getState() != PAUSED) && (Math.ceil(getDuration()) == Math.ceil(getCurrentTime()))) { stopLoaderInterval(); setState(ENDED); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PROGRESS, data:{currentTime:getDuration(), duration:getDuration(), startSeconds:startSeconds}, target:this}); broadcast({type:com.google.youtube.event.VideoLoaderEvent.END, data:infoObject, target:this}); } break; broadcast({type:com.google.youtube.event.VideoLoaderEvent.STREAM_NOT_FOUND, data:infoObject, target:this}); setState(ENDED); break; broadcast({type:com.google.youtube.event.VideoLoaderEvent.STREAM_NOT_EMBEDDABLE, data:infoObject, target:this}); setState(ENDED); break; startLoaderInterval(); broadcast({type:com.google.youtube.event.VideoLoaderEvent.NET_STREAM_STATUS, data:infoObject, target:this}); } case "NetStream.Buffer.Full" : if (getState() == BUFFERING) { setState(PLAYING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PLAY, data:infoObject, target:this}); } break; case "NetStream.Buffer.Flush" : if ((getDuration() < netStream.bufferTime) && (getState != PAUSED)) { setState(PLAYING); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PLAY, data:infoObject, target:this}); } break; case "NetStream.Play.Stop" : if ((getState() != PAUSED) && (Math.ceil(getDuration()) == Math.ceil(getCurrentTime()))) { stopLoaderInterval(); setState(ENDED); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PROGRESS, data:{currentTime:getDuration(), duration:getDuration(), startSeconds:startSeconds}, target:this}); broadcast({type:com.google.youtube.event.VideoLoaderEvent.END, data:infoObject, target:this}); } break; case "NetStream.Play.StreamNotFound" : broadcast({type:com.google.youtube.event.VideoLoaderEvent.STREAM_NOT_FOUND, data:infoObject, target:this}); setState(ENDED); break; case "NetStream.Play.FileStructureInvalid" : broadcast({type:com.google.youtube.event.VideoLoaderEvent.STREAM_NOT_EMBEDDABLE, data:infoObject, target:this}); setState(ENDED); break; default : startLoaderInterval(); broadcast({type:com.google.youtube.event.VideoLoaderEvent.NET_STREAM_STATUS, data:infoObject, target:this}); } } function onProgress() { var _local2 = getCurrentTime(); broadcast({type:com.google.youtube.event.VideoLoaderEvent.BYTES_LOADED, data:{bytesLoaded:getNSBytesLoaded(), bytesTotal:getNSBytesTotal(), duration:getDuration(), startSeconds:startSeconds, startPosition:videoFileStartLocation}, target:this}); broadcast({type:com.google.youtube.event.VideoLoaderEvent.PROGRESS, data:{currentTime:_local2, duration:getDuration(), startSeconds:startSeconds}, target:this}); if ((lastTime == _local2) && ((getState() == PLAYING) && ((getTimeDifference(_local2, getDuration()) < 3) && (_local2 > 1)))) { stallCount++; } else { lastTime = _local2; stallCount = 0; unstallAttempted = false; } if ((stallCount > STALL_LIMIT_SHORT) && ((!unstallAttempted) && (getTimeDifference(_local2, getDuration()) > 1))) { unstallAttempted = true; seekTo(_local2 + 0.001); lastTime = _local2; } if ((stallCount > STALL_LIMIT) && (state != ENDED)) { stopLoaderInterval(); setState(ENDED); broadcast({type:com.google.youtube.event.VideoLoaderEvent.END, target:this}); } } function getTimeDifference(time1, time2) { return(Math.abs(time1 - time2)); } function isMetaDataLoaded() { return(metaDataLoaded); } function onMetaData(infoObject) { videoMetaData = infoObject; metaDataLoaded = true; if (videoMetaData.keyframes && (videoMetaData.keyframes.filepositions)) { var _local3 = videoMetaData.keyframes; keyframeFileLocations = {}; var _local4 = 0; for ( ; _local4 < _local3.times.length ; _local4++) { keyframeFileLocations[_local3.times[_local4]] = _local3.filepositions[_local4]; } } if (infoObject.width && (infoObject.height)) { videoWidth = infoObject.width; videoHeight = infoObject.height; } if ((totalBytes == -1) && (infoObject.bytelength)) { totalBytes = infoObject.bytelength; } else if (totalBytes == -1) { totalBytes = getNetStream().bytesTotal; } if (infoObject.starttime != undefined) { startSeconds = infoObject.starttime; videoFileStartLocation = startSeconds * (getNSBytesTotal() / getDuration()); } if ((!duration) && (infoObject.totalduration)) { duration = infoObject.totalduration; } else if ((!duration) && (infoObject.duration)) { duration = infoObject.duration; } infoObject.duration = getDuration(); broadcast({type:com.google.youtube.event.VideoLoaderEvent.META_LOAD, data:infoObject, target:this}); } function getFileLocationForKeyframeTime(keyframe) { return(keyframeFileLocations[keyframe]); } 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 DEFAULT_VIDEO_WIDTH = 320; static var DEFAULT_VIDEO_HEIGHT = 240; static var STALL_LIMIT = 15; static var STALL_LIMIT_SHORT = 5; static var VIDEO_LOAD_STATUS_UNLOADED = 0; static var VIDEO_LOAD_STATUS_LOADED = 1; static var PROGRESS_INTERVAL = 250; var videoLoadStatus = VIDEO_LOAD_STATUS_UNLOADED; var totalBytes = -1; var metaDataLoaded = false; var stallCount = 0; var lastTime = null; var startSeconds = 0; var unstallAttempted = false; var presumedBytesPerSecond = 40000; var videoFileStartLocation = 0; var bufferEmptyCount = 0; var firstVideoPlayed = false; }
Symbol 20531 MovieClip [__Packages.com.google.youtube.videoclick.components.PauseAnnotationDisplay] Frame 0
class com.google.youtube.videoclick.components.PauseAnnotationDisplay extends com.google.youtube.videoclick.components.AnnotationDisplay implements com.google.youtube.videoclick.components.TimedUiComponent { var annotationBean, getPlayheadTime, isVideoProgressing, isVisibleNow, destroy, drawLater, isVideoPlaying, createContainerMc, clearLastOnTimeout, lastOnTimeoutTimeoutId, clearRedrawTimeout, removeFromDisplay, shapeMc, clockMc, containerMc, playerAdapter; function PauseAnnotationDisplay (pauseAnnotationBean, playerAdapter, annotationsLayer) { super(pauseAnnotationBean, playerAdapter, annotationsLayer); } function getBean() { return(com.google.youtube.videoclick.beans.PauseAnnotation(annotationBean)); } function draw(opt_isSeek) { var _local3 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); var _local4 = getUpdatedAnnotationStartTime(); if ((!isVideoProgressing()) && (!isVisibleNow())) { destroy(); return(undefined); } if (_local3.getTime() < (_local4.getTime() - com.google.youtube.videoclick.VideoclickConfig.START_TIME_INSENSITIVITY)) { destroy(); drawLater(_local4); return(undefined); } if (_local3.getTime() > (_local4.getTime() + com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_SENSITIVITY)) { destroy(); return(undefined); } if (isVideoPlaying()) { runActions(); createContainerMc(); drawPauseClock(); createTimeoutForDestroy(_local3); } } function createTimeoutForDestroy(currentTime) { clearLastOnTimeout(); lastOnTimeoutTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "onTimeout", 1000 * getRemoveTimeInterval(currentTime)); } function onUnpause() { var _local2 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); var _local3 = getUpdatedAnnotationStartTime(); if (isVisibleNow() == true) { clearLastOnTimeout(); clearRedrawTimeout(); removeFromDisplay(); } else if (_local2.getTime() < (_local3.getTime() - com.google.youtube.videoclick.VideoclickConfig.START_TIME_INSENSITIVITY)) { draw(); } } function runActions() { com.google.youtube.videoclick.components.PauseManager.getInstance().pause(getBean().getDuration().getTime()); } function getRemoveTimeInterval(time) { return(getRemoveTime() - time.getTime()); } function getRemoveTime() { var _local2 = getUpdatedAnnotationStartTime(); return(_local2.getTime() + com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_SENSITIVITY); } function onTimeout() { var _local2 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); var _local3 = getUpdatedAnnotationStartTime(); if (_local2.getTime() < (_local3.getTime() - com.google.youtube.videoclick.VideoclickConfig.START_TIME_INSENSITIVITY)) { destroy(); drawLater(getBean().getDisplayPosition().getT1()); return(undefined); } if (_local2.getTime() < (_local3.getTime() + com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_SENSITIVITY)) { var _local4 = (_local3.getTime() + com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_SENSITIVITY) + com.google.youtube.videoclick.VideoclickConfig.EPSILON; lastOnTimeoutTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "onTimeout", _local4 * 1000); return(undefined); } destroy(); } function drawPauseClockOuterCircle() { com.google.youtube.util.Drawing.drawCircle(shapeMc, 0, 0, CLOCK_OUTER_DIAMETER, CLOCK_OUTER_FILL, CLOCK_OUTER_LINE_STYLE, false); } function drawPauseClockInnerCircle() { com.google.youtube.util.Drawing.drawCircle(shapeMc, 0, 0, CLOCK_INNER_DIAMETER, CLOCK_INNER_FILL, CLOCK_INNER_LINE_STYLE, false); } function drawPauseClockTimer() { if (!shapeMc) { return(undefined); } if (clockMc) { clockMc.removeMovieClip(); } clockMc = shapeMc.createEmptyMovieClip("clockMc", shapeMc.getNextHighestDepth()); com.google.youtube.videoclick.util.DrawingUtil.drawPacman(clockMc, 0, 0, 360 * (com.google.youtube.videoclick.components.PauseManager.getInstance().precentTimeElapsed() / 100), CLOCK_TIMER_DIAMETER, CLOCK_TIMER_FILL, CLOCK_TIMER_LINE_STYLE, CLOCK_TIMER_LINE_STYLE, CLOCK_HAND_LINE_STYLE, false); com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "drawPauseClockTimer", CLOCK_TIMER_UPDATE_INTERVAL); com.google.youtube.util.Drawing.drawCircle(clockMc, 0, 0, CLOCK_CENTER_DIAMETER, CLOCK_CENTER_FILL, CLOCK_CENTER_LINE_STYLE, false); } function drawPauseClock() { if (!shapeMc) { shapeMc = containerMc.createEmptyMovieClip("shapeMc", containerMc.getNextHighestDepth()); } containerMc._x = getBean().getDisplayPosition().getX(); containerMc._y = getBean().getDisplayPosition().getY(); drawPauseClockOuterCircle(); drawPauseClockInnerCircle(); drawPauseClockTimer(); } function getUpdatedAnnotationStartTime() { var _local2 = new com.google.youtube.videoclick.beans.TimePoint(getBean().getDisplayPosition().getT1().getTime()); if (_local2.getTime() < com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_START_TIME_INACTIVITY) { _local2 = new com.google.youtube.videoclick.beans.TimePoint(com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_START_TIME_INACTIVITY); } if (_local2.getTime() > (playerAdapter.getDuration() - com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_END_TIME_INACTIVITY)) { _local2 = new com.google.youtube.videoclick.beans.TimePoint(playerAdapter.getDuration() - com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_END_TIME_INACTIVITY); } return(_local2); } function pause() { } function resume() { onUnpause(); } function updateDisplayPartsOnResize(curDisplayRect) { } static var CLOCK_OUTER_DIAMETER = 32; static var CLOCK_OUTER_FILL = {fillType:"linear", colors:[16777215], alphas:[80], ratios:[0], matrix:{matrixType:"box", x:0, y:0, w:com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_W, h:com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_H, r:(90 / 180) * Math.PI}}; static var CLOCK_OUTER_LINE_STYLE = {thickness:0, rgb:0, alpha:20}; static var CLOCK_INNER_DIAMETER = 26; static var CLOCK_INNER_FILL = {fillType:"linear", colors:[0], alphas:[25], ratios:[0], matrix:{matrixType:"box", x:0, y:0, w:com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_W, h:com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_H, r:(90 / 180) * Math.PI}}; static var CLOCK_INNER_LINE_STYLE = {thickness:0, rgb:0, alpha:20}; static var CLOCK_TIMER_DIAMETER = 18; static var CLOCK_TIMER_FILL = CLOCK_OUTER_FILL; static var CLOCK_TIMER_LINE_STYLE = {thickness:2, rgb:15790320, alpha:80}; static var CLOCK_CENTER_FILL = {fillType:"linear", colors:[6710886], alphas:[100], ratios:[0], matrix:{matrixType:"box", x:0, y:0, w:com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_W, h:com.google.youtube.videoclick.beans.PauseAnnotation.DEFAULT_H, r:(90 / 180) * Math.PI}}; static var CLOCK_CENTER_DIAMETER = 4; static var CLOCK_CENTER_LINE_STYLE = {thickness:1, rgb:6710886, alpha:100}; static var CLOCK_HAND_LINE_STYLE = {thickness:1, rgb:6710886, alpha:100}; static var CLOCK_TIMER_UPDATE_INTERVAL = 100; }
Symbol 20532 MovieClip [__Packages.com.google.youtube.event.VideoLoaderEvent] Frame 0
class com.google.youtube.event.VideoLoaderEvent { function VideoLoaderEvent () { } static var PLAY = "onPlay"; static var STOP = "onStop"; static var PAUSE = "onPause"; static var END = "onEnd"; static var BUFFERING = "onBuffering"; static var SEEKING = "onSeeking"; static var NET_STREAM_STATUS = "onNetStreamEvent"; static var LOAD_NEW_VIDEO = "onLoadNewVideo"; static var STREAM_NOT_FOUND = "onStreamNotFound"; static var STREAM_NOT_EMBEDDABLE = "onStreamNotEmbeddable"; static var META_LOAD = "onMetaLoad"; static var BYTES_LOADED = "onBytesLoaded"; static var PROGRESS = "onProgress"; static var VIDEO_DATA_ERROR = "onVideoDataError"; static var VIDEO_DATA_LOADED = "onVideoDataLoad"; static var UNLOAD_VIDEO = "onVideoUnload"; }
Symbol 20533 MovieClip [__Packages.com.google.youtube.videoclick.util.TrackUtil] Frame 0
class com.google.youtube.videoclick.util.TrackUtil { function TrackUtil () { } static function enableTracking(enable) { com.google.youtube.videoclick.util.TrackUtil.enable = enable; } static function isEnableTracking() { return(enable); } static function trackEvent(action, opt_label, opt_value) { if (!enable) { return(undefined); } if (flashVersion == 0) { var _local5 = System.capabilities.version.split(" ")[1]; flashVersion = Number(_local5.split(",")[0]); } if (flashVersion >= MIN_VERSION_FOR_EXTERNAL_INTERFACE) { flash.external.ExternalInterface.call("trackAnnotationsEvent", action, opt_label, opt_value); } else if ((opt_label == undefined) && (opt_value == undefined)) { getURL (("javascript:trackAnnotationsEvent('" + action) + "');", "_self"); } else if (opt_value == undefined) { getURL (((("javascript:trackAnnotationsEvent('" + action) + "', '") + opt_label) + "');", "_self"); } else { getURL (((((("javascript:trackAnnotationsEvent('" + action) + "', '") + opt_label) + "', '") + opt_value) + "');", "_self"); } } static function trackEventUnsafeParams(action, opt_label, opt_value) { if (!enable) { return(undefined); } trackEvent(_global.escape(action), ((opt_label == undefined) ? undefined : (_global.escape(opt_label))), opt_value); } static var MIN_VERSION_FOR_EXTERNAL_INTERFACE = 8; static var enable = false; static var flashVersion = 0; }
Symbol 20534 MovieClip [__Packages.com.google.utils.Url] Frame 0
class com.google.utils.Url { var protocol, host, port, domain, file, path, params, paramsMap; function Url (spec) { parseAndInit(spec); } static function debugDescribeParams(params) { var _local3 = ""; for (var param in params) { if (_local3 != "") { _local3 = _local3 + " "; } _local3 = _local3 + (((param + "=>{") + params[param].join(",")) + "}"); } return(_local3); } static function diffUrl(url, goldenUrl) { var _local4 = new Array(); if (url.getProtocol() != goldenUrl.getProtocol()) { _local4.push((("Protocol: " + url.getProtocol()) + "!=") + goldenUrl.getProtocol()); } if (url.getHost() != goldenUrl.getHost()) { _local4.push((("Host: " + url.getHost()) + "!=") + goldenUrl.getHost()); } if (url.getPort() != goldenUrl.getPort()) { _local4.push((("Port: " + url.getPort()) + "!=") + goldenUrl.getPort()); } if (url.getPath() != goldenUrl.getPath()) { _local4.push((("Path: " + url.getPath()) + "!=") + goldenUrl.getPath()); } var _local5 = url.getParamsMap(); var _local6 = goldenUrl.getParamsMap(); for (var param in _local5) { if (_local6[param] == undefined) { var _local7 = _local5[param].join("&"); _local4.push(((("Unexpected param: " + param) + "=>{") + _local7) + "}"); } } for (var param in _local6) { var _local8 = _local6[param].join("&"); if (_local5[param] == undefined) { _local4.push(((("missing param: " + param) + "=>{") + _local8) + "}"); } else { var _local9 = _local5[param].join("&"); if (_local9 != _local8) { _local4.push((((("Inconsistent values for param: " + param) + "=>") + _local9) + "!=") + _local8); } } } return(_local4.join(" ")); } static function isEquivalent(url1, url2) { return(diffUrl(url1, url2) == ""); } function parseAndInit(spec) { protocol = findProtocol(spec); var _local3 = ((protocol == null) ? 0 : (protocol.length + 3)); var _local4 = spec.indexOf("/", _local3); var _local5 = spec.indexOf("?", _local4); _local4 = ((_local4 < 0) ? (spec.length) : (_local4)); _local5 = ((_local5 < 0) ? (spec.length) : (_local5)); var _local6 = spec.substring(_local3, _local4).split(":", 2); host = _local6[0]; port = ((_local6.length > 1) ? (_local6[1]) : null); var _local7 = host.split("."); if (_local7.length > 1) { domain = _local7.slice(_local7.length - 2).join("."); } else { domain = null; } file = spec.substring(_local4); path = spec.substring(_local4, _local5); if (_local5 < spec.length) { params = spec.substring(_local5 + 1); } else { params = ""; } paramsMap = {}; var _local8 = params.split("&"); var _local9 = 0; for ( ; _local9 < _local8.length ; _local9++) { var _local10 = _local8[_local9].split("=", 2); if (_local10.length == 1) { _local10.push(""); } if (paramsMap[_local10[0]] == undefined) { paramsMap[_local10[0]] = new Array(); } paramsMap[_local10[0]].push(_local10[1]); } } function findProtocol(spec) { var _local3 = spec.split("://", 2); return(((_local3.length > 1) ? (_local3[0]) : null)); } function getProtocol() { return(protocol); } function getHost() { return(host); } function getDomain() { return(domain); } function getPort() { return(port); } function getFile() { return(file); } function getPath() { return(path); } function getParams() { return(params); } function getParamsMap() { return(paramsMap); } function debugDescribeUrl() { return((((((((("protocol:" + protocol) + " host:") + host) + " port:") + port) + " path: ") + path) + " params:") + debugDescribeParams(getParamsMap())); } }
Symbol 20535 MovieClip [__Packages.com.google.youtube.videoclick.beans.Text] Frame 0
class com.google.youtube.videoclick.beans.Text implements com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var displayRect, parent, text, dirty, initTextObject; function Text (textObject, displayRect, parent) { this.displayRect = displayRect; this.parent = parent; text = (textObject._value ? (textObject._value) : ""); readFromObject(textObject); dirty = false; } function readFromObject(textObject) { if (textObject[XML_ATTRIBUTE_X]) { x = percentsToPixelsX(_global.parseFloat(textObject[XML_ATTRIBUTE_X])); y = percentsToPixelsY(_global.parseFloat(textObject[XML_ATTRIBUTE_Y])); w = percentsToPixelsX(_global.parseFloat(textObject[XML_ATTRIBUTE_W])); h = percentsToPixelsY(_global.parseFloat(textObject[XML_ATTRIBUTE_H])); } initTextObject = textObject; } function updateDisplayRect(newDisplayRect) { if (initTextObject == null) { return(undefined); } displayRect = newDisplayRect; readFromObject(initTextObject); } function hasAttributes() { return(getX() > -1); } function getX() { return(x); } function getY() { return(y); } function getW() { return(w); } function getH() { return(h); } function getText() { return(text); } function setX(value) { initTextObject = null; x = value; dirty = true; } function setY(value) { initTextObject = null; y = value; dirty = true; } function setW(value) { initTextObject = null; w = value; dirty = true; } function setH(value) { initTextObject = null; h = value; dirty = true; } function setText(text, source) { initTextObject = null; if (this.text != text) { this.text = text; dirty = true; com.google.youtube.videoclick.beans.EventsList.getInstance().reportChange(parent, com.google.youtube.videoclick.beans.EventsList.EVENT_ANNOTATION_TEXT_CHANGE, source); } } function setRectangle(rect) { initTextObject = null; x = rect.x; y = rect.y; w = rect.width; h = rect.height; dirty = true; } function getRectangle() { return((hasAttributes() ? (new flash.geom.Rectangle(x, y, w, h)) : null)); } function percentsToPixelsX(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(value, displayRect)); } function percentsToPixelsY(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(value, displayRect)); } function pixelsToPercentsX(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.pixelsToPercentsX(value, displayRect)); } function pixelsToPercentsY(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.pixelsToPercentsY(value, displayRect)); } function getXml(doc) { var _local3 = doc.createElement(XML_ELEMENT_NAME); if (hasAttributes()) { _local3.attributes[XML_ATTRIBUTE_X] = pixelsToPercentsX(getX()); _local3.attributes[XML_ATTRIBUTE_Y] = pixelsToPercentsY(getY()); _local3.attributes[XML_ATTRIBUTE_W] = pixelsToPercentsX(getW()); _local3.attributes[XML_ATTRIBUTE_H] = pixelsToPercentsY(getH()); } _local3.appendChild(doc.createTextNode(text)); return(_local3); } function isDirty() { return(dirty); } function markAsClean() { dirty = false; } function toString() { var _local2 = "Text(" + text; if (hasAttributes()) { _local2 = _local2 + ((((((("," + x) + ",") + y) + ",") + w) + ",") + h); } return(_local2 + ")"); } static var XML_ELEMENT_NAME = "text"; static var XML_ATTRIBUTE_X = "x"; static var XML_ATTRIBUTE_Y = "y"; static var XML_ATTRIBUTE_W = "w"; static var XML_ATTRIBUTE_H = "h"; var x = -1; var y = -1; var w = -1; var h = -1; }
Symbol 20536 MovieClip [__Packages.com.google.youtube.players.SoundController] Frame 0
class com.google.youtube.players.SoundController extends com.google.youtube.AbstractBroadcaster { static var instanceMap; var soundMovieClip, soundObject, saveSettings, infringeMute, muted, soundSharedObject, soundSharedObjectData, currentVolume, localVolume, broadcast; function SoundController (mc, saveSoundSettings) { super(); soundMovieClip = mc.createEmptyMovieClip("sound_mc", mc.getNextHighestDepth()); soundObject = new Sound(soundMovieClip); saveSettings = saveSoundSettings; infringeMute = false; muted = false; soundSharedObject = SharedObject.getLocal(SOUND_DATA_SO_KEY, "/"); soundSharedObjectData = soundSharedObject.data; if ((soundSharedObjectData.volume == _global.NaN) || ((soundSharedObjectData.volume == undefined) || (!saveSettings))) { soundSharedObjectData.volume = 100; } if ((soundSharedObjectData.mute == undefined) || (!saveSettings)) { soundSharedObjectData.mute = false; } if (saveSettings) { soundSharedObject.flush(); restoreSoundOptions(); } else { setVolume(100); currentVolume = 100; } } static function getPlayerInstance(mc, saveSoundSettings) { if (!instanceMap) { instanceMap = {}; } var _local4 = String(mc); if (!instanceMap[_local4]) { instanceMap[_local4] = new com.google.youtube.players.SoundController(mc, saveSoundSettings); } return(instanceMap[_local4]); } static function destroyPlayerInstance(mc) { var _local3 = String(mc); instanceMap[_local3] = null; } function setInfringeMute(isInfringe) { infringeMute = isInfringe; localVolume = currentVolume; } function restoreSoundOptions() { setVolume(soundSharedObjectData.volume); currentVolume = soundSharedObjectData.volume; if (soundSharedObjectData.mute) { mute(); } } function setVolume(newVolume, cancelBroadcast) { if (!newVolume) { return(undefined); } var _local4 = Math.round(newVolume); _local4 = Math.min(_local4, 100); _local4 = Math.max(_local4, 0); if (infringeMute) { localVolume = _local4; return(undefined); } if (!soundSharedObjectData.mute) { soundObject.setVolume(_local4); soundSharedObjectData.volume = _local4; if (saveSettings) { soundSharedObject.flush(); } currentVolume = _local4; if (!cancelBroadcast) { broadcast({type:com.google.youtube.event.SoundEvent.VOLUME_CHANGE, data:_local4, target:this}); } } } function getVolume() { if (!infringeMute) { return(currentVolume); } return(localVolume); } function mute(doBroadcast, bypassSharedObject_opt) { if ((!bypassSharedObject_opt) && (saveSettings && (!infringeMute))) { soundSharedObjectData.mute = true; soundSharedObject.flush(); } muted = true; soundObject.setVolume(0); if (doBroadcast) { broadcast({type:com.google.youtube.event.SoundEvent.MUTE, target:this}); } } function unMute(skipRestoreVolume, bypassSharedObject_opt) { muted = false; if (infringeMute) { return(undefined); } if (!skipRestoreVolume) { setVolume(currentVolume); } broadcast({type:com.google.youtube.event.SoundEvent.UNMUTE, target:this}); if ((!bypassSharedObject_opt) && (saveSettings)) { soundSharedObjectData.mute = false; soundSharedObject.flush(); } } function getMute() { return(muted); } function getSoundMC() { return(soundMovieClip); } static var SOUND_DATA_SO_KEY = "soundData"; }
Symbol 20537 MovieClip [__Packages.com.google.youtube.ui.IButton] Frame 0
class com.google.youtube.ui.IButton { function IButton () { } }
Symbol 20538 MovieClip [__Packages.com.google.youtube.videoclick.beans.SpeechBubbleAnnotation] Frame 0
class com.google.youtube.videoclick.beans.SpeechBubbleAnnotation extends com.google.youtube.videoclick.beans.Annotation implements com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var displayPosition, sourcePoint, dirty; function SpeechBubbleAnnotation (speechBubbleAnnotationObject, displayRect) { super(speechBubbleAnnotationObject); displayPosition = new com.google.youtube.videoclick.beans.DisplayPosition(speechBubbleAnnotationObject[com.google.youtube.videoclick.beans.DisplayPosition.XML_ELEMENT_NAME], displayRect, this); sourcePoint = new com.google.youtube.videoclick.beans.SourcePoint(speechBubbleAnnotationObject[com.google.youtube.videoclick.beans.SourcePoint.XML_ELEMENT_NAME], displayRect); } function getDisplayPosition() { return(displayPosition); } function setDisplayPosition(newDisplayPosition) { displayPosition = newDisplayPosition; } function getSourcePoint() { return(sourcePoint); } function setSourcePoint(newSourcePoint) { sourcePoint = newSourcePoint; } function getXmlElementName() { return(XML_ELEMENT_NAME); } function addAnnotationXmlParts(annotationXml, doc) { super.addAnnotationXmlParts(annotationXml, doc); annotationXml.appendChild(displayPosition.getXml(doc)); annotationXml.appendChild(sourcePoint.getXml(doc)); } function isDirty() { return(super.isDirty() || (displayPosition.isDirty() || (sourcePoint.isDirty()))); } function markAsClean() { super.markAsClean(); displayPosition.markAsClean(); sourcePoint.markAsClean(); } function setDisplayRect(rect) { displayPosition.setRectangle(rect); dirty = true; } function setDisplayRegion(r) { displayPosition.setX(r.getX()); displayPosition.setY(r.getY()); displayPosition.setW(r.getW()); displayPosition.setH(r.getH()); displayPosition.setT(r.getTime()); displayPosition.setDepth(r.getDepth()); } function toString() { return(((((("SpeechBubbleAnnotation(" + displayPosition) + ",") + sourcePoint.toString()) + ",") + super.toString()) + ")"); } static var XML_ELEMENT_NAME = "speechBubbleAnnotation"; }
Symbol 20539 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModuleMediator] Frame 0
class com.google.youtube.players.modules.IPlayerModuleMediator { function IPlayerModuleMediator () { } }
Symbol 20540 MovieClip [__Packages.com.google.youtube.videoclick.beans.Region] Frame 0
class com.google.youtube.videoclick.beans.Region implements com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var x, y, w, h, d, t, displayRect, dirty, initDataObject; function Region (x, y, w, h, d, newT, displayRect) { this.x = x; this.y = y; this.w = w; this.h = h; this.d = d; t = newT.clone(); this.displayRect = displayRect; dirty = false; if (t == undefined) { } } static function createFromObject(regionNode, displayRect) { var _local4 = new com.google.youtube.videoclick.beans.Region(0, 0, 0, 0, 0, new com.google.youtube.videoclick.beans.TimePoint(0), displayRect); _local4.readFromObject(regionNode); return(_local4); } function readFromObject(regionNode) { t.setTimeFromString(regionNode[XML_ATTRIBUTE_T]); x = percentsToPixelsX(_global.parseFloat(regionNode[XML_ATTRIBUTE_X])); y = percentsToPixelsY(_global.parseFloat(regionNode[XML_ATTRIBUTE_Y])); w = percentsToPixelsX(_global.parseFloat(regionNode[XML_ATTRIBUTE_W])); h = percentsToPixelsY(_global.parseFloat(regionNode[XML_ATTRIBUTE_H])); d = _global.parseInt(regionNode[XML_ATTRIBUTE_D]); initDataObject = regionNode; } function updateDisplayRect(newDisplayRect) { displayRect = newDisplayRect; if (initDataObject == null) { return(undefined); } readFromObject(initDataObject); } function toString() { return(((((((((((("Region(" + x) + ",") + y) + ",") + w) + ",") + h) + ",") + d) + ",") + t.toString()) + ")"); } function getX() { return(x); } function getY() { return(y); } function getH() { return(h); } function getW() { return(w); } function getDepth() { return(d); } function getTime() { return(t.clone()); } function setH(height) { initDataObject = null; if (height < 0) { height = 0; } if ((height + y) > displayRect.height) { height = displayRect.height - y; } h = height; dirty = true; } function setY(yValue) { initDataObject = null; if (yValue < 0) { yValue = 0; } if ((yValue + h) > displayRect.height) { yValue = displayRect.height - h; } y = yValue; dirty = true; } function setW(width) { initDataObject = null; if (width < 0) { width = 0; } if ((width + x) > displayRect.width) { width = displayRect.width - x; } w = width; dirty = true; } function setX(xValue) { initDataObject = null; if (xValue < 0) { xValue = 0; } if ((xValue + w) > displayRect.width) { xValue = displayRect.width - w; } x = xValue; dirty = true; } function setT(value) { initDataObject = null; dirty = true; t = value.clone(); } function setDepth(depth) { initDataObject = null; d = depth; dirty = true; } function calcDiff(rect) { var _local3 = getRectangle(); _local3.x = _local3.x - rect.x; _local3.y = _local3.y - rect.y; _local3.width = _local3.width - rect.width; _local3.height = _local3.height - rect.height; return(_local3); } function hitTest(anX, aY) { return(getRectangle().contains(anX, aY)); } function getRectangle() { return(new flash.geom.Rectangle(x, y, w, h)); } function setRectangle(rect) { x = rect.x; y = rect.y; w = rect.width; h = rect.height; dirty = true; } function percentsToPixelsX(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(value, displayRect)); } function percentsToPixelsY(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(value, displayRect)); } function pixelsToPercentsX(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.pixelsToPercentsX(value, displayRect)); } function pixelsToPercentsY(value) { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.pixelsToPercentsY(value, displayRect)); } function getXml(doc) { var _local3 = doc.createElement(XML_ELEMENT_NAME); _local3.attributes[XML_ATTRIBUTE_X] = pixelsToPercentsX(getX()); _local3.attributes[XML_ATTRIBUTE_Y] = pixelsToPercentsY(getY()); _local3.attributes[XML_ATTRIBUTE_W] = pixelsToPercentsX(getW()); _local3.attributes[XML_ATTRIBUTE_H] = pixelsToPercentsY(getH()); _local3.attributes[XML_ATTRIBUTE_D] = getDepth(); _local3.attributes[XML_ATTRIBUTE_T] = getTime().toString(); return(_local3); } function isDirty() { return(dirty); } function markAsClean() { dirty = false; } static var XML_ELEMENT_NAME = "region"; static var XML_ATTRIBUTE_X = "x"; static var XML_ATTRIBUTE_Y = "y"; static var XML_ATTRIBUTE_W = "w"; static var XML_ATTRIBUTE_H = "h"; static var XML_ATTRIBUTE_D = "d"; static var XML_ATTRIBUTE_T = "t"; }
Symbol 20541 MovieClip [__Packages.com.google.youtube.videoclick.beans.DisplayPosition] Frame 0
class com.google.youtube.videoclick.beans.DisplayPosition extends com.google.youtube.videoclick.beans.Region implements com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var initDataObject, parent, readFromObject, t2, getTime, dirty, pixelsToPercentsX, getX, pixelsToPercentsY, getY, getW, getH, getDepth, t, d, h, w, y, x; function DisplayPosition (displayPositionObject, displayRect, parent) { super(0, 0, 0, 0, 0, new com.google.youtube.videoclick.beans.TimePoint(0), displayRect); initDataObject = displayPositionObject; this.parent = parent; if (displayPositionObject) { displayPositionObject[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_T] = displayPositionObject[XML_ATTRIBUTE_T1]; readFromObject(displayPositionObject); t2 = new com.google.youtube.videoclick.beans.TimePoint(displayPositionObject[XML_ATTRIBUTE_T2]); } } function getT1() { return(getTime().clone()); } function getT2() { return(t2.clone()); } function setT1(time) { initDataObject = null; super.setT(time); com.google.youtube.videoclick.beans.EventsList.getInstance().reportChange(parent, com.google.youtube.videoclick.beans.EventsList.EVENT_ANNOTATION_TIME_CHANGED, parent); } function setT2(time) { initDataObject = null; dirty = true; t2 = time.clone(); com.google.youtube.videoclick.beans.EventsList.getInstance().reportChange(parent, com.google.youtube.videoclick.beans.EventsList.EVENT_ANNOTATION_TIME_CHANGED, parent); } function getXml(doc) { var _local3 = doc.createElement(XML_ELEMENT_NAME); _local3.attributes[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_X] = pixelsToPercentsX(getX()); _local3.attributes[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_Y] = pixelsToPercentsY(getY()); _local3.attributes[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_W] = pixelsToPercentsX(getW()); _local3.attributes[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_H] = pixelsToPercentsY(getH()); _local3.attributes[com.google.youtube.videoclick.beans.Region.XML_ATTRIBUTE_D] = getDepth(); _local3.attributes[XML_ATTRIBUTE_T1] = getT1().toString(); _local3.attributes[XML_ATTRIBUTE_T2] = getT2().toString(); return(_local3); } function toString() { return(((((((((((((("DisplayPosition(" + x) + ",") + y) + ",") + w) + ",") + h) + ",") + d) + ",") + t.getTime()) + ",") + t2.getTime()) + ")"); } static var XML_ELEMENT_NAME = "displayPosition"; static var XML_ATTRIBUTE_T1 = "t1"; static var XML_ATTRIBUTE_T2 = "t2"; }
Symbol 20542 MovieClip [__Packages.com.google.youtube.videoclick.backendadapters.ServerErrorsDetector] Frame 0
class com.google.youtube.videoclick.backendadapters.ServerErrorsDetector { function ServerErrorsDetector () { } static function isObjectAnError(treeObject) { return(treeObject[XML_ATTRIBUTE_CODE] != undefined); } static function getErrorCodeFromObject(treeObject) { if (!isObjectAnError(treeObject)) { return(0); } return(_global.parseInt(treeObject[XML_ATTRIBUTE_CODE])); } static function getErrorDescriptionFromObject(treeObject) { if (!isObjectAnError(treeObject)) { return(""); } return(treeObject._value); } static function isXmlAnError(xml) { return(findErrorNodeInXml(xml) != null); } static function findErrorNodeInXml(xml) { var _local3 = xml.childNodes.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { if (xml.childNodes[_local4].nodeName == XML_ELEMENT_NAME_ERROR) { return(xml.childNodes[_local4]); } } return(null); } static function getErrorCodeFromXml(xml) { if (!isXmlAnError(xml)) { return(0); } var _local3 = findErrorNodeInXml(xml).attributes[XML_ATTRIBUTE_CODE]; if ((!_local3) || (_global.isNaN(_global.parseInt(_local3)))) { return(0); } return(_global.parseInt(_local3)); } static function getErrorDescriptionFromXml(xml) { if (!isXmlAnError(xml)) { return(""); } return(findErrorNodeInXml(xml).firstChild.nodeValue); } static var STATUS_NO_CONNECTIVITY = 1; static var STATUS_OK = 200; static var STATUS_BAD_REQUEST = 400; static var STATUS_UNAUTHORIZED = 403; static var STATUS_NOT_FOUND = 404; static var STATUS_INTERNAL_SERVER_ERROR = 500; static var XML_ELEMENT_NAME_ERROR = "error"; static var XML_ATTRIBUTE_CODE = "code"; }
Symbol 20543 MovieClip [__Packages.com.google.youtube.videoclick.backendadapters.AnnotationsLoader] Frame 0
class com.google.youtube.videoclick.backendadapters.AnnotationsLoader extends com.google.youtube.AbstractBroadcaster { static var instance; var countdownIntervalId, url, currentReloadAttempt, xmlData, reloadAttemptTimer, reconnectCountdown, broadcast; function AnnotationsLoader () { super(); countdownIntervalId = _global.NaN; com.google.youtube.videoclick.backendadapters.NetworkSecurityManager.getInstance().run(); createXmlDataObject(); } static function getInstance() { if (!instance) { instance = new com.google.youtube.videoclick.backendadapters.AnnotationsLoader(); } return(instance); } function loadAnnotations(url) { this.url = url; currentReloadAttempt = 0; loadNow(); } function destroy() { reset(); xmlData.unregisterAll(); delete xmlData; delete instance; } function reset() { _global.clearTimeout(reloadAttemptTimer); cancelCountdown(); url = null; xmlData.unregisterAll(); createXmlDataObject(); } function createXmlDataObject() { xmlData = new com.google.youtube.data.XMLData(true); xmlData.registerEvent(com.google.youtube.event.DataEvent.LOAD, com.google.chianti.event.EventDelegate.create(this, onDataLoadSuccess)); xmlData.registerEvent(com.google.youtube.event.DataEvent.ERROR, com.google.chianti.event.EventDelegate.create(this, onDataLoadError)); } function loadNow() { if (xmlData.loaded) { return(undefined); } if (currentReloadAttempt > 1) { onDataLoadError(null); } xmlData.loadXML(url); setFutureReloadAttempt(); } function setFutureReloadAttempt() { if (xmlData.loaded) { return(undefined); } currentReloadAttempt++; if (currentReloadAttempt > 1) { } if (currentReloadAttempt < MAX_RELOAD_ATTEMPTS) { reloadAttemptTimer = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "loadNow", 1000 * LOAD_DELAY); cancelCountdown(); reconnectCountdown = LOAD_DELAY - 1; countdownIntervalId = _global.setInterval(this, "countdowner", 1000); } } function countdowner() { reconnectCountdown--; if (reconnectCountdown <= RECONNECT_COUNTDOWN_START_REPORT) { broadcast({type:EVENT_ANNOTATIONS_LOAD_ERROR, code:com.google.youtube.videoclick.backendadapters.ServerErrorsDetector.STATUS_NO_CONNECTIVITY, description:"No connectivity", reconnectTime:reconnectCountdown, target:this}); } if (reconnectCountdown <= 0) { _global.clearInterval(countdownIntervalId); countdownIntervalId = _global.NaN; } } function cancelCountdown() { if (!_global.isNaN(countdownIntervalId)) { _global.clearInterval(countdownIntervalId); countdownIntervalId = _global.NaN; } } function onDataLoadSuccess(evt) { _global.clearTimeout(reloadAttemptTimer); cancelCountdown(); var _local3 = evt.data; if (com.google.youtube.videoclick.backendadapters.ServerErrorsDetector.isObjectAnError(_local3)) { var _local4 = com.google.youtube.videoclick.backendadapters.ServerErrorsDetector.getErrorCodeFromObject(_local3); reportError(_local4, com.google.youtube.videoclick.backendadapters.ServerErrorsDetector.getErrorDescriptionFromObject(_local3)); if (_local4 == com.google.youtube.videoclick.backendadapters.ServerErrorsDetector.STATUS_INTERNAL_SERVER_ERROR) { setFutureReloadAttempt(); } return(undefined); } broadcast({type:EVENT_ANNOTATIONS_LOADED, data:{rootNode:_local3}, target:this}); } function onDataLoadError(evt) { reportError(com.google.youtube.videoclick.backendadapters.ServerErrorsDetector.STATUS_NO_CONNECTIVITY, "No connectivity"); } function reportError(errorCode, errorDescription) { broadcast({type:EVENT_ANNOTATIONS_LOAD_ERROR, code:errorCode, description:errorDescription, target:this}); } static var EVENT_ANNOTATIONS_LOADED = "annotationsLoaded"; static var EVENT_ANNOTATIONS_LOAD_ERROR = "loadError"; static var LOAD_DELAY = 30; static var MAX_RELOAD_ATTEMPTS = 4; static var RECONNECT_COUNTDOWN_START_REPORT = 25; }
Symbol 20544 MovieClip [__Packages.com.google.youtube.videoclick.components.EventDisplay] Frame 0
class com.google.youtube.videoclick.components.EventDisplay implements com.google.youtube.videoclick.components.TimedUiComponent { var eventBean, annotationDisplay, segmentDisplay; function EventDisplay (eventBean, playerAdapter, annotationsLayer) { this.eventBean = eventBean; if (eventBean.hasAnnotation()) { annotationDisplay = com.google.youtube.videoclick.components.AnnotationDisplay.create(eventBean.getAnnotation(), playerAdapter, annotationsLayer); } if (eventBean.hasSegment()) { segmentDisplay = new com.google.youtube.videoclick.components.SegmentDisplay(eventBean.getSegment(), playerAdapter, annotationsLayer); annotationDisplay.setSegmentDisplay(segmentDisplay); } } function draw(opt_isSeek) { if (segmentDisplay) { segmentDisplay.draw(opt_isSeek); } else if (annotationDisplay) { annotationDisplay.draw(opt_isSeek); } } function pause() { if (segmentDisplay) { segmentDisplay.pause(); } else if (annotationDisplay) { annotationDisplay.pause(); } } function reset() { if (segmentDisplay) { segmentDisplay.reset(); } else if (annotationDisplay) { annotationDisplay.reset(); } } function resume() { if (segmentDisplay) { segmentDisplay.resume(); } else if (annotationDisplay) { annotationDisplay.resume(); } } function removeFromDisplay() { if (annotationDisplay) { annotationDisplay.removeFromDisplay(); } } function destroy() { if (annotationDisplay) { annotationDisplay.destroy(); } } function getBean() { return(eventBean); } function getId() { return(getBean().getId()); } function getAnnotationDisplay() { return(annotationDisplay); } function toString() { return(((((("EventDisplay(" + eventBean) + ",") + annotationDisplay) + ",") + segmentDisplay) + ")"); } }
Symbol 20545 MovieClip [__Packages.com.google.youtube.players.modules.ModuleDescriptor] Frame 0
class com.google.youtube.players.modules.ModuleDescriptor extends com.google.youtube.AbstractElement implements com.google.youtube.players.modules.IPlayerModuleDescriptor { var path, instance, broadcast; function ModuleDescriptor () { super(); } function getPath() { return(path); } function getLoggingOptions() { if (instance && (instance.getLoggingOptions)) { return(instance.getLoggingOptions()); } return({}); } function notify() { broadcast({target:this, type:com.google.youtube.event.DataEvent.SET}); } }
Symbol 20546 MovieClip [__Packages.com.google.youtube.event.UIEvent] Frame 0
class com.google.youtube.event.UIEvent { function UIEvent () { } static var RESIZE = "onResize"; static var SEEK = "onSeek"; static var CHANGE = "onChange"; static var START_RESIZE = "onStartResize"; }
Symbol 20547 MovieClip [__Packages.com.google.youtube.videoclick.beans.Event] Frame 0
class com.google.youtube.videoclick.beans.Event implements com.google.youtube.videoclick.beans.ServerDataAware, com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var id, triggerType, dirty, isOnServer, annotation, segment; function Event (eventObject, segments, annotations) { id = eventObject[XML_ATTRIBUTE_ID]; triggerType = eventObject[XML_ELEMENT_TRIGGER][XML_ATTRIBUTE_TYPE]; dirty = false; isOnServer = true; annotation = com.google.youtube.videoclick.beans.Annotation(annotations.getById(eventObject[XML_ELEMENT_ANNOTATION][XML_ATTRIBUTE_REF])); if (eventObject[XML_ELEMENT_SEGMENT]) { segment = com.google.youtube.videoclick.beans.Segment(segments.getById(eventObject[XML_ELEMENT_SEGMENT][XML_ATTRIBUTE_REF])); annotation.setSegment(segment); } } function getId() { return(id); } function hasAnnotation() { return(annotation != null); } function getAnnotation() { return(annotation); } function hasSegment() { return(segment != null); } function setSegment(s) { segment = s; annotation.setSegment(s); dirty = true; } function getSegment() { return(segment); } function getStartTime() { if (hasSegment() && (annotation instanceof com.google.youtube.videoclick.beans.HighlightAnnotation)) { return(segment.getAbsoluteStartTime()); } if (annotation instanceof com.google.youtube.videoclick.beans.PopupAnnotation) { return(com.google.youtube.videoclick.beans.PopupAnnotation(annotation).getDisplayPosition().getT1()); } if (annotation instanceof com.google.youtube.videoclick.beans.SpeechBubbleAnnotation) { return(com.google.youtube.videoclick.beans.SpeechBubbleAnnotation(annotation).getDisplayPosition().getT1()); } if (annotation instanceof com.google.youtube.videoclick.beans.PauseAnnotation) { return(com.google.youtube.videoclick.beans.PauseAnnotation(annotation).getDisplayPosition().getT1()); } return(null); } function getEndTime() { if (hasSegment() && (annotation instanceof com.google.youtube.videoclick.beans.HighlightAnnotation)) { return(segment.getAbsoluteEndTime()); } if (annotation instanceof com.google.youtube.videoclick.beans.PopupAnnotation) { return(com.google.youtube.videoclick.beans.PopupAnnotation(annotation).getDisplayPosition().getT2()); } if (annotation instanceof com.google.youtube.videoclick.beans.SpeechBubbleAnnotation) { return(com.google.youtube.videoclick.beans.SpeechBubbleAnnotation(annotation).getDisplayPosition().getT2()); } if (annotation instanceof com.google.youtube.videoclick.beans.PauseAnnotation) { return(com.google.youtube.videoclick.beans.PauseAnnotation(annotation).getDisplayPosition().getT2()); } return(null); } function setStartTime(startTime, opt_avoidEndTimeUpdate) { var _local4 = false; if (hasSegment()) { _local4 = segment.setAbsoluteStartTime(startTime); } else if (annotation instanceof com.google.youtube.videoclick.beans.PopupAnnotation) { com.google.youtube.videoclick.beans.PopupAnnotation(annotation).getDisplayPosition().setT1(startTime); _local4 = true; } else if (annotation instanceof com.google.youtube.videoclick.beans.SpeechBubbleAnnotation) { com.google.youtube.videoclick.beans.SpeechBubbleAnnotation(annotation).getDisplayPosition().setT1(startTime); _local4 = true; } else if (annotation instanceof com.google.youtube.videoclick.beans.PauseAnnotation) { com.google.youtube.videoclick.beans.PauseAnnotation(annotation).getDisplayPosition().setT1(startTime); com.google.youtube.videoclick.beans.PauseAnnotation(annotation).getDisplayPosition().setT2(startTime); _local4 = true; } if (!_local4) { return(TIME_ERROR); } if ((!opt_avoidEndTimeUpdate) && (startTime.getTime() > (getEndTime().getTime() - 1))) { var _local5 = new com.google.youtube.videoclick.beans.TimePoint(0); _local5.setTime(startTime.getTime() + 1, true); setEndTime(_local5, true); return(FIXED_END_TIME); } } function setEndTime(endTime, opt_avoidStartTimeUpdate) { var _local4 = false; if (hasSegment()) { _local4 = segment.setAbsoluteEndTime(endTime); } else if (annotation instanceof com.google.youtube.videoclick.beans.PopupAnnotation) { com.google.youtube.videoclick.beans.PopupAnnotation(annotation).getDisplayPosition().setT2(endTime); _local4 = true; } else if (annotation instanceof com.google.youtube.videoclick.beans.SpeechBubbleAnnotation) { com.google.youtube.videoclick.beans.SpeechBubbleAnnotation(annotation).getDisplayPosition().setT2(endTime); _local4 = true; } else if (annotation instanceof com.google.youtube.videoclick.beans.PauseAnnotation) { _local4 = false; } if (!_local4) { return(TIME_ERROR); } if ((!opt_avoidStartTimeUpdate) && (endTime.getTime() < getStartTime().getTime())) { var _local5 = new com.google.youtube.videoclick.beans.TimePoint(0); _local5.setTime(endTime.getTime(), true); setStartTime(_local5, true); return(FIXED_START_TIME); } } function setUrl(urlString) { return(annotation.setUrl(urlString)); } function setText(text, source) { return(annotation.setText(text, source)); } function getEncompassingRectangle() { if (hasSegment() && (annotation instanceof com.google.youtube.videoclick.beans.HighlightAnnotation)) { return(segment.getFirstRectangle()); } if (annotation instanceof com.google.youtube.videoclick.beans.PopupAnnotation) { return(com.google.youtube.videoclick.beans.PopupAnnotation(annotation).getDisplayPosition().getRectangle()); } if (annotation instanceof com.google.youtube.videoclick.beans.SpeechBubbleAnnotation) { return(com.google.youtube.videoclick.beans.SpeechBubbleAnnotation(annotation).getDisplayPosition().getRectangle()); } return(null); } function isDirty() { return(dirty); } function markAsClean() { dirty = false; isOnServer = true; } function markAsNew() { dirty = true; isOnServer = false; } function getXml(doc) { var _local3 = doc.createElement(XML_ELEMENT_NAME); var _local4 = doc.createElement(XML_ELEMENT_TRIGGER); _local3.appendChild(_local4); _local4.attributes[XML_ATTRIBUTE_TYPE] = triggerType; if (hasSegment()) { var _local5 = doc.createElement(XML_ELEMENT_SEGMENT); _local3.appendChild(_local5); _local5.attributes[XML_ATTRIBUTE_REF] = segment.getId(); } var _local6 = doc.createElement(XML_ELEMENT_ANNOTATION); _local3.appendChild(_local6); _local6.attributes[XML_ATTRIBUTE_REF] = annotation.getId(); _local3.attributes[XML_ATTRIBUTE_ID] = getId(); return(_local3); } function existsOnServer() { return(isOnServer); } function toString() { return(((((("Event(" + triggerType) + ",") + segment) + ",") + annotation) + ")"); } function equals(other) { return(id == other.id); } static var TRIGGER_TYPE_ALWAYS_ON = "alwaysOn"; static var TRIGGER_TYPE_MOUSE_OVER = "onMouseOver"; static var DEFAULT_TRIGGER_TYPE = TRIGGER_TYPE_ALWAYS_ON; static var XML_ELEMENT_NAME = "event"; static var XML_ATTRIBUTE_ID = "id"; static var XML_ATTRIBUTE_REF = "ref"; static var XML_ATTRIBUTE_TYPE = "type"; static var XML_ELEMENT_TRIGGER = "trigger"; static var XML_ELEMENT_ANNOTATION = "annotation"; static var XML_ELEMENT_SEGMENT = com.google.youtube.videoclick.beans.Segment.XML_ELEMENT_NAME; static var TIME_ERROR = 1; static var FIXED_END_TIME = 2; static var FIXED_START_TIME = 3; }
Symbol 20548 MovieClip [__Packages.com.google.youtube.players.CrossDomainer] Frame 0
class com.google.youtube.players.CrossDomainer { function CrossDomainer () { } static function allowDomainsForModuleHost() { allowDomains(); } static function allowDomainsForModules() { allowDomains(); } static function allowDomains() { System.security.allowDomain("www.youtube.com"); System.security.allowDomain("s.ytimg.com"); System.security.allowDomain("youtube.com"); System.security.allowDomain("web1.sjl.youtube.com"); System.security.allowDomain("au.youtube.com"); System.security.allowDomain("br.youtube.com"); System.security.allowDomain("ca.youtube.com"); System.security.allowDomain("de.youtube.com"); System.security.allowDomain("es.youtube.com"); System.security.allowDomain("fr.youtube.com"); System.security.allowDomain("hk.youtube.com"); System.security.allowDomain("ie.youtube.com"); System.security.allowDomain("in.youtube.com"); System.security.allowDomain("it.youtube.com"); System.security.allowDomain("jp.youtube.com"); System.security.allowDomain("kr.youtube.com"); System.security.allowDomain("mx.youtube.com"); System.security.allowDomain("nl.youtube.com"); System.security.allowDomain("nz.youtube.com"); System.security.allowDomain("pl.youtube.com"); System.security.allowDomain("ru.youtube.com"); System.security.allowDomain("tw.youtube.com"); System.security.allowDomain("uk.youtube.com"); System.security.allowDomain("il.youtube.com"); } }
Symbol 20549 MovieClip [__Packages.com.google.youtube.videoclick.components.SegmentEvent] Frame 0
class com.google.youtube.videoclick.components.SegmentEvent { function SegmentEvent () { } static var MOVING_REGION_UPDATE = "onMovingRegionUpdate"; static var MOVING_REGION_MOVE = "onMovingRegionMove"; static var MOVING_REGION_FADE_OUT = "onMovingRegionFadeOut"; static var MOVING_REGION_DESTROY = "onMovingRegionDestroy"; }
Symbol 20550 MovieClip [__Packages.com.google.youtube.data.XMLData] Frame 0
class com.google.youtube.data.XMLData extends com.google.youtube.data.XMLDataNode { var useSystemSuccessStatus, xmlObj, rootNodeName, parsedData, broadcast, dataUrl; function XMLData (opt_useSystemSuccessStatus, opt_xmlString) { super(); if (opt_useSystemSuccessStatus != undefined) { useSystemSuccessStatus = opt_useSystemSuccessStatus; } if (opt_xmlString != undefined) { xmlObj = new XML(opt_xmlString); onXmlLoad(true); } else { xmlObj = new XML(); xmlObj.ignoreWhite = true; xmlObj.onLoad = com.google.chianti.event.EventDelegate.create(this, onXmlLoad); } } function loadXML(dataUrl) { xmlObj.load(dataUrl); } function onXmlLoad(success) { if (success) { _loaded = true; rootNodeName = xmlObj.firstChild.nodeName; parsedData = makeObj(xmlObj.firstChild); if (useSystemSuccessStatus || ((parsedData.status == STATUS_OK) || (rootNodeName == ACDC_ROOT_NODE))) { broadcast({type:com.google.youtube.event.DataEvent.LOAD, target:this, data:parsedData, dataUrl:dataUrl}); } else { broadcast({type:com.google.youtube.event.DataEvent.ERROR, target:this, data:parsedData, dataUrl:dataUrl}); } } else { broadcast({type:com.google.youtube.event.DataEvent.ERROR, target:this, error:"XML Failed to load", dataUrl:dataUrl}); } } function makeObj(xObj, obj) { if (xObj == null) { xObj = xmlObj; } if (obj == null) { obj = new com.google.youtube.data.XMLDataNode(); } for (var _local4 in xObj.attributes) { obj[_local4] = xObj.attributes[_local4]; } for (var _local5 in xObj.childNodes) { var _local6 = xObj.childNodes[_local5].nodeName; var _local7 = xObj.childNodes[_local5].nodeType; var _local8 = xObj.childNodes[_local5].nodeValue; if (_local7 == 3) { obj._value = (((_local8 != undefined) && (_local8 != "undefined")) ? (_local8) : ""); obj._type = "text"; } if ((_local7 == 1) && (_local6 != null)) { if (obj[_local6] == null) { obj[_local6] = makeObj(xObj.childNodes[_local5], new com.google.youtube.data.XMLDataNode()); } else if (obj[_local6]._type != "array") { obj[_local6] = [obj[_local6]]; obj[_local6]._type = "array"; } if (obj[_local6]._type == "array") { obj[_local6].unshift(makeObj(xObj.childNodes[_local5], new com.google.youtube.data.XMLDataNode())); } } } return(obj); } function get loaded() { return(_loaded); } function getParsedData() { return(parsedData); } static function xmlDataNodeToArray(obj) { var _local3 = []; var _local4 = 0; for ( ; _local4 < obj.length ; _local4++) { _local3[_local4] = obj[_local4]; } return(_local3); } function toString() { var _local2 = "[object XMLData]"; _local2 = _local2 + xmlObj.toString(); return(_local2); } static var STATUS_OK = "ok"; static var ACDC_ROOT_NODE = "GSP"; var _loaded = false; }
Symbol 20551 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModuleAdapter] Frame 0
class com.google.youtube.players.modules.IPlayerModuleAdapter { function IPlayerModuleAdapter () { } }
Symbol 20552 MovieClip [__Packages.com.google.youtube.videoclick.beans.DisplayCoordinatesUtil] Frame 0
class com.google.youtube.videoclick.beans.DisplayCoordinatesUtil { function DisplayCoordinatesUtil () { } static function percentsToPixelsX(xValue, displayRect) { return(Math.round((displayRect.width / 100) * xValue)); } static function percentsToPixelsY(yValue, displayRect) { return(Math.round((displayRect.height / 100) * yValue)); } static function pixelsToPercentsX(xValue, displayRect) { return(pixelsToPercents(xValue, displayRect.width)); } static function pixelsToPercentsY(yValue, displayRect) { return(pixelsToPercents(yValue, displayRect.height)); } static function pixelsToPercents(value, maxValue) { if (maxValue == 0) { return(_global.NaN); } if (value > maxValue) { value = maxValue; } return((value / maxValue) * 100); } }
Symbol 20553 MovieClip [__Packages.com.google.youtube.event.SoundEvent] Frame 0
class com.google.youtube.event.SoundEvent { function SoundEvent () { } static var MUTE = "onMute"; static var UNMUTE = "onUnMute"; static var VOLUME_CHANGE = "onVolumeChange"; }
Symbol 20554 MovieClip [__Packages.com.google.youtube.event.GenericButtonEvent] Frame 0
class com.google.youtube.event.GenericButtonEvent extends com.google.youtube.event.UIEvent { function GenericButtonEvent () { super(); } static var RELEASE = "onRelease"; static var PRESS = "onPress"; static var ROLL_OVER = "onRollOver"; static var ROLL_OUT = "onRollOut"; static var PLAY = "onPlay"; static var PAUSE = "onPause"; }
Symbol 20555 MovieClip [__Packages.com.google.youtube.videoclick.beans.EventsList] Frame 0
class com.google.youtube.videoclick.beans.EventsList extends com.google.youtube.videoclick.beans.DirtyBitElementsList { static var instance; var displayRect, annotationsList, segmentsList, recentlyAdded, push, addElements, sort, removeElement, length, broadcast, generateUniqueId; function EventsList () { super(); com.google.chianti.event.EventBroadcaster.initialize(this); reset(); } static function getInstance() { if (!instance) { instance = new com.google.youtube.videoclick.beans.EventsList(); } return(instance); } function setDisplayRect(displayRect) { this.displayRect = displayRect; annotationsList.setDisplayRect(displayRect); segmentsList.setDisplayRect(displayRect); } function getDisplayRect() { return(displayRect); } function readFromXml(root) { segmentsList.addSegmentsFromObject(root.segments); annotationsList.addAnnotationsFromObject(root.annotations); addEventsFromObject(root.events); } function reset() { recentlyAdded = []; annotationsList = new com.google.youtube.videoclick.beans.AnnotationsList(); annotationsList.setDisplayRect(displayRect); segmentsList = new com.google.youtube.videoclick.beans.SegmentsList(); segmentsList.setDisplayRect(displayRect); super.reset(); } function addEventsFromObject(eventsObject) { var _local3 = []; var _local4 = eventsObject[com.google.youtube.videoclick.beans.Event.XML_ELEMENT_NAME].length; var _local5 = 0; for ( ; _local5 < _local4 ; _local5++) { var _local6 = new com.google.youtube.videoclick.beans.Event(eventsObject[com.google.youtube.videoclick.beans.Event.XML_ELEMENT_NAME][_local5], segmentsList, annotationsList); _local3.push(_local6); recentlyAdded.push(_local6); } addEventsBulk(_local3); } function addEvent(event) { push(event); sortList(); reportChange(this, EVENT_ANNOTATION_ADDED, event); } function addEventsBulk(events) { addElements(events); sortList(); } function sortList() { sort(timeOrder); } function getRecentlyAdded() { var _local2 = recentlyAdded.slice(); recentlyAdded = []; return(_local2); } function addAnnotation(annotation) { annotation.markAsNew(); annotationsList.addAnnotation(annotation, annotation.getId()); var _local3 = new com.google.youtube.videoclick.beans.Event(createNewEventInitObject(annotation), segmentsList, annotationsList); addEvent(_local3); _local3.markAsNew(); reportChange(this, EVENT_ANNOTATION_USER_ADDED, _local3); } function addHighlightAnnotationAndSegment(highlight, segment) { highlight.markAsNew(); segment.markAsNew(); annotationsList.addAnnotation(highlight, highlight.getId()); segmentsList.addSegment(segment); var _local4 = new com.google.youtube.videoclick.beans.Event(createNewEventInitObject(highlight), segmentsList, annotationsList); _local4.setSegment(segment); _local4.markAsNew(); addEvent(_local4); reportChange(this, EVENT_ANNOTATION_USER_ADDED, _local4); } function deleteEvent(event) { if (event.hasAnnotation()) { annotationsList.removeElement(event.getAnnotation().getId()); } if (event.hasSegment()) { segmentsList.removeElement(event.getSegment().getId()); } var _local3 = getEventIndex(event); removeElement(event.getId()); reportChange(this, EVENT_EVENT_DELETED, {event:event, index:_local3}); } function getEventIndex(event) { var _local3 = 0; for ( ; _local3 < length ; _local3++) { if (this[_local3].getId() == event.getId()) { return(_local3); } } return(-1); } function getEventsByAnnotation(annotation) { var _local3 = []; var _local4 = 0; for ( ; _local4 < length ; _local4++) { if (this[_local4].getAnnotation().getId() == annotation.getId()) { _local3.push(com.google.youtube.videoclick.beans.Event(this[_local4])); } } return(_local3); } function getEventsBySegment(segment) { var _local3 = new Array(); var _local4 = 0; for ( ; _local4 < length ; _local4++) { if (this[_local4].getSegment().getId() == segment.getId()) { _local3.push(com.google.youtube.videoclick.beans.Event(this[_local4])); } } return(_local3); } function isDirty() { return(super.isDirty() || (annotationsList.isDirty() || (segmentsList.isDirty()))); } function getDirtyXml(xml) { var _local4 = xml.createElement(XML_ELEMENT_DOCUMENT); xml.appendChild(_local4); if (super.isDirty()) { var _local5 = super.getDirtyXml(xml); _local4.appendChild(_local5); } if (segmentsList.isDirty()) { var _local6 = segmentsList.getDirtyXml(xml); _local4.appendChild(_local6); } if (annotationsList.isDirty()) { var _local7 = annotationsList.getDirtyXml(xml); _local4.appendChild(_local7); } return(_local4); } function reportChange(reporter, type, data) { broadcast({target:reporter, type:type, data:data}); } function reportReady(success) { broadcast({target:this, type:EVENT_LIST_READY, success:success}); } function generateUniqueAnnotationId() { return(annotationsList.generateUniqueId()); } function generateUniqueSegmentId() { return(segmentsList.generateUniqueId()); } function toString() { return(("Events(" + super.toString()) + ")"); } function destroy() { delete instance; } function getXmlElementName() { return(XML_ELEMENT_NAME); } function getClassPrefix() { return("event_"); } function createNewEventInitObject(annotation) { return({id:generateUniqueId(), trigger:{type:com.google.youtube.videoclick.beans.Event.DEFAULT_TRIGGER_TYPE}, annotation:{ref:annotation.getId()}}); } static function timeOrder(a, b) { var _local4 = a.getStartTime().getTime(); var _local5 = b.getStartTime().getTime(); if (_local4 < _local5) { return(-1); } if (_local4 > _local5) { return(1); } return(0); } static var EVENT_LIST_READY = "onListReady"; static var EVENT_ANNOTATION_TEXT_CHANGE = "onAnnotationTextChange"; static var EVENT_ANNOTATION_URL_CHANGE = "onAnnotationUrlChange"; static var EVENT_ANNOTATION_TIME_CHANGED = "onAnnotationTimeChange"; static var EVENT_SEGMENT_TIME_CHANGED = "onSegmentTimeChange"; static var EVENT_ANNOTATION_ADDED = "onAnnotationAdd"; static var EVENT_ANNOTATION_USER_ADDED = "onUserAnnotationAdd"; static var EVENT_EVENT_DELETED = "onEventDeleted"; static var XML_ELEMENT_NAME = "events"; static var XML_ELEMENT_DOCUMENT = "document"; }
Symbol 20556 MovieClip [__Packages.com.google.youtube.videoclick.players.VideoPlayerPlaybackController] Frame 0
class com.google.youtube.videoclick.players.VideoPlayerPlaybackController { function VideoPlayerPlaybackController () { } }
Symbol 20557 MovieClip [__Packages.com.google.youtube.videoclick.viewer.IvViewerModule] Frame 0
class com.google.youtube.videoclick.viewer.IvViewerModule extends com.google.youtube.players.modules.base.BasePlayerModule implements com.google.youtube.videoclick.players.VideoPlayerPlaybackController, com.google.youtube.players.modules.IPlayerModule { var moduleAdapter, overallHolder, videoPlayerEventsHandler, playbackTrackingManager, configData, broadcast, doProgressAfterSeek, displaySize, setStatus; function IvViewerModule (mc) { super(mc); } function build() { var _local2 = new com.google.youtube.videoclick.components.AnnotationsManager(moduleAdapter, overallHolder); videoPlayerEventsHandler = new com.google.youtube.videoclick.players.VideoPlayerEventsHandler(_local2); playbackTrackingManager = com.google.youtube.videoclick.util.PlaybackTrackingManager.getInstance(); onResize(null); com.google.youtube.videoclick.beans.EventsList.getInstance().registerEvent(com.google.youtube.videoclick.beans.EventsList.EVENT_LIST_READY, com.google.chianti.event.EventDelegate.create(this, onListReady)); var _local3 = moduleAdapter.getStatus(); switch (_local3) { case com.google.youtube.players.VideoPlayer.UNSTARTED : break; case com.google.youtube.players.VideoPlayer.ENDED : break; case com.google.youtube.players.VideoPlayer.PLAYING : onPlay(null); break; case com.google.youtube.players.VideoPlayer.PAUSED : onNewVideoLoad(null); break; case com.google.youtube.players.VideoPlayer.BUFFERING : onNewVideoLoad(null); break; case com.google.youtube.players.VideoPlayer.SEEKING : onNewVideoLoad(null); break; case com.google.youtube.players.VideoPlayer.VIDEO_CUED : onNewVideoLoad(null); } com.google.youtube.videoclick.components.PauseManager.getInstance().setVideoPlayer(this); } function initData(ipma) { super.initData(ipma); com.google.youtube.videoclick.VideoclickConfig.setConfigData(configData); } function play() { broadcast({type:com.google.youtube.event.ModuleEvent.PLAY, target:this}); } function pause() { broadcast({type:com.google.youtube.event.ModuleEvent.PAUSE, target:this}); } function seekTo(seconds, allowSeekAhead) { broadcast({type:com.google.youtube.event.ModuleEvent.SEEK, data:seconds, allowSeekAhead:allowSeekAhead, target:this}); } function onPlay(evt) { videoPlayerEventsHandler.onPlay(evt); } function onPause(evt) { videoPlayerEventsHandler.onPause(evt); } function onEnd(evt) { videoPlayerEventsHandler.onEnd(evt); playbackTrackingManager.onEnd(evt); } function onNewVideoLoad(evt) { videoPlayerEventsHandler.onNewVideoLoad(evt); } function onSeek(evt) { if (doProgressAfterSeek) { return(undefined); } doProgressAfterSeek = true; } function onProgressAfterSeek() { doProgressAfterSeek = false; seek(); com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "seek", com.google.youtube.videoclick.players.VideoPlayerEventsHandler.SEEK_AGAIN_TIMEOUT); } function seek() { videoPlayerEventsHandler.seek(); } function onProgress(evt) { if (doProgressAfterSeek) { onProgressAfterSeek(); } playbackTrackingManager.onProgress(evt); } function getReservedRect() { return(super.getReservedRect()); } function destroy() { videoPlayerEventsHandler.destroy(); com.google.youtube.videoclick.util.TrackUtil.trackEvent("TurnOff"); } function onResize(evt) { var _local3 = moduleAdapter.getDisplayRect(); com.google.youtube.videoclick.beans.EventsList.getInstance().setDisplayRect(_local3); videoPlayerEventsHandler.onResize(); if (_local3.width < MIN_ANNOTATIONS_DISPLAY_SIZE) { overallHolder._visible = false; } else { overallHolder._visible = true; } displaySize = _local3; positionModuleDisplay(_local3.x, _local3.y); } function onStartResize(evt) { overallHolder._visible = false; } function positionModuleDisplay(x, y) { overallHolder._x = x; overallHolder._y = y; } function onListReady(evt) { var _local3 = evt.success; setStatus((_local3 ? (com.google.youtube.players.modules.ModuleStatus.LOADED) : (com.google.youtube.players.modules.ModuleStatus.ERROR))); } static var LINK_NAME = "__Packages.com.google.youtube.videoclick.viewer.IvViewerModule"; static var FORCE_LINK = Object.registerClass(LINK_NAME, com.google.youtube.videoclick.viewer.IvViewerModule); static var MIN_ANNOTATIONS_DISPLAY_SIZE = 300; }
Symbol 20558 MovieClip [__Packages.com.google.youtube.videoclick.VideoclickConfig] Frame 0
class com.google.youtube.videoclick.VideoclickConfig { static var configData, youtubeBaseUrl, storageServerBaseUrl, videoDuration; function VideoclickConfig () { } static function getBaseAnnotationsUrl() { return((((getStorageServerBaseUrl() + "read") + "?") + ST_VIDEO_ID) + "="); } static function getCurrentVideoId() { return(configData.currentVideoData.id); } static function getYoutubeBaseUrl() { if (!youtubeBaseUrl) { youtubeBaseUrl = configData.playerConfigData.BASE_YT_URL; if (!youtubeBaseUrl) { youtubeBaseUrl = DEFAULT_YOUTUBE_BASE_URL; } if (!com.google.youtube.videoclick.util.VideoclickUrlValidator.isValidBaseYoutubeUrl(youtubeBaseUrl)) { youtubeBaseUrl = ""; } } return(youtubeBaseUrl); } static function getStorageServerBaseUrl() { if (!storageServerBaseUrl) { storageServerBaseUrl = configData.currentVideoData.getUntypedVideoData()[IV_STORAGE_SERVER]; if (!storageServerBaseUrl) { storageServerBaseUrl = DEFAULT_STORAGE_SERVER_BASE_URL; } if (!com.google.youtube.videoclick.util.VideoclickUrlValidator.isValidStorageServer(storageServerBaseUrl)) { storageServerBaseUrl = ""; } } return(storageServerBaseUrl); } static function getAnnotationsUrl(videoId, opt_authToken, opt_userId, opt_loadDraft) { var _local6 = getBaseAnnotationsUrl() + videoId; if (opt_loadDraft) { _local6 = _local6 + (("&" + ST_ANNOTATIONS_DRAFT) + "=1"); } if (opt_authToken) { _local6 = _local6 + ((("&" + ST_ANNOTATIONS_AUTH_TOKEN) + "=") + opt_authToken); } if (opt_userId) { _local6 = _local6 + ((("&" + ST_ANNOTATIONS_USER_ID) + "=") + opt_userId); } return(_local6); } static function getUpdateUrl() { return(getStorageServerBaseUrl() + "update"); } static function getDeleteUrl() { return(getStorageServerBaseUrl() + "delete"); } static function getPublishUrl() { return(getStorageServerBaseUrl() + "publish"); } static function getYoutubeSearchUrlPrefix() { return(getYoutubeBaseUrl() + "results?search_query="); } static function getYoutubeVideoWatchUrlPrefix() { return(getYoutubeBaseUrl() + "watch?v="); } static function getYoutubeUploadRespUrlPrefix() { return(getYoutubeBaseUrl() + "video_response_upload?v="); } static function getYoutubeUserPageUrlPrefix() { return(getYoutubeBaseUrl() + "profile?user="); } static function getYoutubeGroupUrlPrefix() { return(getYoutubeBaseUrl() + "group/"); } static function getYoutubePlaylistUrlPrefix() { return(getYoutubeBaseUrl() + "view_play_list?p="); } static function getYoutubeComposeUrlPrefix() { return(getYoutubeBaseUrl() + "inbox?action_compose=1&to_users="); } static function setConfigData(data) { configData = data; } static function setDuration(duration) { videoDuration = duration; } static function getDuration() { if (!videoDuration) { } return(videoDuration); } static function getInterfaceLanguage() { return(getConfigData().playerConfigData.interfaceLanguage); } static function isDisableShutdown() { return(getConfigData().playerConfigData.getUntypedFlashVars()[DISABLE_SHUTDOWN] == "1"); } static function getAuthToken() { return(getConfigData().playerConfigData.getUntypedFlashVars()[IV_AUTH_TOKEN]); } static function getUserId() { return(getConfigData().playerConfigData.getUntypedFlashVars()[IV_USER_ID]); } static function isEnableEventLogging() { return(getConfigData().playerConfigData.getUntypedFlashVars()[IV_ENABLE_EVENT_LOGGING] == "1"); } static function getConfigData() { return(configData); } static function getCrossDomainUrl() { return(getStorageServerBaseUrl() + "crossdomain.xml"); } static var DISABLE_SHUTDOWN = "iv_dbg_disable_shutdown"; static var IV_STORAGE_SERVER = "iv_storage_server"; static var IV_AUTH_TOKEN = "auth_token"; static var IV_USER_ID = "username"; static var VIDEO_ID = "video_id"; static var IV_ENABLE_EVENT_LOGGING = "iv_enable_event_logging"; static var LOCALE = "hl"; static var FEATURE_EQUALS_IV_URL_PARAM = "&feature=iv"; static var RECT_RADIUS = 4; static var ROUND_CORNER_RADIUS = 8; static var TEXT_SHIFT = 5; static var ICON_PADDING = 6; static var LINK_ICON_WIDTH = 16; static var LINK_ICON_HEIGHT = 14; static var EPSILON = 0.1; static var TRIPLE_CLICK_TIMING = 350; static var DOUBLE_CLICK_TIMING = 300; static var START_TIME_INSENSITIVITY = 0.0001; static var SHOW_UP_ANIMATION_TIME = 0.1; static var FADE_OUT_TIME = 0.2; static var KEYBOARD_MOVE_DELTA = 1; static var DEFAULT_LINE_STYLE = {thickness:0, rgb:6316128, alpha:80}; static var DEFAULT_FONT_FACE = "Arial, Helvetica, _sans"; static var DEFAULT_BG_FILL = {colors:[16777215], fillType:"linear", alphas:[80], ratios:[50], matrix:{matrixType:"box", x:0, y:0, w:0, h:0, r:0}}; static var DEFAULT_TEXT_COLOR = 1710618; static var DEFAULT_TEXT_FORMAT = new TextFormat(DEFAULT_FONT_FACE, 13, DEFAULT_TEXT_COLOR, false, false, false, "", "", "left"); static var BASE_ANNOTATIONS_DOMAIN = "*.google.com"; static var HTTP_PREFIXES = ["http://"]; static var DOMAIN_PREFIXES = ["www."]; static var YOUTUBE_DOMAINS = ["youtube.com", "youtube.de", "youtube.fr", "youtube.co.jp", "youtube.co.kr", "youtube.ru", "youtube.com.br", "youtube.co.uk", "youtube.ie", "youtube.es", "youtube.it", "youtube.nl", "youtube.pl", "youtube.ca", "youtube.com.au", "youtube.co.nz", "youtube.com.hk", "youtube.com.tw", "youtube.com.mx"]; static var VIDEO_PAGES = ["/watch?"]; static var VIDEO_PARAM = "v="; static var RESP_UPLOAD_PAGES = ["/video_response_upload?"]; static var RESP_UPLOAD_PARAM = "v="; static var RESP_UPLOAD_SHORT_CODE = "video_response_upload"; static var CHANNEL_PAGES = ["/user/"]; static var GROUP_PAGES = ["/group/"]; static var USER_PAGES = ["/profile?"]; static var USER_PARAM = "user="; static var PLAYLIST_PAGES = ["/view_play_list?"]; static var PLAYLIST_PARAM = "p="; static var INBOX_PAGES = ["/inbox?"]; static var COMPOSE_PARAM = "action_compose="; static var COMPOSE_TO_PARAM = "to_users="; static var RESULT_PAGES = ["/results?"]; static var RESULT_PARAM = "search_query="; static var DEFAULT_VIDEO = "D5RmwebkPpM"; static var DEFAULT_STORAGE_SERVER_BASE_URL = "http://www.google.com/reviews/y/"; static var ST_ANNOTATIONS_AUTH_TOKEN = "authtoken"; static var ST_ANNOTATIONS_USER_ID = "username"; static var ST_ANNOTATIONS_DRAFT = "draft"; static var ST_VIDEO_ID = "videoid"; static var DEFAULT_YOUTUBE_BASE_URL = "http://www.youtube.com/"; }
Symbol 20559 MovieClip [__Packages.com.google.youtube.videoclick.backendadapters.NetworkSecurityManager] Frame 0
class com.google.youtube.videoclick.backendadapters.NetworkSecurityManager { static var instance; var running; function NetworkSecurityManager () { running = false; } static function getInstance() { if (!instance) { instance = new com.google.youtube.videoclick.backendadapters.NetworkSecurityManager(); } return(instance); } function run() { if (running) { return(undefined); } loadCrossDomainFile(); running = true; } function loadCrossDomainFile() { var _local2 = com.google.youtube.videoclick.VideoclickConfig.getCrossDomainUrl(); System.security.loadPolicyFile(_local2); } }
Symbol 20560 MovieClip [__Packages.com.google.youtube.util.MouseActivity] Frame 0
class com.google.youtube.util.MouseActivity extends com.google.youtube.AbstractBroadcaster { var lastXMouse, lastYMouse, mouseState, broadcast; function MouseActivity (opt_monitorMouseButtonActivity) { super(); motionInterval = _global.setInterval(this, "onCheckMotion", 20); if (opt_monitorMouseButtonActivity) { var _local4 = {onMouseDown:com.google.chianti.event.EventDelegate.create(this, onLeftMouseDown), onMouseUp:com.google.chianti.event.EventDelegate.create(this, onLeftMouseUp)}; Mouse.addListener(_local4); } } function onCheckMotion() { if ((_root._xmouse != lastXMouse) || (_root._ymouse != lastYMouse)) { lastXMouse = _root._xmouse; lastYMouse = _root._ymouse; onMouseMove(); } } function setTimeout(milliseconds) { timeout = milliseconds; start(); } function touch() { onMouseMove(); } function onMouseMove() { mouseState = MOUSE_ACTIVE; broadcast({type:MOUSE_ACTIVE, target:this}); start(); } function onLeftMouseDown() { blockInactiveBroadcast = true; } function onLeftMouseUp() { blockInactiveBroadcast = false; touch(); } function clear() { _global.clearInterval(timeoutInterval); timeoutInterval = 0; } function start() { clear(); timeoutInterval = _global.setInterval(this, "onInterval", timeout); } function onInterval() { if ((!blockInactiveBroadcast) && (mouseState != MOUSE_INACTIVE)) { clear(); mouseState = MOUSE_INACTIVE; broadcast({type:MOUSE_INACTIVE, target:this}); } } static var MOUSE_ACTIVE = "active"; static var MOUSE_INACTIVE = "inactive"; var timeout = 2000; var timeoutInterval = 0; var motionInterval = 0; var blockInactiveBroadcast = false; }
Symbol 20561 MovieClip [__Packages.com.google.youtube.players.modules.ModuleStatus] Frame 0
class com.google.youtube.players.modules.ModuleStatus { function ModuleStatus () { } static var UNAVAILABLE = -1; static var NOT_LOADED = 0; static var LOADING = 1; static var LOADED = 2; static var ERROR = 3; }
Symbol 20562 MovieClip [__Packages.com.google.youtube.event.VideoPlayerEvent] Frame 0
class com.google.youtube.event.VideoPlayerEvent { function VideoPlayerEvent () { } static var PLAY = "onPlay"; static var STOP = "onStop"; static var PAUSE = "onPause"; static var END = "onEnd"; static var BUFFERING = "onBuffering"; static var SEEKING = "onSeeking"; static var SEEK = "onSeek"; static var LOAD_NEW_VIDEO = "onLoadNewVideo"; static var BYTES_LOADED = "onBytesLoaded"; static var PROGRESS = "onProgress"; static var META_LOAD = "onMetaLoaded"; static var PLAY_MODE_CHANGE = "onPlayModeChange"; static var VIDEO_CUED = "onVideoCued"; static var STATE_CHANGE = "onStateChange"; static var UNLOAD_VIDEO = "onVideoUnload"; }
Symbol 20563 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) { if (fill != null) { setFill(target, fill); } setLineStyle(target, lineStyle); var _local11 = []; if (typeof(radii) == "number") { var _local12 = 0; for ( ; _local12 < 4 ; _local12++) { _local11[_local12] = radii; } } else { _local11 = Array(radii); } if (!radii) { target.moveTo(x, y); target.lineTo(x + width, y); target.lineTo(x + width, y + height); target.lineTo(x, y + height); target.lineTo(x, y); } else { target.moveTo(x + _local11[0], y); target.lineTo((x + width) - _local11[1], y); target.curveTo(x + width, y, x + width, y + _local11[1]); target.lineTo(x + width, (y + height) - _local11[2]); target.curveTo(x + width, y + height, (x + width) - _local11[2], y + height); target.lineTo(x + _local11[3], y + height); target.curveTo(x, y + height, x, (y + height) - _local11[3]); target.lineTo(x, y + _local11[0]); target.curveTo(x, y, x + _local11[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 = []; switch (orientation) { case "left" : _local8 = [{x:x + 10, y:y}, {x:x, y:y + 6}, {x:x, y:y + 8}, {x:x + 10, y:y + 14}, {x:x + 10, y:y + 11}, {x:x + 4, y:y + 7}, {x:x + 10, y:y + 3}, {x:x + 10, y:y}]; break; case "right" : _local8 = [{x:x, y:y}, {x:x + 10, y:y + 6}, {x:x + 10, y:y + 8}, {x:x, y:y + 14}, {x:x, y:y + 11}, {x:x + 6, y:y + 7}, {x:x, y:y + 3}, {x:x, y:y}]; } drawPoly(target, _local8, fill); } static function drawPlus(target, x, y, plusSize, fill) { var _local7 = []; _local7 = [{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, _local7, fill); } static function drawT(target, x, y, tSize, fill) { var _local7 = []; _local7 = [{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, _local7, fill); } 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) { 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 TO_RADIANS = Math.PI / 180; }
Symbol 20564 MovieClip [__Packages.com.google.youtube.videoclick.components.PopupAnnotationDisplay] Frame 0
class com.google.youtube.videoclick.components.PopupAnnotationDisplay extends com.google.youtube.videoclick.components.AnnotationDisplay implements com.google.youtube.videoclick.components.TimedUiComponent { var displayRect, getPlayheadTime, destroy, drawLater, isVisibleNow, updateDisplayOnResize, createContainerMc, optionallyAttachUrl, drawFollowup, isVideoPlaying, textField, linkIcon, clearLastOnTimeout, lastOnTimeoutTimeoutId, containerMc, shapeMc, lastAnimateTimeoutId, reduceTextSizeUntilItFits, getAnnotationBean, drawText, updateTextSize, attachIcon, annotationBean; function PopupAnnotationDisplay (popupAnnotationBean, playerAdapter, annotationsLayer) { super(popupAnnotationBean, playerAdapter, annotationsLayer); } function getPaddingX() { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(TEXT_PADDING_PREC_X, displayRect)); } function getPaddingY() { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(TEXT_PADDING_PREC_Y, displayRect)); } function draw(opt_isSeek) { var _local3 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); if (_local3.getTime() < (getBean().getDisplayPosition().getT1().getTime() - com.google.youtube.videoclick.VideoclickConfig.START_TIME_INSENSITIVITY)) { destroy(); drawLater(getBean().getDisplayPosition().getT1()); return(undefined); } if (_local3.getTime() > getBean().getDisplayPosition().getT2().getTime()) { destroy(); return(undefined); } if (isVisibleNow()) { createTimeoutForDestroy(_local3); return(undefined); } updateDisplayOnResize(); createContainerMc(); drawRectangle(opt_isSeek); drawTextHelp(); optionallyAttachUrl(); if (opt_isSeek) { drawFollowup(); } if ((!opt_isSeek) && (isVideoPlaying())) { if (textField) { textField._visible = false; } if (linkIcon) { linkIcon._alpha = 0; } } if (isVideoPlaying()) { createTimeoutForDestroy(_local3); } } function createTimeoutForDestroy(currentTime) { clearLastOnTimeout(); lastOnTimeoutTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "onTimeout", 1000 * getFadeOutTimeInterval(currentTime)); } function updateDisplayPartsOnResize(curDisplayRect) { var _local3 = getBean().getDisplayPosition(); _local3.updateDisplayRect(curDisplayRect); getBean().setDisplayPosition(_local3); } function getFadeOutTimeInterval(time) { return(getFadeOutTime() - time.getTime()); } function getFadeOutTime() { return(getBean().getDisplayPosition().getT2().getTime() - com.google.youtube.videoclick.VideoclickConfig.FADE_OUT_TIME); } function fadeOut() { com.gs.TweenLite.to(containerMc, com.google.youtube.videoclick.VideoclickConfig.FADE_OUT_TIME, {_alpha:0}); textField._visible = false; } function drawRectangle(opt_isSeek) { if (!shapeMc) { shapeMc = containerMc.createEmptyMovieClip("shapeMc", containerMc.getNextHighestDepth()); shapeMc.onRollOver = com.google.chianti.event.EventDelegate.create(this, onRollOver); shapeMc.onRollOut = com.google.chianti.event.EventDelegate.create(this, onRollOut); } containerMc._x = getBean().getDisplayPosition().getX(); containerMc._y = getBean().getDisplayPosition().getY(); if ((!opt_isSeek) && (isVideoPlaying())) { animateIn(); } else { drawRegularRectangle(); } } function animateIn() { if (textField) { textField._visible = false; } if (linkIcon) { linkIcon._alpha = 0; } var _local2 = new flash.geom.Point(0, 0); var _local3 = new flash.geom.Point(getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH()); var _local4 = flash.geom.Point.interpolate(_local2, _local3, 0.92); drawRegularRectangle(); com.gs.TweenLite.from(shapeMc, 0.17, {_x:_local4.x, _y:_local4.y, _width:_local3.x * 0.85, _height:_local3.y * 0.85, ease:mx.transitions.easing.Back.easeOut}); lastAnimateTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "animateVisualsIn", 70); } function animateVisualsIn() { showText(); if (linkIcon) { com.gs.TweenLite.to(linkIcon, 0.12, {_alpha:100}); } lastAnimateTimeoutId = _global.NaN; drawFollowup(); } function fixHeightForLargerFonts() { var _local2 = getBean().getDisplayPosition().getH(); reduceTextSizeUntilItFits(_local2); } function showText() { if (textField) { textField._visible = true; } } function getExtraXPadding() { var _local2 = getPaddingX(); if (getAnnotationBean().hasUrl()) { _local2 = _local2 + (com.google.youtube.videoclick.VideoclickConfig.ICON_PADDING * 2); _local2 = _local2 + com.google.youtube.videoclick.VideoclickConfig.LINK_ICON_WIDTH; } else { _local2 = _local2 + getPaddingX(); } return(_local2); } function getExtraYPadding() { var _local2 = getPaddingY(); if (getAnnotationBean().hasUrl()) { _local2 = _local2 + com.google.youtube.videoclick.VideoclickConfig.ICON_PADDING; } else { _local2 = _local2 + getPaddingY(); } return(_local2); } function drawTextHelp() { var _local2 = getPaddingX(); var _local3 = getPaddingY(); drawText(containerMc, getBean().getText().getText(), _local2, _local3, getBean().getDisplayPosition().getW() - getExtraXPadding(), getBean().getDisplayPosition().getH() - getExtraYPadding()); textField.autoSize = "left"; updateTextSize(com.google.youtube.videoclick.components.AnnotationDisplay.TEXT_SIZE_PREC); fixHeightForLargerFonts(); } function onRollOver() { super.onRollOver(); if (getBean().hasUrl()) { shapeMc.clear(); drawRolloverRectangle(); attachIconHelper(true); } } function onRollOut() { super.onRollOut(); if (getBean().hasUrl()) { shapeMc.clear(); drawRegularRectangle(); attachIconHelper(false); } } function drawRegularRectangle() { com.google.youtube.util.Drawing.drawRect(shapeMc, 0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), getRegularBackgroundFill(), BORDER_LINE_STYLE); var _local2 = new flash.filters.DropShadowFilter(BORDER_DROP_SHADOW_DISTANCE, BORDER_DROP_SHADOW_ANGLE, BORDER_OUTLINE_COLOR, BORDER_DROP_SHADOW_ALPHA, com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(BORDER_DROP_SHADOW_BLUR_PREC_X, displayRect), com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(BORDER_DROP_SHADOW_BLUR_PREC_Y, displayRect), BORDER_DROP_SHADOW_STRENGTH, BORDER_DROP_SHADOW_QUALITY); shapeMc.filters = [_local2]; } function drawRolloverRectangle() { com.google.youtube.util.Drawing.drawRect(shapeMc, 0, 0, getBean().getDisplayPosition().getW(), getBean().getDisplayPosition().getH(), BACKGROUND_ROLLOVER_FILL, BORDER_ROLLOVER_LINE_STYLE); shapeMc.filters = null; } function getRegularBackgroundFill() { var _local2 = BACKGROUND_FILL; _local2.matrix = {matrixType:"box", x:0, y:0, w:getBean().getDisplayPosition().getW(), h:getBean().getDisplayPosition().getH(), r:(90 / 180) * Math.PI}; return(_local2); } function attachIconHelper(rollover) { if (getBean().hasUrl()) { attachIcon(getBean().getDisplayPosition().getW() - com.google.youtube.videoclick.VideoclickConfig.ICON_PADDING, getBean().getDisplayPosition().getH() - com.google.youtube.videoclick.VideoclickConfig.ICON_PADDING, rollover); } } function onTimeout() { var _local2 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); if (_local2.getTime() < getFadeOutTime()) { if (_local2.getTime() < (getBean().getDisplayPosition().getT1().getTime() - com.google.youtube.videoclick.VideoclickConfig.START_TIME_INSENSITIVITY)) { destroy(); drawLater(getBean().getDisplayPosition().getT1()); return(undefined); } var _local3 = getFadeOutTimeInterval(_local2); lastOnTimeoutTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "onTimeout", _local3 * 1000); return(undefined); } if (_local2.getTime() < getBean().getDisplayPosition().getT2().getTime()) { fadeOut(); var _local4 = (getBean().getDisplayPosition().getT2().getTime() - _local2.getTime()) + com.google.youtube.videoclick.VideoclickConfig.EPSILON; lastOnTimeoutTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "onTimeout", _local4 * 1000); return(undefined); } destroy(); } function pause() { } function resume() { draw(true); } function getBean() { return(com.google.youtube.videoclick.beans.PopupAnnotation(annotationBean)); } function getTrackingObjectType() { return("Popup"); } static var TEXT_PADDING_PREC_X = 0.833; static var TEXT_PADDING_PREC_Y = 0.833; static var BACKGROUND_START_ALPHA = 95; static var BACKGROUND_END_ALPHA = 70; static var BACKGROUND_ROLLOVER_ALPHA = 90; static var BACKGROUND_COLOR = 16777215; static var BORDER_OUTLINE_COLOR = 0; static var BORDER_OUTLINE_ALPHA = 20; static var BORDER_ROLLOVER_OUTLINE_ALPHA = 70; static var BORDER_DROP_SHADOW_DISTANCE = 2; static var BORDER_DROP_SHADOW_ANGLE = 45; static var BORDER_DROP_SHADOW_ALPHA = 0.5; static var BORDER_DROP_SHADOW_BLUR_PREC_X = 3 / 3.6; static var BORDER_DROP_SHADOW_BLUR_PREC_Y = 3 / 4.8; static var BORDER_DROP_SHADOW_STRENGTH = 1; static var BORDER_DROP_SHADOW_QUALITY = 1; static var BACKGROUND_FILL = {colors:[BACKGROUND_COLOR, BACKGROUND_COLOR], fillType:"linear", alphas:[BACKGROUND_START_ALPHA, BACKGROUND_END_ALPHA], ratios:[0, 255]}; static var BACKGROUND_ROLLOVER_FILL = {colors:[BACKGROUND_COLOR], fillType:"linear", alphas:[BACKGROUND_ROLLOVER_ALPHA], ratios:[1], matrix:{matrixType:"box", x:0, y:0, w:0, h:0, r:0}}; static var BORDER_LINE_STYLE = {thickness:0, rgb:BORDER_OUTLINE_COLOR, alpha:BORDER_OUTLINE_ALPHA}; static var BORDER_ROLLOVER_LINE_STYLE = {thickness:0, rgb:BORDER_OUTLINE_COLOR, alpha:BORDER_ROLLOVER_OUTLINE_ALPHA}; }
Symbol 20565 MovieClip [__Packages.com.google.youtube.util.IMessages] Frame 0
class com.google.youtube.util.IMessages implements com.google.youtube.IBroadcaster { function IMessages () { } }
Symbol 20566 MovieClip [__Packages.com.google.youtube.util.PlayerCapabilities] Frame 0
class com.google.youtube.util.PlayerCapabilities { function PlayerCapabilities () { } static function getPlayerVersion() { var _local2 = System.capabilities.version.split(" ")[1].split(","); return(new com.google.youtube.util.PlayerVersion(_local2[0], _local2[1], _local2[2], _local2[3])); } static function hasFullScreen(opt_wmodeTransparent) { if (opt_wmodeTransparent) { var _local3 = new com.google.youtube.util.PlayerVersion(9, 0, 45); } else { var _local3 = new com.google.youtube.util.PlayerVersion(9, 0, 28); } return(getPlayerVersion().isAtLeastVersion(_local3)); } }
Symbol 20567 MovieClip [__Packages.com.google.youtube.videoclick.beans.TimePoint] Frame 0
class com.google.youtube.videoclick.beans.TimePoint { var time; function TimePoint (object) { if (object == undefined) { setTime(0); } else if (typeof(object) == "number") { setTime(Number(object)); } else if (typeof(object) == "string") { if (setTimeFromString(String(object)) == MALFORMED_TIME) { } } } static function getVideoDuration() { return(com.google.youtube.videoclick.VideoclickConfig.getDuration()); } function clone() { return(new com.google.youtube.videoclick.beans.TimePoint(time)); } function getHours() { return(Math.floor(time / SECONDS_PER_HOUR)); } function getMinutes() { var _local2 = Math.floor(time); var _local3 = _local2 % SECONDS_PER_HOUR; return(Math.floor(_local3 / SECONDS_PER_MINUTE)); } function getSeconds() { var _local2 = Math.floor(time); var _local3 = _local2 % SECONDS_PER_HOUR; _local3 = _local3 % SECONDS_PER_MINUTE; return(_local3); } function getSubseconds() { var _local2 = Math.floor(time); return(Math.floor(Math.pow(10, ACCURACY) * (time - _local2))); } function addHours(addedHours) { return(setTime(time + (addedHours * SECONDS_PER_HOUR), true)); } function addMinutes(addedMinutes) { return(setTime(time + (addedMinutes * SECONDS_PER_MINUTE), true)); } function addSeconds(addedSeconds) { return(setTime(time + addedSeconds, true)); } function addSubseconds(addedSubseconds) { return(setTime(time + (addedSubseconds / Math.pow(10, ACCURACY)), true)); } function getTime() { return(time); } function setTime(newTime, opt_verify) { time = newTime; if (!opt_verify) { return(UNVERIFIED_TIME); } return(enforceTimeBounds()); } function setTimeLimit(newLimit) { limit = newLimit; } function setTimeFromString(timeString, opt_verify) { var _local4 = timeString.split(":"); if ((!_local4) || (_local4.length != 3)) { return(MALFORMED_TIME); } time = 0; time = time + (_global.parseInt(_local4[0]) * SECONDS_PER_HOUR); time = time + (_global.parseInt(_local4[1]) * SECONDS_PER_MINUTE); time = time + _global.parseFloat(_local4[2]); if ((opt_verify == undefined) || (!opt_verify)) { return(UNVERIFIED_TIME); } return(enforceTimeBounds()); } function toString() { return((((((("" + getHours()) + ":") + pad(getMinutes(), 2)) + ":") + pad(getSeconds(), 2)) + ".") + pad(getSubseconds(), ACCURACY)); } function pad(num, padding) { if (num == undefined) { num = 0; } var _local4 = String(num); while (_local4.length < padding) { _local4 = "0" + _local4; } return(_local4); } function enforceTimeBounds() { if (time < 0) { time = 0; return(NEGATIVE_TIME); } if (limit == LIMIT_BY_VIDEO_DURATION) { if (time > (getVideoDuration() - FIN_TIME)) { time = getVideoDuration() - FIN_TIME; return(PASS_VIDEO_LIMIT); } } else if (time > (limit + (1 / Math.pow(10, ACCURACY)))) { time = limit; return(PASS_VIDEO_LIMIT); } return(PROPER_TIME); } static var MALFORMED_TIME = 0; static var PROPER_TIME = 1; static var UNVERIFIED_TIME = 2; static var NEGATIVE_TIME = 3; static var PASS_VIDEO_LIMIT = 4; static var SECONDS_PER_MINUTE = 60; static var SECONDS_PER_HOUR = 60 * SECONDS_PER_MINUTE; static var ACCURACY = 6; static var FIN_TIME = 0.1; static var LIMIT_BY_VIDEO_DURATION = -1; var limit = LIMIT_BY_VIDEO_DURATION; }
Symbol 20568 MovieClip [__Packages.com.google.youtube.players.modules.ModuleConfigData] Frame 0
class com.google.youtube.players.modules.ModuleConfigData { var playerConfigData, currentVideoData; function ModuleConfigData (playerConfigData, iVideoPlayer, videoData) { this.playerConfigData = playerConfigData; currentVideoData = videoData; } }
Symbol 20569 MovieClip [__Packages.com.google.utils.UrlValidator] Frame 0
class com.google.utils.UrlValidator { var protocols, domains, paths; function UrlValidator (protocolWhiteList, domainWhiteList, pathWhiteList) { protocols = (protocolWhiteList ? (protocolWhiteList) : ([])); domains = (domainWhiteList ? (domainWhiteList) : ([])); paths = (pathWhiteList ? (pathWhiteList) : ([])); } function validateUrl(urlStr) { var _local3 = new com.google.utils.Url(urlStr); if ((protocols.length > 0) && (!checkProtocol(_local3))) { return(false); } if ((domains.length > 0) && (!checkDomain(_local3))) { return(false); } if ((paths.length > 0) && (!checkPath(_local3))) { return(false); } return(true); } function checkProtocol(url) { var _local3 = url.getProtocol(); var _local4 = 0; for ( ; _local4 < protocols.length ; _local4++) { if (_local3 == protocols[_local4]) { return(true); } } return(false); } function checkDomain(url) { var _local3 = url.getDomain(); var _local4 = 0; for ( ; _local4 < domains.length ; _local4++) { if (_local3 == domains[_local4]) { return(true); } } return(false); } function checkPath(url) { var _local3 = url.getFile(); var _local4 = 0; for ( ; _local4 < paths.length ; _local4++) { if (_local3.indexOf(paths[_local4]) == 0) { return(!com.google.utils.SecurityUtils.hasUrlDirectoryTraversal(_local3)); } } return(false); } }
Symbol 20570 MovieClip [__Packages.com.google.youtube.videoclick.players.VideoPlayerEventsHandler] Frame 0
class com.google.youtube.videoclick.players.VideoPlayerEventsHandler { var progressAfterSeekDelegate, annotationsManager, videoPlayer; function VideoPlayerEventsHandler (annotationsManager, opt_videoPlayer) { progressAfterSeekDelegate = null; this.annotationsManager = annotationsManager; videoPlayer = opt_videoPlayer; } function onNewVideoLoad(evt) { setVideoDuration(); setVideoDisplayRect(); loadAnnotationsOnce(); } function setVideoDuration() { var _local2 = videoPlayer.getDuration(); if (_local2 > 0) { com.google.youtube.videoclick.VideoclickConfig.setDuration(_local2); } } function setVideoDisplayRect() { var _local2 = videoPlayer.getDisplayRect(); if (_local2 != undefined) { com.google.youtube.videoclick.beans.EventsList.getInstance().setDisplayRect(_local2); } } function onMetaLoad(evt) { setVideoDuration(); } function onPlay() { loadAnnotationsOnce(); com.google.youtube.videoclick.components.PauseManager.getInstance().onPlay(); annotationsManager.resume(); } function onResize() { setVideoDisplayRect(); annotationsManager.reset(); } function onPause() { annotationsManager.pause(); } function onEnd() { annotationsManager.end(); } function onSeek() { if (!videoPlayer) { return(undefined); } if (progressAfterSeekDelegate) { return(undefined); } progressAfterSeekDelegate = com.google.chianti.event.EventDelegate.create(this, onProgressAfterSeek); videoPlayer.registerEvent(com.google.youtube.event.VideoPlayerEvent.PROGRESS, progressAfterSeekDelegate); com.google.youtube.videoclick.components.PauseManager.getInstance().clearPauseTimeout(); } function onProgressAfterSeek() { if (!videoPlayer) { return(undefined); } videoPlayer.unregisterEvent(com.google.youtube.event.VideoPlayerEvent.PROGRESS, progressAfterSeekDelegate); progressAfterSeekDelegate = null; seek(); com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "seek", SEEK_AGAIN_TIMEOUT); } function seek() { com.google.youtube.videoclick.components.PauseManager.getInstance().clearPauseTimeout(); annotationsManager.onSeek(); } function destroy() { annotationsManager.destroy(); } function loadAnnotationsOnce() { if (!annotationsManager.isAnnotationsLoaded()) { var _local2 = com.google.youtube.videoclick.VideoclickConfig.getCurrentVideoId(); annotationsManager.loadAnnotations(_local2); } } static var SEEK_AGAIN_TIMEOUT = 500; }
Symbol 20571 MovieClip [__Packages.com.google.youtube.videoclick.beans.MovingRegion] Frame 0
class com.google.youtube.videoclick.beans.MovingRegion implements com.google.youtube.videoclick.beans.XmlSerializationSupporter, com.google.youtube.videoclick.beans.DirtyBitSupporter { var regions; function MovingRegion (movingRegionNode, displayRect) { if (movingRegionNode[com.google.youtube.videoclick.beans.Region.XML_ELEMENT_NAME].length < 2) { } regions = []; var _local4 = movingRegionNode[com.google.youtube.videoclick.beans.Region.XML_ELEMENT_NAME].length; var _local5 = 0; for ( ; _local5 < _local4 ; _local5++) { var _local6 = com.google.youtube.videoclick.beans.Region.createFromObject(movingRegionNode[com.google.youtube.videoclick.beans.Region.XML_ELEMENT_NAME][_local5], displayRect); regions.push(_local6); } } function getStartTime() { var _local2 = first(); if (!_local2) { return(null); } return(_local2.getTime()); } function getEndTime() { var _local2 = last(); if (!_local2) { return(null); } return(_local2.getTime()); } function setStartTime(startTime) { var _local3 = first(); if (_local3 == undefined) { return(false); } _local3.setT(startTime); return(true); } function setEndTime(endTime) { var _local3 = last(); if (_local3 == undefined) { return(false); } _local3.setT(endTime); return(true); } function first() { if (!regions) { return(null); } return(regions[0]); } function last() { if (!regions) { return(null); } return(regions[regions.length - 1]); } function findPrevRegion(time) { var _local3 = regions.length; var _local4 = _local3 - 1; for ( ; _local4 >= 0 ; _local4--) { if (time.getTime() >= regions[_local4].getTime().getTime()) { return(regions[_local4]); } } return(null); } function findNextRegion(time) { var _local3 = regions.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { if (regions[_local4].getTime().getTime() > time.getTime()) { return(regions[_local4]); } } return(null); } function getXml(doc) { var _local3 = doc.createElement(XML_ELEMENT_NAME); var _local4 = regions.length; var _local5 = 0; for ( ; _local5 < _local4 ; _local5++) { var _local6 = regions[_local5]; _local3.appendChild(_local6.getXml(doc)); } return(_local3); } function isDirty() { var _local2 = regions.length; var _local3 = 0; for ( ; _local3 < _local2 ; _local3++) { if (regions[_local3].isDirty()) { return(true); } } return(false); } function markAsClean() { var _local2 = regions.length; var _local3 = 0; for ( ; _local3 < _local2 ; _local3++) { regions[_local3].markAsClean(); } } function setRectangle(rect) { var _local3 = regions.length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { regions[_local4].setRectangle(rect); } } function getFirstRectangle() { if (first()) { return(first().getRectangle()); } return(null); } function toString() { return(("MovingRegion(" + regions) + ")"); } static var XML_ELEMENT_NAME = "movingRegion"; }
Symbol 20572 MovieClip [__Packages.com.google.youtube.videoclick.components.SegmentDisplay] Frame 0
class com.google.youtube.videoclick.components.SegmentDisplay extends com.google.youtube.videoclick.components.TimedUiComponentBase implements com.google.youtube.videoclick.components.TimedUiComponent { var segmentBean, getPlayheadTime, drawLater, displayRect, broadcast, playerAdapter, clearRedrawTimeout, reset; function SegmentDisplay (segmentBean, playerAdapter, annotationsLayer) { super(segmentBean.getId(), playerAdapter, annotationsLayer); this.segmentBean = segmentBean; com.google.chianti.event.EventBroadcaster.initialize(this); } function draw(opt_isSeek) { var _local3 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); var _local4 = segmentBean.findPrevRegion(_local3); var _local5 = segmentBean.findNextRegion(_local3); if (_local5 == null) { return(undefined); } if ((_local4 == null) || (!segmentBean.isVisibleNow(_local3))) { destroy(); drawLater(_local5.getTime()); return(undefined); } var _local6 = updateDisplayOnResize(); if (_local6) { _local4.updateDisplayRect(displayRect); _local5.updateDisplayRect(displayRect); } var _local7 = segmentBean.getRegionRelativeToTime(_local4, _local5, _local3); broadcast({type:com.google.youtube.videoclick.components.SegmentEvent.MOVING_REGION_UPDATE, data:{region:_local7, opt_isSeek:opt_isSeek}, target:this}); if (playerAdapter.getPlayState() == com.google.youtube.players.VideoPlayer.PLAYING) { move(); } } function updateDisplayOnResize() { var _local2 = com.google.youtube.videoclick.beans.EventsList.getInstance().getDisplayRect(); if (_local2 == null) { return(false); } if (displayRect.equals(_local2)) { return(false); } displayRect = _local2; return(true); } function deleteMe() { destroy(); clearRedrawTimeout(); } function setRectangle(rect) { segmentBean.setRectangle(rect); reset(); } function move() { var _local2 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime()); var _local3 = new com.google.youtube.videoclick.beans.TimePoint(getPlayheadTime() + com.google.youtube.videoclick.VideoclickConfig.FADE_OUT_TIME); var _local4 = segmentBean.findPrevRegion(_local2); var _local5 = segmentBean.findNextRegion(_local2); if (_local5 == null) { destroy(); return(undefined); } if (_local4 == null) { return(undefined); } if (!getBean().isVisibleNow(_local3)) { broadcast({type:com.google.youtube.videoclick.components.SegmentEvent.MOVING_REGION_FADE_OUT, target:this}); com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "move", com.google.youtube.videoclick.VideoclickConfig.FADE_OUT_TIME * 1000); return(undefined); } if (!getBean().isVisibleNow(_local2)) { destroy(); drawLater(_local5.getTime()); return(undefined); } var _local6 = _local5.getTime().getTime() - _local2.getTime(); if (playerAdapter.getPlayState() == com.google.youtube.players.VideoPlayer.PLAYING) { broadcast({type:com.google.youtube.videoclick.components.SegmentEvent.MOVING_REGION_MOVE, data:{region:_local4, endRegion:_local5, deltaTime:_local6}, target:this}); } com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "move", _local6 * 1000); } function resume() { move(); } function pause() { } function destroy() { broadcast({type:com.google.youtube.videoclick.components.SegmentEvent.MOVING_REGION_DESTROY, target:this}); super.destroy(); } function getBean() { return(segmentBean); } function toString() { return(segmentBean.toString()); } }
Symbol 20573 MovieClip [__Packages.com.google.youtube.ui.BaseButton] Frame 0
class com.google.youtube.ui.BaseButton extends com.google.youtube.AbstractElement implements com.google.youtube.ui.IButton { var buttonWidth, buttonHeight, isEnabled, isTooltipEnabled, bg, onRollOver, onRollOut, tooltip, createEmptyMovieClip, getNextHighestDepth, hit; function BaseButton () { super(); buttonWidth = DEFAULT_BUTTON_WIDTH; buttonHeight = DEFAULT_BUTTON_HEIGHT; isEnabled = true; isTooltipEnabled = false; } function enable() { isEnabled = true; } function enableTooltip() { isTooltipEnabled = true; } function disable() { 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() { bg = createEmptyMovieClip("bg", getNextHighestDepth()); 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); } 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 20574 MovieClip [__Packages.com.google.youtube.videoclick.beans.HighlightAnnotation] Frame 0
class com.google.youtube.videoclick.beans.HighlightAnnotation extends com.google.youtube.videoclick.beans.Annotation implements com.google.youtube.videoclick.beans.DirtyBitSupporter { var segment; function HighlightAnnotation (highlightAnnotationObject, displayRect) { super(highlightAnnotationObject, displayRect); } function getXmlElementName() { return(XML_ELEMENT_NAME); } function toString() { var _local3 = "HighlightAnnotation("; if (segment != null) { _local3 = _local3 + ("," + segment.toString()); } _local3 = _local3 + (("," + super.toString()) + ")"); return(_local3); } static var XML_ELEMENT_NAME = "highlightAnnotation"; }
Symbol 20575 MovieClip [__Packages.com.google.youtube.logging.YouTubeStatsLogger] Frame 0
class com.google.youtube.logging.YouTubeStatsLogger { static var instanceMap; var configData, restCheckVideo, currentVideoData, googleTracker, flashVars, trackPoint, restSendTrack; function YouTubeStatsLogger () { } static function getPlayerInstance(mc) { if (!instanceMap) { instanceMap = {}; } var _local3 = String(mc); if (!instanceMap[_local3]) { instanceMap[_local3] = new com.google.youtube.logging.YouTubeStatsLogger(); } return(instanceMap[_local3]); } static function destroyPlayerInstance(mc) { var _local3 = String(mc); instanceMap[_local3] = null; } function init(configDataObj) { configData = configDataObj; } function setTrackingEnabled(isTrackingEnabled) { trackingEnabled = isTrackingEnabled; } function trackIfEnabled() { if (restCheckVideo) { restCheckVideo.unregisterAll(); delete restCheckVideo; } restCheckVideo = new com.google.youtube.data.RestRequest(configData.BASE_YT_URL + configData.REST_API_URL); restCheckVideo.addParameter("method", REST_TRACK_EMBED_VIDEO); restCheckVideo.addParameter("video_id", currentVideoData.id); restCheckVideo.registerEvent(com.google.youtube.event.DataEvent.LOAD, com.google.chianti.event.EventDelegate.create(this, onStatsRequestLoad)); restCheckVideo.send(); } function onStatsRequestLoad(evt) { if (evt.data.track_embed._value == "1") { trackingEnabled = true; } else { trackingEnabled = false; } } function initGoogleTracker(evt) { if (googleTracker != null) { googleTracker.endPlayback(); delete googleTracker; } currentVideoData = evt.data; var _local3 = {}; _local3.plid = configData.videoStatsPlayerId; _local3.el = configData.eventLabel; _local3.ps = configData.playerLayoutStyle; _local3.sourceid = configData.sourceId; if (configData.sdetail != undefined) { _local3.sdetail = _global.escape(configData.sdetail); } if (configData.query != undefined) { _local3.q = _global.escape(configData.query); } _local3.vid = configData.sessionToken; _local3.e = configData.experiment; if (configData.eurl != undefined) { _local3.eurl = _global.escape(configData.eurl); } _local3.adtype = configData.adType; googleTracker = new com.google.utils.VideoStats("http://video-stats.video.google.com/s", "yt", _local3); } function onVideoCued(evt) { if (!googleTrackerCueSent) { initGoogleTracker(evt); googleTracker.registerImpression(currentVideoData.id, configData.getVideoFormat(), flashVars.sw); googleTrackerCueSent = true; } } function onLoadNewVideo(onLoadEvent, timeFunction, durationFunction, bytesDownloadedFunction, getBufferEmptyEventsFunction, getLoggingOptionsFunction) { if (restCheckVideo) { restCheckVideo.unregisterAll(); delete restCheckVideo; } trackPoint = 0; trackingEnabled = onLoadEvent.isTracked; initGoogleTracker(onLoadEvent); googleTracker.getMediaTime = timeFunction; googleTracker.getMediaDuration = durationFunction; googleTracker.getBytesDownloaded = bytesDownloadedFunction; googleTracker.getBufferEmptyEvents = getBufferEmptyEventsFunction; googleTracker.getPlayerState = getLoggingOptionsFunction; googleTracker.startPlayback(currentVideoData.id, configData.getVideoFormat(), configData.samplingWeight); } function onProgress(currentTime, duration, percentPlayed) { if (percentPlayed) { if (trackingEnabled && (trackPoint < 1)) { sendTrack(currentTime, percentPlayed); trackPoint = 1; } else if (trackingEnabled && ((trackPoint < 2) && (currentTime >= 20))) { sendTrack(currentTime, percentPlayed); trackPoint = 2; } else if (trackingEnabled && ((trackPoint < 3) && (currentTime >= 30))) { sendTrack(currentTime, percentPlayed); trackPoint = 3; } else if (trackingEnabled && ((trackPoint < 4) && (percentPlayed >= 90))) { sendTrack(currentTime, percentPlayed); trackPoint = 4; } } } function sendTrack(time, percent) { if (restSendTrack) { restSendTrack.unregisterAll(); delete restSendTrack; } restSendTrack = new com.google.youtube.data.RestRequest(configData.BASE_YT_URL + configData.TRACKER_URL); restSendTrack.addParameter("w", configData.playerType); var _local4 = ((configData.playerType == IMPRESSION_TYPE_WATCH) ? (configData.trackingToken) : (currentVideoData.id)); restSendTrack.addParameter("i", _local4); restSendTrack.addParameter("tp", Math.floor(time)); restSendTrack.addParameter("p", Math.floor(percent)); if (configData.playerType == IMPRESSION_TYPE_ACDC) { restSendTrack.addParameter("eurl", _global.escape(configData.eurl)); } if (currentVideoData.t) { restSendTrack.addParameter("t", currentVideoData.t); } restSendTrack.send(); googleTracker.sendWatchPoint(); } static var REST_TRACK_EMBED_VIDEO = "youtube.videos.track_embed_video"; static var EVENT_LABEL_EMBEDDED = "embedded"; static var EVENT_LABEL_DETAIL_PAGE = "detailpage"; static var EVENT_LABEL_ADUNIT = "adunit"; static var IMPRESSION_TYPE_WATCH = 1; static var IMPRESSION_TYPE_AD_EMBED = 2; static var IMPRESSION_TYPE_CONTEST_VOTE = 3; static var IMPRESSION_TYPE_EXTERNAL_EMBED = 4; static var IMPRESSION_TYPE_INTERNAL_EMBED = 5; static var IMPRESSION_TYPE_ACDC = 6; static var PLAYER_STYLE_EMBEDDED = "default"; static var PLAYER_STYLE_CUSTOM_SMALL = "custom-small"; static var PLAYER_STYLE_CUSTOM_BIG = "custom-big"; static var PLAYER_STYLE_VU_MINI = "vu-mini"; static var PLAYER_STYLE_VU_SMALL = "vu-small"; static var PLAYER_STYLE_VU_BIG = "vu-big"; static var PLAYER_STYLE_VU_VIDEOBAR_H = "vu-videobar-h"; static var PLAYER_STYLE_VU_VIDEOBAR_V = "vu-videobar-v"; static var PLAYER_STYLE_VU_WATCH_TEST = "vu-watch-test"; static var PLAYER_STYLE_CHROMELESS = "chromeless"; static var PLAYER_STYLE_YVA = "yva"; static var PLAYER_STYLE_CHROMELESS_INVIDEO = "chromeless-invideo"; static var AD_TYPE_MIDROLL = "midroll"; static var AD_TYPE_POSTROLL = "postroll"; var trackingEnabled = false; var googleTrackerCueSent = false; var playerType = 4; }
Symbol 20576 MovieClip [__Packages.com.google.youtube.videoclick.components.HighlightAnnotationDisplay] Frame 0
class com.google.youtube.videoclick.components.HighlightAnnotationDisplay extends com.google.youtube.videoclick.components.AnnotationDisplay implements com.google.youtube.videoclick.components.TimedUiComponent { var displayRect, segmentDisplay, newRegion, prevRegion, containerMc, updateDisplayOnResize, optionallyAttachUrl, drawFollowup, shapeMc, textField, lastAnimateTimeoutId, drawText, updateTextSize, attachIcon, annotationBean; function HighlightAnnotationDisplay (highlightAnnotationBean, playerAdapter, annotationsLayer) { super(highlightAnnotationBean, playerAdapter, annotationsLayer); } function getPaddingX() { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(TEXT_PADDING_PREC, displayRect)); } function getPaddingY() { return(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(TEXT_PADDING_PREC, displayRect)); } function setSegmentDisplay(segmentDisplay) { this.segmentDisplay = segmentDisplay; segmentDisplay.registerEvent(com.google.youtube.videoclick.components.SegmentEvent.MOVING_REGION_UPDATE, com.google.chianti.event.EventDelegate.create(this, onMovingRegionUpdate)); segmentDisplay.registerEvent(com.google.youtube.videoclick.components.SegmentEvent.MOVING_REGION_MOVE, com.google.chianti.event.EventDelegate.create(this, onMovingRegionMove)); segmentDisplay.registerEvent(com.google.youtube.videoclick.components.SegmentEvent.MOVING_REGION_FADE_OUT, com.google.chianti.event.EventDelegate.create(this, fadeOut)); segmentDisplay.registerEvent(com.google.youtube.videoclick.components.SegmentEvent.MOVING_REGION_DESTROY, com.google.chianti.event.EventDelegate.create(this, removeFromDisplay)); getBean().setSegment(segmentDisplay.getBean()); } function onMovingRegionUpdate(event) { newRegion = com.google.youtube.videoclick.beans.Region(event.data.region); var _local3 = event.data.opt_isSeek; draw(_local3); } function removeFromDisplay() { super.removeFromDisplay(); newRegion = null; prevRegion = null; } function onMovingRegionMove(event) { newRegion = com.google.youtube.videoclick.beans.Region(event.data.region); } function fadeOut() { com.gs.TweenLite.to(containerMc, com.google.youtube.videoclick.VideoclickConfig.FADE_OUT_TIME, {_alpha:0}); } function draw(opt_isSeek) { if (!newRegion) { return(undefined); } if (newRegion == prevRegion) { return(undefined); } prevRegion = newRegion; updateDisplayOnResize(); drawHighlight(opt_isSeek); optionallyAttachUrl(); if (opt_isSeek) { drawFollowup(); } } function updateDisplayPartsOnResize(curDisplayRect) { } function drawHighlight(opt_isSeek) { createContainerMc(); if (!shapeMc) { shapeMc = containerMc.createEmptyMovieClip("shapeMc", containerMc.getNextHighestDepth()); shapeMc.onRollOver = com.google.chianti.event.EventDelegate.create(this, onRollOver); shapeMc.onRollOut = com.google.chianti.event.EventDelegate.create(this, onRollOut); shapeMc.onReleaseOutside = shapeMc.onRollOut; } containerMc._x = newRegion.getX(); containerMc._y = newRegion.getY(); drawTextHelp(containerMc); textField._visible = false; if (!opt_isSeek) { animateIn(); } else { drawOutline(OUTLINE_LINE_STYLE, false); } } function animateIn() { var _local2 = new flash.geom.Point(newRegion.getW(), newRegion.getH()); var _local3 = new flash.geom.Point(_local2.x * 1.05, _local2.y * 1.05); var _local4 = _local2.subtract(_local3); var _local5 = new flash.geom.Point(0, 0); _local5.offset(_local4.x / 2, _local4.y / 2); drawOutline(OUTLINE_LINE_STYLE, false); com.gs.TweenLite.from(shapeMc, 0.25, {_x:_local5.x, _y:_local5.y, _width:_local3.x, _height:_local3.y}); lastAnimateTimeoutId = com.google.youtube.videoclick.util.TimeoutUtil.setTimeout(this, "animateHighlightIn", 250); } function animateHighlightIn() { lastAnimateTimeoutId = _global.NaN; drawFollowup(); } function createContainerMc() { if (containerMc) { com.gs.TweenLite.killTweensOf(containerMc); } super.createContainerMc(); } function getCurrentDisplayRect() { return(newRegion.getRectangle()); } function onRollOver() { super.onRollOver(); drawTextHelp(containerMc); if (getBean().hasUrl()) { shapeMc.clear(); drawOutline(OUTLINE_ROLLOVER_LINE_STYLE, true); attachIconHelper(true); } } function onRollOut() { super.onRollOut(); textField._visible = false; if (getBean().hasUrl()) { shapeMc.clear(); drawOutline(OUTLINE_LINE_STYLE, false); attachIconHelper(false); } } function drawOutline(lineStyle, rollover) { com.google.youtube.util.Drawing.drawRect(shapeMc, 0, 0, newRegion.getW(), newRegion.getH(), BG_FILL, lineStyle, com.google.youtube.videoclick.VideoclickConfig.ROUND_CORNER_RADIUS); if (rollover) { var _local4 = new flash.filters.GlowFilter(GLOW_COLOR, GLOW_ALPHA, com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(GLOW_BLUR_PREC_X, displayRect), com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(GLOW_BLUR_PREC_Y, displayRect), GLOW_ROLLOVER_STRENGTH, GLOW_QUALITY); } else { var _local4 = new flash.filters.GlowFilter(GLOW_COLOR, GLOW_ALPHA, com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsX(GLOW_BLUR_PREC_X, displayRect), com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(GLOW_BLUR_PREC_Y, displayRect), GLOW_STRENGTH, GLOW_QUALITY); } shapeMc.filters = null; var _local5 = shapeMc.filters; _local5.push(_local4); shapeMc.filters = _local5; } function updateTextDisplayRect(text) { text.updateDisplayRect(displayRect); } function drawTextHelp(textContainerMc) { if (!textField) { var _local3 = getBean().getText(); updateTextDisplayRect(_local3); if (_local3.hasAttributes()) { drawText(textContainerMc, _local3.getText(), _local3.getX() - newRegion.getX(), _local3.getY() - newRegion.getY(), _local3.getW(), _local3.getH()); } else { drawText(textContainerMc, _local3.getText(), getPaddingX(), Number(newRegion.getH()) + getPaddingY(), newRegion.getW() - getPaddingX(), com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(TEXT_FIELD_HEIGHT_PREC, displayRect)); textField.autoSize = "left"; } applyHighlightLookAndFeelToText(); updateTextSize(com.google.youtube.videoclick.components.AnnotationDisplay.TEXT_SIZE_PREC); } textField._visible = true; } function applyHighlightLookAndFeelToText() { textField.setTextFormat(TEXT_FORMAT); var _local2 = new flash.filters.GlowFilter(TEXT_GLOW_COLOR, TEXT_GLOW_ALPHA); var _local3 = []; _local3.push(_local2); textField.filters = _local3; } function attachIconHelper(rollover) { if (getBean().hasUrl()) { attachIcon(newRegion.getW() - com.google.youtube.videoclick.VideoclickConfig.RECT_RADIUS, newRegion.getH() - com.google.youtube.videoclick.VideoclickConfig.RECT_RADIUS, rollover); } } function getOverallHeight(reg) { return((Number(reg.getH()) + getPaddingY()) + Number(com.google.youtube.videoclick.beans.DisplayCoordinatesUtil.percentsToPixelsY(TEXT_FIELD_HEIGHT_PREC, displayRect))); } function pause() { com.gs.TweenLite.killTweensOf(containerMc); } function resume() { } function reset() { } function getBean() { return(com.google.youtube.videoclick.beans.HighlightAnnotation(annotationBean)); } function getCurrentDisplayRegion() { return(newRegion); } function getTrackingObjectType() { return("Highlight"); } static var TEXT_COLOR = 15921906; static var TEXT_PADDING_PREC = 1.2; static var OUTLINE_COLOR = 16777215; static var OUTLINE_ALPHA = 25; static var OUTLINE_ROLLOVER_ALPHA = 90; static var OUTLINE_THICKNESS = 3; static var GLOW_COLOR = 0; static var GLOW_ALPHA = 50; static var GLOW_BLUR_PREC_X = 5 / 3.6; static var GLOW_BLUR_PREC_Y = 5 / 4.8; static var GLOW_STRENGTH = 1; static var GLOW_ROLLOVER_STRENGTH = 0.25; static var GLOW_QUALITY = 1; static var TEXT_GLOW_COLOR = 5855577; static var TEXT_GLOW_ALPHA = 0.9; static var TEXT_FORMAT = new TextFormat(com.google.youtube.videoclick.VideoclickConfig.DEFAULT_FONT_FACE, 13, TEXT_COLOR, false, false, false, "", "", "center"); static var BG_FILL = {colors:[16777215], fillType:"linear", alphas:[0], ratios:[50], matrix:{matrixType:"box", x:0, y:0, w:0, h:0, r:0}}; static var OUTLINE_LINE_STYLE = {thickness:OUTLINE_THICKNESS, rgb:OUTLINE_COLOR, alpha:OUTLINE_ALPHA}; static var OUTLINE_ROLLOVER_LINE_STYLE = {thickness:OUTLINE_THICKNESS, rgb:OUTLINE_COLOR, alpha:OUTLINE_ROLLOVER_ALPHA}; static var TEXT_FIELD_HEIGHT = 35; static var TEXT_FIELD_HEIGHT_PREC = 7; }
Symbol 20577 MovieClip [__Packages.com.google.geom.Rect] Frame 0
class com.google.geom.Rect extends flash.geom.Rectangle { var x, y, width, height; function Rect (x, y, width, height) { super(); this.x = x; this.y = y; this.width = width; this.height = height; } }
Symbol 20578 MovieClip [__Packages.com.google.youtube.videoclick.viewer.ModuleMainRelease] Frame 0
class com.google.youtube.videoclick.viewer.ModuleMainRelease { function ModuleMainRelease () { } static function main(mc) { com.google.youtube.players.CrossDomainer.allowDomainsForModules(); var instance; mc.createInstance = function () { if (!instance) { instance = new com.google.youtube.videoclick.viewer.IvViewerModule(mc); } return(instance); }; } }
Symbol 20579 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)); mouseActivity.registerEvent(com.google.youtube.util.MouseActivity.MOUSE_INACTIVE, com.google.chianti.event.EventDelegate.create(this, attemptDeactivate, true)); 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 activate() { } function deactivate() { } 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) { target.onRollOver = com.google.chianti.event.EventDelegate.create(this, rollOver); target.onRollOut = com.google.chianti.event.EventDelegate.create(this, rollOut); target.onReleaseOutside = com.google.chianti.event.EventDelegate.create(this, rollOut); } function build() { super.build(); } 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 = 250; }
Symbol 20580 MovieClip [__Packages.com.google.youtube.util.FrameWaiter] Frame 0
class com.google.youtube.util.FrameWaiter { static var waitHandlerCounter; var frameWaiter; function FrameWaiter (mc, frames, handler) { if (waitHandlerCounter == undefined) { waitHandlerCounter = 0; } else { waitHandlerCounter++; } var framesWaited = 0; frameWaiter = mc.createEmptyMovieClip("waitHandler" + waitHandlerCounter, mc.getNextHighestDepth()); frameWaiter.onEnterFrame = function () { framesWaited++; if (framesWaited >= frames) { handler(); delete this.onEnterFrame; this.removeMovieClip(); } }; } }
Symbol 20581 MovieClip [__Packages.com.google.youtube.videoclick.components.UrlDisplay] Frame 0
class com.google.youtube.videoclick.components.UrlDisplay { function UrlDisplay () { } static function getAssociatedImage(url) { if (!url.isValid()) { return(null); } switch (url.getUrlType()) { case com.google.youtube.videoclick.beans.Url.URL_TYPE_EXTERNAL_LINK : return(IMAGE_EXTERNAL_LINK); case com.google.youtube.videoclick.beans.Url.URL_TYPE_SEARCH : return(IMAGE_SEARCH); case com.google.youtube.videoclick.beans.Url.URL_TYPE_VIDEO : return(IMAGE_VIDEO); case com.google.youtube.videoclick.beans.Url.URL_TYPE_RESP_UPLOAD : return(IMAGE_RESPONSE); case com.google.youtube.videoclick.beans.Url.URL_TYPE_GROUP : return(IMAGE_GROUP); case com.google.youtube.videoclick.beans.Url.URL_TYPE_CHANNEL : return(IMAGE_CHANNEL); case com.google.youtube.videoclick.beans.Url.URL_TYPE_PLAYLIST : return(IMAGE_PLAYLIST); case com.google.youtube.videoclick.beans.Url.URL_TYPE_COMPOSE : return(IMAGE_COMPOSE); } return(null); } static function getAssociatedRolloverImage(url) { if (!url.isValid()) { return(null); } switch (url.getUrlType()) { case com.google.youtube.videoclick.beans.Url.URL_TYPE_EXTERNAL_LINK : return(ROLLOVER_IMAGE_EXTERNAL_LINK); case com.google.youtube.videoclick.beans.Url.URL_TYPE_SEARCH : return(ROLLOVER_IMAGE_SEARCH); case com.google.youtube.videoclick.beans.Url.URL_TYPE_VIDEO : return(ROLLOVER_IMAGE_VIDEO); case com.google.youtube.videoclick.beans.Url.URL_TYPE_RESP_UPLOAD : return(ROLLOVER_IMAGE_RESPONSE); case com.google.youtube.videoclick.beans.Url.URL_TYPE_GROUP : return(ROLLOVER_IMAGE_GROUP); case com.google.youtube.videoclick.beans.Url.URL_TYPE_CHANNEL : return(ROLLOVER_IMAGE_CHANNEL); case com.google.youtube.videoclick.beans.Url.URL_TYPE_PLAYLIST : return(ROLLOVER_IMAGE_PLAYLIST); case com.google.youtube.videoclick.beans.Url.URL_TYPE_COMPOSE : return(ROLLOVER_IMAGE_COMPOSE); } return(null); } static var IMAGE_EXTERNAL_LINK = "external"; static var IMAGE_VIDEO = "video"; static var IMAGE_RESPONSE = "link_upload"; static var IMAGE_CHANNEL = "profile"; static var IMAGE_GROUP = "link_group"; static var IMAGE_SEARCH = "link_search"; static var IMAGE_PLAYLIST = "link_playlist"; static var IMAGE_COMPOSE = "link_compose"; static var ROLLOVER_IMAGE_EXTERNAL_LINK = "external_over"; static var ROLLOVER_IMAGE_VIDEO = "video_over"; static var ROLLOVER_IMAGE_RESPONSE = "link_upload_over"; static var ROLLOVER_IMAGE_CHANNEL = "profile_over"; static var ROLLOVER_IMAGE_GROUP = "link_group_over"; static var ROLLOVER_IMAGE_SEARCH = "link_search_over"; static var ROLLOVER_IMAGE_PLAYLIST = "link_playlist_over"; static var ROLLOVER_IMAGE_COMPOSE = "link_compose_over"; }
Symbol 20582 MovieClip [__Packages.com.google.utils.ImageLoader] Frame 0
class com.google.utils.ImageLoader { var movieClipLoader, playerMajorVersion; function ImageLoader () { movieClipLoader = new MovieClipLoader(); addListener(this); playerMajorVersion = _global.parseInt(System.capabilities.version.split(" ", 2)[1].split(",")[0]); } function addListener(target) { movieClipLoader.addListener(target); } function removeListener(target) { movieClipLoader.removeListener(target); } function onLoadInit(mc) { removeListener(this); if (playerMajorVersion < 9) { return(undefined); } var _local3 = new flash.display.BitmapData(mc._width, mc._height, true, 0); _local3.draw(mc); var _local4 = mc.createEmptyMovieClip("img", mc.getNextHighestDepth()); _local4.attachBitmap(_local3, _local4.getNextHighestDepth(), "auto", true); } function loadImage(targetUrl, targetMovieClip) { if ((playerMajorVersion > 8) && (targetUrl.indexOf("http") == 0)) { var _local4 = targetUrl.split("/")[2]; System.security.loadPolicyFile(("http://" + _local4) + "/crossdomain.xml"); movieClipLoader.checkPolicyFile = true; } movieClipLoader.loadClip(targetUrl, targetMovieClip); } }
Symbol 20583 MovieClip [__Packages.com.google.youtube.videoclick.util.DrawingUtil] Frame 0
class com.google.youtube.videoclick.util.DrawingUtil { function DrawingUtil () { } static function drawSpeechBubble(target, x, y, width, height, sourcePointX, sourcePointY, fill, lineStyle, radii, leaveFillOpen) { com.google.youtube.util.Drawing.setLineStyle(target, lineStyle); if (fill != null) { com.google.youtube.util.Drawing.setFill(target, fill); } var _local13 = []; if (typeof(radii) == "number") { var _local14 = 0; for ( ; _local14 < 4 ; _local14++) { _local13[_local14] = radii; } } else { _local13 = Array(radii); } var _local15 = determineSourcePointSpecifics(x, y, width, height, sourcePointX, sourcePointY, radii, _local13); if (_local15[DIRECTION] == null) { return(undefined); } drawBubble(target, x, y, width, height, sourcePointX, sourcePointY, radii, _local13, _local15[DIRECTION], _local15[LEFT_X], _local15[RIGHT_X], _local15[TOP_Y], _local15[BOTTOM_Y]); if ((fill != null) && (!leaveFillOpen)) { target.endFill(); } } static function drawSpeechBubbleSourcePointTip(target, x, y, width, height, sourcePointX, sourcePointY, fill, lineStyle, radii, leaveFillOpen) { com.google.youtube.util.Drawing.setLineStyle(target, lineStyle); if (fill != null) { com.google.youtube.util.Drawing.setFill(target, fill); } var _local13 = []; if (typeof(radii) == "number") { var _local14 = 0; for ( ; _local14 < 4 ; _local14++) { _local13[_local14] = radii; } } else { _local13 = Array(radii); } var _local15 = determineSourcePointSpecifics(x, y, width, height, sourcePointX, sourcePointY, radii, _local13); if (_local15[DIRECTION] == null) { return(undefined); } drawSourcePointTip(target, x, y, width, height, sourcePointX, sourcePointY, radii, _local13, _local15[DIRECTION], _local15[LEFT_X], _local15[RIGHT_X], _local15[TOP_Y], _local15[BOTTOM_Y]); if ((fill != null) && (!leaveFillOpen)) { target.endFill(); } } static function drawSpeechBubbleSourcePoint(target, x, y, width, height, sourcePointX, sourcePointY, fill, lineStyle, radii, leaveFillOpen) { com.google.youtube.util.Drawing.setLineStyle(target, lineStyle); if (fill != null) { com.google.youtube.util.Drawing.setFill(target, fill); } var _local13 = []; if (typeof(radii) == "number") { var _local14 = 0; for ( ; _local14 < 4 ; _local14++) { _local13[_local14] = radii; } } else { _local13 = Array(radii); } var _local15 = determineSourcePointSpecifics(x, y, width, height, sourcePointX, sourcePointY, radii, _local13); if (_local15[DIRECTION] == null) { return(undefined); } drawSourcePoint(target, x, y, width, height, sourcePointX, sourcePointY, radii, _local13, _local15[DIRECTION], _local15[LEFT_X], _local15[RIGHT_X], _local15[TOP_Y], _local15[BOTTOM_Y]); if ((fill != null) && (!leaveFillOpen)) { target.endFill(); } } static function drawSpeechBubbleSourcePointWithSmallBubble(target, x, y, width, height, sourcePointX, sourcePointY, fill, lineStyle, radii, leaveFillOpen) { com.google.youtube.util.Drawing.setLineStyle(target, lineStyle); if (fill != null) { com.google.youtube.util.Drawing.setFill(target, fill); } var _local13 = []; if (typeof(radii) == "number") { var _local14 = 0; for ( ; _local14 < 4 ; _local14++) { _local13[_local14] = radii; } } else { _local13 = Array(radii); } var _local15 = determineSourcePointSpecifics(x, y, width, height, sourcePointX, sourcePointY, radii, _local13); var _local16 = _local15[DIRECTION]; if (_local16 == null) { return(null); } var _local17 = Math.min(_local15[LEFT_X], sourcePointX); var _local18 = Math.min(_local15[TOP_Y], sourcePointY); var _local19 = Math.max(_local15[RIGHT_X], sourcePointX); var _local20 = Math.max(_local15[BOTTOM_Y], sourcePointY); var _local21 = drawSourcePoint(target, x, y, width, height, sourcePointX, sourcePointY, radii, _local13, _local15[DIRECTION], _local15[LEFT_X], _local15[RIGHT_X], _local15[TOP_Y], _local15[BOTTOM_Y]); var _local22 = flash.geom.Point.distance(_local21[POINT_ONE], _local21[POINT_TWO]); if ((UP_DIRECTION == _local16) || (DOWN_DIRECTION == _local16)) { var _local23 = _local21[POINT_ONE].y; if (UP_DIRECTION == _local16) { _local23 = _local23 + Number(_local22); _local20 = Math.max(_local20, _local23); } else { _local23 = _local23 - Number(_local22); _local18 = Math.min(_local18, _local23); } target.lineTo(_local21[POINT_ONE].x, _local23); target.lineTo(_local21[POINT_TWO].x, _local23); } else if ((LEFT_DIRECTION == _local16) || (RIGHT_DIRECTION == _local16)) { var _local24 = _local21[POINT_ONE].x; if (LEFT_DIRECTION == _local16) { _local24 = _local24 + Number(_local22); _local19 = Math.max(_local19, _local24); } else { _local24 = _local24 - Number(_local22); _local17 = Math.min(_local17, _local24); } target.lineTo(_local24, _local21[POINT_ONE].y); target.lineTo(_local24, _local21[POINT_TWO].y); } target.lineTo(_local21[POINT_TWO].x, _local21[POINT_TWO].y); if ((fill != null) && (!leaveFillOpen)) { target.endFill(); } var _local25 = {}; _local25[TOP_LEFT_X] = _local17; _local25[TOP_LEFT_Y] = _local18; _local25[WIDTH] = _local19 - _local17; _local25[HEIGHT] = _local20 - _local18; return(_local25); } static function drawSourcePointTip(target, x, y, width, height, sourcePointX, sourcePointY, radii, radius, direction, leftX, rightX, topY, bottomY) { var _local16 = getSourcePointBase(x, y, width, height, direction, leftX, rightX, topY, bottomY); var _local17 = new flash.geom.Point(sourcePointX, sourcePointY); var _local18 = flash.geom.Point.interpolate(_local16[POINT_ONE], _local17, 0.5); var _local19 = flash.geom.Point.interpolate(_local16[POINT_TWO], _local17, 0.5); target.moveTo(_local19.x, _local19.y); target.lineTo(_local17.x, _local17.y); target.lineTo(_local18.x, _local18.y); } static function drawSourcePoint(target, x, y, width, height, sourcePointX, sourcePointY, radii, radius, direction, leftX, rightX, topY, bottomY) { var _local16 = getSourcePointBase(x, y, width, height, direction, leftX, rightX, topY, bottomY); var _local17 = _local16[POINT_ONE]; var _local18 = _local16[POINT_TWO]; target.moveTo(_local18.x, _local18.y); target.lineTo(sourcePointX, sourcePointY); target.lineTo(_local17.x, _local17.y); return(_local16); } static function getSourcePointBase(x, y, width, height, direction, leftX, rightX, topY, bottomY) { switch (direction) { case UP_DIRECTION : var _local11 = new flash.geom.Point(leftX, y); var _local12 = new flash.geom.Point(rightX, y); break; case DOWN_DIRECTION : _local11 = new flash.geom.Point(leftX, Number(y) + Number(height)); _local12 = new flash.geom.Point(rightX, Number(y) + Number(height)); break; case LEFT_DIRECTION : _local11 = new flash.geom.Point(x, topY); _local12 = new flash.geom.Point(x, bottomY); break; case RIGHT_DIRECTION : _local11 = new flash.geom.Point(Number(x) + Number(width), topY); _local12 = new flash.geom.Point(Number(x) + Number(width), bottomY); } var _local13 = {}; _local13[POINT_ONE] = _local11; _local13[POINT_TWO] = _local12; return(_local13); } static function drawBubble(target, x, y, width, height, sourcePointX, sourcePointY, radii, radius, direction, leftX, rightX, topY, bottomY) { var _local16 = Number(x) + Number(width); var _local17 = Number(y) + Number(height); if (!radii) { target.moveTo(x, y); if (direction == UP_DIRECTION) { target.lineTo(leftX, y); target.lineTo(sourcePointX, sourcePointY); target.lineTo(rightX, y); } target.lineTo(_local16, y); direction = RIGHT_DIRECTION; if (direction) { target.lineTo(_local16, topY); target.lineTo(sourcePointX, sourcePointY); target.lineTo(_local16, bottomY); } target.lineTo(_local16, _local17); if (direction == DOWN_DIRECTION) { target.lineTo(rightX, _local17); target.lineTo(sourcePointX, sourcePointY); target.lineTo(leftX, _local17); } target.lineTo(x, _local17); if (direction == LEFT_DIRECTION) { target.lineTo(x, bottomY); target.lineTo(sourcePointX, sourcePointY); target.lineTo(x, topY); } target.lineTo(x, y); } else { target.moveTo(x + radius[0], y); if (direction == UP_DIRECTION) { target.lineTo(leftX, y); target.lineTo(sourcePointX, sourcePointY); target.lineTo(rightX, y); } target.lineTo(_local16 - radius[1], y); target.curveTo(_local16, y, _local16, y + radius[1]); if (direction == RIGHT_DIRECTION) { target.lineTo(_local16, topY); target.lineTo(sourcePointX, sourcePointY); target.lineTo(_local16, bottomY); } target.lineTo(_local16, _local17 - radius[2]); target.curveTo(_local16, _local17, _local16 - radius[2], _local17); if (direction == DOWN_DIRECTION) { target.lineTo(rightX, _local17); target.lineTo(sourcePointX, sourcePointY); target.lineTo(leftX, _local17); } target.lineTo(x + radius[3], _local17); target.curveTo(x, _local17, x, _local17 - radius[3]); if (direction == LEFT_DIRECTION) { target.lineTo(x, bottomY); target.lineTo(sourcePointX, sourcePointY); target.lineTo(x, topY); } target.lineTo(x, y + radius[0]); target.curveTo(x, y, x + radius[0], y); } } static function determineSpeechDirection(x, y, width, height, sourcePointX, sourcePointY) { if (sourcePointX < x) { return(LEFT_DIRECTION); } if (sourcePointX > (x + width)) { return(RIGHT_DIRECTION); } if (sourcePointY < y) { return(UP_DIRECTION); } if (sourcePointY > (y + height)) { return(DOWN_DIRECTION); } if ((sourcePointX >= x) && (sourcePointX <= (x + width))) { return(null); } } static function determineSourcePointSpecifics(x, y, width, height, sourcePointX, sourcePointY, radii, radius) { var _local10 = determineSpeechDirection(x, y, width, height, sourcePointX, sourcePointY); if ((LEFT_DIRECTION == _local10) || (RIGHT_DIRECTION == _local10)) { var _local15 = (height - y) / 4; var _local14 = Number(y) + Number(_local15); var _local13 = (Number(y) + Number(height)) - Number(_local15); if (radii) { if (_local14 < (y + radius[1])) { _local14 = Number(y) + Number(radius[1]); } if (_local13 > ((y + height) - radius[2])) { _local13 = (Number(y) + Number(height)) - radius[2]; } } } if ((DOWN_DIRECTION == _local10) || (UP_DIRECTION == _local10)) { var _local16 = (width - x) / 4; var _local17 = _local16 / 4; if (sourcePointX < (Number(x) + (2 * _local16))) { var _local11 = (Number(x) + Number(_local16)) - _local17; var _local12 = (Number(x) + Number(_local16)) + Number(_local17); } else { var _local11 = (Number(x) + Number(3 * _local16)) - _local17; var _local12 = (Number(x) + Number(3 * _local16)) + Number(_local17); } } var _local18 = {}; _local18[LEFT_X] = _local11; _local18[RIGHT_X] = _local12; _local18[BOTTOM_Y] = _local13; _local18[TOP_Y] = _local14; _local18[DIRECTION] = _local10; return(_local18); } static function drawPacman(target, x, y, cutAngle, radius, fill, bodyLineStyle, upperLipLineStyle, lowerLipLineStyle, leaveFillOpen) { if (fill != null) { com.google.youtube.util.Drawing.setFill(target, fill); } var _local12 = Math.PI / 180; var _local13 = Math.ceil((360 - cutAngle) / 45); var _local14 = radius / 2; var _local15 = ((360 - cutAngle) / _local13) * _local12; var _local16 = _local14 / Math.cos(_local15 / 2); var _local17 = -90 * _local12; var _local18 = _local17 + (_local15 / 2); target.moveTo(x, y); com.google.youtube.util.Drawing.setLineStyle(target, upperLipLineStyle); target.lineTo(x, y - _local14); com.google.youtube.util.Drawing.setLineStyle(target, bodyLineStyle); var _local19 = 0; for ( ; _local19 < _local13 ; _local19++) { _local17 = _local17 - _local15; _local18 = _local18 - _local15; var _local20 = _local14 * Math.cos(_local17); var _local21 = _local14 * Math.sin(_local17); var _local22 = _local16 * Math.cos(_local18); var _local23 = _local16 * Math.sin(_local18); target.curveTo(x + _local22, y + _local23, x + _local20, y + _local21); } com.google.youtube.util.Drawing.setLineStyle(target, lowerLipLineStyle); target.moveTo(x, y); if ((fill != null) && (!leaveFillOpen)) { target.endFill(); } } static var UP_DIRECTION = "up"; static var DOWN_DIRECTION = "down"; static var LEFT_DIRECTION = "left"; static var RIGHT_DIRECTION = "right"; static var TOP_LEFT_X = "topLeftX"; static var TOP_LEFT_Y = "topLeftY"; static var WIDTH = "width"; static var HEIGHT = "height"; static var LEFT_X = "leftX"; static var RIGHT_X = "rightX"; static var BOTTOM_Y = "bottomY"; static var TOP_Y = "topY"; static var DIRECTION = "direction"; static var POINT_ONE = "pointOne"; static var POINT_TWO = "pointTwo"; }
Symbol 20584 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None { function None () { } static function easeNone(t, b, c, d) { return(((c * t) / d) + b); } static function easeIn(t, b, c, d) { return(((c * t) / d) + b); } static function easeOut(t, b, c, d) { return(((c * t) / d) + b); } static function easeInOut(t, b, c, d) { return(((c * t) / d) + b); } }
Symbol 20585 MovieClip [__Packages.com.google.youtube.event.DataEvent] Frame 0
class com.google.youtube.event.DataEvent { function DataEvent () { } static var ERROR = "onError"; static var LOAD = "onLoad"; static var SET = "onSet"; }
Symbol 20586 MovieClip [__Packages.com.google.youtube.videoclick.beans.AnnotationsList] Frame 0
class com.google.youtube.videoclick.beans.AnnotationsList extends com.google.youtube.videoclick.beans.DirtyBitElementsList { var displayRect, push; function AnnotationsList () { super(); } function setDisplayRect(displayRect) { this.displayRect = displayRect; } function addAnnotationsFromObject(annotationsObject) { var _local3 = annotationsObject[com.google.youtube.videoclick.beans.PopupAnnotation.XML_ELEMENT_NAME].length; var _local4 = 0; for ( ; _local4 < _local3 ; _local4++) { var _local5 = new com.google.youtube.videoclick.beans.PopupAnnotation(annotationsObject[com.google.youtube.videoclick.beans.PopupAnnotation.XML_ELEMENT_NAME][_local4], displayRect); push(_local5); } _local3 = annotationsObject[com.google.youtube.videoclick.beans.SpeechBubbleAnnotation.XML_ELEMENT_NAME].length; var _local6 = 0; for ( ; _local6 < _local3 ; _local6++) { var _local7 = new com.google.youtube.videoclick.beans.SpeechBubbleAnnotation(annotationsObject[com.google.youtube.videoclick.beans.SpeechBubbleAnnotation.XML_ELEMENT_NAME][_local6], displayRect); push(_local7); } _local3 = annotationsObject[com.google.youtube.videoclick.beans.HighlightAnnotation.XML_ELEMENT_NAME].length; var _local8 = 0; for ( ; _local8 < _local3 ; _local8++) { var _local9 = new com.google.youtube.videoclick.beans.HighlightAnnotation(annotationsObject[com.google.youtube.videoclick.beans.HighlightAnnotation.XML_ELEMENT_NAME][_local8], displayRect); push(_local9); } _local3 = annotationsObject[com.google.youtube.videoclick.beans.PauseAnnotation.XML_ELEMENT_NAME].length; var _local10 = 0; for ( ; _local10 < _local3 ; _local10++) { var _local11 = new com.google.youtube.videoclick.beans.PauseAnnotation(annotationsObject[com.google.youtube.videoclick.beans.PauseAnnotation.XML_ELEMENT_NAME][_local10], displayRect); push(_local11); } } function addAnnotation(annotation) { push(annotation); } function getXmlElementName() { return(XML_ELEMENT_NAME); } function getClassPrefix() { return("annotation_"); } function toString() { return(("Annotations(" + super.toString()) + ")"); } static var XML_ELEMENT_NAME = "annotations"; }
Symbol 20587 MovieClip [__Packages.com.google.youtube.util.PlayerVersion] Frame 0
class com.google.youtube.util.PlayerVersion { var major, minor, revision, build; function PlayerVersion (majorVer, minorVer, revisionVer, buildVer) { major = _global.parseInt(majorVer, 10) || 0; minor = _global.parseInt(minorVer, 10) || 0; revision = _global.parseInt(revisionVer, 10) || 0; build = _global.parseInt(buildVer, 10) || 0; } function isAtLeastVersion(version) { if (major > version.major) { return(true); } if (major < version.major) { return(false); } if (minor > version.minor) { return(true); } if (minor < version.minor) { return(false); } if (revision > version.revision) { return(true); } if (revision < version.revision) { return(false); } if (build >= version.build) { return(true); } return(false); } }
Symbol 20588 MovieClip [__Packages.com.google.youtube.videoclick.util.PlaybackTrackingManager] Frame 0
class com.google.youtube.videoclick.util.PlaybackTrackingManager { function PlaybackTrackingManager () { if (com.google.youtube.videoclick.VideoclickConfig.isEnableEventLogging()) { com.google.youtube.videoclick.util.TrackUtil.enableTracking(true); } } static function getInstance() { if (instance == null) { instance = new com.google.youtube.videoclick.util.PlaybackTrackingManager(); } return(instance); } function onProgress(evt) { if (com.google.youtube.videoclick.util.TrackUtil.isEnableTracking()) { var _local3 = (100 * evt.data.currentTime) / evt.data.duration; if (!_global.isNaN(_local3)) { trackProgress(_local3); } } } function onEnd(evt) { trackProgress(100); } function trackProgress(percent) { var _local3 = PLAYBACK_TRACK_PERCENTS.length - 1; for ( ; _local3 >= 0 ; _local3--) { var _local4 = PLAYBACK_TRACK_PERCENTS[_local3]; if (percent >= _local4.percent) { if (_local4.enable) { _local4.enable = false; var _local5 = com.google.youtube.videoclick.VideoclickConfig.getCurrentVideoId(); com.google.youtube.videoclick.util.TrackUtil.trackEvent("AnnotatedVideoPlayed", _local5, _local4.percent); } break; } } } static var instance = null; var PLAYBACK_TRACK_PERCENTS = [{percent:0, enable:true}, {percent:30, enable:true}, {percent:60, enable:true}, {percent:90, enable:true}, {percent:100, enable:true}]; }

Library Items

Symbol 2 BitmapUsed by:3
Symbol 3 GraphicUses:2Used by:1
Symbol 1 MovieClip [profile]Uses:3
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:4
Symbol 4 MovieClip [profile_over]Uses:6
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:7
Symbol 7 MovieClip [video]Uses:9
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:10
Symbol 10 MovieClip [video_over]Uses:12
Symbol 14 BitmapUsed by:15
Symbol 15 GraphicUses:14Used by:13
Symbol 13 MovieClip [external]Uses:15
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:16
Symbol 16 MovieClip [external_over]Uses:18
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:19
Symbol 19 MovieClip [link_search]Uses:21
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:22
Symbol 22 MovieClip [link_search_over]Uses:24
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:25
Symbol 25 MovieClip [link_profile]Uses:27
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:28
Symbol 28 MovieClip [link_profile_over]Uses:30
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:32Used by:31
Symbol 31 MovieClip [link_group]Uses:33
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:34
Symbol 34 MovieClip [link_group_over]Uses:36
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:37
Symbol 37 MovieClip [link_upload]Uses:39
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:40
Symbol 40 MovieClip [link_upload_over]Uses:42
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:44Used by:43
Symbol 43 MovieClip [link_playlist]Uses:45
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:46
Symbol 46 MovieClip [link_playlist_over]Uses:48
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:49
Symbol 49 MovieClip [link_compose]Uses:51
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:52
Symbol 52 MovieClip [link_compose_over]Uses:54
Symbol 20480 MovieClip [__Packages.com.gs.TweenLite]
Symbol 20481 MovieClip [__Packages.ArrayParam]
Symbol 20482 MovieClip [__Packages.com.google.youtube.event.ModuleEvent]
Symbol 20483 MovieClip [__Packages.com.google.youtube.IBroadcaster]
Symbol 20484 MovieClip [__Packages.com.google.youtube.AbstractBroadcaster]
Symbol 20485 MovieClip [__Packages.com.google.youtube.players.PlayerConfigData]
Symbol 20486 MovieClip [__Packages.com.google.youtube.videoclick.beans.IdedList]
Symbol 20487 MovieClip [__Packages.com.google.youtube.videoclick.beans.DirtyBitElementsList]
Symbol 20488 MovieClip [__Packages.com.google.youtube.videoclick.beans.SegmentsList]
Symbol 20489 MovieClip [__Packages.com.google.youtube.players.IVideoPlayer]
Symbol 20490 MovieClip [__Packages.com.google.youtube.videoclick.beans.DirtyBitSupporter]
Symbol 20491 MovieClip [__Packages.com.google.youtube.videoclick.beans.XmlSerializationSupporter]
Symbol 20492 MovieClip [__Packages.com.google.youtube.videoclick.beans.ServerDataAware]
Symbol 20493 MovieClip [__Packages.com.google.youtube.videoclick.beans.Segment]
Symbol 20494 MovieClip [__Packages.com.google.youtube.AbstractElement]
Symbol 20495 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModule]
Symbol 20496 MovieClip [__Packages.com.google.youtube.players.modules.base.BasePlayerModule]
Symbol 20497 MovieClip [__Packages.com.google.youtube.players.IPlayerController]
Symbol 20498 MovieClip [__Packages.com.google.youtube.videoclick.components.ElementsListBase]
Symbol 20499 MovieClip [__Packages.com.google.chianti.event.EventBroadcaster]
Symbol 20500 MovieClip [__Packages.com.google.youtube.data.RestRequest]
Symbol 20501 MovieClip [__Packages.com.google.youtube.videoclick.beans.SourcePoint]
Symbol 20502 MovieClip [__Packages.com.google.youtube.videoclick.components.EventsListDisplay]
Symbol 20503 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModuleDescriptor]
Symbol 20504 MovieClip [__Packages.com.google.youtube.players.modules.ISubmenu]
Symbol 20505 MovieClip [__Packages.com.google.youtube.players.VideoPlayer]
Symbol 20506 MovieClip [__Packages.com.google.youtube.data.XMLDataNode]
Symbol 20507 MovieClip [__Packages.com.google.chianti.event.EventDelegate]
Symbol 20508 MovieClip [__Packages.com.google.youtube.videoclick.components.PauseManager]
Symbol 20509 MovieClip [__Packages.mx.transitions.easing.Back]
Symbol 20510 MovieClip [__Packages.com.google.youtube.players.modules.ISubmenuObservable]
Symbol 20511 MovieClip [__Packages.com.google.youtube.videoclick.beans.Url]
Symbol 20512 MovieClip [__Packages.com.google.utils.DownloadTimer]
Symbol 20513 MovieClip [__Packages.com.google.utils.StringUtils]
Symbol 20514 MovieClip [__Packages.com.google.utils.UrlConstructor]
Symbol 20515 MovieClip [__Packages.com.google.utils.SecurityUtils]
Symbol 20516 MovieClip [__Packages.com.google.utils.EventReporter]
Symbol 20517 MovieClip [__Packages.com.google.youtube.videoclick.beans.Annotation]
Symbol 20518 MovieClip [__Packages.com.google.youtube.videoclick.beans.PopupAnnotation]
Symbol 20519 MovieClip [__Packages.com.google.utils.VideoStats]
Symbol 20520 MovieClip [__Packages.com.google.youtube.videoclick.util.TimeoutUtil]
Symbol 20521 MovieClip [__Packages.com.google.webutil.url.YouTubeUtils]
Symbol 20522 MovieClip [__Packages.com.google.youtube.videoclick.components.AnnotationsManager]
Symbol 20523 MovieClip [__Packages.com.google.youtube.videoclick.components.TimedUiComponent]
Symbol 20524 MovieClip [__Packages.com.google.youtube.videoclick.components.TimedUiComponentBase]
Symbol 20525 MovieClip [__Packages.com.google.youtube.videoclick.components.AnnotationDisplay]
Symbol 20526 MovieClip [__Packages.com.google.youtube.videoclick.components.SpeechBubbleAnnotationDisplay]
Symbol 20527 MovieClip [__Packages.com.google.youtube.videoclick.util.VideoclickUrlValidator]
Symbol 20528 MovieClip [__Packages.com.google.youtube.videoclick.beans.PauseAnnotation]
Symbol 20529 MovieClip [__Packages.com.google.youtube.players.VideoData]
Symbol 20530 MovieClip [__Packages.com.google.youtube.players.VideoLoader]
Symbol 20531 MovieClip [__Packages.com.google.youtube.videoclick.components.PauseAnnotationDisplay]
Symbol 20532 MovieClip [__Packages.com.google.youtube.event.VideoLoaderEvent]
Symbol 20533 MovieClip [__Packages.com.google.youtube.videoclick.util.TrackUtil]
Symbol 20534 MovieClip [__Packages.com.google.utils.Url]
Symbol 20535 MovieClip [__Packages.com.google.youtube.videoclick.beans.Text]
Symbol 20536 MovieClip [__Packages.com.google.youtube.players.SoundController]
Symbol 20537 MovieClip [__Packages.com.google.youtube.ui.IButton]
Symbol 20538 MovieClip [__Packages.com.google.youtube.videoclick.beans.SpeechBubbleAnnotation]
Symbol 20539 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModuleMediator]
Symbol 20540 MovieClip [__Packages.com.google.youtube.videoclick.beans.Region]
Symbol 20541 MovieClip [__Packages.com.google.youtube.videoclick.beans.DisplayPosition]
Symbol 20542 MovieClip [__Packages.com.google.youtube.videoclick.backendadapters.ServerErrorsDetector]
Symbol 20543 MovieClip [__Packages.com.google.youtube.videoclick.backendadapters.AnnotationsLoader]
Symbol 20544 MovieClip [__Packages.com.google.youtube.videoclick.components.EventDisplay]
Symbol 20545 MovieClip [__Packages.com.google.youtube.players.modules.ModuleDescriptor]
Symbol 20546 MovieClip [__Packages.com.google.youtube.event.UIEvent]
Symbol 20547 MovieClip [__Packages.com.google.youtube.videoclick.beans.Event]
Symbol 20548 MovieClip [__Packages.com.google.youtube.players.CrossDomainer]
Symbol 20549 MovieClip [__Packages.com.google.youtube.videoclick.components.SegmentEvent]
Symbol 20550 MovieClip [__Packages.com.google.youtube.data.XMLData]
Symbol 20551 MovieClip [__Packages.com.google.youtube.players.modules.IPlayerModuleAdapter]
Symbol 20552 MovieClip [__Packages.com.google.youtube.videoclick.beans.DisplayCoordinatesUtil]
Symbol 20553 MovieClip [__Packages.com.google.youtube.event.SoundEvent]
Symbol 20554 MovieClip [__Packages.com.google.youtube.event.GenericButtonEvent]
Symbol 20555 MovieClip [__Packages.com.google.youtube.videoclick.beans.EventsList]
Symbol 20556 MovieClip [__Packages.com.google.youtube.videoclick.players.VideoPlayerPlaybackController]
Symbol 20557 MovieClip [__Packages.com.google.youtube.videoclick.viewer.IvViewerModule]
Symbol 20558 MovieClip [__Packages.com.google.youtube.videoclick.VideoclickConfig]
Symbol 20559 MovieClip [__Packages.com.google.youtube.videoclick.backendadapters.NetworkSecurityManager]
Symbol 20560 MovieClip [__Packages.com.google.youtube.util.MouseActivity]
Symbol 20561 MovieClip [__Packages.com.google.youtube.players.modules.ModuleStatus]
Symbol 20562 MovieClip [__Packages.com.google.youtube.event.VideoPlayerEvent]
Symbol 20563 MovieClip [__Packages.com.google.youtube.util.Drawing]
Symbol 20564 MovieClip [__Packages.com.google.youtube.videoclick.components.PopupAnnotationDisplay]
Symbol 20565 MovieClip [__Packages.com.google.youtube.util.IMessages]
Symbol 20566 MovieClip [__Packages.com.google.youtube.util.PlayerCapabilities]
Symbol 20567 MovieClip [__Packages.com.google.youtube.videoclick.beans.TimePoint]
Symbol 20568 MovieClip [__Packages.com.google.youtube.players.modules.ModuleConfigData]
Symbol 20569 MovieClip [__Packages.com.google.utils.UrlValidator]
Symbol 20570 MovieClip [__Packages.com.google.youtube.videoclick.players.VideoPlayerEventsHandler]
Symbol 20571 MovieClip [__Packages.com.google.youtube.videoclick.beans.MovingRegion]
Symbol 20572 MovieClip [__Packages.com.google.youtube.videoclick.components.SegmentDisplay]
Symbol 20573 MovieClip [__Packages.com.google.youtube.ui.BaseButton]
Symbol 20574 MovieClip [__Packages.com.google.youtube.videoclick.beans.HighlightAnnotation]
Symbol 20575 MovieClip [__Packages.com.google.youtube.logging.YouTubeStatsLogger]
Symbol 20576 MovieClip [__Packages.com.google.youtube.videoclick.components.HighlightAnnotationDisplay]
Symbol 20577 MovieClip [__Packages.com.google.geom.Rect]
Symbol 20578 MovieClip [__Packages.com.google.youtube.videoclick.viewer.ModuleMainRelease]
Symbol 20579 MovieClip [__Packages.com.google.youtube.ui.CompoundButton]
Symbol 20580 MovieClip [__Packages.com.google.youtube.util.FrameWaiter]
Symbol 20581 MovieClip [__Packages.com.google.youtube.videoclick.components.UrlDisplay]
Symbol 20582 MovieClip [__Packages.com.google.utils.ImageLoader]
Symbol 20583 MovieClip [__Packages.com.google.youtube.videoclick.util.DrawingUtil]
Symbol 20584 MovieClip [__Packages.mx.transitions.easing.None]
Symbol 20585 MovieClip [__Packages.com.google.youtube.event.DataEvent]
Symbol 20586 MovieClip [__Packages.com.google.youtube.videoclick.beans.AnnotationsList]
Symbol 20587 MovieClip [__Packages.com.google.youtube.util.PlayerVersion]
Symbol 20588 MovieClip [__Packages.com.google.youtube.videoclick.util.PlaybackTrackingManager]

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "profile"
ExportAssets (56)Timeline Frame 1Symbol 4 as "profile_over"
ExportAssets (56)Timeline Frame 1Symbol 7 as "video"
ExportAssets (56)Timeline Frame 1Symbol 10 as "video_over"
ExportAssets (56)Timeline Frame 1Symbol 13 as "external"
ExportAssets (56)Timeline Frame 1Symbol 16 as "external_over"
ExportAssets (56)Timeline Frame 1Symbol 19 as "link_search"
ExportAssets (56)Timeline Frame 1Symbol 22 as "link_search_over"
ExportAssets (56)Timeline Frame 1Symbol 25 as "link_profile"
ExportAssets (56)Timeline Frame 1Symbol 28 as "link_profile_over"
ExportAssets (56)Timeline Frame 1Symbol 31 as "link_group"
ExportAssets (56)Timeline Frame 1Symbol 34 as "link_group_over"
ExportAssets (56)Timeline Frame 1Symbol 37 as "link_upload"
ExportAssets (56)Timeline Frame 1Symbol 40 as "link_upload_over"
ExportAssets (56)Timeline Frame 1Symbol 43 as "link_playlist"
ExportAssets (56)Timeline Frame 1Symbol 46 as "link_playlist_over"
ExportAssets (56)Timeline Frame 1Symbol 49 as "link_compose"
ExportAssets (56)Timeline Frame 1Symbol 52 as "link_compose_over"
ExportAssets (56)Timeline Frame 1Symbol 20480 as "__Packages.com.gs.TweenLite"
ExportAssets (56)Timeline Frame 1Symbol 20481 as "__Packages.ArrayParam"
ExportAssets (56)Timeline Frame 1Symbol 20482 as "__Packages.com.google.youtube.event.ModuleEvent"
ExportAssets (56)Timeline Frame 1Symbol 20483 as "__Packages.com.google.youtube.IBroadcaster"
ExportAssets (56)Timeline Frame 1Symbol 20484 as "__Packages.com.google.youtube.AbstractBroadcaster"
ExportAssets (56)Timeline Frame 1Symbol 20485 as "__Packages.com.google.youtube.players.PlayerConfigData"
ExportAssets (56)Timeline Frame 1Symbol 20486 as "__Packages.com.google.youtube.videoclick.beans.IdedList"
ExportAssets (56)Timeline Frame 1Symbol 20487 as "__Packages.com.google.youtube.videoclick.beans.DirtyBitElementsList"
ExportAssets (56)Timeline Frame 1Symbol 20488 as "__Packages.com.google.youtube.videoclick.beans.SegmentsList"
ExportAssets (56)Timeline Frame 1Symbol 20489 as "__Packages.com.google.youtube.players.IVideoPlayer"
ExportAssets (56)Timeline Frame 1Symbol 20490 as "__Packages.com.google.youtube.videoclick.beans.DirtyBitSupporter"
ExportAssets (56)Timeline Frame 1Symbol 20491 as "__Packages.com.google.youtube.videoclick.beans.XmlSerializationSupporter"
ExportAssets (56)Timeline Frame 1Symbol 20492 as "__Packages.com.google.youtube.videoclick.beans.ServerDataAware"
ExportAssets (56)Timeline Frame 1Symbol 20493 as "__Packages.com.google.youtube.videoclick.beans.Segment"
ExportAssets (56)Timeline Frame 1Symbol 20494 as "__Packages.com.google.youtube.AbstractElement"
ExportAssets (56)Timeline Frame 1Symbol 20495 as "__Packages.com.google.youtube.players.modules.IPlayerModule"
ExportAssets (56)Timeline Frame 1Symbol 20496 as "__Packages.com.google.youtube.players.modules.base.BasePlayerModule"
ExportAssets (56)Timeline Frame 1Symbol 20497 as "__Packages.com.google.youtube.players.IPlayerController"
ExportAssets (56)Timeline Frame 1Symbol 20498 as "__Packages.com.google.youtube.videoclick.components.ElementsListBase"
ExportAssets (56)Timeline Frame 1Symbol 20499 as "__Packages.com.google.chianti.event.EventBroadcaster"
ExportAssets (56)Timeline Frame 1Symbol 20500 as "__Packages.com.google.youtube.data.RestRequest"
ExportAssets (56)Timeline Frame 1Symbol 20501 as "__Packages.com.google.youtube.videoclick.beans.SourcePoint"
ExportAssets (56)Timeline Frame 1Symbol 20502 as "__Packages.com.google.youtube.videoclick.components.EventsListDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20503 as "__Packages.com.google.youtube.players.modules.IPlayerModuleDescriptor"
ExportAssets (56)Timeline Frame 1Symbol 20504 as "__Packages.com.google.youtube.players.modules.ISubmenu"
ExportAssets (56)Timeline Frame 1Symbol 20505 as "__Packages.com.google.youtube.players.VideoPlayer"
ExportAssets (56)Timeline Frame 1Symbol 20506 as "__Packages.com.google.youtube.data.XMLDataNode"
ExportAssets (56)Timeline Frame 1Symbol 20507 as "__Packages.com.google.chianti.event.EventDelegate"
ExportAssets (56)Timeline Frame 1Symbol 20508 as "__Packages.com.google.youtube.videoclick.components.PauseManager"
ExportAssets (56)Timeline Frame 1Symbol 20509 as "__Packages.mx.transitions.easing.Back"
ExportAssets (56)Timeline Frame 1Symbol 20510 as "__Packages.com.google.youtube.players.modules.ISubmenuObservable"
ExportAssets (56)Timeline Frame 1Symbol 20511 as "__Packages.com.google.youtube.videoclick.beans.Url"
ExportAssets (56)Timeline Frame 1Symbol 20512 as "__Packages.com.google.utils.DownloadTimer"
ExportAssets (56)Timeline Frame 1Symbol 20513 as "__Packages.com.google.utils.StringUtils"
ExportAssets (56)Timeline Frame 1Symbol 20514 as "__Packages.com.google.utils.UrlConstructor"
ExportAssets (56)Timeline Frame 1Symbol 20515 as "__Packages.com.google.utils.SecurityUtils"
ExportAssets (56)Timeline Frame 1Symbol 20516 as "__Packages.com.google.utils.EventReporter"
ExportAssets (56)Timeline Frame 1Symbol 20517 as "__Packages.com.google.youtube.videoclick.beans.Annotation"
ExportAssets (56)Timeline Frame 1Symbol 20518 as "__Packages.com.google.youtube.videoclick.beans.PopupAnnotation"
ExportAssets (56)Timeline Frame 1Symbol 20519 as "__Packages.com.google.utils.VideoStats"
ExportAssets (56)Timeline Frame 1Symbol 20520 as "__Packages.com.google.youtube.videoclick.util.TimeoutUtil"
ExportAssets (56)Timeline Frame 1Symbol 20521 as "__Packages.com.google.webutil.url.YouTubeUtils"
ExportAssets (56)Timeline Frame 1Symbol 20522 as "__Packages.com.google.youtube.videoclick.components.AnnotationsManager"
ExportAssets (56)Timeline Frame 1Symbol 20523 as "__Packages.com.google.youtube.videoclick.components.TimedUiComponent"
ExportAssets (56)Timeline Frame 1Symbol 20524 as "__Packages.com.google.youtube.videoclick.components.TimedUiComponentBase"
ExportAssets (56)Timeline Frame 1Symbol 20525 as "__Packages.com.google.youtube.videoclick.components.AnnotationDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20526 as "__Packages.com.google.youtube.videoclick.components.SpeechBubbleAnnotationDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20527 as "__Packages.com.google.youtube.videoclick.util.VideoclickUrlValidator"
ExportAssets (56)Timeline Frame 1Symbol 20528 as "__Packages.com.google.youtube.videoclick.beans.PauseAnnotation"
ExportAssets (56)Timeline Frame 1Symbol 20529 as "__Packages.com.google.youtube.players.VideoData"
ExportAssets (56)Timeline Frame 1Symbol 20530 as "__Packages.com.google.youtube.players.VideoLoader"
ExportAssets (56)Timeline Frame 1Symbol 20531 as "__Packages.com.google.youtube.videoclick.components.PauseAnnotationDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20532 as "__Packages.com.google.youtube.event.VideoLoaderEvent"
ExportAssets (56)Timeline Frame 1Symbol 20533 as "__Packages.com.google.youtube.videoclick.util.TrackUtil"
ExportAssets (56)Timeline Frame 1Symbol 20534 as "__Packages.com.google.utils.Url"
ExportAssets (56)Timeline Frame 1Symbol 20535 as "__Packages.com.google.youtube.videoclick.beans.Text"
ExportAssets (56)Timeline Frame 1Symbol 20536 as "__Packages.com.google.youtube.players.SoundController"
ExportAssets (56)Timeline Frame 1Symbol 20537 as "__Packages.com.google.youtube.ui.IButton"
ExportAssets (56)Timeline Frame 1Symbol 20538 as "__Packages.com.google.youtube.videoclick.beans.SpeechBubbleAnnotation"
ExportAssets (56)Timeline Frame 1Symbol 20539 as "__Packages.com.google.youtube.players.modules.IPlayerModuleMediator"
ExportAssets (56)Timeline Frame 1Symbol 20540 as "__Packages.com.google.youtube.videoclick.beans.Region"
ExportAssets (56)Timeline Frame 1Symbol 20541 as "__Packages.com.google.youtube.videoclick.beans.DisplayPosition"
ExportAssets (56)Timeline Frame 1Symbol 20542 as "__Packages.com.google.youtube.videoclick.backendadapters.ServerErrorsDetector"
ExportAssets (56)Timeline Frame 1Symbol 20543 as "__Packages.com.google.youtube.videoclick.backendadapters.AnnotationsLoader"
ExportAssets (56)Timeline Frame 1Symbol 20544 as "__Packages.com.google.youtube.videoclick.components.EventDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20545 as "__Packages.com.google.youtube.players.modules.ModuleDescriptor"
ExportAssets (56)Timeline Frame 1Symbol 20546 as "__Packages.com.google.youtube.event.UIEvent"
ExportAssets (56)Timeline Frame 1Symbol 20547 as "__Packages.com.google.youtube.videoclick.beans.Event"
ExportAssets (56)Timeline Frame 1Symbol 20548 as "__Packages.com.google.youtube.players.CrossDomainer"
ExportAssets (56)Timeline Frame 1Symbol 20549 as "__Packages.com.google.youtube.videoclick.components.SegmentEvent"
ExportAssets (56)Timeline Frame 1Symbol 20550 as "__Packages.com.google.youtube.data.XMLData"
ExportAssets (56)Timeline Frame 1Symbol 20551 as "__Packages.com.google.youtube.players.modules.IPlayerModuleAdapter"
ExportAssets (56)Timeline Frame 1Symbol 20552 as "__Packages.com.google.youtube.videoclick.beans.DisplayCoordinatesUtil"
ExportAssets (56)Timeline Frame 1Symbol 20553 as "__Packages.com.google.youtube.event.SoundEvent"
ExportAssets (56)Timeline Frame 1Symbol 20554 as "__Packages.com.google.youtube.event.GenericButtonEvent"
ExportAssets (56)Timeline Frame 1Symbol 20555 as "__Packages.com.google.youtube.videoclick.beans.EventsList"
ExportAssets (56)Timeline Frame 1Symbol 20556 as "__Packages.com.google.youtube.videoclick.players.VideoPlayerPlaybackController"
ExportAssets (56)Timeline Frame 1Symbol 20557 as "__Packages.com.google.youtube.videoclick.viewer.IvViewerModule"
ExportAssets (56)Timeline Frame 1Symbol 20558 as "__Packages.com.google.youtube.videoclick.VideoclickConfig"
ExportAssets (56)Timeline Frame 1Symbol 20559 as "__Packages.com.google.youtube.videoclick.backendadapters.NetworkSecurityManager"
ExportAssets (56)Timeline Frame 1Symbol 20560 as "__Packages.com.google.youtube.util.MouseActivity"
ExportAssets (56)Timeline Frame 1Symbol 20561 as "__Packages.com.google.youtube.players.modules.ModuleStatus"
ExportAssets (56)Timeline Frame 1Symbol 20562 as "__Packages.com.google.youtube.event.VideoPlayerEvent"
ExportAssets (56)Timeline Frame 1Symbol 20563 as "__Packages.com.google.youtube.util.Drawing"
ExportAssets (56)Timeline Frame 1Symbol 20564 as "__Packages.com.google.youtube.videoclick.components.PopupAnnotationDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20565 as "__Packages.com.google.youtube.util.IMessages"
ExportAssets (56)Timeline Frame 1Symbol 20566 as "__Packages.com.google.youtube.util.PlayerCapabilities"
ExportAssets (56)Timeline Frame 1Symbol 20567 as "__Packages.com.google.youtube.videoclick.beans.TimePoint"
ExportAssets (56)Timeline Frame 1Symbol 20568 as "__Packages.com.google.youtube.players.modules.ModuleConfigData"
ExportAssets (56)Timeline Frame 1Symbol 20569 as "__Packages.com.google.utils.UrlValidator"
ExportAssets (56)Timeline Frame 1Symbol 20570 as "__Packages.com.google.youtube.videoclick.players.VideoPlayerEventsHandler"
ExportAssets (56)Timeline Frame 1Symbol 20571 as "__Packages.com.google.youtube.videoclick.beans.MovingRegion"
ExportAssets (56)Timeline Frame 1Symbol 20572 as "__Packages.com.google.youtube.videoclick.components.SegmentDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20573 as "__Packages.com.google.youtube.ui.BaseButton"
ExportAssets (56)Timeline Frame 1Symbol 20574 as "__Packages.com.google.youtube.videoclick.beans.HighlightAnnotation"
ExportAssets (56)Timeline Frame 1Symbol 20575 as "__Packages.com.google.youtube.logging.YouTubeStatsLogger"
ExportAssets (56)Timeline Frame 1Symbol 20576 as "__Packages.com.google.youtube.videoclick.components.HighlightAnnotationDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20577 as "__Packages.com.google.geom.Rect"
ExportAssets (56)Timeline Frame 1Symbol 20578 as "__Packages.com.google.youtube.videoclick.viewer.ModuleMainRelease"
ExportAssets (56)Timeline Frame 1Symbol 20579 as "__Packages.com.google.youtube.ui.CompoundButton"
ExportAssets (56)Timeline Frame 1Symbol 20580 as "__Packages.com.google.youtube.util.FrameWaiter"
ExportAssets (56)Timeline Frame 1Symbol 20581 as "__Packages.com.google.youtube.videoclick.components.UrlDisplay"
ExportAssets (56)Timeline Frame 1Symbol 20582 as "__Packages.com.google.utils.ImageLoader"
ExportAssets (56)Timeline Frame 1Symbol 20583 as "__Packages.com.google.youtube.videoclick.util.DrawingUtil"
ExportAssets (56)Timeline Frame 1Symbol 20584 as "__Packages.mx.transitions.easing.None"
ExportAssets (56)Timeline Frame 1Symbol 20585 as "__Packages.com.google.youtube.event.DataEvent"
ExportAssets (56)Timeline Frame 1Symbol 20586 as "__Packages.com.google.youtube.videoclick.beans.AnnotationsList"
ExportAssets (56)Timeline Frame 1Symbol 20587 as "__Packages.com.google.youtube.util.PlayerVersion"
ExportAssets (56)Timeline Frame 1Symbol 20588 as "__Packages.com.google.youtube.videoclick.util.PlaybackTrackingManager"




http://swfchan.com/9/43437/info.shtml
Created: 9/5 -2019 12:54:14 Last modified: 9/5 -2019 12:54:14 Server time: 03/05 -2024 08:21:41