[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (3.49 KiB) ●
this.fps = 25;
this.videoWidth = 480;
this.videoHeight = 360;
function \u0004\u0005() {
Set("\x03", (1422 % 511) * 5);
return(\x03);
}
var \x01 = (-1670 + \x04\x05());
// swfAction0x03 // Unknown action
if (skin == undefined) {
player.skin = skin_mc;
} else {
player.skin = skin;
}
if (preloader == undefined) {
player.preloader = preloader_mc;
} else {
player.preloader = preloader;
}
if (effectFile != undefined) {
player.effectFile = effectFile;
}
if (firstFrame != undefined) {
player.firstFrame = firstFrame;
}
if (videoFile == undefined) {
player.videoFile = "ECV_00002___CWCki.$$$.flv";
} else {
player.videoFile = videoFile;
}
if (aspectRatio == undefined) {
player.aspectRatio = 1.33333333333333;
} else {
player.aspectRatio = aspectRatio;
}
if (skinAutoHide == undefined) {
player.skinAutoHide = true;
} else {
player.skinAutoHide = skinAutoHide;
}
if (skinHideDelay == undefined) {
player.skinHideDelay = 1;
} else {
player.skinHideDelay = skinHideDelay;
}
if (mouseAutoHide == undefined) {
player.mouseAutoHide = false;
} else {
player.mouseAutoHide = mouseAutoHide;
}
if (autoResize == undefined) {
player.autoResize = true;
} else {
player.autoResize = autoResize;
}
if (maintainAspectRatio == undefined) {
player.maintainAspectRatio = true;
} else {
player.maintainAspectRatio = maintainAspectRatio;
}
if (allowBigPlayButton == undefined) {
player.allowBigPlayButton = false;
} else {
player.allowBigPlayButton = allowBigPlayButton;
}
if (paneColor == undefined) {
player.paneColor = 536870911 /* 0x1FFFFFFF */;
} else {
player.paneColor = paneColor;
}
if (minWidth == undefined) {
player.minWidth = 1;
} else {
player.minWidth = minWidth;
}
if (minHeight == undefined) {
player.minHeight = 1;
} else {
player.minHeight = minHeight;
}
if (autoLoad == undefined) {
player.autoLoad = true;
} else {
player.autoLoad = autoLoad;
}
if (autoPlay == undefined) {
player.autoPlay = true;
} else {
player.autoPlay = autoPlay;
}
if (loopCount == undefined) {
player.loopCount = -1;
} else {
player.loopCount = loopCount;
}
if (smoothVideo == undefined) {
player.smoothVideo = true;
} else {
player.smoothVideo = smoothVideo;
}
if (bufferTime == undefined) {
player.bufferTime = 15;
} else {
player.bufferTime = bufferTime;
}
if (unloadOnStop == undefined) {
player.unloadOnStop = false;
} else {
player.unloadOnStop = unloadOnStop;
}
if (showFirstFrameWhenStop == undefined) {
player.showFirstFrameWhenStop = false;
} else {
player.showFirstFrameWhenStop = showFirstFrameWhenStop;
}
if (mute == undefined) {
player.mute = false;
} else {
player.mute = mute;
}
if (volume == undefined) {
player.volume = 100;
} else {
player.volume = volume;
}
if (videoLinkTarget == undefined) {
player.videoLinkTarget = "_blank";
} else {
player.videoLinkTarget = videoLinkTarget;
}
if (videoLink == undefined) {
player.videoLink = "";
} else {
player.videoLink = videoLink;
}
if (endURLTarget == undefined) {
player.endURLTarget = "_blank";
} else {
player.endURLTarget = endURLTarget;
}
if (endURL == undefined) {
player.endURL = "";
} else {
player.endURL = endURL;
}
if (onPlayURL == undefined) {
player.onPlayURL = "";
} else {
player.onPlayURL = onPlayURL;
}
if (movieId == undefined) {
player.movieId = "";
} else {
player.movieId = movieId;
}
if (eventHandler == undefined) {
player.eventHandler = "";
} else {
player.eventHandler = eventHandler;
}
Symbol 10 MovieClip [__Packages.SkinInfo] Frame 0 (3.54 KiB) ●
class SkinInfo
{
var _items, _minWidth, _minHeight, _allowSkinAutoHide;
function SkinInfo (profiles) {
_items = profiles[0].skinItems;
_minWidth = profiles[0].minWidth;
_minHeight = profiles[0].minHeight;
_allowSkinAutoHide = profiles[0].allowSkinAutoHide;
if (_minWidth == undefined) {
_minWidth = 0;
}
if (_minHeight == undefined) {
_minHeight = 0;
}
if ((_allowSkinAutoHide = undefined)) {
_allowSkinAutoHide = true;
}
if (_root.disableAPI != "yes") {
flash.external.ExternalInterface.addCallback("GetSkinInfo", this, GetSkinInfo);
}
}
function GetSkinInfo(w, h) {
var _local2 = calcVideoRect(w + 1024, h + 1024);
if (_local2 == undefined) {
_local2 = new Object();
_local2.x = 0;
_local2.y = 0;
_local2.width = w;
_local2.height = h;
_local2.frameWidth = w;
_local2.frameHeight = hl;
} else {
if (_local2.width > w) {
_local2.frameWidth = (w + 1024) - (_local2.width - w);
} else {
_local2.frameWidth = w;
}
if (_local2.height > h) {
_local2.frameHeight = (h + 1024) - (_local2.height - h);
} else {
_local2.frameHeight = h;
}
w = _local2.frameWidth;
h = _local2.frameHeight;
_local2 = calcVideoRect(w, h);
_local2.frameWidth = w;
_local2.frameHeight = h;
}
_local2.minWidth = _minWidth;
_local2.minHeight = _minHeight;
_local2.frameWidth = Math.max(_local2.frameWidth, _minWidth);
_local2.frameHeight = Math.max(_local2.frameHeight, _minHeight);
_local2.allowSkinAutoHide = _allowSkinAutoHide;
return(_local2);
}
function calcVideoRect(w, h) {
var _local13;
var _local12;
var _local5;
var _local4;
_local13 = 0;
_local12 = 0;
_local5 = 0;
_local4 = 0;
var _local3 = new Array();
var _local2;
var _local9 = "";
_local2 = 0;
while (_local2 < _items.length) {
if (_items[_local2].itemType == "screen") {
_local3.push(_items[_local2]);
break;
}
_local2++;
}
if (_local3.length == 0) {
return(undefined);
}
var _local6 = 0;
do {
if (!((_local3[_local6].parent != undefined) && (_local3[_local6].parent != "root"))) {
break;
}
_local9 = _local3[_local6].parent;
_local2 = 0;
while (_local2 < _items.length) {
if (_items[_local2].name == _local9) {
_local6++;
_local3[_local6] = _items[_local2];
break;
}
_local2++;
}
} while (_local2 != _items.length);
_local2 = _local6;
while (_local2 >= 0) {
if (_local3[_local2].xAlign == 1) {
_local5 = _local3[_local2].x + (w / 2);
_local13 = _local13 + _local5;
} else if (_local3[_local2].xAlign == 2) {
_local5 = _local3[_local2].x + w;
_local13 = _local13 + _local5;
} else {
_local5 = _local3[_local2].x;
_local13 = _local13 + _local5;
}
if (_local3[_local2].yAlign == 1) {
_local4 = _local3[_local2].y + (h / 2);
_local12 = _local12 + _local4;
} else if (_local3[_local2].yAlign == 2) {
_local4 = _local3[_local2].y + h;
_local12 = _local12 + _local4;
} else {
_local4 = _local3[_local2].y;
_local12 = _local12 + _local4;
}
if (_local3[_local2].rightSpace != undefined) {
w = (w - _local3[_local2].rightSpace) - _local5;
} else {
w = _local3[_local2].width;
}
if (_local3[_local2].bottomSpace != undefined) {
h = (h - _local3[_local2].bottomSpace) - _local4;
} else {
h = _local3[_local2].height;
}
_local2--;
}
return({x:_local13, y:_local12, width:w, height:h});
}
}
Symbol 2 MovieClip Frame 1 (798 B)
var profiles = new Array();
var skinItems0 = new Array();
var iIndex = 0;
skinItems0[iIndex++] = {itemType:"screen", name:"screen", skin:screen_mc, x:0, y:0, xAlign:0, width:200, height:200, rightSpace:0, bottomSpace:0};
skinItems0[iIndex++] = {itemType:"big_play", skin:big_play_mc, x:-75, y:-100, xAlign:1, yAlign:1, width:150, height:150};
profiles[0] = {name:"normal", skinItems:skinItems0};
iIndex = 0;
var skinItems1 = new Array();
skinItems1[iIndex++] = {itemType:"screen", skin:screen_mc, x:0, y:0, xAlign:0, width:200, height:200, rightSpace:0, bottomSpace:0};
skinItems1[iIndex++] = {itemType:"big_play", skin:big_play_mc, x:-75, y:-100, xAlign:1, yAlign:1, width:150, height:150};
profiles[1] = {name:"fullscreen", skinItems:skinItems1};
var skinObj = new SkinInfo(profiles);
Symbol 16 MovieClip [__Packages.MPlayer] Frame 0 (171 B)
#initclip
function \u0004\u0005() {
Set("\x03", (2716 % 511) * 5);
return(\x03);
}
var \x01 = (-670 + \x04\x05());
// swfAction0x03 // Unknown action
#endinitclip
Symbol 17 MovieClip [__Packages.SkinManager] Frame 0 (171 B)
#initclip
function \u0004\u0005() {
Set("\x03", (2602 % 511) * 5);
return(\x03);
}
var \x01 = (-124 + \x04\x05());
// swfAction0x03 // Unknown action
#endinitclip
Symbol 18 MovieClip [__Packages.SkinElm] Frame 0 (169 B)
#initclip
function \u0004\u0005() {
Set("\x03", (613 % 511) * 5);
return(\x03);
}
var \x01 = (153 + \x04\x05());
// swfAction0x03 // Unknown action
#endinitclip
Symbol 19 MovieClip [__Packages.MXPlayerUtils] Frame 0 (172 B)
#initclip
function \u0004\u0005() {
Set("\x03", (2384 % 511) * 5);
return(\x03);
}
var \x01 = (-1305 + \x04\x05());
// swfAction0x03 // Unknown action
#endinitclip
Symbol 20 MovieClip [__Packages.mx.utils.Delegate] Frame 0 (172 B)
#initclip
function \u0004\u0005() {
Set("\x03", (1849 % 511) * 5);
return(\x03);
}
var \x01 = (-1021 + \x04\x05());
// swfAction0x03 // Unknown action
#endinitclip
Symbol 21 MovieClip [__Packages.ProcessControl] Frame 0 (8 B)
!!!ERROR
Symbol 22 MovieClip [__Packages.DualStateButton] Frame 0 (8 B)
!!!ERROR
Symbol 23 MovieClip [__Packages.MuteControl] Frame 0 (8 B)
!!!ERROR
Symbol 24 MovieClip [__Packages.VolumeControl] Frame 0 (8 B)
!!!ERROR
Symbol 25 MovieClip [__Packages.MaskControl] Frame 0 (8 B)
!!!ERROR
Symbol 26 MovieClip [__Packages.TimeControl] Frame 0 (8 B)
!!!ERROR
Symbol 27 MovieClip [__Packages.SoundEx] Frame 0 (8 B)
!!!ERROR
Symbol 28 MovieClip [__Packages.EventPassThru] Frame 0 (8 B)
!!!ERROR
Symbol 29 MovieClip [__Packages.MFLVPlayback] Frame 0 (8 B)
!!!ERROR
Symbol 30 MovieClip [__Packages.MEFLVPlayback] Frame 0 (8 B)
!!!ERROR
Symbol 43 MovieClip Frame 1 (15 B)
pause = false;
Symbol 43 MovieClip Frame 30 (17 B)
gotoAndPlay (1);
Symbol 43 MovieClip Frame 31 (23 B)
pause = true;
stop();
Symbol 32 MovieClip Frame 1 (2.49 KiB) ●
function InstallPreloader() {
_parent.player.addListener(this);
}
function PercentText(p, n) {
if (isNaN(p)) {
return("N/A");
}
var _local1 = "";
var _local2;
if (int(p) == 0) {
_local1 = "0";
} else {
_local1 = _local1 + int(p).toString();
while (_local1.length < 2) {
_local1 = "0" + _local1;
}
}
if ((n != 0) && (n != undefined)) {
_local2 = (p - int(p)).toString();
_local2 = _local2.slice(2);
while (_local2.length < n) {
_local2 = _local2 + "0";
}
_local2 = _local2.substr(0, n);
_local1 = _local1 + ("." + _local2);
}
return(_local1 + "%");
}
function updateProgress() {
if (!_preloaderInstalled) {
InstallPreloader();
_preloaderInstalled = true;
onSizeChanged();
}
var _local2 = _parent.player.MGetVideoInfo();
var _local3 = preloader_bar.percent_bar;
if (_local2.bytesLoaded != undefined) {
_local3.gotoAndStop(1 + int((_local2.bytesLoaded / _local2.bytesTotal) * (_local3._totalframes - 1)));
} else {
_local3.gotoAndStop(1);
}
preloader_bar.percent_bar.percent.text = PercentText((100 * _local2.bytesLoaded) / _local2.bytesTotal);
if ((_local2.bytesLoaded != undefined) && (_local2.bytesLoaded >= _local2.bytesTotal)) {
if (!preloader_bar.loading.pause) {
preloader_bar.loading.gotoAndStop("finished");
}
} else if (preloader_bar.loading.pause) {
preloader_bar.loading.gotoAndPlay("loading");
}
}
var _preloaderInstalled = false;
var oXscale = preloader_bar._xscale;
var oYscale = preloader_bar._yscale;
var fullBarWidth = 417;
var fullBarHeight = 112;
var HMargin = 20;
var VMargin = 20;
this._xscale = 100;
this._yscale = 100;
onSizeChanged = function () {
var _local2 = _parent.player.MGetPlayerInfo();
preloader_bar._x = _local2.width / 2;
preloader_bar._y = _local2.height / 2;
preloader_bar._xscale = oXscale;
preloader_bar._yscale = oYscale;
var _local3 = false;
if (_local2.width < (fullBarWidth + (2 * HMargin))) {
preloader_bar._width = Math.max(_local2.width - (2 * HMargin), 0);
preloader_bar._height = (preloader_bar._width * fullBarHeight) / fullBarWidth;
if (preloader_bar._height > (_local2.height - (2 * VMargin))) {
_local3 = true;
}
}
if (_local3 || (_local2.height < (fullBarHeight + (2 * VMargin)))) {
preloader_bar._height = Math.max(_local2.height - (2 * VMargin), 0);
preloader_bar._width = (preloader_bar._height * fullBarWidth) / fullBarHeight;
}
UpdateProgress();
};
this.onEnterFrame = updateProgress;