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

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

lolita_xxx.swf

This is the info page for
Flash #1922

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


ActionScript [AS1/AS2]
Frame 1
TemplateParams_Header_TITLE = "lolita_xxx"; TemplateParams_Header_DIRECTOR = "Director"; TemplateParams_Header_DESCRIPTION = "Movie beginning...\r\n"; TemplateParams_Tailer_DESCRIPTION = "Movie end...\r\n"; playerOpts = "showReplay*true*b||textReplay*Replay*s||playerAlign*bottom*s||playerOverMovie*true*b||playerAutoHide*true*b||hideDelay*5000*i||pauseAtFirstFrame*false*b||pauseAtLastFrame*false*b||scaleMode*stage*s||panelColor*undefined*e||buffertime*5*f||sndVolume*100*i||autoRewind*true*b||frameStart*2*i||frameEnd*1877*i||targetFPS*25*i||targetType*eflv*s||targetClip*this*e||totalWidth*640*i||totalHeight*480*i"; function FillOnListener(obj) { obj.arrListener = new Array(); obj.AddListener = function (l) { var _local2 = 0; _local2 = 0; while (_local2 < this.arrListener.length) { if (this.arrListener[_local2] == l) { return(undefined); } _local2++; } this.arrListener[this.arrListener.length] = l; }; obj.RemoveListener = function (l) { var _local2 = 0; _local2 = 0; while (_local2 < this.arrListener.length) { if (this.arrListener[_local2] == l) { this.arrListener.splice(_local2, 1); return(undefined); } _local2++; } }; obj.DispatchEvent = function (event_type, event_name, info) { var _local2 = 0; _local2 = 0; while (_local2 < this.arrListener.length) { if (this.arrListener[_local2].onEvent != undefined) { this.arrListener[_local2].onEvent(this, event_type, event_name, info); } _local2++; } }; } function CreateBaseCtrl(parent, skin_mc) { var _local2 = new Object(); if (parent == undefined) { _local2.parent_mc = undefined; } else { _local2.parent_mc = parent.skin_mc; } FillOnListener(_local2); _local2.parent = parent; _local2.skin_mc = skin_mc; _local2.xachor = 0; _local2.yachor = 0; _local2.x = 0; _local2.y = 0; _local2.rx = 0; _local2.ry = 0; _local2.width = 0; _local2.height = 0; _local2.children = new Array(); _local2.enabled = true; _local2.visible = true; if (parent != undefined) { parent.addControl(_local2); } _local2.UpdateControlPos = function () { if (this.parent == undefined) { this.rx = this.x; this.ry = this.y; if (this.onSizeChanged != undefined) { this.onSizeChanged(); } var _local2 = 0; _local2 = 0; while (_local2 < this.children.length) { this.children[_local2].UpdateControlPos(); _local2++; } return(undefined); } if ((this.leftBand != undefined) || (this.rightBand != undefined)) { this.xachor = 0; if (this.leftBand != undefined) { this.x = this.leftBand; } else { this.x = 0; } if (this.rightBand != undefined) { this.width = (this.parent.width - this.rightBand) - this.x; } else { this.width = this.parent.width - this.x; } } if ((this.topBand != undefined) || (this.bottomBand != undefined)) { this.yachor = 0; if (this.topBand != undefined) { this.y = this.topBand; } else { this.y = 0; } if (this.bottomBand != undefined) { this.height = (this.parent.height - this.bottomBand) - this.y; } else { this.height = this.parent.height - this.y; } } if (this.xachor == 0) { this.rx = this.x + this.parent.rx; } else if (this.xachor == 1) { this.rx = (this.parent.rx + this.parent.width) + this.x; } else if (this.xachor == 2) { this.rx = (this.parent.rx + this.x) + (this.parent.width / 2); } if (this.yachor == 0) { this.ry = this.y + this.parent.ry; } else if (this.yachor == 1) { this.ry = (this.parent.height + this.y) + this.parent.ry; } else if (this.yachor == 2) { this.ry = (this.parent.ry + (this.parent.height / 2)) + this.y; } if (this.onSizeChanged != undefined) { this.onSizeChanged(); } var _local2 = 0; _local2 = 0; while (_local2 < this.children.length) { this.children[_local2].UpdateControlPos(); _local2++; } }; _local2.SetAchor = function (xa, ya) { if (((xa == 0) || (xa == 1)) || (xa == 2)) { this.xachor = xa; } if (((ya == 0) || (ya == 1)) || (ya == 2)) { this.yachor = ya; } this.UpdateControlPos(); }; _local2.SetPosition = function (x, y, w, h) { this.x = x; this.y = y; this.width = w; this.height = h; this.UpdateControlPos(); }; _local2.SetBand = function (l, r, t, b) { this.leftBand = l; this.topBand = t; this.rightBand = r; this.bottomBand = b; this.UpdateControlPos(); }; _local2.addControl = function (c) { var _local2 = 0; _local2 = 0; while (_local2 < this.children.length) { if (this.children[_local2] == c) { return(undefined); } _local2++; } this.children[this.children.length] = c; }; _local2.RemoveFromParent = function (c) { if (this.parent == undefined) { return(undefined); } var _local2; _local2 = 0; while (_local2 < this.parent.children.length) { if (this.parent.children[_local2] == c) { this.parent.children.splice(_local2, 1); return(undefined); } _local2++; } }; _local2.SetVisible = function (bVisible) { this.visible = bVisible; if (this.onVisibleChanged != undefined) { this.onVisibleChanged(); } var _local2 = 0; _local2 = 0; while (_local2 < this.children.length) { this.children[_local2].onVisibleChanged(); _local2++; } }; _local2.SetEnabled = function (bEnabled) { this.enabled = bEnabled; if (this.onEnabledChanged != undefined) { this.onEnabledChanged(); } var _local2 = 0; _local2 = 0; while (_local2 < this.children.length) { this.children[_local2].onEnabledChanged(); _local2++; } }; _local2.CheckIfParentVisible = function () { var _local2 = this; while (_local2.parent != undefined) { if (!_local2.parent.visible) { return(false); } _local2 = _local2.parent; } return(true); }; _local2.CheckIfParentEnabled = function () { var _local2 = this; while (_local2.parent != undefined) { if (!_local2.parent.enabled) { return(false); } _local2 = _local2.parent; } return(true); }; _local2.Destroy = function () { this.onDestroy(); var _local2 = 0; _local2 = 0; while (_local2 < this.children.length) { this.children[_local2].Destroy(); _local2++; } RemoveFromParent(this); }; return(_local2); } function CreateButton(parent, skin_mc, name) { var _local2 = CreateBaseCtrl(parent, skin_mc); _local2.ctrl_type = "Button"; _local2.ctrl_name = name; _local2.skin_mc._x = 0; _local2.skin_mc._y = 0; skin_mc.button_mc._visible = false; _local2.button_mc = skin_mc.button_mc.duplicateMovieClip("button_" + name, skin_mc.getNextHighestDepth()); _local2.button = _local2.button_mc.button; _local2.button.externalObj = _local2; _local2.button_mc._visible = true; _local2.button.onPress = function () { var _local2 = this.externalObj; if ((!_local2.enabled) || (!_local2.CheckIfParentEnabled())) { return(undefined); } if (_local2.onPress != undefined) { _local2.onPress(); } }; _local2.button.onRelease = function () { var _local2 = this.externalObj; if (_local2.onRelease != undefined) { _local2.onRelease(); } }; _local2.onDestroy = function () { this.button_mc.removeMovieClip(); }; _local2.onSizeChanged = function () { this.button_mc._x = this.rx; this.button_mc._y = this.ry; this.button_mc._width = this.width; this.button_mc._height = this.height; }; _local2.onVisibleChanged = function () { if (this.visible && (this.CheckIfParentVisible())) { this.button_mc._visible = true; } else { this.button_mc._visible = false; } }; _local2.onEnabledChanged = function () { if (this.enabled && (this.CheckIfParentEnabled())) { this.button_mc.enabled = true; this.button_mc.button.enabled = true; this.button_mc.button.useHandCursor = true; } else { this.button_mc.enabled = false; this.button_mc.button.enabled = false; this.button_mc.button.useHandCursor = false; } }; return(_local2); } function CreateDualButton(parent, skin_mc, name) { var _local2 = CreateBaseCtrl(parent, skin_mc); _local2.ctrl_type = "DualButton"; _local2.ctrl_name = name; _local2.skin_mc._x = 0; _local2.skin_mc._y = 0; skin_mc.button_mc0._visible = false; skin_mc.button_mc1._visible = false; _local2.button_mc0 = skin_mc.button_mc0.duplicateMovieClip(("dualbutton" + name) + "0", skin_mc.getNextHighestDepth()); if (skin_mc.button_mc1 == undefined) { _local2.button_mc1 = skin_mc.button_mc0.duplicateMovieClip(("dualbutton" + name) + "1", skin_mc.getNextHighestDepth()); } else { _local2.button_mc1 = skin_mc.button_mc1.duplicateMovieClip(("dualbutton" + name) + "1", skin_mc.getNextHighestDepth()); } _local2.button0 = _local2.button_mc0.button; _local2.button1 = _local2.button_mc1.button; _local2.button0.externalObj = _local2; _local2.button1.externalObj = _local2; _local2.button_mc0._visible = true; _local2.button_mc1._visible = false; _local2.state = "on"; _local2.button0.onPress = function () { var _local2 = this.externalObj; if ((!_local2.enabled) || (!_local2.CheckIfParentEnabled())) { return(undefined); } if (_local2.state == "on") { _local2.state = "off"; } else { _local2.state = "on"; } _local2.UpdateUI(); if (_local2.onPress != undefined) { _local2.onPress(); } }; _local2.button1.onPress = _local2.button0.onPress; _local2.button0.onRelease = function () { if ((!o.enabled) || (!o.CheckIfParentEnabled())) { return(undefined); } var o = this.externalObj; if (o.onRelease != undefined) { o.onRelease(); } }; _local2.button1.onRelease = _local2.button0.onRelease; _local2.onSizeChanged = function () { this.button_mc0._x = this.rx; this.button_mc0._y = this.ry; this.button_mc0._width = this.width; this.button_mc0._height = this.height; this.button_mc1._x = this.rx; this.button_mc1._y = this.ry; this.button_mc1._width = this.width; this.button_mc1._height = this.height; }; _local2.UpdateUI = function () { if (this.visible && (this.CheckIfParentVisible())) { if (this.state == "on") { this.button_mc0._visible = true; this.button_mc1._visible = false; } else { this.button_mc0._visible = false; this.button_mc1._visible = true; } } else { this.button_mc0._visible = false; this.button_mc1._visible = false; } if (this.enabled && (this.CheckIfParentEnabled())) { this.button_mc0.button.enabled = true; this.button_mc1.button.enabled = true; } else { this.button_mc0.button.enabled = false; this.button_mc1.button.enabled = false; } }; _local2.onEnabledChanged = function () { this.UpdateUI(); }; _local2.onVisibleChanged = function () { this.UpdateUI(); }; _local2.onDestroy = function () { this.button_mc0.removeMovieClip(); this.button_mc1.removeMovieClip(); }; _local2.GetState = function () { return(this.state); }; _local2.SetState = function (s) { if (this.state == s) { return(undefined); } this.state = s; this.UpdateUI(); }; return(_local2); } function CreatePanel(parent, skin_mc, name) { var _local2 = CreateBaseCtrl(parent, skin_mc); _local2.ctrl_type = "Panel"; _local2.ctrl_name = name; skin_mc._x = 0; skin_mc._y = 0; skin_mc.panel_mc._visible = false; _local2.panel_mc = skin_mc.panel_mc.duplicateMovieClip("panel_" + name, skin_mc.getNextHighestDepth()); _local2.align = 0; _local2.panel_mc._visible = true; _local2.panel_mc.externalObj = _local2; _local2.onSizeChanged = function () { if (this.align == 0) { } else if (this.align == 1) { this.xachor = 0; this.yachor = 0; this.x = 0; this.y = 0; this.width = this.parent.width; } else if (this.align == 2) { this.xachor = 0; this.yachor = 0; this.x = this.parent.width - this.width; this.y = 0; this.height = this.parent.height; } else if (this.align == 3) { this.xachor = 0; this.yachor = 0; this.x = 0; this.y = this.parent.height - this.height; this.width = this.parent.width; } else if (this.align == 4) { this.xachor = 0; this.yachor = 0; this.x = 0; this.y = 0; this.height = this.parent.height; } this.panel_mc._x = this.rx; this.panel_mc._y = this.ry; this.panel_mc._width = this.width; this.panel_mc._height = this.height; }; _local2.SetAlign = function (nAlign) { this.align = nAlign; UpdateControlPos(); }; _local2.onVisibleChanged = function () { if (this.visible && (this.CheckIfParentVisible())) { this.panel_mc._visible = true; } else { this.panel_mc._visible = false; } }; _local2.onEnabledChanged = function () { if (this.enabled && (this.CheckIfParentEnabled())) { this.panel_mc.enabled = true; } else { this.panel_mc.enabled = false; } }; _local2.SetOnPress = function (pfn) { this.onPress = pfn; if (pfn == undefined) { this.panel_mc.onPress = undefined; } else { this.panel_mc.onPress = function () { this.externalObj.onPress(); }; } }; _local2.onDestroy = function () { this.panel_mc.removeMovieClip(); }; return(_local2); } function CreateSpin(parent, skin_mc, name) { var ctrl = CreateBaseCtrl(parent, skin_mc); ctrl.ctrl_type = "Spin"; ctrl.ctrl_name = name; skin_mc._x = 0; skin_mc._y = 0; ctrl.track = skin_mc.track.duplicateMovieClip("track_" + name, skin_mc.getNextHighestDepth()); if (skin_mc.right != undefined) { ctrl.right = skin_mc.right.duplicateMovieClip("right_" + name, skin_mc.getNextHighestDepth()); } if (skin_mc.load != undefined) { ctrl.load = skin_mc.load.duplicateMovieClip("load_" + name, skin_mc.getNextHighestDepth()); } if (ctrl.right != undefined) { ctrl.right_mask = skin_mc.createEmptyMovieClip("right_mask_" + name, skin_mc.getNextHighestDepth()); ctrl.right_mask.beginFill(255); ctrl.right_mask.lineStyle(0, 16711935, 100); with (ctrl.right_mask) { moveTo(0, 0); lineTo(100, 0); lineTo(100, 5); lineTo(0, 5); lineTo(0, 0); } ctrl.right_mask.endFill(); } if (skin_mc.left != undefined) { ctrl.left = skin_mc.left.duplicateMovieClip("left_" + name, skin_mc.getNextHighestDepth()); } ctrl.thumb = skin_mc.thumb.duplicateMovieClip("thumb_" + name, skin_mc.getNextHighestDepth()); skin_mc.thumb._visible = false; skin_mc.track._visible = false; skin_mc.left._visible = false; skin_mc.right._visible = false; skin_mc.load._visible = false; ctrl.left._visible = true; ctrl.load._visible = true; ctrl.right._visible = false; ctrl.bShowLeft = true; ctrl.bShowRight = false; ctrl.thumb.button.externalObj = ctrl; ctrl.tack.externalObj = ctrl; ctrl.Max = 10; ctrl.Min = 0; ctrl.Position = 0; ctrl.LoadPercent = 0; if (ctrl.right != undefined) { ctrl.right.setMask(ctrl.right_mask); } ctrl.thumb.button.onPress = function () { var _local2 = this.externalObj; if ((!_local2.enabled) || (!_local2.CheckIfParentEnabled())) { return(undefined); } var _local4 = _local2.track._x - (_local2.thumb._width / 2); var _local3 = (_local2.track._y + (_local2.track._height / 2)) - (_local2.thumb._height / 2); if (_local2.onDragStart != undefined) { _local2.onDragStart(); } _local2.timerDrag = setInterval(_local2.onDragInternal, 100, _local2); startDrag (_local2.thumb, false, _local4, _local3, _local4 + _local2.track._width, _local3); }; ctrl.thumb.button.onRelease = function () { var _local2 = this.externalObj; stopDrag(); clearInterval(_local2.timerDrag); if ((!_local2.enabled) || (!_local2.CheckIfParentEnabled())) { return(undefined); } _local2.UpdateDrag(_local2.thumb._x, _local2.thumb._y); if (_local2.onDragEnd != undefined) { _local2.onDragEnd(); } }; ctrl.thumb.button.onReleaseOutside = ctrl.thumb.button.onRelease; ctrl.onDragInternal = function (obj) { var _local2 = obj.Position; obj.Position = ((obj.Max - obj.Min) * ((obj.thumb._x + (obj.thumb._width / 2)) - obj.track._x)) / obj.track._width; obj.UpdateDrag(obj.thumb._x, obj.thumb._y); if (_local2 != obj.Position) { if (obj.onDrag != undefined) { obj.onDrag(); } } if (!obj.thumb.button.enabled) { obj.thumb.button.onRelease(); } }; ctrl.onSizeChanged = function () { this.track._x = this.rx + (this.thumb._width / 2); this.track._y = this.ry; this.track._width = this.width - this.thumb._width; this.track._height = this.height; this.SetPos(this.Position); }; ctrl.onEnabledChanged = function () { if (this.enabled && (this.CheckIfParentEnabled())) { this.thumb.button.enabled = true; } else { this.thumb.button.enabled = false; } }; ctrl.onVisibleChanged = function () { if (this.visible && (this.CheckIfParentVisible())) { this.thumb._visible = true; this.track._visible = true; this.left._visible = this.bShowLeft; this.right._visible = this.bShowRight; this.load._visible = true; } else { this.thumb._visible = false; this.track._visible = false; this.left._visible = false; this.right._visible = false; this.load._visible = false; } }; ctrl.onDestroy = function () { clearInterval(this.timerDrag); this.timerDrag = undefined; this.thumb.removeMovieClip(); this.right_mask.removeMovieClip(); this.track.removeMovieClip(); this.left.removeMovieClip(); this.right.removeMovieClip(); this.load.removeMovieClip(); }; ctrl.SetPos = function (nPos) { nPos = int(nPos); if (nPos < this.Min) { nPos = this.Min; } if (nPos > this.Max) { nPos = this.Max; } var _local4 = (this.track._x + (((nPos - this.Min) * this.track._width) / this.Max)) - (this.thumb._width / 2); var _local3 = (this.track._y + (this.track._height / 2)) - (this.thumb._height / 2); this.UpdateDrag(_local4, _local3); this.Position = nPos; }; ctrl.UpdateDrag = function (dx, dy) { var _local2; this.thumb._x = dx; this.thumb._y = dy; this.left._x = this.track._x; this.left._y = this.track._y; this.left._height = this.track._height; _local2 = (this.thumb._x + (this.thumb._width / 2)) - this.track._x; if (_local2 < 0) { _local2 = 0; } this.left._width = _local2; this.right_mask._x = this.thumb._x + (this.thumb._width / 2); this.right_mask._y = this.track._y; this.right_mask._height = this.track._height; _local2 = this.track._width - ((this.thumb._x + (this.thumb._width / 2)) - this.track._x); if (_local2 < 0) { _local2 = 0; } this.right_mask._width = _local2; this.right._x = this.thumb._x; this.right._y = this.track._y; this.right._height = this.track._height; this.load._x = this.track._x; this.load._y = this.track._y; this.load._height = this.track._height; this.load._width = this.LoadPercent * this.track._width; }; ctrl.SetMaxMin = function (nMin, nMax) { this.Min = nMin; this.Max = nMax; this.SetPos(this.Position); }; ctrl.SetLoadPercent = function (p) { this.LoadPercent = p; this.UpdateDrag(this.thumb._x, this.thumb._y); }; ctrl.ShowLeft = function (bVisible) { this.bShowLeft = bVisible; this.onVisibleChanged(); }; ctrl.ShowRight = function (bVisible) { this.bShowRight = bVisible; this.onVisibleChanged(); }; return(ctrl); } function CreateMovieClipList(mcs, fpss) { var _local2 = new Object(); _local2.mcs = mcs; _local2.fpss = fpss; _local2.time_ranges = new Array(); _local2.duration = 0; _local2.curMC = 0; _local2.bInitOK = false; _local2.onEnterFrame = function () { var _local2 = this.externalObj; if (!_local2.bInitOK) { return(undefined); } if (this._currentframe == 1) { if (_local2.curMC == 0) { _local2.onPlayStart(); } } if (this._currentframe == this._totalframes) { this.stop(); if (_local2.curMC == (_local2.mcs.length - 1)) { this.bIsPlaying = false; _local2.onPlayEnd(); } else { this.onEnterFrame = undefined; this._visible = false; _local2.curMC++; _local2.mcs[_local2.curMC].onEnterFrame = _local2.onEnterFrame; _local2.mcs[_local2.curMC]._visible = true; if (_local2.bIsPlaying) { _local2.mcs[_local2.curMC].gotoAndPlay(1); } else { _local2.mcs[_local2.curMC].gotoAndStop(1); } } } }; var _local3; _local3 = 0; while (_local3 < mcs.length) { mcs[_local3]._visible = false; mcs[_local3].externalObj = _local2; _local2.duration = _local2.duration + (mcs[_local3]._totalframes / fpss[_local3]); _local2.time_ranges[_local3] = _local2.duration; _local3++; } _local3 = 0; while (_local3 < mcs.length) { mcs[_local3].gotoAndStop(1); mcs[_local3].onEnterFrame = undefined; _local3++; } mcs[0].onEnterFrame = _local2.onEnterFrame; _local2.bInitOK = true; _local2.GetMCAt = function (t) { var _local2; _local2 = 0; while (_local2 < this.time_ranges.length) { if (t < this.time_ranges[_local2]) { return(_local2); } _local2++; } return(undefined); }; _local2.SetWH = function (w, h) { var _local2; _local2 = 0; while (_local2 < this.mcs.length) { this.mcs[_local2]._width = w; this.mcs[_local2]._height = h; _local2++; } }; _local2.SetXY = function (x, y) { var _local2; _local2 = 0; while (_local2 < this.mcs.length) { this.mcs[_local2]._x = x; this.mcs[_local2]._y = y; _local2++; } }; _local2.Play = function () { this.bIsPlaying = true; this.mcs[this.curMC].play(); }; _local2.Stop = function () { this.bIsPlaying = false; this.mcs[this.curMC].stop(); }; _local2.SetBufferTime = function (t) { var _local2; _local2 = 0; while (_local2 < this.mcs.length) { this.mcs[_local2]._soundbuftime = t; _local2++; } }; _local2.Seek = function (t) { var _local3 = this.GetMCAt(t); if (_local3 == undefined) { return(undefined); } this.mcs[this.curMC].stop(); this.mcs[this.curMC]._visible = false; this.mcs[this.curMC].onEnterFrame = undefined; this.curMC = _local3; t = this.time_ranges[_local3] - t; var _local2 = int(t * this.fpss[_local3]); if (_local2 <= 0) { _local2 = 0; } _local2 = this.mcs[this.curMC]._totalframes - _local2; if (_local2 <= 0) { _local2 = 1; } if (_local2 >= this.mcs[this.curMC]._totalframes) { _local2 = this.mcs[this.curMC]._totalframes; } this.mcs[this.curMC].onEnterFrame = this.onEnterFrame; this.mcs[this.curMC]._visible = true; if (this.bIsPlaying) { this.mcs[this.curMC].gotoAndPlay(_local2); } else { this.mcs[this.curMC].gotoAndStop(_local2); } }; _local2.GetTime = function () { return(this.time_ranges[this.curMC] - ((this.mcs[this.curMC]._totalframes - this.mcs[this.curMC]._currentframe) / this.fpss[this.curMC])); }; return(_local2); } function CreateSWFPlayback(mcs, fpss) { var _local2 = new Object(); FillOnListener(_local2); _local2.mcList = CreateMovieClipList(mcs, fpss); _local2.duration = _local2.mcList.duration; _local2.State = "stop"; _local2.mcList.externalObj = _local2; _local2.Open = function () { this.mcList.Stop(); this.mcList.Seek(0); }; _local2.Play = function () { this.mcList.Play(); this.State = "play"; if (this.tmrPlay != undefined) { clearInterval(this.tmrPlay); } this.tmrPlay = setInterval(this.onTimerPlay, 100, this); }; _local2.Pause = function () { this.mcList.Stop(); this.State = "pause"; if (this.tmrPlay != undefined) { clearInterval(this.tmrPlay); this.tmrPlay = undefined; } }; _local2.Stop = function () { this.mcList.Stop(); this.State = "stop"; if (this.tmrPlay != undefined) { clearInterval(this.tmrPlay); this.tmrPlay = undefined; } }; _local2.Seek = function (t) { this.mcList.Seek(t); }; _local2.GetState = function () { return(this.State); }; _local2.GetDuration = function () { return(this.duration); }; _local2.GetVideoWidth = function () { return(1); }; _local2.GetVideoHeight = function () { return(1); }; _local2.GetX = function () { return(this.mcList.mcs[0]._x); }; _local2.GetY = function () { return(this.mcList.mcs[0]._y); }; _local2.SetXY = function (x, y) { this.mcList.SetXY(x, y); }; _local2.GetWidth = function () { return(this.mcList.mcs[0]._width); }; _local2.GetHeight = function () { return(this.mcList.mcs[0]._height); }; _local2.SetWidth = function (w) { this.mcList.SetWH(w, -1); }; _local2.SetHeight = function (h) { this.mcList.SetWH(-1, h); }; _local2.GetTime = function () { return(this.mcList.GetTime()); }; _local2.SetBufferTime = function (t) { this.mcList.SetBufferTime(t); }; _local2.GetPercentage = function () { return(0); }; _local2.onTimerPlay = function (obj) { obj.DispatchEvent("SWFPB", "onPlaying", undefined); }; _local2.mcList.onPlayStart = function () { var _local2 = this.externalObj; if (!_local2.bOnPlayStartSent) { _local2.bOnPlayStartSent = true; _local2.DispatchEvent("SWFPB", "onPlayStart", undefined); } }; _local2.mcList.onPlayEnd = function () { var _local2 = this.externalObj; if (_local2.State == "play") { _local2.DispatchEvent("SWFPB", "onPlayEnd", undefined); } }; return(_local2); } function CreateEFLVPlayback(mc, fps, fstart, fend) { var _local2 = new Object(); FillOnListener(_local2); _local2.duration = ((fend - fstart) + 1) / fps; _local2.State = "stop"; _local2.mc = mc; _local2.mc.externalObj = _local2; _local2.fstart = fstart; _local2.fend = fend; _local2.fps = fps; _local2.bOnPlayStartSent = false; _local2.Open = function () { }; _local2.Close = function () { this.Stop(); }; _local2.Play = function () { this.mc.play(); this.State = "play"; if (this.tmrPlay != undefined) { clearInterval(this.tmrPlay); } this.tmrPlay = setInterval(this.onTimerPlay, 100, this); }; _local2.Pause = function () { this.mc.stop(); this.State = "pause"; if (this.tmrPlay != undefined) { clearInterval(this.tmrPlay); this.tmrPlay = undefined; } }; _local2.Stop = function () { this.mc.stop(); this.State = "stop"; if (this.tmrPlay != undefined) { clearInterval(this.tmrPlay); this.tmrPlay = undefined; } }; _local2.Seek = function (t) { var _local2 = int((t * this.fps) + this.fstart); if (_local2 < this.fstart) { _local2 = this.fstart; } if (_local2 > this.fend) { _local2 = this.fend; } if (this.State == "play") { this.mc.gotoAndPlay(_local2); } else { this.mc.gotoAndStop(_local2); } }; _local2.GetState = function () { return(this.State); }; _local2.GetDuration = function () { return(this.duration); }; _local2.GetVideoWidth = function () { return(1); }; _local2.GetVideoHeight = function () { return(1); }; _local2.GetX = function () { return(0); }; _local2.GetY = function () { return(0); }; _local2.SetXY = function (x, y) { }; _local2.GetWidth = function () { return(1); }; _local2.GetHeight = function () { return(1); }; _local2.SetWidth = function (w) { }; _local2.SetHeight = function (h) { }; _local2.GetTime = function () { var _local2 = this.mc._currentframe - this.fstart; if (_local2 < 0) { _local2 = 0; } if (_local2 > ((this.fend - this.fstart) + 1)) { _local2 = (this.fend - this.fstart) + 1; } return(_local2 / this.fps); }; _local2.SetBufferTime = function (t) { this.mc._soundbuftime = t; }; _local2.GetPercentage = function () { return((this.mc._framesloaded * 100) / this.mc._totalframes); }; _local2.onTimerPlay = function (obj) { obj.DispatchEvent("EFLVPB", "onPlaying", undefined); }; _local2.mc.onEnterFrame = function () { var _local2 = this.externalObj; if (this._currentframe == _local2.fstart) { _local2.onPlayStart(); } else if (this._currentframe >= _local2.fend) { _local2.onPlayEnd(); } }; _local2.onPlayStart = function () { if (!this.bOnPlayStartSent) { this.bOnPlayStartSent = true; this.DispatchEvent("EFLVPB", "onPlayStart", undefined); } }; _local2.onPlayEnd = function () { if (this.State == "play") { this.DispatchEvent("EFLVPB", "onPlayEnd", undefined); } }; return(_local2); } function CreateFLVPlayback(path, scr) { var _local2 = new Object(); FillOnListener(_local2); _local2.nc = new NetConnection(); _local2.nc.connect(null); _local2.ns = new NetStream(_local2.nc); _local2.ns.externalObj = _local2; _local2.videoScr = scr; _local2.width = undefined; _local2.height = undefined; _local2.duration = undefined; _local2.path = path; _local2.State = "stop"; _local2.Open = function () { if ((this.videoScr != undefined) || (this.videoScr != null)) { this.videoScr.attachVideo(this.ns); } this.ns.play(this.path); this.ns.pause(true); }; _local2.Close = function () { this.Stop(); this.ns.close(); this.videoScr.attachVideo(undefined); }; _local2.SetDeblocking = function (nLevel) { if (this.videoScr != undefined) { this.videoScr.deblocking = nLevel; } }; _local2.SetSmoothing = function (bSmooth) { if (this.videoScr != undefined) { this.videoScr.smoothing = bSmooth; } }; _local2.Play = function () { this.ns.pause(false); if (this.tmrPlay != undefined) { clearInterval(this.tmrPlay); } this.State = "play"; this.tmrPlay = setInterval(this.onTimerPlay, 100, this); }; _local2.Pause = function () { this.ns.pause(true); if (this.tmrPlay != undefined) { clearInterval(this.tmrPlay); this.tmrPlay = undefined; } this.State = "pause"; }; _local2.Stop = function () { this.Pause(); this.State = "stop"; }; _local2.Seek = function (t) { this.ns.seek(t); }; _local2.GetState = function () { return(this.State); }; _local2.GetDuration = function () { return(this.duration); }; _local2.GetVideoWidth = function () { return(this.width); }; _local2.SetWidth = function (w) { if (this.videoScr != undefined) { this.videoScr._width = w; } }; _local2.GetWidth = function () { if (this.videoScr != undefined) { return(this.videoScr._width); } }; _local2.GetHeight = function () { if (this.videoScr != undefined) { return(this.videoScr._height); } }; _local2.GetVideoHeight = function () { return(this.height); }; _local2.SetHeight = function (h) { if (this.videoScr != undefined) { this.videoScr._height = h; } }; _local2.GetX = function () { return(this.videoScr._x); }; _local2.GetY = function () { return(this.videoScr._y); }; _local2.SetXY = function (x, y) { this.videoScr._x = x; this.videoScr._y = y; }; _local2.GetTime = function () { return(this.ns.time); }; _local2.SetBufferTime = function (t) { this.ns.setBufferTime(t); }; _local2.GetPercentage = function () { if (this.ns.bytesTotal == 0) { return(0); } return((this.ns.bytesLoaded * 100) / this.ns.bytesTotal); }; _local2.onTimerPlay = function (obj) { obj.DispatchEvent("FLVPB", "onPlaying", undefined); }; _local2.ns.onMetaData = function (info) { this.externalObj.duration = info.duration; this.externalObj.width = info.width; this.externalObj.height = info.height; this.externalObj.DispatchEvent("FLVPB", "onMetaData", info); }; _local2.ns.onCuePoint = function (info) { this.externalObj.DispatchEvent("FLVPB", "onCuePoint", info); }; _local2.ns.onStatus = function (stat) { if (stat.code == "NetStream.Buffer.Empty") { this.externalObj.DispatchEvent("FLVPB", "onBufferEmpty", undefined); } else if (stat.code == "NetStream.Buffer.Full") { this.externalObj.DispatchEvent("FLVPB", "onBufferFull", undefined); } else if (stat.code == "NetStream.Play.Start") { this.externalObj.DispatchEvent("FLVPB", "onPlayStart", undefined); } else if (stat.code == "NetStream.Play.Stop") { this.externalObj.Pause(); this.externalObj.DispatchEvent("FLVPB", "onPlayEnd", undefined); } else if (stat.code == "NetStream.Play.StreamNotFound") { this.externalObj.DispatchEvent("FLVPB", "onError", undefined); } }; return(_local2); } function CreateMoyeaPlayer(param) { var player = new Object(); if (param.targetType == "swf") { var _local11; var _local10; if (param.targetClip.length == undefined) { _local11 = new Array(); _local11[0] = param.targetClip; _local10 = new Array(); _local10[0] = param.targetFPS; player.playback = CreateSWFPlayback(_local11, _local10); } else { player.playback = CreateSWFPlayback(param.targetClip, param.targetFPS); } } else if (param.targetType == "flv") { player.playback = CreateFLVPlayback(param.targetClip, param.videoScr); } else if (param.targetType == "eflv") { player.playback = CreateEFLVPlayback(param.targetClip, param.targetFPS, param.frameStart, param.frameEnd); } else { trace("Not supported target type"); return(undefined); } player.skin_mc = param.skin_mc; FillOnListener(player); if (param.bufferTime != undefined) { player.playback.SetBufferTime(param.bufferTime); } else { player.playback.SetBufferTime(5); } player.sndControler = new Sound(); if (param.sndVolume != undefined) { player.sndVolume = param.sndVolume; } else { player.sndVolume = 100; } player.onPlayPausePress = function () { var _local2 = this.thisPlayer; var _local3 = _local2.playback.GetState(); if (_local3 == "pause") { _local2.playback.Play(); } else if (_local3 == "stop") { if (_local2.playback.GetTime() != 0) { _local2.playback.Seek(0); } _local2.playback.Play(); } else { _local2.playback.Pause(); } _local2.UpdateUI(); _local2.DispatchEvent("MoyeaPlayer", "onPlayPausePress", undefined); }; player.onReplayButonPress = function () { var _local2 = this.thisPlayer; _local2.playback.Seek(0); _local2.playback.Play(); _local2.UpdateUI(); _local2.DispatchEvent("MoyeaPlayer", "onReplayPress", undefined); }; player.onStopPress = function () { var _local2 = this.thisPlayer; _local2.playback.Stop(); if (_local2.playback.GetTime() != 0) { _local2.playback.Seek(0); } _local2.UpdateUI(); _local2.DispatchEvent("MoyeaPlayer", "onStopPress", undefined); }; player.onDragStart = function () { var _local2 = this.thisPlayer; _local2.bDragging = true; if (_local2.playback.GetState() != "pause") { _local2.bNeedResume = true; } else { _local2.bNeedResume = false; } _local2.playback.Pause(); _local2.DispatchEvent("MoyeaPlayer", "onProcBarDragStart", undefined); }; player.onDrag = function () { var _local2 = this.thisPlayer; _local2.playback.Seek(_local2.processBar.Position); _local2.playback.Pause(); _local2.DispatchEvent("MoyeaPlayer", "onProcBarDragging", undefined); }; player.onDragEnd = function () { var _local2 = this.thisPlayer; _local2.bDragging = false; _local2.playback.Seek(_local2.processBar.Position); if (_local2.bNeedResume) { _local2.playback.Play(); } _local2.UpdateUI(); _local2.DispatchEvent("MoyeaPlayer", "onProcBarDragEnd", undefined); }; player.onMutePress = function () { var _local2 = this.thisPlayer; _local2.SetMute(!_local2.GetMute()); _local2.DispatchEvent("MoyeaPlayer", "onMuteSwitch", undefined); }; player.onVolumeDrag = function () { var _local2 = this.thisPlayer; _local2.sndVolume = _local2.volumeBar.Position; if (!_local2.sndMute) { _local2.sndControler.setVolume(_local2.sndVolume); } }; player.onLinkButonPress = function () { getURL (this.linkURL, this.linkTarget); }; player.UpdateUI = function () { var _local2 = this.playback.GetState(); if (_local2 == "play") { this.btnPlayPause.SetState("on"); this.btnStop.SetEnabled(true); if (this.bSeekAble) { this.processBar.SetEnabled(true); this.processBar.SetPos(this.playback.GetTime()); } else { this.processBar.SetPos(0); } } else if (_local2 == "pause") { this.btnPlayPause.SetState("off"); this.btnStop.SetEnabled(true); if (this.bSeekAble) { this.processBar.SetEnabled(true); this.processBar.SetPos(this.playback.GetTime()); } else { this.processBar.SetPos(0); } } else if (_local2 == "stop") { this.btnStop.SetEnabled(false); this.btnPlayPause.SetState("off"); this.processBar.SetEnabled(false); this.processBar.SetPos(0); } if (this.sndMute) { this.btnMute.SetState("off"); } else { this.btnMute.SetState("on"); } if (_local2 != "stop") { this.grayPanel.SetVisible(false); this.btnReplay.SetVisible(false); } }; player.onEvent = function (sender, t, n, data) { if (n == "onPlayStart") { if (this.param.pauseAtFirstFrame) { this.playback.Stop(); } else { this.playback.Play(); } this.UpdateUI(); this.DispatchEvent("MoyeaPlayer", n, data); } else if (n == "onMetaData") { if (sender.GetDuration() != undefined) { this.processBar.SetMaxMin(0, sender.GetDuration()); this.bSeekAble = true; } this.UpdateUI(); this.DispatchEvent("MoyeaPlayer", n, data); } else if (n == "onPlaying") { if (this.bDragging) { return(undefined); } this.UpdateUI(); this.DispatchEvent("MoyeaPlayer", n, data); } else if (n == "onPlayEnd") { if (this.bDragging) { return(undefined); } if (!this.param.pauseAtLastFrame) { this.playback.Seek(0); } this.playback.Stop(); this.UpdateUI(); if (this.param.showReplay) { this.grayPanel.SetVisible(true); this.btnReplay.SetVisible(true); } this.DispatchEvent("MoyeaPlayer", n, data); } else if (n == "onBufferEmpty") { if (player.GetState() != "stop") { this.processBar.ShowRight(true); } } else if (n == "onBufferFull") { this.processBar.ShowRight(false); } else if (n == "onCuePoint") { this.DispatchEvent("MoyeaPlayer", n, data); } }; player.onMouseMove = function () { if (!this.playerPanel.visible) { if ((this.ForceVisible == undefined) || (this.ForceVisible)) { this.playerPanel.SetVisible(true); this.AdjustControls(); } } clearInterval(this.timerHidePlayer); this.timerHidePlayer = undefined; this.timerHidePlayer = setInterval(this.onTimerHidePlayer, this.hideDelay, this); }; player.CheckIfMouseInPlayer = function () { if (this.ForceMouseOut) { this.ForceMouseOut = false; return(false); } if ((((this.skin_mc._xmouse < this.playerPanel.rx) || (this.skin_mc._xmouse > (this.playerPanel.rx + this.playerPanel.width))) || (this.skin_mc._ymouse < this.playerPanel.ry)) || (this.skin_mc._ymouse > (this.playerPanel.ry + this.playerPanel.height))) { return(false); } return(true); }; player.onTimerHidePlayer = function (o) { if (!o.CheckIfMouseInPlayer()) { o.playerPanel.SetVisible(false); o.AdjustControls(); clearInterval(o.timerHidePlayer); o.timerHidePlayer = undefined; } }; player.onLoadPercentChanged = function (o) { o.processBar.SetLoadPercent(o.playback.GetPercentage() / 100); }; player.tmrLoadPercent = setInterval(player.onLoadPercentChanged, 100, player); player.Destroy = function () { clearInterval(this.timerHidePlayer); clearInterval(player.tmrLoadPercent); Stage.removeListener(this); Mouse.removeListener(this); this.root_ctrl.Destroy(); this.playback.Close(); this.skin_mc.removeMovieClip(); }; var root_ctrl = CreateBaseCtrl(undefined, this); root_ctrl.width = param.totalWidth; root_ctrl.height = param.totalHeight; player.root_ctrl = root_ctrl; var _local12 = false; if (param.targetType == "eflv") { param.scaleMode = undefined; } if ((param.scaleMode == "no") || (param.scaleMode == "stage")) { if (param.scaleMode == "stage") { Stage.align = "TL"; } Stage.scaleMode = "noScale"; Stage.addListener(player); root_ctrl.SetPosition(0, 0, Stage.width, Stage.height); _local12 = true; } else { root_ctrl.SetPosition(0, 0, param.totalWidth, param.totalHeight); } player.playerOverMovie = param.playerOverMovie; player.scaleMode = param.scaleMode; player.videoScr = param.videoScr; player.playerHeight = param.playerHeight; player.totalWidth = param.totalWidth; player.totalHeight = param.totalHeight; player.hideDelay = param.hideDelay; if (player.hideDelay == undefined) { player.hideDelay = 1000; } player.param = param; player.AdjustControls = function () { if (this.param.targetType == "eflv") { return(undefined); } if (this.param.playerAlign == "top") { if (this.param.playerOverMovie || (!this.playerPanel.visible)) { this.playback.SetXY(0, 0); } else { this.playback.SetXY(0, this.playerHeight); } } else { this.playback.SetXY(0, 0); } this.playback.SetWidth(this.totalWidth); if (this.param.playerOverMovie || (!this.playerPanel.visible)) { this.playback.SetHeight(this.totalHeight); } else { this.playback.SetHeight(this.totalHeight - this.playerHeight); } }; player.onResize = function () { if (this.scaleMode == "stage") { this.root_ctrl.SetPosition(0, 0, Stage.width, Stage.height); this.totalWidth = Stage.width; this.totalHeight = Stage.height; this.AdjustControls(); } }; player.Play = function () { if (this.playback.GetState() == "stop") { if (this.playback.GetTime() != 0) { this.playback.Seek(0); } } this.playback.Play(); this.UpdateUI(); }; player.Seek = function (t) { this.playback.Seek(t); this.UpdateUI(); }; player.Pause = function () { this.playback.Pause(); this.UpdateUI(); }; player.Stop = function () { if (this.playback.GetTime() != 0) { this.playback.Seek(0); } this.playback.Stop(); this.UpdateUI(); }; player.SetMute = function (b) { this.sndMute = b; if (b) { this.sndControler.setVolume(0); } else { this.sndControler.setVolume(this.sndVolume); } this.UpdateUI(); }; player.sndMute = false; player.GetMute = function () { return(this.sndMute); }; player.SetVolume = function (v) { this.sndVolume = v; if (!this.sndMute) { this.sndControler.setVolume(this.sndVolume); } this.volumeBar.SetPos(this.sndVolume); }; player.GetVolume = function () { return(this.sndVolume); }; player.GetState = function () { return(this.playback.GetState()); }; player.GetTime = function () { return(this.playback.GetTime()); }; player.GetDuration = function () { return(this.playback.GetDuration()); }; player.SetDebloking = function (l) { this.playback.SetDeblocking(l); }; player.SetSmoothing = function (b) { this.playback.SetSmoothing(b); }; player.SetVisible = function (b) { this.ForceVisible = b; this.playerPanel.SetVisible(b); this.AdjustControls(); }; player.GetVisible = function () { return(this.playerPanel.visible); }; player.SetEnabled = function (b) { this.playerPanel.SetEnabled(b); }; player.GetEnabled = function () { return(this.playerPanel.enabled); }; player.SetColor = function (c) { var _local2; if (c == undefined) { _local2 = 0; while (_local2 < this.colorPanels.length) { this.colorPanels[_local2].SetVisible(false); _local2++; } } else { var _local3; _local2 = 0; while (_local2 < this.colorPanels.length) { _local3 = new Color(this.colorPanels[_local2].panel_mc); _local3.setRGB(c); this.colorPanels[_local2].SetVisible(true); _local2++; } } }; player.SetDepth = function (d) { this.skin_mc.swapDepths(d); }; player.colorPanels = new Array(); player.AddColorPanel = function (p) { this.colorPanels[this.colorPanels.length] = p; }; var _local6 = new Object(); _local6.root_ctrl = root_ctrl; var _local5 = 0; var _local2; var _local4; var _local3; _local5 = 0; for ( ; _local5 < param.elements.length ; _local5++) { _local2 = param.elements[_local5]; if (_local2.parent == undefined) { _local4 = root_ctrl; } else { _local4 = _local6[_local2.parent]; } if (_local2.ctrlType == "playbtn") { _local3 = CreateDualButton(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.onPress = player.onPlayPausePress; player.btnPlayPause = _local3; _local3.SetState("off"); } else if (_local2.ctrlType == "stopbtn") { _local3 = CreateButton(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.onPress = player.onStopPress; player.btnStop = _local3; } else if (_local2.ctrlType == "mutebtn") { _local3 = CreateDualButton(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.onPress = player.onMutePress; player.btnMute = _local3; } else if (_local2.ctrlType == "procbar") { _local3 = CreateSpin(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.onDrag = player.onDrag; _local3.onDragEnd = player.onDragEnd; _local3.onDragStart = player.onDragStart; player.processBar = _local3; } else if (_local2.ctrlType == "volbar") { _local3 = CreateSpin(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.onDrag = player.onVolumeDrag; _local3.onDragEnd = player.onVolumeDrag; player.volumeBar = _local3; } else if (_local2.ctrlType == "player_panel") { _local3 = CreatePanel(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); player.playerPanel = _local3; } else if (_local2.ctrlType == "panel") { _local3 = CreatePanel(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); } else if (_local2.ctrlType == "color_panel") { _local3 = CreatePanel(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); player.AddColorPanel(_local3); } else if (_local2.ctrlType == "link") { _local3 = CreateButton(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.linkURL = _local2.linkURL; _local3.linkTarget = _local2.linkTarget; _local3.onPress = player.onLinkButonPress; } else if (_local2.ctrlType == "gray_panel") { _local3 = CreatePanel(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.SetVisible(false); player.grayPanel = _local3; } else if (_local2.ctrlType == "video_link") { _local3 = CreatePanel(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.SetVisible(false); _local3.linkURL = param.videoLink; _local3.linkTarget = param.videoLinkTarget; _local3.SetOnPress(player.onLinkButonPress); player.videoLinkPanel = _local3; } else if (_local2.ctrlType == "replay_panel") { _local3 = CreatePanel(_local4, player.skin_mc[_local2.ctrlName], _local2.ctrlName); _local3.SetVisible(false); _local3.SetOnPress(player.onReplayButonPress); player.btnReplay = _local3; if (param.textReplay == undefined) { _local3.panel_mc.text.text = "Replay"; } else { _local3.panel_mc.text.text = param.textReplay; } } else { continue; } _local3.thisPlayer = player; _local6[_local2.ctrlName] = _local3; _local3.SetAchor(_local2.xachor, _local2.yachor); _local3.SetPosition(_local2.x, _local2.y, _local2.width, _local2.height); _local3.SetBand(_local2.leftBand, _local2.rightBand, _local2.topBand, _local2.bottomBand); } if (param.deblocking) { player.playback.SetDeblocking(2); } else { player.playback.SetDeblocking(0); } if (param.deblocking == undefined) { player.playback.SetDeblocking(2); } if (param.smoothing) { player.playback.SetSmoothing(true); } else { player.playback.SetSmoothing(false); } if (param.smoothing == undefined) { player.playback.SetSmoothing(true); } player.AdjustControls(); if (_local12) { player.onResize(); } if (param.playerAutoHide) { Mouse.addListener(player); player.ForceMouseOut = true; player.onMouseMove(); } player.grayPanel.SetBand(0, 0, 0, 0); if (player.param.playerAlign == "top") { player.playerPanel.SetAchor(0, 0); player.playerPanel.SetPosition(0, 0, 10, player.playerHeight); player.videoLinkPanel.SetBand(0, 0, player.playerHeight, 0); } else { player.playerPanel.SetAchor(0, 1); player.playerPanel.SetPosition(0, -player.playerHeight, 10, player.playerHeight); player.videoLinkPanel.SetBand(0, 0, 0, player.playerHeight); } player.playerPanel.SetBand(0, undefined, undefined, undefined); player.SetColor(param.panelColor); if (player.param.targetType == "flv") { player.processBar.SetEnabled(false); } else if ((player.param.targetType == "swf") || (player.param.targetType == "eflv")) { player.processBar.SetEnabled(false); player.bSeekAble = true; } player.volumeBar.SetMaxMin(0, 100); player.volumeBar.SetPos(player.sndVolume); player.sndMute = param.sndMute; if (player.sndMute) { player.btnMute.SetOff("off"); player.sndControler.setVolume(0); } else { player.btnMute.SetOff("on"); player.sndControler.setVolume(player.sndVolume); } player.playback.AddListener(player); if (param.videoLink != undefined) { player.videoLinkPanel.SetVisible(true); } player.processBar.SetMaxMin(0, player.playback.GetDuration()); if (player.param.pauseAtFirstFrame == undefined) { player.param.pauseAtFirstFrame = true; } param.skin_mc._visible = false; player.skin_mc._visible = true; player.playback.Open(); if (param.targetType == "flv") { player.playback.Seek(0); } return(player); } function CreateParamObject(opts) { var param = new Object(); var s = opts; var ss = s.split("||", 100); var opt; var i; i = 0; while (i < ss.length) { opt = ss[i].split("*", 3); if (opt.length != 3) { } else if (opt[2] == "i") { param[opt[0]] = int(opt[1]); } else if (opt[2] == "s") { param[opt[0]] = "" + opt[1]; } else if (opt[2] == "e") { param[opt[0]] = eval (opt[1]); } else if (opt[2] == "b") { param[opt[0]] = opt[1] == "true"; } else if (opt[2] == "f") { param[opt[0]] = Number(opt[1]); } else if (opt[2] == "c") { var rgb = opt[1].split(",", 3); if (rgb.length != 3) { } else { var r = int(rgb[0]); var g = int(rgb[1]); var b = int(rgb[2]); param[opt[0]] = ((r << 16) | (g << 8)) | b; } } i++; } return(param); } function FillDefaultParam(o) { if (o.targetType == undefined) { o.targetType = "flv"; } if (o.skin_mc == undefined) { o.skin_mc = skin_mc; } if (o.totalWidth == undefined) { o.totalWidth = Stage.width; } if (o.totalHeight == undefined) { o.totalHeight = Stage.height; } if (o.videoScr == undefined) { o.videoScr = myScr; } if (o.scaleMode == undefined) { o.scaleMode = "stage"; } } var paramObj = CreateParamObject(playerOpts); skin_mc._x = 0; skin_mc._y = 0; skin_mc._visible = false; paramObj.playerHeight = 34; var ctrls = new Array(); ctrls[0] = {ctrlType:"player_panel", ctrlName:"panel_mc", xachor:0, yachor:1, x:0, y:-34, width:0, height:34, leftBand:0}; ctrls[1] = {ctrlType:"playbtn", ctrlName:"play_mc", xachor:0, yachor:0, x:12, y:7, width:20, height:20, parent:"panel_mc"}; ctrls[2] = {ctrlType:"stopbtn", ctrlName:"stop_mc", xachor:0, yachor:0, x:40, y:7, width:20, height:20, parent:"panel_mc"}; ctrls[3] = {ctrlType:"procbar", ctrlName:"proc_mc", xachor:0, yachor:0, x:100, y:15, width:400, height:4, leftBand:70, rightBand:90, parent:"panel_mc"}; ctrls[4] = {ctrlType:"mutebtn", ctrlName:"mute_mc", xachor:1, yachor:0, x:-81, y:12, width:20, height:20, parent:"panel_mc"}; ctrls[5] = {ctrlType:"volbar", ctrlName:"volume_mc", xachor:1, yachor:0, x:-63, y:10, width:50, height:15, parent:"panel_mc"}; ctrls[6] = {ctrlType:"panel", ctrlName:"panel_mc_left", xachor:0, yachor:0, x:0, y:0, width:15, height:34, parent:"panel_mc"}; ctrls[7] = {ctrlType:"panel", ctrlName:"panel_mc_right", xachor:1, yachor:0, x:-15, y:0, width:15, height:34, parent:"panel_mc"}; ctrls[8] = {ctrlType:"panel", ctrlName:"panel_mc_mid", xachor:0, yachor:0, x:0, y:0, width:0, height:34, leftBand:15, rightBand:15, parent:"panel_mc"}; ctrls[9] = {ctrlType:"color_panel", ctrlName:"color_panel_mc_right", xachor:1, yachor:0, x:-15, y:0, width:15, height:34, parent:"panel_mc"}; ctrls[10] = {ctrlType:"color_panel", ctrlName:"color_panel_mc_left", xachor:0, yachor:0, x:0, y:0, width:15, height:34, parent:"panel_mc"}; ctrls[11] = {ctrlType:"color_panel", ctrlName:"color_panel_mc_mid", xachor:0, yachor:0, x:0, y:0, width:0, height:34, leftBand:15, rightBand:15, parent:"panel_mc"}; ctrls[12] = {ctrlType:"gray_panel", ctrlName:"gray_panel", xachor:1, yachor:0, x:-15, y:0, width:15, height:34, parent:"root_ctrl"}; ctrls[13] = {ctrlType:"replay_panel", ctrlName:"replay_panel", xachor:2, yachor:2, x:-45, y:-15, width:90, height:30, parent:"root_ctrl"}; ctrls[14] = {ctrlType:"video_link", ctrlName:"videolink", xachor:0, yachor:0, x:0, y:0, width:0, height:0, parent:"root_ctrl"}; paramObj.elements = ctrls; FillDefaultParam(paramObj); if (thePlayer != undefined) { thePlayer.Destroy(); thePlayer = undefined; } thePlayer = CreateMoyeaPlayer(paramObj);

Library Items

Symbol 1 VideoUsed by:Timeline
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:5
Symbol 5 MovieClipUses:4Used by:17  Timeline
Symbol 6 VideoUsed by:Timeline
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:9
Symbol 9 MovieClipUses:8Used by:17
Symbol 10 MovieClipUsed by:11
Symbol 11 MovieClipUses:10Used by:17
Symbol 12 GraphicUsed by:15
Symbol 13 FontUsed by:14
Symbol 14 EditableTextUses:13Used by:15
Symbol 15 MovieClipUses:12 14Used by:16
Symbol 16 MovieClipUses:15Used by:17
Symbol 17 MovieClipUses:5 9 11 16Used by:Timeline
Streaming Sound 1Used by:Timeline

Instance Names

"tailer_layer"Frame 1Symbol 5 MovieClip
"header_layer"Frame 1Symbol 5 MovieClip
"myScr"Frame 1Symbol 6 Video
"skin_mc"Frame 1Symbol 17 MovieClip
"effect_layer"Frame 1Symbol 5 MovieClip
"panel_mc"Symbol 5 MovieClip Frame 1Symbol 4 MovieClip
"panel_mc"Symbol 9 MovieClip Frame 1Symbol 8 MovieClip
"panel_mc"Symbol 11 MovieClip Frame 1Symbol 10 MovieClip
"text"Symbol 15 MovieClip Frame 1Symbol 14 EditableText
"panel_mc"Symbol 16 MovieClip Frame 1Symbol 15 MovieClip
"videolink"Symbol 17 MovieClip Frame 1Symbol 5 MovieClip
"gray_panel"Symbol 17 MovieClip Frame 1Symbol 9 MovieClip
"panel_mc"Symbol 17 MovieClip Frame 1Symbol 11 MovieClip
"replay_panel"Symbol 17 MovieClip Frame 1Symbol 16 MovieClip




http://swfchan.com/1/1922/info.shtml
Created: 10/8 -2019 04:44:05 Last modified: 10/8 -2019 04:44:05 Server time: 21/12 -2024 17:48:36