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

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

Cure The Bunny.swf

This is the info page for
Flash #108321

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


Text
<p align="center"><font face="OCR A Extended" size="72" color="#ffffff" letterSpacing="-7.000000" kerning="1">0% &nbsp;&nbsp;&nbsp;</font></p>

<p align="center"></p>

10mg | creating interactive experiences for the web

about us

about us

contact

us

clients

list

showreel

our work

loading

we create and deliver rich interactive
experiences for the web

Agency.com, Blast Radius, Draft Worldwide,
Grey, Lostboys, PPGH JWT, Qi Interactive, Tribal
DDB, XXS

clients

Achmea, AmbiPur, BMW, Bols, Canon, Coca Cola,
Delta Lloyd, Fortis, Heineken, Intel, Jaguar,
Killzone, KPN, Nokia, Omega, Philips, Pickwick,
Rabobank, Sony-Ericsson, T-Mobile, Vodafone

brands

Agency.com, Blast Radius, Draft Worldwide,
Grey, Lostboys, PPGH JWT, Qi Interactive, Tribal
DDB, XXS

Achmea, AmbiPur, BMW, Bols, Canon, Coca Cola,
Delta Lloyd, Fortis, Heineken, Intel, Jaguar,
Killzone, KPN, Nokia, Omega, Philips, Pickwick,
Rabobank, Sony-Ericsson, T-Mobile, Vodafone

Prins Hendrikkade 124      1011 AN Amsterdam

Office

+31(0)20 6 22 11 21

Demmy Onink

+31(0)6 25 104 383

Marc Selhorst

+31(0)6 16 600 289

info@10mg.nl

info@10mg.nl

demmy@10mg.nl

demmy@10mg.nl

marc@10mg.nl

marc@10mg.nl

Prins Hendrikkade 124      1011 AN Amsterdam

+31(0)20 6 22 11 21

+31(0)6 25 104 383

+31(0)6 16 600 289

click TO
Pick up
the razor

click TO
Pick up the
scalpel

click TO
Pick up
the pincet

CLICK
His Belly

<p align="center"><font face="Arial Narrow" size="24" color="#ffffff" letterSpacing="5.000000" kerning="0">Maak je geen zorgen. Dit konijn kent geen pijn.</font></p><p align="center"></p>

<p align="center"><font face="OCR A Extended" size="57" color="#999999" letterSpacing="0.000000" kerning="1">0:00</font></p>

SENDFRIEND

your name

your e-mail

your name

your e-mail

your name

your e-mail

friends name

friends e-mail

ActionScript [AS1/AS2]

Frame 1
function doInterface(Str) { if (flash.external.ExternalInterface.available) { flash.external.ExternalInterface.call("urchinTracker", Str); } else { getURL (("javascript:urchinTracker(\"" + Str) + "\")"); } } function doScale() { lifeline_extension._width = (zwart._width = (roze_back._width = Stage.width)); zwart._height = (roze_back._height = Stage.height); fwa._x = (lifeline_extension._x = (zwart._x = (roze_back._x = 475 - (Stage.width / 2)))); fwa._y = (zwart._y = (roze_back._y = 300 - (Stage.height / 2))); subTitle_txt._x = ((950 - Stage.width) / 2) + ((Stage.width - subTitle_txt._width) / 2); subTitle_txt._y = (((600 - Stage.height) / 2) + Stage.height) - 70; logo_mc._x = ((950 - Stage.width) / 2) + 36; logo_mc._y = (((600 - Stage.height) / 2) + Stage.height) - 65; menu_mc._y = (logo_mc._y = (((600 - Stage.height) / 2) + Stage.height) - 65); menu_mc._x = (((950 - Stage.width) / 2) + Stage.width) - 36; } _root.tracker = true; _root.frameNr = 1; com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts, com.mosesSupposes.fuse.PennerEasing); if (_root.tracker) { doInterface("game/intro"); } _root.SOUNDLEVEL = 100; stageListener = new Object(); stageListener.onResize = function () { doScale(); }; doScale(); Stage.addListener(stageListener); framerate = 21; Stage.scaleMode = "NOSCALE"; Sound.prototype.fade = function (fadeDuration, from, to) { clearInterval(this.volInterval); this.fadeDuration = ((fadeDuration == undefined) ? 1000 : (fadeDuration)); this.from = ((from == undefined) ? 0 : (from)); this.to = ((to == undefined) ? 100 : (to)); this.vol = this.from; this.setVolume(this.from); this.step = ((this.to - this.from) / this.fadeDuration) * 10; this.volInterval = setInterval(this, "doFade", 10); }; Sound.prototype.doFade = function () { this.vol = this.vol + this.step; this.setVolume(this.vol); if (((this.from < this.to) and (this.vol >= this.to)) or ((this.from > this.to) and (this.vol <= this.to))) { clearInterval(this.volInterval); } }; onEnterFrame = function () { loaded = Math.floor((getBytesLoaded() / 700000) * 100); if ((loaded > 100) and (getBytesTotal() > 0)) { loaded = 100; play(); delete this.onEnterFrame; } perc_txt.text = loaded.toString() + "%"; }; stop();
Frame 4
doScale();
Frame 14
function writeMssgStart(msg) { subTitle_txt.text = msg; clearInterval(msgInterval); msgStartInterval = setInterval(deleteMssgStart, msg.length * 400); } function deleteMssgStart() { clearInterval(msgStartInterval); subTitle_txt.text = ""; } _root.frameNr = 1; clearInterval(panicInterval); doScale();
Frame 22
function allSound(level) { soundObj.setVolume(level); druppelSound.setVolume(level); shockThingSound.setVolume(level); infoSound.setVolume(level); } function doValSound() { _root.bal._x = 100; valSound.start(); } function doPijlInMondSound() { pijlInMondSound.start(); } function startEating() { clearInterval(beginMssgInterval); subTitle_txt.text = ""; doPijlInMondSound(); konijn.konijnVal_mc.neus; Mouse.hide(); pointer_mc._visible = true; pointer_mc._x = _root._xmouse; pointer_mc._y = _root._ymouse; pointer_mc.slideTo(460, 280, 0.5, "easeInCubic", 0, ending); pointer_mc.tween("_xscale", 200, 0.5, "easeOutCubic"); pointer_mc.tween("_yscale", 200, 0.5, "easeOutCubic"); } function ending() { gotoAndPlay ("ending"); } function uit() { konijn.konijnVal_mc.gotoAndPlay(2); konijn.gotoAndPlay(2); glans.konijnVal_mc.gotoAndPlay(2); glans.gotoAndPlay(2); } removeMovieClip("allSounds"); this.createEmptyMovieClip("allSounds", 17000); delete _root.verlichtingSound; delete _root.doodSound; delete _root.flatlineSound; delete soundObj; soundObj = new Sound(allSounds); allSounds.createEmptyMovieClip("val_mc", 100); allSounds.createEmptyMovieClip("schot_mc", 200); allSounds.createEmptyMovieClip("intro_mc", 300); pointer_mc._visible = false; valSound = new Sound(allSounds.val_mc); valSound.attachSound("val"); pijlInMondSound = new Sound(allSounds.schot_mc); pijlInMondSound.attachSound("schot"); backgroundOver.cacheAsBitmap = true; maskerBack.cacheAsBitmap = true; backgroundOver.setMask(maskerBack); pointer_mc._visible = false; var over = 0; doScale(); introSound = new Sound(allSounds.intro_mc); introSound.attachSound("intro"); introSound.start(0, 1000); introSound.fade(5000, 0, 50);
Frame 30
function doBeginMssg() { clearInterval(beginMssgInterval); textStart.txt_mc.gotoAndStop(4); textStart.gotoAndPlay("in"); doScale(); } beginMssgInterval = setInterval(doBeginMssg, 7000); doScale();
Frame 31
doScale(); stop();
Frame 32
doScale();
Frame 33
doScale(); stop();
Frame 34
if (_root.tracker) { doInterface("game/startklik"); } doScale(); uit(); introSound.fade(2500, introSound.getVolume(), 0); pijlInMondSound.fade(2500, pijlInMondSound.getVolume(), 0);
Frame 35
stop();
Frame 36
play();
Frame 37
if (_root._framesloaded > 130) { play(); delete pijlInMondSound; } else { prevFrame(); }
Frame 38
function gameOver() { _root.activeOrg.dragStop(); white2.gotoAndPlay(2); white2._visible = true; white2._x = 475 - (Stage.width / 2); white2._y = 300 - (Stage.height / 2); white2._width = Stage.width; white2._height = Stage.height; flatlineSound.fade(4000, flatlineSound.getVolume(), 0); introSound.fade(2000, introSound.getVolume(), 0); } function setPositions() { kaleidoscope._x = (wolken._x = (fadeOut._x = (black._x = (black3._x = (white._x = 475 - (Stage.width / 2)))))); kaleidoscope._y = (wolken._y = (fadeOut._y = (black._y = (black3._y = (white._y = 300 - (Stage.height / 2)))))); fadeOut._width = (black._width = (black3._width = (white._width = Stage.width))); fadeOut._height = (black._height = (black3._height = (white._height = Stage.height))); wolken._width = Stage.width * 4.3; wolken._height = Stage.height * 4.3; hsize = Stage.width; vsize = Stage.height; logo_mc._x = ((950 - Stage.width) / 2) + 36; menu_mc._y = (logo_mc._y = (((600 - Stage.height) / 2) + Stage.height) - 65); menu_mc._x = (((950 - Stage.width) / 2) + Stage.width) - 36; info_mc._x = ((950 - Stage.width) / 2) + 36; info_mc._y = ((600 - Stage.height) / 2) + 65; subTitle_txt._x = ((950 - Stage.width) / 2) + ((Stage.width - subTitle_txt._width) / 2); subTitle_txt._y = (((600 - Stage.height) / 2) + Stage.height) - 70; kaleidoscope.gotoAndPlay(1); } function doTrace(msg) { _root.trace_txt.text = _root.trace_txt.text + (msg + newline); } function checkScale() { scalerX = Stage.width / 1024; scalerY = Stage.width / 768; if ((scalerX < 1) or (scalerY < 1)) { if (scalerX > scalerY) { scaleDown = scalerY; } else { scaleDown = scalerX; } _level0._xscale = (_level0._yscale = scaleDown * 100); } } function writeMssg(msg) { subTitle_txt.text = msg; clearInterval(msgInterval); clearInterval(panicInterval); panicInterval = setInterval(panicMssg, 10000); msgInterval = setInterval(deleteMssg, msg.length * 100); } function deleteMssg() { clearInterval(msgInterval); subTitle_txt.text = ""; } function panicMssg() { if (subTitle_txt.text == "") { writeMssg("Hurry up! Fred is dying!"); } } function randRange(min, max) { var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min; return(_local1); } if (_root.tracker) { doInterface("game/shock"); } _root.frameNr = 2; var beatRate = 1000; var error = 0; var fadingOut = 0; var oldError = 0; info_mc.gotoAndPlay("spS"); white2._visible = false; dood_mc._visible = false; verlichtingSound.stop(); doodSound.stop(); introSound.stop(); infoSound = new Sound(info_mc); shockThingSound = new Sound(shockThing_mc); allSound(_root.SOUNDLEVEL); Mouse.hide(); allSounds.createEmptyMovieClip("flatLine_mc", 500); flatlineSound = new Sound(allSounds.flatLine_mc); flatlineSound.attachSound("flatline"); flatlineSound.setVolume(0); flatlineSound.start(0.03, 1000); flatlineSound.fade(1000, 0, 30); gameEnd = false; enlightment = false; allSounds.createEmptyMovieClip("shock_mc", 600); shockSound = new Sound(allSounds.shock_mc); shockSound.attachSound("shock"); stageListener.onResize = function () { setPositions(); }; var hsize = 0; var vsize = 0; Stage.addListener(stageListener); setPositions(); shockThing_mc.xTo = shockThing_mc._x; shockThing_mc.yTo = shockThing_mc._y; shockThing2_mc.xTo = shockThing2_mc._x; shockThing2_mc.yTo = shockThing2_mc._y; _root.krabber3._x = _root.krabber._x + 2; _root.krabber2._x = _root.krabber._x + 2; _root.krabber3._y = _root.krabber._y + 4; _root.krabber2._y = _root.krabber._y + 4; writeMssg("Fred's heart stopped beating! Give him shock treatment!"); var shocked = 0;
Frame 39
setPositions(); var door = false; Mouse.hide(); _root.createEmptyMovieClip("shockThingFollower_mc", 3000); shockThingFollower_mc._x = 670; shockThingFollower_mc._y = 410; shockThing_mc.moveBehaviour = function () { xTo = shockThingFollower_mc._x; yTo = shockThingFollower_mc._y; this._x = this._x + ((xTo - this._x) / 1.6); this._y = this._y + ((yTo - this._y) / 1.6); this._rotation = (this._x - Stage.width) / (Stage.width / 60); shockThing2_mc._rotation = (-this._rotation) * 1.1; shockThing2_mc._y = this._y; middle = 490; shockThing2_mc._x = middle + (middle - this._x); }; shockThing_mc.moveBehaviour(); moveInterval = setInterval(shockThing_mc, "moveBehaviour", 1000 / framerate); _root.onMouseMove = function () { shockThingFollower_mc.startDrag(true, 515, 300, Stage.width, Stage.height); delete _root.onMouseMove; }; shockThing_mc.onMouseDown = function () { writeMssg(""); if (_root.rabbit.hitTest(this._x, this._y, true) and _root.rabbit.hitTest(_root.shockThing2_mc._x, _root.shockThing2_mc._y, true)) { this.gotoAndPlay(2); shockThing2_mc.gotoAndPlay(2); gotoAndPlay (40); } }; shockThing_mc.onMouseUp = function () { if (this._currentframe != 1) { this.gotoAndStop(1); shockThing2_mc.gotoAndStop(1); door = 1; this.moveBehaviour = function () { this._x = this._x + ((this.xTo - this._x) / 2); this._y = this._y + ((this.yTo - this._y) / 2); _root.shockThing2_mc._x = _root.shockThing2_mc._x + ((_root.shockThing2_mc.xTo - _root.shockThing2_mc._x) / 2); _root.shockThing2_mc._y = _root.shockThing2_mc._y + ((_root.shockThing2_mc.yTo - _root.shockThing2_mc._y) / 2); this._rotation = (this._x - Stage.width) / 12; shockThing2_mc._rotation = (-this._rotation) * 1.1; }; } }; stop();
Frame 40
clearInterval(moveInterval);
Frame 41
setPositions();
Frame 46
shocked++; if (door) { flatlineSound.stop(); play(); } else { gotoAndPlay (42); }
Frame 47
shockSound.start(0.1, 0);
Frame 52
setPositions();
Frame 55
setPositions();
Frame 59
setPositions();
Frame 72
valSound.start();
Frame 73
setPositions();
Frame 75
allSounds.createEmptyMovieClip("knetter_mc", 750); knetterSound = new Sound(allSounds.knetter_mc); knetterSound.attachSound("knetterSnd"); knetterSound.start();
Frame 78
switch (shocked) { case 1 : writeMssg("Nothing.... Try again!"); flatlineSound.start(0.03, 1000); flatlineSound.fade(500, 0, 30); break; case 2 : writeMssg("Still nothing... Again!"); flatlineSound.start(0.03, 1000); flatlineSound.fade(500, 0, 30); break; default : shockThingFollower_mc.stopDrag(); delete shockThing_mc.onMouseDown; delete shockThing_mc.onMouseUp; removeMovieClip(shockThingFollower_mc); clearInterval(moveInterval); Mouse.show(); gotoAndStop ("scheren"); } play();
Frame 98
switch (shocked) { case 1 : gotoAndStop (39); break; case 2 : gotoAndStop (39); } stop();
Frame 99
function drawSquare() { x = _root.krabber._x; y = _root.krabber._y; kolom = Math.floor(((x + 35) - hBase) / 35); rij = Math.floor((y - vBase) / 35); if ((((kolom > 0) and (kolom < 5)) and (rij > -1)) and (rij < 5)) { theNode = (rij * 4) + kolom; if (!_root["btn" + theNode].touched) { _root["btn" + theNode].play(); _root["btn" + theNode].touched = true; } q++; _root.square.attachMovie("reveal", "reveal" + q, q); _root.square["reveal" + q]._x = x - _root.square._x; _root.square["reveal" + q]._y = y - _root.square._y; } } if (_root.tracker) { doInterface("game/scheren"); } allSound(_root.SOUNDLEVEL); druppelSound = new Sound(druppel_mc); introSound.start(0, 1000); introSound.fade(3000, 0, 30); textHint_mc.gotoAndPlay("in"); info_mc.gotoAndPlay("spA"); writeMssg("Yes! Fred is breathing. But he needs surgery!\n Shave his chest and belly."); allSounds.createEmptyMovieClip("pak_mc", 700); pakopSound = new Sound(allSounds.pak_mc); pakopSound.attachSound("pakop"); hBase = 396; vBase = 286; krabber.targetX = krabber._x; krabber.targetY = krabber._y; _root.createEmptyMovieClip("square", 1); square._x = hBase + 77; square._y = vBase + 77; var g = 0; q = 200; _root.maskee.setMask(_root.square); _root.muis = 0; _root.beginGame = true; krabberClick_btn.onRelease = function () { _root.doTrace("clicked"); if (_root.beginGame) { _root.beginGame = false; _root.krabber.startDrag(true); pakopSound.start(); _root.krabber.gotoAndPlay(2); Mouse.hide(); play(); } }; stop();
Frame 100
squareInterval = setInterval(square, "checkSquares", 1000 / framerate); textHint_mc.gotoAndPlay("out"); _root.square.checkSquares = function () { g++; if (g > 55) { g = 1; this._xscale = (this._yscale = 100); } if (g < 30) { this._xscale = this._xscale + 0.166666666666667; this._yscale = this._yscale + 0.166666666666667; } else { this._xscale = this._xscale - 0.2; this._yscale = this._yscale - 0.2; } }; _root.onMouseDown = function () { if (_root.krabber._currentframe == 9) { _root.krabber.gotoAndPlay(10); _root.muis = 1; } }; allSounds.createEmptyMovieClip("scheer_mc", 800); effectSound = new Sound(allSounds.scheer_mc); effectSound.attachSound("scheer"); _root.onMouseUp = function () { if (_root.scratchControl._currentframe == 2) { _root.scratchControl.gotoAndStop(1); updateAfterEvent(); } if (_root.krabber._currentframe == 10) { _root.krabber.gotoAndStop(9); } _root.muis = 0; fin = 5; ch = 2; while (ch < 16) { if (!_root["btn" + ch].touched) { fin--; } ch++; t++; } if (fin > 1) { delete _root.scratchControl.onMouseMove; writeMssg("That's good! Now make a clean cut \n so you can look inside Fred."); Mouse.show(); _root.krabber.stopDrag(); clearInterval(rotateInterval); _root.krabber._rotation = 0; _root.krabber.onEnterFrame = function () { xNow = (this._x = this._x + ((this.targetX - this._x) / 2)); yNow = (this._y = this._y + ((this.targetY - this._y) / 2)); if (this._currentframe > 1) { this.prevFrame(); _root.krabber3.prevFrame(); } if ((((xNow - this.targetX) < 1) and ((xNow - this.targetX) > -1)) and (((yNow - this.targetY) < 1) and ((yNow - this.targetY) > -1))) { delete _root.onMouseMove; this.gotoAndStop(1); _root.krabber3.gotoAndStop(1); _root.maskee.setMask(null); removeMovieClip(_root.square); this._x = this.targetX; this._y = this.targetY; delete this.onEnterFrame; play(); } }; } else if (ftime) { switch (randRange(1, 4)) { case 1 : writeMssg("More than that!"); break; case 2 : writeMssg("Come on! The whole belly and chest! Hurry up..."); break; case 3 : writeMssg("You're forgetting something..."); break; case 4 : writeMssg("It still isn't bold.... Hurry up.."); } } else { ftime = true; } }; _root.scratchControl.onMouseMove = function () { xMouse = _root._xmouse; yMouse = _root._ymouse; _root.moving = 0; if (_root.muis) { if ((xMouseOld < xMouse) and (yMouseOld < yMouse)) { drawSquare(); updateAfterEvent(); } } xMouseOld = xMouse; yMouseOld = yMouse; }; i = 1; v = 0; while (v < 4) { h = 0; while (h < 4) { duplicateMovieClip (_root.btn, "btn" + i, i + 1); _root["btn" + i].id = i; _root["btn" + i]._x = hBase + (h * 35); _root["btn" + i]._y = vBase + (v * 35); _root["btn" + i].id = i; _root["btn" + i].touched = false; i++; h++; } v++; } stop();
Frame 109
stiftPlay = vachtje._currentframe; stift.gotoAndPlay(stiftPlay); delete effect;
Frame 123
_root.marker.gotoAndStop(_root.marker._totalframes); _root.marker.targetX = 127; _root.marker.targetY = 366; _root.marker.onEnterFrame = function () { this._x = this._x + ((this.targetX - this._x) / 2); this._y = this._y + ((this.targetY - this._y) / 2); this.prevFrame(); if (((((this._x - this.targetX) < 1) and ((this._x - this.targetX) > -1)) and (((this._y - this.targetY) < 1) and ((this._y - this.targetY) > -1))) and (this._currentframe == 1)) { this._x = this.targetX; this._y = this.targetY; stifstatisch.markerDropshadow.gotoAndStop(2); stiftstatisch._visible = true; delete this.onEnterFrame; this._visible = false; } }; stiftstatisch._visible = false;
Frame 125
numLast = stift._currentframe;
Frame 127
play();
Frame 128
function setActiveOrgan(orgID) { _root.pincet_back0._visible = (_root.pincet_backA._visible = (_root.pincet_backB._visible = (_root.pincet_backC._visible = false))); _root["pincet_back" + orgID]._visible = true; _root["pincet_front" + orgID]._visible = true; delete _root.pincet_backA.onEnterFrame; delete _root.pincet_backB.onEnterFrame; delete _root.pincet_backC.onEnterFrame; _root["pincet_back" + orgID].onEnterFrame = function () { this.gotoAndStop(_root.pincet_front._currentframe); this._x = _root.pincet_front._x; this._y = _root.pincet_front._y; }; } if (_root.tracker) { doInterface("game/snijden"); } scalpel.targetX = scalpel._x; scalpel.targetY = scalpel._y; scalpel.overStage = false; stift.gotoAndPlay(numLast); textHint_mc.txt_mc.gotoAndStop(2); textHint_mc.gotoAndPlay("in"); btnOver.useHandCursor = false; newError = true; error = 0; allSounds.createEmptyMovieClip("snijden_mc", 900); snijdenSound = new Sound(allSounds.snijden_mc); snijdenSound.attachSound("snijden"); snijdenSound.setVolume(0); snijdenSound.onSoundComplete = function () { this.start(); }; this.onMouseDown = function () { if (this.scalpel._currentframe == (this.scalpel._totalframes - 1)) { this.scalpel.mouseIsDown = true; } }; this.onMouseUp = function () { this.scalpel.mouseIsDown = false; newError = true; }; scalpel.onRelease = function () { startMove = true; this.stickMode = false; Mouse.hide(); this.startDrag(true); this.scalpelBack = false; if (this._currentframe == 1) { textHint_mc.gotoAndPlay("out"); pakopSound.start(); this.gotoAndPlay(2); } clearInterval(cutInterval); clearInterval(scalpelsInterval); scalpelsInterval = setInterval(scalpel, "moveScalpels", 1000 / framerate); cutInterval = setInterval(scalpel, "cut", 1000 / framerate); }; scalpel.moveScalpels = function () { if (this._x != this.xOld) { this.rotationTo = ((this._x - this.xOld) / 50) * 30; this.xOld = this._x; } this._rotation = this._rotation + ((this.rotationTo - this._rotation) / 6); this.rotationTo = this.rotationTo - 0.1; if (this.rotationTo < 0) { this.rotationTo = 0; } }; scalpel.cut = function () { if (this.stickMode) { if (snijdenSound.getVolume() == 0) { snijdenSound.start(); snijdenSound.setVolume(100); } if (this.scalpelBack) { snijdenSound.stop(); snijdenSound.setVolume(0); } lijnX = mask._x + mask.follow._x; lijnY = mask._y + mask.follow._y; difX = lijnX - _root._xmouse; if ((difX >= -17) and (difX <= -13)) { this.cutting.gotoAndStop(2); } if ((difX > -13) and (difX <= -8)) { this.cutting.gotoAndStop(3); } if ((difX > -8) and (difX <= -3)) { this.cutting.gotoAndStop(4); } if ((difX > -3) and (difX <= 3)) { this.cutting.gotoAndStop(5); } if ((difX > 3) and (difX <= 8)) { this.cutting.gotoAndStop(6); } if ((difX > 8) and (difX <= 13)) { this.cutting.gotoAndStop(7); } if ((difX > 13) and (difX <= 17)) { this.cutting.gotoAndStop(8); } if ((difX < 17) and (difX > -17)) { this._x = lijnX + 2; this._y = _root._ymouse; pos = Math.ceil((this._y - 262) / 13) - 1; if (pos == (_root.mask._currentframe + 1)) { if ((pos < 5) and (!m1)) { m1 = true; writeMssg("Good! Go on."); } if (((pos > 4) and (pos < 8)) and (!m2)) { m2 = true; writeMssg("You're halfway...."); } if (((pos > 7) and (pos < 11)) and (!m3)) { m3 = true; writeMssg("A little more...."); } if ((pos > 10) and (!m4)) { m4 = true; writeMssg("Almost there..."); } _root.mask.nextFrame(); _root.rand.nextFrame(); _level0.krassen["cutLine" + cl].moveTo(_root._xmouse, _root._ymouse); _level0.krassen["shadowLine" + cl].moveTo(_root._xmouse + 1, _root._ymouse + 1); } if (_root.mask._currentframe == 12) { this.scalpelBack = true; snijdenSound.setVolume(0); _root.mask.gotoAndPlay(20); _root.rand.gotoAndPlay(20); this.mouseIsDown = false; this.stickMode = false; play(); } } else { this.startDrag(true); this.cutting.gotoAndStop(1); this.stickMode = false; } } else { snijdenSound.setVolume(0); if (this.scalpelBack) { this.stopDrag(); Mouse.show(); this._x = this._x + ((this.targetX - this._x) / 2); this._y = this._y + ((this.targetY - this._y) / 2); this.prevFrame(); if (((((this._x - this.targetX) < 1) and ((this._x - this.targetX) > -1)) and (((this._y - this.targetY) < 1) and ((this._y - this.targetY) > -1))) and (this._currentframe == 1)) { clearInterval(cutInterval); clearInterval(scalpelsInterval); Mouse.show(); this._x = this.targetX; this._y = this.targetY; scalpel.scalpelDropshadow.gotoAndStop(2); _root.scalpel2.gotoAndStop(_root.scalpel._currentframe); _root.scalpel3.gotoAndStop(_root.scalpel._currentframe); } } else { if ((this._x < 581) and (this._x > 0)) { if ((this.mouseIsDown and hitBelly.hitTest(this._x, this._y, true)) and (_root._ymouse >= yMouseOld)) { if (startMove) { cl++; _level0.krassen.createEmptyMovieClip("cutLine" + cl, _level0.krassen.getNextHighestDepth()); _level0.krassen.createEmptyMovieClip("shadowLine" + cl, _level0.krassen.getNextHighestDepth()); _level0.krassen["cutLine" + cl].lineStyle(1, 16711680, 100, true, "none", "round", "miter", 1); _level0.krassen["shadowLine" + cl].lineStyle(1, 0, 100, true, "none", "round", "miter", 1); _level0.krassen["cutLine" + cl].moveTo(_root._xmouse, _root._ymouse); _level0.krassen["shadowLine" + cl].moveTo(_root._xmouse + 1, _root._ymouse); startMove = false; } hit = stift.hitTest(this._x, this._y, true); if (hit) { pos = Math.ceil((this._y - 262) / 13) - 1; if (pos == (_root.mask._currentframe + 1)) { writeMssg("That's right!"); _root.mask.nextFrame(); _root.rand.nextFrame(); _level0.krassen["cutLine" + cl].moveTo(_root._xmouse, _root._ymouse); _level0.krassen["shadowLine" + cl].moveTo(_root._xmouse + 1, _root._ymouse + 1); } if (_root.mask._currentframe == 12) { this.scalpelBack = true; _root.rand.gotoAndPlay(20); _root.mask.gotoAndPlay(20); this.mouseIsDown = false; play(); } this.stopDrag(); this.stickMode = true; this.gotoAndStop(this._totalframes); } else if (this.mouseIsDown) { _level0.krassen["cutLine" + cl].lineTo(_root._xmouse, _root._ymouse); _level0.krassen["shadowLine" + cl].lineTo(_root._xmouse + 1, _root._ymouse + 1); _root.writeMssg("Carefull! Follow the line! From top to bottom..."); if (newError) { newError = false; error++; } this.gotoAndStop(this._totalframes); } } else { this.gotoAndStop(this._totalframes - 1); startMove = true; } } xMouseOld = _root._xmouse; yMouseOld = _root._ymouse; } } }; container2.attachMovie("darmB", "darmB", 1); container3.attachMovie("darmC", "darmC", 1); setActiveOrgan("0"); stop();
Frame 129
delete scalpel.onRelease; writeMssg("Excellent! Move the intestines to the side.\n The top one must go left, the other to the right.");
Frame 134
if (_root.tracker) { doInterface("game/darmen"); } _root.snijdenSound.setVolume(0); textHint_mc.txt_mc.gotoAndStop(3); textHint_mc.gotoAndPlay("in"); pincet_front.pincetDropshadow.gotoAndStop(3); pincet_back2.noShade = true; pincetPosX = 0; pincetPosY = 0; konijnLeft._visible = false; _root.pincet_front3.onEnterFrame = function () { pfx = _root.pincet_front._x; pfy = _root.pincet_front._y; this._x = pfx - 2; this._y = pfy - 4; this.gotoAndStop(_root.pincet_front._currentframe); }; pincet_front.targetX = pincet_front._x; pincet_front.targetY = pincet_front._y; pincet_front.overStage = false; this.onMouseDown = function () { this.pincet_front.mouseIsDown = true; }; this.onMouseUp = function () { this.pincet_front.mouseIsDown = false; }; pincet_front.onEnterFrame = function () { if (this._x != this.xOld) { this.rotationTo = ((this._x - this.xOld) / 50) * 30; this.xOld = this._x; if (this.rotationTo < -35) { this.rotationTo = -35; } } this._rotation = this._rotation + ((this.rotationTo - this._rotation) / 6); this.rotationTo = this.rotationTo - 0.1; if (this.rotationTo < 0) { this.rotationTo = 0; } _root.pincet_front3._rotation = (_root.pincet_back0._rotation = (_root.pincet_back1._rotation = (_root.pincet_back2._rotation = (_root.pincetDropshadow._rotation = this._rotation)))); _root.pincet_back0.gotoAndStop(this._currentframe); _root.pincet_back1.gotoAndStop(this._currentframe); _root.pincet_back2.gotoAndStop(this._currentframe); _root.pincet_back0._x = (_root.pincet_back1._x = (_root.pincet_back2._x = this._x)); _root.pincet_back0._y = (_root.pincet_back1._y = (_root.pincet_back2._y = this._y)); this.allFree = false; if (_root.darmBfree and _root.darmCfree) { this.pincetBack = true; this.allFree = true; } if ((container1.docked and container2.docked) and container3.docked) { this.pincetBack = true; this.allFree = true; } if (this.pincetBack) { this.pincetBack = false; if (this.allFree) { pincetPosX = this._x; pincetPosY = this._y; _root.gotoAndStop("pincet2"); delete this.onEnterFrame; } } if ((this._x < 601) and (this._x > 0)) { if (this.mouseIsDown) { if ((this._currentframe > 17) or (this._currentframe == 12)) { this.gotoAndPlay("in"); } } else { if ((this._currentframe < 18) and (this._currentframe > 12)) { this.gotoAndPlay("uit"); } this.mouseIsDown = false; } } if (this.overStage) { } else if (this._x < 700) { this.overStage = true; } }; pincet_front.onRelease = function () { Mouse.hide(); textHint_mc.gotoAndPlay("out"); pakopSound.start(); this.startDrag(true, 400, 350, 950, 430); this.pincetDropshadow.gotoAndStop(1); this.pincetBack = false; this.play(); delete this.onRelease; }; stop();
Frame 140
function moveOn() { gotoAndStop ("pil"); } function moveOutTray() { tray.moveOut(battery._x - tray._x, battery._y - tray._y); } function moveBattery() { battery._rotation = _root.pincet_front._rotation * 4.5; battery._x = _root.pincet_front._x; battery._y = _root.pincet_front._y; } if (_root.tracker) { doInterface("game/handje"); } delete snijdenSound; writeMssg("Carefully pick up the hand and drop it in the tray."); allSounds.createEmptyMovieClip("bakje_mc", 1000); bakjeSound = new Sound(allSounds.bakje_mc); bakjeSound.attachSound("bakje"); pincet_back2.noShade = true; pincet_front.pincetDropshadow.gotoAndStop(2); battery.targetX = battery._x; battery.targetY = battery._y; pincet_front._x = pincetPosX; pincet_front._y = pincetPosY; pincet_front.gotoAndStop("in"); tray._visible = false; tray.moveIn = function (pillOffsetX, pillOffsetY) { tXto = -160; tYto = 170; tray._visible = true; this.slideTo(tXto, tYto, 0.5, "easeOutCubic"); if (pillOffsetX) { pil._visible = true; pil.slideTo(tXto + pillOffsetX, tYto + pillOffsetY, 0.5, "easeOutCubic"); } }; tray.moveOut = function (batteryOffsetX, batteryOffsetY) { tXto = -730; tYto = 800; this.slideTo(tXto, tYto, 0.5, "easeInCubic", 0, moveOn); if (batteryOffsetX) { battery.slideTo(tXto + batteryOffsetX, tYto + batteryOffsetY, 0.5, "easeInCubic"); } }; battery.dragStart = function () { clearInterval(dragID); dragID = setInterval(moveBattery, 5); tray.moveIn(); }; battery.dragStop = function () { clearInterval(dragID); }; battery.onPress = function () { this.dragStart(); batteryMask._visible = false; battery.gotoAndStop(2); }; battery.onRelease = (battery.onReleaseOutside = function () { this.dragStop(); this.moveBack(); }); battery.moveBack = function () { if (tray.vlak.hitTest(_xmouse, _ymouse, true)) { battery.gotoAndStop(3); bakjeSound.start(); moveOutTray(); } else { battery.gotoAndStop(1); this.slideTo(this.targetX, this.targetY, 0.3, "easeOutCubic"); } }; pincet_front.init = function () { Mouse.hide(); this.startDrag(true, 0, 0, 950, 600); this.pincetBack = false; this.play(); delete this.onRelease; }; _root.pincet_back2.onEnterFrame = function () { this._x = (pincet_back3._x = _root.pincet_front._x); this._y = (pincet_back3._y = _root.pincet_front._y); }; pincet_front.targetX = pincet_front._x; pincet_front.targetY = pincet_front._y; pincet_front.onEnterFrame = function () { if (this._x != this.xOld) { this.rotationTo = ((this._x - this.xOld) / 50) * 30; this.xOld = this._x; } this._rotation = this._rotation + ((this.rotationTo - this._rotation) / 6); this.rotationTo = this.rotationTo - 0.1; if (this.rotationTo < 0) { this.rotationTo = 0; } _root.pincet_front3._rotation = (_root.pincet_back3._rotation = (_root.pincet_back0._rotation = (_root.pincet_back1._rotation = (_root.pincet_back2._rotation = (_root.pincetDropshadow._rotation = this._rotation))))); pincet_front3._x = this._x; pincet_front3._y = this._y; _root.pincet_front3.gotoAndStop(this._currentframe); _root.pincet_back2.gotoAndStop(this._currentframe); _root.pincet_back3.gotoAndStop(this._currentframe); if (this.pincetBack) { this._x = this._x + ((this.targetX - this._x) / 2); this._y = this._y + ((this.targetY - this._y) / 2); this.prevFrame(); thisX = this._x; thisY = this._y; if (((((thisX - this.targetX) < 1) and ((thisX - this.targetX) > -1)) and (((thisY - this.targetY) < 1) and ((thisY - this.targetY) > -1))) and (this._currentframe == 1)) { this._x = this.targetX; this._y = this.targetY; pincet_front.pincetDropshadow.gotoAndStop(2); } } if (this.mouseIsDown) { if ((this._currentframe > 17) or (this._currentframe == 12)) { this.gotoAndPlay("in"); } } else { if ((this._currentframe < 18) and (this._currentframe > 12)) { this.gotoAndPlay("uit"); } this.mouseIsDown = false; } if (this.overStage) { } else if (this._x < 700) { this.overStage = true; } }; pincet_front.init(); stop();
Frame 153
if (_root.tracker) { doInterface("game/pil"); } delete battery.onPress; delete battery.onRelease; delete battery.onReleaseOutside; delete bakjeSound; writeMssg("Insert the pill in the belly, 10mg should do it."); pil._x = battery._x - 40; pil._y = battery._y - 30; battery._visible = false; tray.moveIn(pil._x - tray._x, pil._y - tray._y); var trayOut = true; tray.moveOut = function (batteryOffsetX, batteryOffsetY) { trayOut = false; tXto = -730; tYto = 800; this.slideTo(tXto, tYto, 0.5, "easeInCubic"); }; pil.dragStart = function () { dragID = setInterval(_root.pil, "movePil", 5); }; pil.dragStop = function () { clearInterval(dragID); }; pil.onPress = function () { if (trayOut) { tray.moveOut(); } this.dragStart(); }; pil.onRelease = (pil.onReleaseOutside = function () { this.dragStop(); this.moveBack(); }); pil.moveBack = function () { this._y = this._y + 4; if ((((this._x > (this.xTo - 40)) and (this._x < (this.xTo + 40))) and (this._y > (this.yTo - 40))) and (this._y < (this.yTo + 40))) { if (!_root.gameEnd) { _root.enlightment = true; gotoAndStop ("end"); } } }; pil.movePil = function () { this._x = _root.pincet_front._x - (0.5 * this._width); this._y = _root.pincet_front._y - (0.5 * this._height); }; pil.targetX = pil._x; pil.targetY = pil._y; pil.xTo = 430; pil.yTo = 320; stop();
Frame 161
if (_root.tracker) { doInterface("game/verlichting"); } delete pil.onPress; delete pil.onRelease; delete _root.onMouseDown; delete _root.onMouseUp; delete _root.pincet_front.onEnterFrame; delete _root.pincet_front3.onEnterFrame; play(); allSounds.createEmptyMovieClip("verlichting_mc", 1100); verlichtingSound = new Sound(allSounds.verlichting_mc); verlichtingSound.attachSound("verlichting"); verlichtingSound.start(0, 100); verlichtingSound.fade(2000, 0, 100); flatlineSound.fade(2000, flatlineSound.getVolume(), 0); introSound.fade(2000, introSound.getVolume(), 0); _root.pincet_back2.onEnterFrame = function () { this._alpha = this._alpha - 10; }; pincet_front.onEnterFrame = function () { this._alpha = this._alpha - 10; }; pincet_front3.onEnterFrame = function () { this._alpha = this._alpha - 10; }; marker.onEnterFrame = function () { this._alpha = this._alpha - 10; }; battery.onEnterFrame = function () { this._alpha = this._alpha - 10; }; setPositions();
Frame 174
setPositions();
Frame 191
setPositions(); Mouse.show(); delete pincet_back2.onEnterFrame; delete pincet_front2.onEnterFrame; delete pincet_front.onEnterFrame; delete marker.onEnterFrame; delete battery.onEnterFrame;
Frame 243
gotoAndPlay ("repeat");
Frame 346
if (_root.tracker) { doInterface("game/dood"); } delete _root.onMouseDown; delete _root.onMouseUp; delete _root.pincet_front.onEnterFrame; delete _root.pincet_front3.onEnterFrame; delete _root.scratchControl.onMouseMove; setPositions(); square.removeMovieClip(); allSounds.createEmptyMovieClip("dood_mc", 1400); delete snijdenSound; effectSound.setVolume(0); delete effectSound; delete squareInterval; doodSound = new Sound(allSounds.dood_mc); doodSound.attachSound("dood_sound"); doodSound.start(0, 1000); doodSound.fade(3000, 0, 100); dood_mc._visible = true; Mouse.show(); dood_mc.gotoAndPlay(2); stop();
Symbol 2 MovieClip [darmB] Frame 1
function resetOrgans(draggedOrgan) { _root.snijdenSound.setVolume(0); _root.container2.docked = false; organ.piece22.xTo = 70; organ.piece22.yTo = 80; draggedOrgan = organ.piece22; clearInterval(dragID); y = 0; while (y < (maxItems - 1)) { theOrgan = organ["piece" + y]; if (theOrgan.id < draggedOrgan.id) { theOrgan.xTo = organ.piece0._x + (((draggedOrgan.xTo - organ.piece0._x) / draggedOrgan.id) * theOrgan.id); theOrgan.yTo = organ.piece0._y + (((draggedOrgan.yTo - organ.piece0._y) / draggedOrgan.id) * theOrgan.id); } if (theOrgan.id > draggedOrgan.id) { difX = organ["piece" + (maxItems - 1)]._x - draggedOrgan.xTo; theOrgan.xTo = draggedOrgan.xTo + ((difX / (maxItems - draggedOrgan.id)) * (theOrgan.id - draggedOrgan.id)); difY = organ["piece" + (maxItems - 1)]._y - draggedOrgan.yTo; theOrgan.yTo = draggedOrgan.yTo + ((difY / (maxItems - draggedOrgan.id)) * (theOrgan.id - draggedOrgan.id)); } organXTween = new mx.transitions.Tween(theOrgan, "_x", mx.transitions.easing.Bounce.easeOut, theOrgan._x, theOrgan.xTo, 0.5, true); organYTween = new mx.transitions.Tween(theOrgan, "_y", mx.transitions.easing.Bounce.easeOut, theOrgan._y, theOrgan.yTo, 0.5, true); y++; } } function setOrgans(draggedOrgan) { _root.snijdenSound.setVolume(100); outside = true; y = 0; while (y < (maxItems - 1)) { theOrgan = organ["piece" + y]; if (y != draggedOrgan.id) { theOrgan.oldX = theOrgan._x; theOrgan.oldY = theOrgan._y; } if (theOrgan.id < draggedOrgan.id) { theOrgan._x = organ.piece0._x + (((draggedOrgan._x - organ.piece0._x) / draggedOrgan.id) * theOrgan.id); theOrgan._y = organ.piece0._y + (((draggedOrgan._y - organ.piece0._y) / draggedOrgan.id) * theOrgan.id); } if (theOrgan.id > draggedOrgan.id) { difX = organ["piece" + (maxItems - 1)]._x - draggedOrgan._x; theOrgan._x = draggedOrgan._x + ((difX / (maxItems - draggedOrgan.id)) * (theOrgan.id - draggedOrgan.id)); difY = organ["piece" + (maxItems - 1)]._y - draggedOrgan._y; theOrgan._y = draggedOrgan._y + ((difY / (maxItems - draggedOrgan.id)) * (theOrgan.id - draggedOrgan.id)); } if (_root.batteryShape.hitTest((theOrgan._x + this._parent._x) + organ._x, (theOrgan._y + this._parent._y) + organ._y, true)) { outside = false; } y++; } if (outside) { _root.darmBfree = true; } else { _root.darmBfree = false; } } function checkOrgans(draggedOrgan) { _root.darmBfree = false; if ((_level0._ymouse < 430) and (_level0._ymouse > 360)) { if (_root.container1.hitTest(_root._xmouse, _root._ymouse, true) and (!_root.container1.docked)) { resetOrgans(draggedOrgan); } draggedOrgan.oldX = draggedOrgan._x; if (draggedOrgan._x < -35) { _root.container2.docked = true; } else { _root.container2.docked = false; } draggedOrgan.oldY = draggedOrgan._y; draggedOrgan._x = organ._xmouse; draggedOrgan._y = organ._ymouse; collapse = false; marge = 1.3; diff1x = organ.piece1._x - organ.piece0._x; if ((diff1x > (marge * organ.piece1._width)) or (diff1x < (marge * (-organ.piece1._width)))) { collapse = true; } } else { collapse = true; } if (collapse) { resetOrgans(draggedOrgan); } else { setOrgans(draggedOrgan); } } this.createEmptyMovieClip("organ", 2); _root.container2.docked = false; organ._x = 130; organ._y = 250; var maxItems = 30; organ.setMask("gat"); var x = 0; while (x < maxItems) { var org = organ.attachMovie("pieceB", "piece" + x, x, {_x:x * 2, _y:x * 5, id:x}); org._xscale = (org._yscale = 20 + (x * 3)); org.oldX = org._x; org.oldY = org._y; org.gotoAndPlay(maxItems - x); org.dragStart = function () { clearInterval(dragID); dragID = setInterval(checkOrgans, 200, organ.piece18); _root.snijdenSound.setVolume(100); }; org.dragStop = function () { _root.setActiveOrgan("0"); _root.snijdenSound.setVolume(0); clearInterval(dragID); }; org.onPress = function () { if (_root.pincet_front._currentframe > 1) { _root.activeOrg = this; _root.setActiveOrgan("B"); this.dragStart(); } }; org.onRelease = (org.onReleaseOutside = function () { this.dragStop(); }); x++; } organ.piece18._x = 70; organ.piece18._y = 80; setOrgans(organ.piece18); resetOrgans();
Symbol 5 MovieClip [pieceB] Frame 1
stop();
Symbol 6 MovieClip [darmC] Frame 1
function resetOrgans(draggedOrgan) { _root.snijdenSound.setVolume(0); clearInterval(dragID); docked = false; organ.piece20.xTo = 120; organ.piece20.yTo = 40; draggedOrgan = organ.piece20; y = 0; while (y < (maxItems - 1)) { theOrgan = organ["piece" + y]; if (theOrgan.id < draggedOrgan.id) { theOrgan.xTo = organ.piece0._x + (((draggedOrgan.xTo - organ.piece0._x) / draggedOrgan.id) * theOrgan.id); theOrgan.yTo = organ.piece0._y + (((draggedOrgan.yTo - organ.piece0._y) / draggedOrgan.id) * theOrgan.id); } if (theOrgan.id > draggedOrgan.id) { difX = organ["piece" + (maxItems - 1)]._x - draggedOrgan.xTo; theOrgan.xTo = draggedOrgan.xTo + ((difX / (maxItems - draggedOrgan.id)) * (theOrgan.id - draggedOrgan.id)); difY = organ["piece" + (maxItems - 1)]._y - draggedOrgan.yTo; theOrgan.yTo = draggedOrgan.yTo + ((difY / (maxItems - draggedOrgan.id)) * (theOrgan.id - draggedOrgan.id)); } organXTween = new mx.transitions.Tween(theOrgan, "_x", mx.transitions.easing.Bounce.easeOut, theOrgan._x, theOrgan.xTo, 0.5, true); organYTween = new mx.transitions.Tween(theOrgan, "_y", mx.transitions.easing.Bounce.easeOut, theOrgan._y, theOrgan.yTo, 0.5, true); y++; } } function setOrgans(draggedOrgan) { _root.snijdenSound.setVolume(100); outside = true; y = 0; while (y < (maxItems - 1)) { theOrgan = organ["piece" + y]; if (y != draggedOrgan.id) { theOrgan.oldX = theOrgan._x; theOrgan.oldY = theOrgan._y; } if (theOrgan.id < draggedOrgan.id) { theOrgan._x = organ.piece0._x + (((draggedOrgan._x - organ.piece0._x) / draggedOrgan.id) * theOrgan.id); theOrgan._y = organ.piece0._y + (((draggedOrgan._y - organ.piece0._y) / draggedOrgan.id) * theOrgan.id); } if (theOrgan.id > draggedOrgan.id) { difX = organ["piece" + (maxItems - 1)]._x - draggedOrgan._x; theOrgan._x = draggedOrgan._x + ((difX / (maxItems - draggedOrgan.id)) * (theOrgan.id - draggedOrgan.id)); difY = organ["piece" + (maxItems - 1)]._y - draggedOrgan._y; theOrgan._y = draggedOrgan._y + ((difY / (maxItems - draggedOrgan.id)) * (theOrgan.id - draggedOrgan.id)); } if (draggedOrgan._x < 0) { this.organ.removeMovieClip(); } if (_root.batteryShape.hitTest((theOrgan._x + this._parent._x) + organ._x, (theOrgan._y + this._parent._y) + organ._y, true)) { outside = false; } y++; } if (outside) { _root.darmCfree = true; } else { _root.darmCfree = false; } } function checkOrgans(draggedOrgan) { _root.darmCfree = false; if ((_level0._ymouse < 430) and (_level0._ymouse > 360)) { if (_root.container2.hitTest(_root._xmouse, _root._ymouse, true) and (!_root.container2.docked)) { resetOrgans(draggedOrgan); } draggedOrgan.oldX = draggedOrgan._x; if ((draggedOrgan._x > 180) or ((draggedOrgan._y > 100) and (draggedOrgan._x > 170))) { docked = true; } else { docked = false; } draggedOrgan.oldY = draggedOrgan._y; draggedOrgan._x = organ._xmouse; draggedOrgan._y = organ._ymouse; collapse = false; marge = 1.3; diff1x = organ.piece1._x - organ.piece0._x; if ((diff1x > (marge * organ.piece1._width)) or (diff1x < (marge * (-organ.piece1._width)))) { collapse = true; } } else { collapse = true; } if (collapse) { resetOrgans(draggedOrgan); } else { setOrgans(draggedOrgan); } } this.createEmptyMovieClip("organ", 2); docked = false; organ._x = 50; organ._y = 270; var maxItems = 30; organ.setMask("gat"); var x = 0; while (x < maxItems) { var org = organ.attachMovie("piece", "piece" + x, x, {_x:200 + (x * -2), _y:40 + (x * 2), id:x}); org._xscale = (org._yscale = 20 + (x * 3)); org.oldX = org._x; org.oldY = org._y; org.gotoAndPlay(maxItems - x); org.dragStart = function () { _root.snijdenSound.setVolume(100); clearInterval(dragID); dragID = setInterval(checkOrgans, 200, organ.piece20); }; org.dragStop = function () { _root.snijdenSound.setVolume(0); _root.setActiveOrgan("0"); clearInterval(dragID); }; org.onPress = function () { if (_root.pincet_front._currentframe > 1) { _root.activeOrg = this; _root.setActiveOrgan("C"); this.dragStart(); } }; org.onRelease = (org.onReleaseOutside = function () { this.dragStop(); }); x++; } organ.piece20._x = 120; organ.piece20._y = 40; setOrgans(organ.piece20);
Symbol 16 MovieClip [VideoPlayer] Frame 1
#initclip 20 Object.registerClass("VideoPlayer", mx.video.VideoPlayer); #endinitclip
Symbol 20 MovieClip [FLVPlayback] Frame 1
#initclip 21 Object.registerClass("FLVPlayback", mx.video.FLVPlayback); #endinitclip stop();
Symbol 46 MovieClip Frame 53
Symbol 46 MovieClip Frame 103
gotoAndPlay (1);
Symbol 46 MovieClip Frame 119
stop(); _root.play();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 25
_root.play(); stop();
Symbol 795 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon { function OnEnterFrameBeacon () { } static function init() { var _local4 = _global.MovieClip; if (!_root.__OnEnterFrameBeacon) { mx.transitions.BroadcasterMX.initialize(_local4); var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876); _local3.onEnterFrame = function () { _global.MovieClip.broadcastMessage("onEnterFrame"); }; } } static var version = "1.1.0.52"; }
Symbol 796 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX { var _listeners; function BroadcasterMX () { } static function initialize(o, dontCreateArray) { if (o.broadcastMessage != undefined) { delete o.broadcastMessage; } o.addListener = mx.transitions.BroadcasterMX.prototype.addListener; o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener; if (!dontCreateArray) { o._listeners = new Array(); } } function addListener(o) { removeListener(o); if (broadcastMessage == undefined) { broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage; } return(_listeners.push(o)); } function removeListener(o) { var _local2 = _listeners; var _local3 = _local2.length; while (_local3--) { if (_local2[_local3] == o) { _local2.splice(_local3, 1); if (!_local2.length) { broadcastMessage = undefined; } return(true); } } return(false); } function broadcastMessage() { var _local5 = String(arguments.shift()); var _local4 = _listeners.concat(); var _local6 = _local4.length; var _local3 = 0; while (_local3 < _local6) { _local4[_local3][_local5].apply(_local4[_local3], arguments); _local3++; } } static var version = "1.1.0.52"; }
Symbol 797 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween { var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime; function Tween (obj, prop, func, begin, finish, duration, useSeconds) { mx.transitions.OnEnterFrameBeacon.init(); if (!arguments.length) { return; } this.obj = obj; this.prop = prop; this.begin = begin; position = (begin); this.duration = (duration); this.useSeconds = useSeconds; if (func) { this.func = func; } this.finish = (finish); _listeners = []; addListener(this); start(); } function set time(t) { prevTime = _time; if (t > duration) { if (looping) { rewind(t - _duration); update(); broadcastMessage("onMotionLooped", this); } else { if (useSeconds) { _time = _duration; update(); } stop(); broadcastMessage("onMotionFinished", this); } } else if (t < 0) { rewind(); update(); } else { _time = t; update(); } //return(time); } function get time() { return(_time); } function set duration(d) { _duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d)); //return(duration); } function get duration() { return(_duration); } function set FPS(fps) { var _local2 = isPlaying; stopEnterFrame(); _fps = fps; if (_local2) { startEnterFrame(); } //return(FPS); } function get FPS() { return(_fps); } function set position(p) { setPosition(p); //return(position); } function setPosition(p) { prevPos = _pos; obj[prop] = (_pos = p); broadcastMessage("onMotionChanged", this, _pos); updateAfterEvent(); } function get position() { return(getPosition()); } function getPosition(t) { if (t == undefined) { t = _time; } return(func(t, begin, change, _duration)); } function set finish(f) { change = f - begin; //return(finish); } function get finish() { return(begin + change); } function continueTo(finish, duration) { begin = position; this.finish = (finish); if (duration != undefined) { this.duration = (duration); } start(); } function yoyo() { continueTo(begin, time); } function startEnterFrame() { if (_fps == undefined) { _global.MovieClip.addListener(this); } else { _intervalID = setInterval(this, "onEnterFrame", 1000 / _fps); } isPlaying = true; } function stopEnterFrame() { if (_fps == undefined) { _global.MovieClip.removeListener(this); } else { clearInterval(_intervalID); } isPlaying = false; } function start() { rewind(); startEnterFrame(); broadcastMessage("onMotionStarted", this); } function stop() { stopEnterFrame(); broadcastMessage("onMotionStopped", this); } function resume() { fixTime(); startEnterFrame(); broadcastMessage("onMotionResumed", this); } function rewind(t) { _time = ((t == undefined) ? 0 : (t)); fixTime(); update(); } function fforward() { time = (_duration); fixTime(); } function nextFrame() { if (useSeconds) { time = ((getTimer() - _startTime) / 1000); } else { time = (_time + 1); } } function onEnterFrame() { nextFrame(); } function prevFrame() { if (!useSeconds) { time = (_time - 1); } } function toString() { return("[Tween]"); } function fixTime() { if (useSeconds) { _startTime = getTimer() - (_time * 1000); } } function update() { position = (getPosition(_time)); } static var version = "1.1.0.52"; static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init(); static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true); function func(t, b, c, d) { return(((c * t) / d) + b); } }
Symbol 798 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce { function Bounce () { } static function easeOut(t, b, c, d) { t = t / d; if (t < 0.363636363636364) { return((c * ((7.5625 * t) * t)) + b); } if (t < 0.727272727272727) { t = t - 0.545454545454545; return((c * (((7.5625 * t) * t) + 0.75)) + b); } if (t < 0.909090909090909) { t = t - 0.818181818181818; return((c * (((7.5625 * t) * t) + 0.9375)) + b); } t = t - 0.954545454545455; return((c * (((7.5625 * t) * t) + 0.984375)) + b); } static function easeIn(t, b, c, d) { return((c - easeOut(d - t, 0, c, d)) + b); } static function easeInOut(t, b, c, d) { if (t < (d / 2)) { return((easeIn(t * 2, 0, c, d) * 0.5) + b); } return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static var version = "1.1.0.52"; }
Symbol 799 MovieClip [__Packages.com.mosesSupposes.fuse.Shortcuts] Frame 0
class com.mosesSupposes.fuse.Shortcuts { function Shortcuts () { } static function initialize() { if (shortcuts == null) { initShortcuts(); } } static function doShortcut(obj, methodName) { initialize(); var _local5 = shortcuts[methodName]; if (_local5 == undefined) { if (typeof(obj) == "movieclip") { _local5 = mcshortcuts[methodName]; } } if (_local5 == undefined) { return(null); } obj = arguments.shift(); methodName = String(arguments.shift()); if (!(obj instanceof Array)) { obj = [obj]; } var _local3 = ""; for (var _local6 in obj) { var _local2 = String(_local5.apply(obj[_local6], arguments)); if ((_local2 != null) && (_local2.length > 0)) { if (_local3.length > 0) { _local3 = (_local2 + "|") + _local3; } else { _local3 = _local2; } } } return(((_local3 == "") ? null : (_local3))); } static function addShortcutsTo() { initialize(); var _local5 = function (o, so) { for (var _local5 in so) { var _local2 = so[_local5]; if (_local2.getter || (_local2.setter)) { o.addProperty(_local5, _local2.getter, _local2.setter); _global.ASSetPropFlags(o, _local5, 3, 1); } else { o[_local5] = _local2; _global.ASSetPropFlags(o, _local5, 7, 1); } } }; for (var _local7 in arguments) { var _local4 = arguments[_local7]; if ((_local4 == MovieClip.prototype) || (typeof(_local4) == "movieclip")) { _local5(_local4, mcshortcuts); } _local5(_local4, shortcuts); } } static function removeShortcutsFrom() { initialize(); var _local5 = function (o, so) { for (var _local5 in so) { _global.ASSetPropFlags(o, _local5, 0, 2); var _local2 = so[_local5]; if (_local2.getter || (_local2.setter)) { o.addProperty(_local5, null, null); } delete o[_local5]; } }; for (var _local7 in arguments) { var _local3 = arguments[_local7]; if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) { _local5(_local3, mcshortcuts); } _local5(_local3, shortcuts); } } static function parseStringTypeCallback(callbackStr) { var evaluate = function (val) { var first = val.charAt(0); if ((first == val.slice(-1)) && ((first == "\"") || (first == "'"))) { return(val.slice(1, -1)); } if (val == "true") { return(Object(true)); } if (val == "false") { return(Object(false)); } if (val == "null") { return(Object(null)); } if (_global.isNaN(Number(val)) == false) { return(Object(Number(val))); } return(Object(eval (val))); }; var trimWhite = function (str) { while (str.charAt(0) == " ") { str = str.slice(1); } while (str.slice(-1) == " ") { str = str.slice(0, -1); } return(str); }; var evaluateList = function (list) { var _local11 = []; var _local4 = 0; while (_local4 < list.length) { var _local3 = list[_local4]; _local3 = trimWhite(_local3); var _local5 = (_local3.charAt(0) == "{") && ((_local3.indexOf("}") > -1) || (_local3.indexOf(":") > -1)); var _local10 = _local3.charAt(0) == "["; if ((_local5 || (_local10)) == true) { var _local6 = ((_local5 == true) ? ({}) : ([])); var _local2 = _local4; while (_local2 < list.length) { if (_local2 == _local4) { _local3 = _local3.slice(1); } var _local1; var _local8 = (_local1.slice(-1) == ((_local5 == true) ? "}" : "]")) || (_local2 == (list.length - 1)); if (_local8 == true) { _local1 = _local1.slice(0, -1); } if ((_local5 == true) && (_local1.indexOf(":") > -1)) { var _local7 = _local1.split(":"); _local6[trimWhite(_local7[0])] = evaluate(trimWhite(_local7[1])); } else if (_local10 == true) { _local6.push(evaluate(trimWhite(_local1))); } if (_local8 == true) { _local11.push(_local6); _local4 = _local2; break; } _local2++; } } else { _local11.push(evaluate(trimWhite(_local3))); } _local4++; } return(_local11); }; var parts = callbackStr.split("("); var p0 = parts[0]; var p1 = parts[1]; return({func:p0.slice(p0.lastIndexOf(".") + 1), scope:eval (p0.slice(0, p0.lastIndexOf("."))), args:evaluateList(p1.slice(0, p1.lastIndexOf(")")).split(","))}); } static function initShortcuts() { shortcuts = new Object(); var methods = {alphaTo:"_alpha", scaleTo:"_scale", sizeTo:"_size", rotateTo:"_rotation", brightnessTo:"_brightness", brightOffsetTo:"_brightOffset", contrastTo:"_contrast", colorTo:"_tint", tintPercentTo:"_tintPercent", colorResetTo:"_colorReset", invertColorTo:"_invertColor"}; var _local4 = _global.com.mosesSupposes.fuse.FuseFMP.getAllShortcuts(); var _local6 = {blur:1, blurX:1, blurY:1, strength:1, shadowAlpha:1, highlightAlpha:1, angle:1, distance:1, alpha:1, color:1}; for (var _local9 in _local4) { if (_local6[_local4[_local9].split("_")[1]] === 1) { methods[_local4[_local9] + "To"] = _local4[_local9]; } } var _local7 = {__resolve:function (name) { var propName = methods[name]; return(function () { var _local4 = _global.com.mosesSupposes.fuse.ZigoEngine.doTween.apply(com.mosesSupposes.fuse.ZigoEngine, new Array(this, propName).concat(arguments)); return(_local4); }); }}; var _local5 = {__resolve:function (name) { var prop = name.slice(1); var _local3 = {getter:function () { return(_global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this)[prop]); }}; if ((prop == "tintString") || (prop == "tint")) { _local3.setter = function (v) { _global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this).tintPercent || 100, v); }; } else if (prop == "tintPercent") { _local3.setter = function (v) { _global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", v, _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this).tint); }; } else if (prop == "colorReset") { _local3.setter = function (v) { var _local3 = _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this); _global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", Math.min(100, Math.max(0, Math.min(_local3.tintPercent, 100 - v))), _local3.tint); }; } else { _local3.setter = function (v) { _global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, prop, v); }; } return(_local3); }}; for (var _local9 in methods) { shortcuts[_local9] = _local7[_local9]; if (_local9 == "colorTo") { shortcuts._tintString = _local5._tintString; } if ((((((_local9.indexOf("bright") == 0) || (_local9 == "contrastTo")) || (_local9 == "colorTo")) || (_local9 == "invertColor")) || (_local9 == "tintPercentTo")) || (_local9 == "colorResetTo")) { shortcuts[methods[_local9]] = _local5[methods[_local9]]; } } shortcuts.tween = function (props, endVals, seconds, ease, delay, callback) { if ((arguments.length == 1) && (typeof(props) == "object")) { return(com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, action:props})); } return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, props, endVals, seconds, ease, delay, callback)); }; shortcuts.stopTween = function (props) { com.mosesSupposes.fuse.ZigoEngine.removeTween(this, props); }; shortcuts.isTweening = function (prop) { return(com.mosesSupposes.fuse.ZigoEngine.isTweening(this, prop)); }; shortcuts.getTweens = function () { return(com.mosesSupposes.fuse.ZigoEngine.getTweens(this)); }; shortcuts.lockTween = function () { com.mosesSupposes.fuse.ZigoEngine.lockTween(this, true); }; shortcuts.unlockTween = function () { com.mosesSupposes.fuse.ZigoEngine.lockTween(this, false); }; shortcuts.isTweenLocked = function () { return(com.mosesSupposes.fuse.ZigoEngine.isTweenLocked(this)); }; shortcuts.isTweenPaused = function (prop) { return(com.mosesSupposes.fuse.ZigoEngine.isTweenPaused(this, prop)); }; shortcuts.pauseTween = function (props) { com.mosesSupposes.fuse.ZigoEngine.pauseTween(this, props); }; shortcuts.unpauseTween = function (props) { com.mosesSupposes.fuse.ZigoEngine.unpauseTween(this, props); }; shortcuts.pauseAllTweens = function () { com.mosesSupposes.fuse.ZigoEngine.pauseTween("ALL"); }; shortcuts.unpauseAllTweens = function () { com.mosesSupposes.fuse.ZigoEngine.unpauseTween("ALL"); }; shortcuts.stopAllTweens = function () { com.mosesSupposes.fuse.ZigoEngine.removeTween("ALL"); }; shortcuts.ffTween = function (props) { com.mosesSupposes.fuse.ZigoEngine.ffTween(this, props); }; shortcuts.rewTween = function (props, suppressStartEvents) { com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, false, suppressStartEvents); }; shortcuts.rewAndPauseTween = function (props, suppressStartEvents) { com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, true, suppressStartEvents); }; shortcuts.fadeIn = function (seconds, ease, delay, callback) { this._visible = true; return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", 100, seconds, ease, delay)); }; shortcuts.fadeOut = function (seconds, ease, delay, callback) { if (this.__fadeOutEnd == undefined) { this.__fadeOutEnd = {__owner:this, onTweenEnd:function (o) { this.onTweenInterrupt(o); if ((String(o.props.join(",")).indexOf("_alpha") > -1) && (this.__owner._alpha < 1)) { o.target._visible = false; } }, onTweenInterrupt:function (o) { if ((o.target == this.__owner) && (String(o.props.join(",")).indexOf("_alpha") > -1)) { this.__owner.removeListener(this); com.mosesSupposes.fuse.ZigoEngine.removeListener(this); } }}; _global.ASSetPropFlags(this, "__fadeOutEnd", 7, 1); } this.addListener(this.__fadeOutEnd); var _local3 = com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", 0, seconds, ease, delay, callback); com.mosesSupposes.fuse.ZigoEngine.addListener(this.__fadeOutEnd); return(_local3); }; shortcuts.bezierTo = function (destX, destY, controlX, controlY, seconds, ease, delay, callback) { return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_bezier_", {x:destX, y:destY, controlX:controlX, controlY:controlY}, seconds, ease, delay, callback)); }; shortcuts.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, ease, delay, callback) { return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_colorTransform", {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab}, seconds, ease, delay, callback)); }; shortcuts.tintTo = function (rgb, percent, seconds, ease, delay, callback) { var _local3 = {}; _local3.rgb = arguments.shift(); _local3.percent = arguments.shift(); return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_tint", {tint:rgb, percent:percent}, seconds, ease, delay, callback)); }; shortcuts.slideTo = function (destX, destY, seconds, ease, delay, callback) { return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_x,_y", [destX, destY], seconds, ease, delay, callback)); }; shortcuts._size = {getter:function () { return(((this._width == this._height) ? (this._width) : null)); }, setter:function (v) { com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_size", v, 0); }}; shortcuts._scale = {getter:function () { return(((this._xscale == this._yscale) ? (this._xscale) : null)); }, setter:function (v) { com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_scale", v, 0); }}; mcshortcuts = new Object(); mcshortcuts._frame = {getter:function () { return(this._currentframe); }, setter:function (v) { this.gotoAndStop(Math.round(v)); }}; mcshortcuts.frameTo = function (endframe, seconds, ease, delay, callback) { return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_frame", ((endframe != undefined) ? (endframe) : (this._totalframes)), seconds, ease, delay, callback)); }; } static var registryKey = "shortcuts"; static var shortcuts = null; static var mcshortcuts = null; }
Symbol 800 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon { static var logOutput; function FuseKitCommon () { } static function _cts() { return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|"); } static function _underscoreable() { return(_cts() + "_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_visible|"); } static function _cbprops() { return("|skipLevel|cycles|easyfunc|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|extra1|extra2|"); } static function _fuseprops() { return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|"); } static function output(s) { if (typeof(logOutput) == "function") { logOutput(s); } } static function error(errorCode, a1, a2, a3) { if (VERBOSE != true) { output(("[FuseKitCommon#" + errorCode) + "]"); return(undefined); } var _local1 = ""; var _local3 = newline; switch (errorCode) { case "001" : _local1 = _local1 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **"; _local1 = _local1 + (_local3 + " import com.mosesSupposes.fuse.*;"); _local1 = _local1 + ((_local3 + " ZigoEngine.simpleSetup(Shortcuts);") + _local3); break; case "002" : _local1 = _local1 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **"; break; case "003" : _local1 = _local1 + ((_local3 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local3); break; case "004" : _local1 = _local1 + (("** ZigoEngine.doTween - too few arguments [" + a1) + "]. If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **"); break; case "005" : _local1 = _local1 + (((("** ZigoEngine.doTween - missing targets[" + a1) + "] and/or props[") + a2) + "] **"); break; case "006" : _local1 = _local1 + (("** Error: easing shortcut string not recognized (\"" + a1) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **"); break; case "007" : _local1 = _local1 + (((("- ZigoEngine: Target locked [" + a1) + "], ignoring tween call [") + a2) + "]"); break; case "008" : _local1 = _local1 + "** ZigoEngine: You must register the Shortcuts class in order to use easy string-type callback parsing. **"; break; case "009" : _local1 = _local1 + (("-ZigoEngine: A callback parameter \"" + a1) + "\" was not recognized."); break; case "010" : _local1 = _local1 + ((("-Engine unable to parse " + ((a1 == 1) ? "callback[" : (String(a1) + " callbacks["))) + a2) + "]. Try using the syntax {scope:this, func:\"myFunction\"}"); break; case "011" : _local1 = _local1 + (((("-ZigoEngine: Callbacks discarded via skipLevel 2 option [" + a1) + "|") + a2) + "]."); break; case "012" : _local1 = _local1 + (((((("-Engine set props or ignored no-change tween on: " + a1) + ", props passed:[") + a2) + "], endvals passed:[") + a3) + "]"); break; case "013" : _local1 = _local1 + (((((("-Engine added tween on:\n\ttargets:[" + a1) + "]\n\tprops:[") + a2) + "]\n\tendvals:[") + a3) + "]"); break; case "014" : _local1 = _local1 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **"; break; case "101" : _local1 = _local1 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **"; _local1 = _local1 + (_local3 + " You must now use the following commands:"); _local1 = _local1 + ((_local3 + _local3) + "\timport com.mosesSupposes.fuse.*;"); _local1 = _local1 + (_local3 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);"); _local1 = _local1 + ((_local3 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local3); break; case "102" : _local1 = _local1 + (("** Fuse skipTo label not found: \"" + a1) + "\" **"); break; case "103" : _local1 = _local1 + (("** Fuse skipTo failed (" + a1) + ") **"); break; case "104" : _local1 = _local1 + (((("** Fuse command skipTo (" + a1) + ") ignored - targets the current index (") + a2) + "). **"); break; case "105" : _local1 = _local1 + "** An unsupported Array method was called on Fuse. **"; break; case "106" : _local1 = _local1 + "** ERROR: You have not set up Fuse correctly. **"; _local1 = _local1 + (_local3 + "You must now use the following commands (PennerEasing is optional)."); _local1 = _local1 + (_local3 + "\timport com.mosesSupposes.fuse.*;"); _local1 = _local1 + ((_local3 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local3); break; case "107" : _local1 = _local1 + "** Fuse :: id not found - Aborting open(). **"; break; case "108" : _local1 = _local1 + "** Fuse.startRecent: No recent Fuse found to start! **"; break; case "109" : _local1 = _local1 + (("** Commands other than \"delay\" are not allowed within groups. Command discarded (\"" + a1) + "\")"); break; case "110" : _local1 = _local1 + (("** A Fuse.addCommand parameter (\"" + a1) + "\") is not valid and was discarded. If you are trying to add a function-call try the syntax Fuse.addCommand(this,\"myCallback\",param1,param2); **"); break; case "111" : _local1 = _local1 + (("** A Fuse command parameter failed. (\"" + a1) + "\") **"); break; case "112" : _local1 = _local1 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **"; break; case "113" : _local1 = _local1 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **"; break; case "114" : _local1 = _local1 + (("** FuseItem: command (\"" + a1) + "\") discarded. Commands may not appear within action groups (arrays). **"); break; case "115" : _local1 = _local1 + ((a1 + " overlapping prop discarded: ") + a2); break; case "116" : _local1 = _local1 + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _local3); break; case "117" : _local1 = _local1 + (("** " + a1) + ": infinite cycles are not allowed within Fuses - discarded. **"); break; case "118" : _local1 = _local1 + (("** Fuse Error: No targets in " + a1) + ((a2 == true) ? " [Unable to set start props] **" : " [Skipping this action] **")); break; case "119" : _local1 = _local1 + (((("** Fuse warning: " + a2) + ((a2 == 1) ? " target missing in " : " targets missing in ")) + a3) + ((a1 == true) ? " during setStartProps **" : " **")); break; case "120" : _local1 = _local1 + (((("** " + a1) + ": conflict with \"") + a2) + "\". Property might be doubled within a grouped-action array. **"); break; case "121" : _local1 = _local1 + "** Timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **"; break; case "122" : _local1 = _local1 + "** FuseItem: You must register the Shortcuts class in order to use easy string-type callback parsing. **"; break; case "123" : _local1 = _local1 + "** FuseItem unable to target callback. Try using the syntax {scope:this, func:\"myFunction\"} **"; break; case "124" : _local1 = _local1 + (("** Event \"" + a1) + "\" reserved by Fuse. **"); break; case "125" : _local1 = _local1 + (("** A Fuse event parameter failed in " + a1) + " **"); break; case "126" : _local1 = _local1 + (((("** " + a1) + ": trigger:") + a2) + " ignored - only one trigger is allowed per action **"); break; case "201" : _local1 = _local1 + (("**** FuseFMP cannot initialize argument " + a1) + " (BitmapFilters cannot be applied to this object type) ****"); break; case "301" : _local1 = _local1 + "** The shortcuts fadeIn or fadeOut only accept 3 arguments: seconds, ease, and delay. **"; } output(_local1); } static var VERSION = "2.0"; static var AUTHOR = "(c) 2006 All code in this kit by Moses Gunesch | mosessupposes.com/Fuse | fuse@mosessupposes.com"; static var VERBOSE = true; static var ALL = "ALL"; static var ALLCOLOR = "ALLCOLOR"; }
Symbol 801 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine { static var extensions, updateTime, tweenHolder, instance, updateIntId; function ZigoEngine () { } static function addListener(t, h) { AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine); addListener(t, h); } static function isPlaying() { return(_playing); } static function simpleSetup() { if (arguments.length > 0) { register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments); } _global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine; if (extensions.fuse != undefined) { _global.Fuse = extensions.fuse; } if (extensions.fuseFMP != undefined) { extensions.fuseFMP.simpleSetup(); } initialize(MovieClip.prototype, Button.prototype, TextField.prototype); if (extensions.shortcuts == undefined) { com.mosesSupposes.fuse.FuseKitCommon.error("001"); } } static function register() { if (extensions == undefined) { extensions = {}; } var _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|"; for (var _local4 in arguments) { var _local2 = arguments[_local4].registryKey; if ((extensions[_local2] == undefined) && (_local3.indexOf(("|" + _local2) + "|") > -1)) { extensions[_local2] = arguments[_local4]; if ((_local2 == "fuseFMP") || (_local2 == "shortcuts")) { Object(extensions[_local2]).initialize(); } } } } static function initialize() { if (arguments.length > 0) { initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments); if (extensions.shortcuts != undefined) { extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments); } } } static function deinitialize() { if (arguments.length == 0) { arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype); } deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments); if (extensions.shortcuts != undefined) { extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments); } } static function getUpdateInterval() { return(updateTime); } static function setUpdateInterval(time) { if (_playing) { setup(true); updateTime = time; setup(); } else { updateTime = time; } } static function getControllerDepth() { return(tweenHolder.getDepth()); } static function setControllerDepth(v) { if (_global.isNaN(v) == false) { if (Object(tweenHolder).proof != null) { tweenHolder.swapDepths(v); } else { tweenHolder = _root.createEmptyMovieClip("_th_", v); } } } static function doShortcut(targets, methodName) { if (extensions.shortcuts == undefined) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("002"); } return(null); } return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments)); } static function doTween(targets, props, endvals, seconds, ease, delay, callback) { if (extensions.fuse.addBuildItem(arguments) == true) { return(null); } if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) { if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) { com.mosesSupposes.fuse.FuseKitCommon.error("003"); } instance = new com.mosesSupposes.fuse.ZManager(); _playing = false; } var _local6 = instance.paramsObj(targets, props, endvals); var _local7 = (((_local6.tg[0] == null) || (_local6.tg.length == 0)) ? undefined : (_local6.tg)); if (((_local6.pa == undefined) || (_local7 == undefined)) || (arguments.length < 3)) { if ((extensions.fuseItem != null) && (typeof(_local7[0]) == "object")) { return(extensions.fuseItem.doTween(arguments[0])); } if (OUTPUT_LEVEL > 0) { if (arguments.length < 3) { com.mosesSupposes.fuse.FuseKitCommon.error("004", String(arguments.length)); } else { com.mosesSupposes.fuse.FuseKitCommon.error("005", _local7.toString(), _local6.pa.toString()); } } return(null); } if (_playing != true) { setup(); } if ((seconds == null) || (_global.isNaN(seconds) == true)) { seconds = DURATION || 1; } else if (seconds < 0.01) { seconds = 0; } if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) { delay = 0; } var _local12 = parseCallback(callback, _local7); var _local9; if (typeof(ease) == "function") { if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") { _local9 = Function(ease); } else if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("014", ease); } } else if ((ease == null) || (ease == "")) { if (EASING instanceof Function) { _local9 = Function(EASING); } else if (extensions.pennerEasing != undefined) { ease = EASING; } } if ((typeof(ease) == "string") && (ease != "")) { if (extensions.pennerEasing[ease] != undefined) { _local9 = extensions.pennerEasing[ease]; } else if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("006", ease); } } else if (((typeof(ease) == "object") && (ease.ease != null)) && (ease.pts != null)) { _local9 = Function(ease.ease); _local12.extra1 = ease.pts; } if (typeof(_local9) != "function") { _local9 = function (t, b, c, d) { t = (t / d) - 1; return((c * (((((t * t) * t) * t) * t) + 1)) + b); }; } var _local5 = ""; for (var _local13 in _local7) { var _local3 = _local7[_local13]; if (_local3.__zigoID__ == null) { initializeTargets(_local3); } else if (instance.getStatus("locked", _local3) == true) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local3._name != undefined) ? (_local3._name) : (_local3.toString())), _local6.pa.toString()); } continue; } var _local4 = instance.addTween(_local3, _local6.pa, _local6.va, seconds, _local9, delay, _local12); if ((_local4 != null) && (_local4.length > 0)) { if (_local5.length > 0) { _local5 = (_local4 + "|") + _local5; } else { _local5 = _local4; } } } return(((_local5 == "") ? null : (_local5))); } static function removeTween(targs, props) { instance.removeTween(targs, props); } static function isTweening(targ, prop) { return(Boolean(instance.getStatus("active", targ, prop))); } static function getTweens(targ) { return(Number(instance.getStatus("count", targ))); } static function lockTween(targ, setLocked) { instance.alterTweens("lock", targ, setLocked); } static function isTweenLocked(targ) { return(Boolean(instance.getStatus("locked", targ))); } static function ffTween(targs, props) { instance.alterTweens("ff", targs, props); } static function rewTween(targs, props, pauseFlag, suppressStartEvents) { instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents); } static function isTweenPaused(targ, prop) { return(Boolean(instance.getStatus("paused", targ, prop))); } static function pauseTween(targs, props) { instance.alterTweens("pause", targs, props); } static function unpauseTween(targs, props) { instance.alterTweens("unpause", targs, props); } static function setColorByKey(targetObj, type, amt, rgb) { new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb)); } static function getColorTransObj(type, amt, rgb) { switch (type) { case "brightness" : var _local3 = 100 - Math.abs(amt); var _local4 = ((amt > 0) ? (255 * (amt / 100)) : 0); return({ra:_local3, rb:_local4, ga:_local3, gb:_local4, ba:_local3, bb:_local4}); case "brightOffset" : return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)}); case "contrast" : return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)}); case "invertColor" : return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55}); case "tint" : if (rgb == null) { break; } var _local5; if (typeof(rgb) == "string") { if (rgb.charAt(0) == "#") { rgb = rgb.slice(1); } rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb)); } _local5 = Number(rgb); return({ra:100 - amt, rb:(_local5 >> 16) * (amt / 100), ga:100 - amt, gb:((_local5 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local5 & 255) * (amt / 100)}); } return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100}); } static function getColorKeysObj(targOrTransObj) { var _local1 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform())); var _local3 = {}; var _local7 = (_local1.ra == _local1.ga) && (_local1.ga == _local1.ba); var _local9 = (_local1.rb == _local1.gb) && (_local1.gb == _local1.bb); var _local5 = ((_local7 == true) ? (100 - _local1.ra) : 0); if (_local5 != 0) { var _local6 = 100 / _local5; _local3.tint = (((_local1.rb * _local6) << 16) | ((_local1.gb * _local6) << 8)) | (_local1.bb * _local6); _local3.tintPercent = _local5; var _local2 = _local3.tint.toString(16); var _local4 = 6 - _local2.length; while ((_local4--) > 0) { _local2 = "0" + _local2; } _local3.tintString = "0x" + _local2.toUpperCase(); } if ((_local7 == true) && (_local9 == true)) { if (_local1.ra < 0) { _local3.invertColor = _local1.rb * 0.392156862745098; } else if ((_local1.ra == 100) && (_local1.rb != 0)) { _local3.brightOffset = _local1.rb * 0.392156862745098; } if (_local1.ra != 100) { if ((_local1.rb == 0) || ((_local1.rb != 0) && (((255 * ((100 - _local1.ra) / 100)) - _local1.rb) <= 1))) { _local3.brightness = ((_local1.rb != 0) ? (100 - _local1.ra) : (_local1.ra - 100)); } if (((128 - (1.28 * _local1.ra)) - _local1.rb) <= 1) { _local3.contrast = _local1.ra; } } } return(_local3); } static function initializeTargets() { for (var _local5 in arguments) { var _local4 = arguments[_local5]; if ((((_local4 == MovieClip.prototype) || (_local4 == Button.prototype)) || (_local4 == TextField.prototype)) || (_local4 == Object.prototype)) { if (_local4.oldAddListener == undefined) { if (_local4 == TextField.prototype) { _local4.oldAddListener = _local4.addListener; _global.ASSetPropFlags(_local4, "oldAddListener", 7, 1); } _local4.addListener = function (o) { if (this.__zigoID__ == undefined) { com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this); } if (this instanceof TextField) { Function(this.oldAddListener).call(this, o); } else { this.addListener(o); } }; if (_local4 == MovieClip.prototype) { _global.ASSetPropFlags(_local4, "addListener", 7, 1); } } } else if (_local4.__zigoID__ == undefined) { _local4.__zigoID__ = zigoIDs; _global.ASSetPropFlags(_local4, "__zigoID__", 7, 1); zigoIDs++; if ((_local4._listeners == null) || (_local4.addListener == null)) { AsBroadcaster.initialize(_local4); } } } } static function deinitializeTargets() { for (var _local4 in arguments) { var _local3 = arguments[_local4]; if (_local3.__zigoID__ != undefined) { _global.ASSetPropFlags(_local3, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2); delete _local3.__zigoID__; delete _local3._listeners; delete _local3.broadcastMessage; delete _local3.addListener; delete _local3.removeListener; } if (_local3.oldAddListener != undefined) { _global.ASSetPropFlags(_local3, "oldAddListener", 0, 2); _local3.addListener = _local3.oldAddListener; delete _local3.oldAddListener; } } } static function __mgrRelay(inst, method, args) { if (inst == instance) { Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args); } } static function setup(deinitFlag) { if (deinitFlag == true) { _playing = false; clearInterval(updateIntId); delete tweenHolder.onEnterFrame; return(undefined); } instance.cleanUp(); clearInterval(updateIntId); delete updateIntId; if ((updateTime != undefined) && (updateTime > 0)) { updateIntId = setInterval(instance, "update", updateTime); } else { if (Object(tweenHolder).proof == null) { setControllerDepth(6789); Object(tweenHolder).proof = 1; } var _inst = instance; tweenHolder.onEnterFrame = function () { _inst.update.call(_inst); }; } _playing = true; instance.now = getTimer(); } static function parseCallback(callback, targets) { var validCBs = {skipLevel:SKIP_LEVEL, cycles:1}; if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != SKIP_LEVEL)) { if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) { validCBs.skipLevel = callback.skipLevel; } } if (callback.cycles != undefined) { if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) { validCBs.cycles = callback.cycles; } else if (callback.cycles.toUpperCase() == "LOOP") { validCBs.cycles = 0; } } if (callback.extra1 != undefined) { validCBs.extra1 = callback.extra1; } if (callback.extra2 != undefined) { validCBs.extra2 = callback.extra2; } if (callback == undefined) { return(validCBs); } var cbErrors = []; var ezf; if (typeof(callback) == "string") { ezf = String(callback); } else if (typeof(callback.easyfunc) == "string") { ezf = callback.easyfunc; } if (((ezf != undefined) && (ezf.indexOf("(") > -1)) && (ezf.indexOf(")") > -1)) { if (extensions.shortcuts != undefined) { callback = extensions.shortcuts.parseStringTypeCallback(ezf); } else if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("008"); } } else if ((typeof(callback) == "function") || (typeof(callback) == "string")) { callback = {func:callback}; } for (var i in callback) { var fi = i.toLowerCase().indexOf("func"); if (fi > -1) { var prefix = i.slice(0, fi); var func = callback[i]; var args = callback[prefix + "args"]; var scope = callback[prefix + "scope"]; if ((typeof(func) == "string") && (scope[func] == undefined)) { for (var j in targets) { var targ = targets[j]; if (typeof(targ[func]) == "function") { scope = targ; break; } if (typeof(targ._parent[func]) == "function") { scope = targ._parent; break; } } if ((scope == undefined) && (_level0[func] != undefined)) { scope = _level0; } if ((scope == undefined) && (_global[func] != undefined)) { scope = _global; } } if (typeof(func) != "function") { if (typeof(scope[String(func)]) == "function") { func = scope[String(func)]; } else { func = eval (String(func)); } } if (func == undefined) { cbErrors.push(String((((((i + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope)); } else { if ((args != undefined) && (!(args instanceof Array))) { args = [args]; } if (prefix == "") { prefix = "end"; } validCBs[prefix] = {s:scope, f:func, a:args, id:cbTicker++}; if (prefix == "start") { validCBs.start.fired = false; } } } else if (com.mosesSupposes.fuse.FuseKitCommon._cbprops().indexOf(("|" + i) + "|") == -1) { com.mosesSupposes.fuse.FuseKitCommon.error("009", i); } } if ((cbErrors.length > 0) && (OUTPUT_LEVEL > 0)) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("010", cbErrors.length, cbErrors.toString()); } } return(validCBs); } static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION; static var AUTHOR = com.mosesSupposes.fuse.FuseKitCommon.AUTHOR + ", Some concepts in ZigoEngine credited to Ladislav Zigo | laco.wz.cz/tween"; static var EASING = "easeOutQuint"; static var DURATION = 1; static var ROUND_RESULTS = false; static var OUTPUT_LEVEL = 1; static var AUTOSTOP = false; static var SKIP_LEVEL = 0; static var _playing = false; static var zigoIDs = 0; static var cbTicker = 0; }
Symbol 802 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager { var tweens, now; function ZManager () { tweens = {}; numTweens = 0; } function addTween(obj, props, endvals, seconds, ease, delay, callback) { var _local20 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel)); var _local38 = ((callback.cycles == undefined) ? 1 : (callback.cycles)); var _local25 = callback.extra1; var _local24 = callback.extra2; var _local19 = []; var _local15 = _global.com.mosesSupposes.fuse.FuseFMP; var _local37 = String(("|" + _local15.getAllShortcuts().join("|")) + "|"); var _local36 = com.mosesSupposes.fuse.FuseKitCommon._cts(); var _local21 = ""; var _local23 = ""; var _local7 = tweens[String(obj.__zigoID__)]; if ((_local7 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) { if (obj._listeners.length > 0) { for (var _local34 in _local7.props) { _local19.unshift(_local34); } } _local7.numProps = 0; cleanUp(true); } for (var _local41 in props) { var _local6 = props[_local41]; var _local13 = _local36.indexOf(("|" + _local6) + "|") > -1; var _local16 = _local7.colorProp; if (_local7 != undefined) { if ((_local13 == true) && (_local16 != undefined)) { _local19.unshift(_local16); delete _local7.props[_local16]; delete _local7.colorProp; _local7.numProps--; } else if (_local7.props[_local6] != undefined) { _local19.unshift(_local6); delete _local7[_local6]; _local7.numProps--; } } var _local3 = {c:-1, fmp:-1}; var _local4 = endvals[_local41]; var _local11 = ((_local20 == 0) && ((seconds + delay) == 0)) || ((_local20 > 0) && (seconds == 0)); var _local10 = false; var _local14 = (_local15 != undefined) && (_local37.indexOf(("|" + _local6) + "|") > -1); if (_local14 == true) { _local3.fmp = _local15; _local3.ps = _local15.getFilterProp(obj, _local6, true); _local3.special = true; } if ((_local13 == true) || ((((_local14 == true) && (_local6.indexOf("lor") > -1)) && (_local6.charAt(2) != "l")) && (_local11 == false))) { if (_local13 == true) { _local3.c = new Color(obj); _local3.ps = _local3.c.getTransform(); if (_local6 != "_colorTransform") { var _local17 = ((((_local6 == "_tint") || (_local6 == "_tintPercent")) || (_local6 == "_colorReset")) ? "tint" : (_local6.slice(1))); var _local8 = null; var _local12 = null; if (_local17 == "tint") { if (typeof(_local4) == "object") { _local12 = _local4.tint; _local8 = ((_global.isNaN(_local4.percent) == true) ? 100 : (_local4.percent)); } else if ((_local6 == "_tintPercent") || (_local6 == "_colorReset")) { var _local18 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent; _local8 = ((typeof(_local4) == "string") ? ((_local18 || 0) + Number(_local4)) : Number(_local4)); _local8 = Math.max(0, Math.min(_local8, 100)); if (_local6 == "_colorReset") { _local8 = Math.min(_local18, 100 - _local8); } _local12 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0; } else { _local12 = _local4; _local8 = 100; } } else { _local8 = ((typeof(_local4) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local17] || 0) + Number(_local4)) : (_local4)); } _local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local17, _local8, _local12); } } else { _local3.c = 1; _local3.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local3.ps); _local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4); } if (_local11 == true) { _local3.c.setTransform(_local4); } else { _local3.ch = {}; for (var _local34 in _local4) { if (((((_local3.c === 1) && (_local34.charAt(1) == "b")) || (_local4[_local34] != _local3.ps[_local34])) && (_local4[_local34] != null)) && (_global.isNaN(Number(_local4[_local34])) == false)) { _local3.ch[_local34] = ((typeof(_local4[_local34]) == "string") ? (Number(_local4[_local34])) : (_local4[_local34] - _local3.ps[_local34])); if (_global.isNaN(_local3.ch[_local34]) == true) { _local3.ch[_local34] = 0; } else if (_local3.ch[_local34] != 0) { _local10 = true; } } } } } else if (_local6 == "_bezier_") { removeTween(obj, "_x,_y", true); if (_local11 == true) { if ((_local4.x != null) && (_global.isNaN(Number(_local4.x)) == false)) { obj._x = ((typeof(_local4.x) == "string") ? (obj._x + Number(_local4.x)) : (_local4.x)); } if ((_local4.y != null) && (_global.isNaN(Number(_local4.y)) == false)) { obj._y = ((typeof(_local4.y) == "string") ? (obj._y + Number(_local4.y)) : (_local4.y)); } } else { _local3.special = true; _local3.ps = 0; _local3.ch = 1; _local3.bz = {sx:obj._x, sy:obj._y}; if ((_local4.x == null) || (_global.isNaN(Number(_local4.x)))) { _local4.x = _local3.bz.sx; } if ((_local4.y == null) || (_global.isNaN(Number(_local4.y)))) { _local4.y = _local3.bz.sy; } _local3.bz.chx = ((typeof(_local4.x) == "string") ? (Number(_local4.x)) : (_local4.x - _local3.bz.sx)); if (_global.isNaN(_local3.bz.chx) == true) { _local3.bx.chx = 0; } _local3.bz.chy = ((typeof(_local4.y) == "string") ? (Number(_local4.y)) : (_local4.y - _local3.bz.sy)); if (_global.isNaN(_local3.bz.chy) == true) { _local3.bx.chy = 0; } if ((_local4.controlX == null) || (_global.isNaN(Number(_local4.controlX)))) { _local3.bz.ctrlx = _local3.bz.sx + (_local3.bz.chx / 2); } else { _local3.bz.ctrlx = ((typeof(_local4.controlX) == "string") ? (_local3.bz.sx + Number(_local4.controlX)) : (_local4.controlX)); } if ((_local4.controlY == null) || (_global.isNaN(Number(_local4.controlY)))) { _local3.bz.ctrly = _local3.bz.sy + (_local3.bz.chy / 2); } else { _local3.bz.ctrly = ((typeof(_local4.controlY) == "string") ? (_local3.bz.sy + Number(_local4.controlY)) : (_local4.controlY)); } _local3.bz.ctrlx = _local3.bz.ctrlx - _local3.bz.sx; _local3.bz.ctrly = _local3.bz.ctrly - _local3.bz.sy; _local10 = (_local3.bz.chx + _local3.bz.chy) != 0; } } else { if ((_local6 == "_x") || (_local6 == "_y")) { removeTween(obj, "_bezier_", true); } if ((_local6 == "_frame") && (typeof(obj) == "movieclip")) { _local3.ps = obj._currentframe; _local3.special = true; } else if (_local14 == false) { _local3.ps = obj[_local6]; } if (_local11 == true) { _local4 = ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4)); if (_local14 == true) { _local15.setFilterProp(obj, _local6, _local4); } else { obj[_local6] = _local4; } } else { if ((_local4 == null) || (_global.isNaN(Number(_local4)))) { _local4 = _local3.ps; } _local3.ch = ((typeof(_local4) == "string") ? (Number(_local4)) : (Number(_local4) - _local3.ps)); if (_global.isNaN(_local3.ch) == true) { _local3.ch = 0; } _local10 = _local3.ch != 0; } } if (((_local20 == 0) && ((_local10 == true) || (_local11 == false))) || ((_local10 == true) && (_local11 == false))) { _local3.ts = now + (delay * 1000); _local3.pt = -1; _local3.d = seconds * 1000; _local3.ef = ease; _local3.sf = false; _local3.cycles = _local38; if (_local25 != undefined) { _local3.e1 = _local25; } if (_local24 != undefined) { _local3.e2 = _local24; } if (callback.start != undefined) { _local3.scb = callback.start; } if (callback.upd != undefined) { _local3.ucb = callback.upd; } if (callback.end != undefined) { _local3.ecb = callback.end; } if (tweens[String(obj.__zigoID__)] == undefined) { _local7 = (tweens[String(obj.__zigoID__)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:obj.__zigoID__, props:{}}); numTweens++; } if (_local13 == true) { _local7.colorProp = _local6; } _local7.props[_local6] = _local3; _local7.numProps++; _local21 = (_local6 + ",") + _local21; _local23 = (((typeof(_local4) == "string") ? (("\"" + _local4) + "\"") : (_local4)) + ",") + _local23; } } if ((_local7 == undefined) || (_local7.numProps <= 0)) { cleanUp(); } if ((_local19.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) { com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local19, __zigoID__:obj.__zigoID__}); } if (_local21 == "") { if (_local20 == 2) { if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) { com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString()); } } else { var _local42 = obj._listeners.length > 0; if (_local42 == true) { obj.broadcastMessage("onTweenStart", {target:obj, props:props}); } if (callback.start != undefined) { callback.start.f.apply(callback.start.s, callback.start.a); } if (_local42 == true) { obj.broadcastMessage("onTweenUpdate", {target:obj, props:props}); } if (callback.upd != undefined) { callback.upd.f.apply(callback.upd.s, callback.upd.a); } if (_local42 == true) { obj.broadcastMessage("onTweenEnd", {target:obj, props:props}); } if (callback.end != undefined) { callback.end.f.apply(callback.end.s, callback.end.a); } } cleanUp(); } if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) { if (_local21 == "") { com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString()); } else { com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), _local21.slice(0, -1), _local23.slice(0, -1)); } } return(((_local21 == "") ? null : (_local21.slice(0, -1)))); } function removeTween(targs, props, noInit) { var _local4 = {}; var _local11 = paramsObj(targs, props); if (_local11.none == true) { return(undefined); } var _local15 = _local11.all; var _local16 = _local11.allprops; var _local9 = ((_local15 == true) ? (tweens) : (Object(_local11.tg))); var _local8 = false; for (var _local18 in _local9) { var _local3 = ((_local15 == true) ? (_local18) : (String(_local9[_local18].__zigoID__))); var _local2 = tweens[_local3]; var _local6 = ((_local16 == true) ? (_local2.props) : (_local11.props)); for (var _local13 in _local6) { var _local5 = (_local13 == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local2.colorProp != undefined); if ((_local2.props[_local13] != undefined) || (_local5 == true)) { if (_local4[_local3] == null) { _local4[_local3] = []; } _local4[_local3].unshift(_local13); if ((_local13 == _local2.colorProp) || (_local5 == true)) { delete _local2.props[_local2.colorProp]; delete _local2.colorProp; } else { delete _local2.props[_local13]; } _local2.numProps--; if (_local2.numProps <= 0) { _local8 = true; break; } } } } if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) { for (var _local17 in _local4) { var _local7 = tweens[_local17].targ; com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local7.addProperty) == "function") ? (_local7) : (("[MISSING(\"" + tweens[_local17].targID) + "\")]")), props:_local4[_local17], __zigoID__:tweens[_local17].targZID}); } } if (_local8 == true) { cleanUp(noInit); } } function alterTweens(type, targs, props, pauseFlag, suppressStartEvents) { if (type == "lock") { tweens[String(targs.__zigoID__)].locked = Boolean(props == true); return(undefined); } var _local11 = paramsObj(targs, props); if (_local11.none == true) { return(undefined); } var _local13 = _local11.all; var _local14 = _local11.allprops; var _local8 = ((_local13 == true) ? (tweens) : (Object(_local11.tg))); var _local7 = 0; for (var _local15 in _local8) { var _local6 = ((_local13 == true) ? (_local15) : (String(_local8[_local15].__zigoID__))); var _local5 = tweens[_local6]; var _local4 = ((_local14 == true) ? (_local5.props) : (_local11.props)); if (_local4.ALLCOLOR == true) { _local4[_local5.colorProp] = true; delete _local4.ALLCOLOR; } for (var _local9 in _local4) { _local7++; var _local2 = _local5.props[_local9]; if (type == "rewind") { if (pauseFlag == true) { _local2.pt = now; } _local2.ts = now; if (suppressStartEvents != true) { _local2.sf = false; if (_local2.scb != undefined) { _local2.scb.fired = false; } } } else if (type == "ff") { _local2.pt = -1; _local2.ts = now - _local2.d; } else if (type == "pause") { if (_local2.pt == -1) { _local2.pt = now; } } else if (type == "unpause") { if (_local2.pt != -1) { _local2.ts = now - (_local2.pt - _local2.ts); _local2.pt = -1; } } } } if ((type == "ff") && (_local7 > 0)) { update(); } else if ((type == "rewind") && (_local7 > 0)) { update(true); } } function getStatus(type, targ, param) { if (targ == null) { return(null); } var _local8 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL; var _local4 = tweens[String(targ.__zigoID__)]; switch (type) { case "paused" : var _local2 = _local4.props; if (param != null) { if (_local2[String(param)] == undefined) { return(false); } return(Boolean(_local2[String(param)].pt != -1)); } for (var _local6 in _local2) { if (_local2[_local6].pt != -1) { return(true); } } return(false); case "active" : if (param == null) { return(Boolean(_local4 != undefined)); } if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) { return(Boolean(_local4.colorProp != undefined)); } return(Boolean(_local4.props[String(param)] != undefined)); case "count" : if (!_local8) { return(_local4.numProps); } var _local3 = 0; for (var _local6 in tweens) { _local3 = _local3 + tweens[_local6].numProps; } return(_local3); case "locked" : return(_local4.locked); } } function update(force) { var _local17 = {}; var _local19 = {}; var _local18 = {}; var _local13 = {}; var _local11 = {}; var _local12 = {}; var _local22 = false; var _local20 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS; for (var _local29 in tweens) { var _local10 = tweens[_local29]; var _local6 = _local10.targ; var _local28 = _local10.props; var _local16 = _local6._listeners.length > 0; if (_local6.__zigoID__ == undefined) { _local22 = true; if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) { var _local21 = []; for (var _local24 in _local28) { _local21.unshift(_local24); } com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local6.addProperty) == "function") ? (_local6) : (("[MISSING:" + _local10.targID) + "]")), props:_local21, __zigoID__:_local10.targZID}); } continue; } for (var _local24 in _local28) { var _local3 = _local28[_local24]; if (((_local3.ts > now) || (_local3.pt != -1)) && (force != true)) { continue; } var _local7 = now >= (_local3.ts + _local3.d); if (_local3.c == -1) { var _local5; if (_local7 == true) { _local5 = _local3.ps + _local3.ch; if ((_local3.cycles > 1) || (_local3.cycles == 0)) { if (_local3.cycles > 1) { _local3.cycles--; } _local3.ps = _local5; _local3.ch = -_local3.ch; _local3.ts = now; _local7 = false; } } else { _local5 = _local3.ef(now - _local3.ts, _local3.ps, _local3.ch, _local3.d, _local3.e1, _local3.e2); } if (_global.isNaN(_local5) == false) { if (_local20 == true) { _local5 = Math.round(Number(_local5)); } if (_local3.special != true) { _local6[_local24] = _local5; } else if (_local3.fmp != -1) { _local3.fmp.setFilterProp(_local6, _local24, _local5); } else if (_local24 == "_bezier_") { var _local8 = _local3.bz; _local6._x = _local8.sx + (_local5 * (((2 * (1 - _local5)) * _local8.ctrlx) + (_local5 * _local8.chx))); _local6._y = _local8.sy + (_local5 * (((2 * (1 - _local5)) * _local8.ctrly) + (_local5 * _local8.chy))); } else if (_local24 == "_frame") { MovieClip(_local6).gotoAndStop(Math.round(_local5)); } } } else { var _local4 = {}; var _local15 = (_local7 == true) && ((_local3.cycles > 1) || (_local3.cycles == 0)); for (var _local23 in _local3.ch) { var _local9 = _local3.ch[_local23]; if (_local7 == true) { _local4[_local23] = _local3.ps[_local23] + _local9; if (_local15 == true) { _local3.ch[_local23] = -_local9; } } else { _local4[_local23] = _local3.ef(now - _local3.ts, _local3.ps[_local23], _local9, _local3.d, _local3.e1, _local3.e2); } if (_global.isNaN(_local4[_local23]) == false) { if (_local20 == true) { _local4[_local23] = Math.round(_local4[_local23]); } if (_local3.fmp == -1) { _local3.c.setTransform(_local4); } else { var _local14 = ((_local4.rb << 16) | (_local4.gb << 8)) | _local4.bb; _local3.fmp.setFilterProp(_local6, _local24, _local14); } } } if (_local15 == true) { if (_local3.cycles > 1) { _local3.cycles--; } _local7 = false; _local3.ts = now; _local3.ps = _local4; } } if (_local3.sf == false) { if (_local16 == true) { if (_local13[_local29] == undefined) { _local13[_local29] = [_local6, []]; } _local13[_local29][1].unshift(_local24); } _local3.sf = true; } if (_local3.scb.fired == false) { _local17[String(_local3.scb.id)] = _local3.scb; _local3.scb.fired = true; } if (_local16 == true) { if (_local11[_local29] == undefined) { _local11[_local29] = [_local6, []]; } _local11[_local29][1].unshift(_local24); } if (_local3.ucb != undefined) { _local19[String(_local3.ucb.id)] = _local3.ucb; } if (_local7 == true) { if (_local16 == true) { if (_local12[_local29] == undefined) { _local12[_local29] = [_local6, []]; } _local12[_local29][1].unshift(_local24); } if (_local3.ecb != undefined) { _local18[String(_local3.ecb.id)] = _local3.ecb; } delete _local28[_local24]; if (_local24 == _local10.colorProp) { delete _local10.colorProp; } _local10.numProps--; if (_local10.numProps <= 0) { _local22 = true; } } } } for (var _local29 in _local13) { _local13[_local29][0].broadcastMessage("onTweenStart", {target:_local13[_local29][0], props:_local13[_local29][1]}); } for (var _local29 in _local17) { _local17[_local29].f.apply(_local17[_local29].s, _local17[_local29].a); } for (var _local29 in _local11) { _local11[_local29][0].broadcastMessage("onTweenUpdate", {target:_local11[_local29][0], props:_local11[_local29][1]}); } for (var _local29 in _local19) { _local19[_local29].f.apply(_local19[_local29].s, _local19[_local29].a); } for (var _local29 in _local12) { _local12[_local29][0].broadcastMessage("onTweenEnd", {target:_local12[_local29][0], props:_local12[_local29][1]}); } for (var _local29 in _local18) { _local18[_local29].f.apply(_local18[_local29].s, _local18[_local29].a); } if (_local22) { cleanUp(); } now = getTimer(); } function cleanUp(noInit) { for (var _local4 in tweens) { var _local2 = tweens[_local4].targ; if ((tweens[_local4].numProps <= 0) || (_local2.__zigoID__ == undefined)) { if (((_local2 != undefined) && (_local2.tween == undefined)) && (noInit != true)) { com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local2); } delete tweens[_local4]; numTweens--; } } if (numTweens <= 0) { numTweens = 0; delete tweens; tweens = {}; if (noInit != true) { com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]); } } } function paramsObj(targs, props, endvals) { var _local6 = {}; _local6.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL; _local6.none = Boolean(targs == null); if (_local6.all == true) { _local6.tg = [null]; } else { _local6.tg = ((targs instanceof Array) ? (targs) : ([targs])); for (var _local11 in _local6.tg) { var _local7 = _local6.tg[_local11]; if ((_local7 == null) || (!((typeof(_local7) == "object") || (typeof(_local7) == "movieclip")))) { _local6.tg.splice(Number(_local11), 1); } } } _local6.allprops = props == null; var _local1; var _local4; var _local3 = {}; if (_local6.allprops == false) { if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) { props = String(props.split(" ").join("")).split(","); } _local1 = ((props instanceof Array) ? (props.slice()) : ([props])); if (endvals != undefined) { if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) { endvals = String(endvals.split(" ").join("")).split(","); } _local4 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals])); while (_local4.length < _local1.length) { _local4.push(_local4[_local4.length - 1]); } _local4.splice(_local1.length, _local4.length - _local1.length); } for (var _local11 in _local1) { var _local2 = Number(_local11); if ((_local1[_local11] != "_scale") && (_local1[_local11] != "_size")) { if (_local3[_local1[_local11]] == undefined) { if (String(_local1[_local11]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) { _local1[_local11] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR; } _local3[_local1[_local11]] = true; } else { _local1.splice(_local2, 1); _local4.splice(_local2, 1); } } else { var _local8 = String(_local1.splice(_local2, 1)[0]); var _local5 = _local4.splice(_local2, 1)[0]; if (_local8 == "_scale") { if (_local3._xscale == undefined) { _local1.splice(_local2, 0, "_xscale"); _local4.splice(_local2, 0, _local5); _local3._xscale = true; _local2++; } if (_local3._yscale == undefined) { _local1.splice(_local2, 0, "_yscale"); _local4.splice(_local2, 0, _local5); _local3._yscale = true; } } if (_local8 == "_size") { if (_local3._width == undefined) { _local1.splice(_local2, 0, "_width"); _local4.splice(_local2, 0, _local5); _local3._width = true; _local2++; } if (_local3._yscale == undefined) { _local1.splice(_local2, 0, "_height"); _local4.splice(_local2, 0, _local5); _local3._height = true; } } } } for (var _local11 in _local1) { if (((_local1[_local11] == "_xscale") && (_local3._width == true)) || ((_local1[_local11] == "_yscale") && (_local3._height == true))) { _local1.splice(Number(_local11), 1); _local4.splice(Number(_local11), 1); delete _local3[_local1[_local11]]; } } } _local6.pa = _local1; _local6.va = _local4; _local6.props = _local3; return(_local6); } var numTweens = 0; }
Symbol 803 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing { function PennerEasing () { } static function linear(t, b, c, d) { return(((c * t) / d) + b); } static function easeInQuad(t, b, c, d) { t = t / d; return(((c * t) * t) + b); } static function easeOutQuad(t, b, c, d) { t = t / d; return((((-c) * t) * (t - 2)) + b); } static function easeInOutQuad(t, b, c, d) { t = t / (d / 2); if (t < 1) { return((((c / 2) * t) * t) + b); } t--; return((((-c) / 2) * ((t * (t - 2)) - 1)) + b); } static function easeInExpo(t, b, c, d) { return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b))); } static function easeOutExpo(t, b, c, d) { return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b))); } static function easeInOutExpo(t, b, c, d) { if (t == 0) { return(b); } if (t == d) { return(b + c); } t = t / (d / 2); if (t < 1) { return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b); } t--; return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b); } static function easeOutInExpo(t, b, c, d) { if (t == 0) { return(b); } if (t == d) { return(b + c); } t = t / (d / 2); if (t < 1) { return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b); } return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b); } static function easeInElastic(t, b, c, d, a, p) { var _local5; if (t == 0) { return(b); } t = t / d; if (t == 1) { return(b + c); } if (!p) { p = d * 0.3; } if ((!a) || (a < Math.abs(c))) { a = c; _local5 = p / 4; } else { _local5 = (p / (Math.PI*2)) * Math.asin(c / a); } t = t - 1; return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b); } static function easeOutElastic(t, b, c, d, a, p) { var _local5; if (t == 0) { return(b); } t = t / d; if (t == 1) { return(b + c); } if (!p) { p = d * 0.3; } if ((!a) || (a < Math.abs(c))) { a = c; _local5 = p / 4; } else { _local5 = (p / (Math.PI*2)) * Math.asin(c / a); } return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) + c) + b); } static function easeInOutElastic(t, b, c, d, a, p) { var _local5; if (t == 0) { return(b); } t = t / (d / 2); if (t == 2) { return(b + c); } if (!p) { p = d * 0.45; } if ((!a) || (a < Math.abs(c))) { a = c; _local5 = p / 4; } else { _local5 = (p / (Math.PI*2)) * Math.asin(c / a); } if (t < 1) { t = t - 1; return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b); } t = t - 1; return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) * 0.5) + c) + b); } static function easeOutInElastic(t, b, c, d, a, p) { var _local5; if (t == 0) { return(b); } t = t / (d / 2); if (t == 2) { return(b + c); } if (!p) { p = d * 0.45; } if ((!a) || (a < Math.abs(c))) { a = c; _local5 = p / 4; } else { _local5 = (p / (Math.PI*2)) * Math.asin(c / a); } if (t < 1) { return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + (c / 2)) + b); } return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)))) + b); } static function easeInBack(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 easeOutBack(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 easeInOutBack(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); } static function easeOutInBack(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / (d / 2); if (t < 1) { t--; s = s * 1.525; return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b); } t--; s = s * 1.525; return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b); } static function easeOutBounce(t, b, c, d) { t = t / d; if (t < 0.363636363636364) { return((c * ((7.5625 * t) * t)) + b); } if (t < 0.727272727272727) { t = t - 0.545454545454545; return((c * (((7.5625 * t) * t) + 0.75)) + b); } if (t < 0.909090909090909) { t = t - 0.818181818181818; return((c * (((7.5625 * t) * t) + 0.9375)) + b); } t = t - 0.954545454545455; return((c * (((7.5625 * t) * t) + 0.984375)) + b); } static function easeInBounce(t, b, c, d) { return((c - easeOutBounce(d - t, 0, c, d)) + b); } static function easeInOutBounce(t, b, c, d) { if (t < (d / 2)) { return((easeInBounce(t * 2, 0, c, d) * 0.5) + b); } return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static function easeOutInBounce(t, b, c, d) { if (t < (d / 2)) { return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b); } return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static function easeInCubic(t, b, c, d) { t = t / d; return((((c * t) * t) * t) + b); } static function easeOutCubic(t, b, c, d) { t = (t / d) - 1; return((c * (((t * t) * t) + 1)) + b); } static function easeInOutCubic(t, b, c, d) { t = t / (d / 2); if (t < 1) { return(((((c / 2) * t) * t) * t) + b); } t = t - 2; return(((c / 2) * (((t * t) * t) + 2)) + b); } static function easeOutInCubic(t, b, c, d) { t = t / (d / 2); t--; return(((c / 2) * (((t * t) * t) + 1)) + b); } static function easeInQuart(t, b, c, d) { t = t / d; return(((((c * t) * t) * t) * t) + b); } static function easeOutQuart(t, b, c, d) { t = (t / d) - 1; return(((-c) * ((((t * t) * t) * t) - 1)) + b); } static function easeInOutQuart(t, b, c, d) { t = t / (d / 2); if (t < 1) { return((((((c / 2) * t) * t) * t) * t) + b); } t = t - 2; return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b); } static function easeOutInQuart(t, b, c, d) { t = t / (d / 2); if (t < 1) { t--; return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b); } t--; return(((c / 2) * ((((t * t) * t) * t) + 1)) + b); } static function easeInQuint(t, b, c, d) { t = t / d; return((((((c * t) * t) * t) * t) * t) + b); } static function easeOutQuint(t, b, c, d) { t = (t / d) - 1; return((c * (((((t * t) * t) * t) * t) + 1)) + b); } static function easeInOutQuint(t, b, c, d) { t = t / (d / 2); if (t < 1) { return(((((((c / 2) * t) * t) * t) * t) * t) + b); } t = t - 2; return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b); } static function easeOutInQuint(t, b, c, d) { t = t / (d / 2); t--; return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b); } static function easeInSine(t, b, c, d) { return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b); } static function easeOutSine(t, b, c, d) { return((c * Math.sin((t / d) * (Math.PI/2))) + b); } static function easeInOutSine(t, b, c, d) { return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b); } static function easeOutInSine(t, b, c, d) { t = t / (d / 2); if (t < 1) { return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b); } t--; return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b); } static function easeInCirc(t, b, c, d) { t = t / d; return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b); } static function easeOutCirc(t, b, c, d) { t = (t / d) - 1; return((c * Math.sqrt(1 - (t * t))) + b); } static function easeInOutCirc(t, b, c, d) { t = t / (d / 2); if (t < 1) { return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b); } t = t - 2; return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b); } static function easeOutInCirc(t, b, c, d) { t = t / (d / 2); if (t < 1) { t--; return(((c / 2) * Math.sqrt(1 - (t * t))) + b); } t--; return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b); } static var registryKey = "pennerEasing"; }
Symbol 12 MovieClip [__Packages.mx.video.FLVPlayback] Frame 0
class mx.video.FLVPlayback extends MovieClip { var _autoPlay, _autoRewind, _autoSize, _bufferTime, _contentPath, _cuePoints, _idleTimeout, _isLive, _aspectRatio, _seekToPrevOffset, _playheadUpdateInterval, _progressInterval, _totalTime, _transform, _volume, _skinAutoHide, _bufferingBarHides, _origHeight, _prevHeight, __height, _height, _origWidth, _prevWidth, __width, _width, _scaleX, _scaleY, _xscale, _yscale, _preSeekTime, _firstStreamReady, _firstStreamShown, _activeVP, _visibleVP, _topVP, _vp, _vpState, _cpMgr, boundingBox_mc, preview_mc, dispatchEvent, _uiMgr, _bufferingBar, _backButton, __get__cuePoints, _forwardButton, _muteButton, _pauseButton, _playButton, _playPauseButton, _seekBar, _seekBarInterval, _seekBarScrubTolerance, _skin, _stopButton, _visible, _volumeBar, _volumeBarInterval, _volumeBarScrubTolerance, _x, _y, attachMovie, createEmptyMovieClip; function FLVPlayback () { super(); mx.events.EventDispatcher.initialize(this); if (_autoPlay == undefined) { _autoPlay = true; } if (_autoRewind == undefined) { _autoRewind = true; } if (_autoSize == undefined) { _autoSize = false; } if (_bufferTime == undefined) { _bufferTime = 0.1; } if (_contentPath == undefined) { _contentPath = ""; } if (_cuePoints == undefined) { _cuePoints = null; } if (_idleTimeout == undefined) { _idleTimeout = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL; } if (_isLive == undefined) { _isLive = false; } if (_aspectRatio == undefined) { _aspectRatio = true; } if (_seekToPrevOffset == undefined) { _seekToPrevOffset = SEEK_TO_PREV_OFFSET_DEFAULT; } if (_playheadUpdateInterval == undefined) { _playheadUpdateInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL; } if (_progressInterval == undefined) { _progressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL; } if (_totalTime == undefined) { _totalTime = 0; } if (_transform == undefined) { _transform = null; } if (_volume == undefined) { _volume = 100; } if (_skinAutoHide == undefined) { _skinAutoHide = false; } if (_bufferingBarHides == undefined) { _bufferingBarHides = false; } _origHeight = (_prevHeight = (__height = _height)); _origWidth = (_prevWidth = (__width = _width)); _scaleX = 100; _scaleY = 100; _xscale = 100; _yscale = 100; _preSeekTime = -1; _firstStreamReady = false; _firstStreamShown = false; createUIManager(); _activeVP = 0; _visibleVP = 0; _topVP = 0; _vp = new Array(); _vpState = new Array(); _cpMgr = new Array(); createVideoPlayer(0); _vp[0].visible = false; _vp[0].volume = 0; boundingBox_mc._visible = false; boundingBox_mc.unloadMovie(); delete boundingBox_mc; if (_global.isLivePreview) { createLivePreviewMovieClip(); setSize(__width, __height); } _cpMgr[0].processCuePointsProperty(_cuePoints); delete _cuePoints; _cuePoints = null; } function setSize(w, h) { if (_global.isLivePreview) { if (preview_mc == undefined) { createLivePreviewMovieClip(); } preview_mc.box_mc._width = w; preview_mc.box_mc._height = h; if ((preview_mc.box_mc._width < preview_mc.icon_mc._width) || (preview_mc.box_mc._height < preview_mc.icon_mc._height)) { preview_mc.icon_mc._visible = false; } else { preview_mc.icon_mc._visible = true; preview_mc.icon_mc._x = (preview_mc.box_mc._width - preview_mc.icon_mc._width) / 2; preview_mc.icon_mc._y = (preview_mc.box_mc._height - preview_mc.icon_mc._height) / 2; } } if ((w == width) && (h == height)) { return(undefined); } _prevWidth = (__width = w); _prevHeight = (__height = h); var _local3 = 0; while (_local3 < _vp.length) { if (_vp[_local3] != undefined) { _vp[_local3].setSize(w, h); } _local3++; } dispatchEvent({type:"resize", x:x, y:y, width:w, height:h}); } function setScale(xs, ys) { if ((xs == scaleX) && (ys == scaleY)) { return(undefined); } _scaleX = xs; _scaleY = ys; var _local2 = 0; while (_local2 < _vp.length) { if (_vp[_local2] != undefined) { _vp[_local2].setSize((_origWidth * xs) / 100, (_origHeight * ys) / 100); } _local2++; } dispatchEvent({type:"resize", x:x, y:y, width:width, height:height}); } function handleEvent(e) { var _local3 = e.state; if (((e.state != undefined) && (e.target._name == _visibleVP)) && (scrubbing)) { _local3 = SEEKING; } if (e.type == "metadataReceived") { _cpMgr[e.target._name].processFLVCuePoints(e.info.cuePoints); dispatchEvent({type:e.type, info:e.info, vp:e.target._name}); } else if (e.type == "cuePoint") { if (_cpMgr[e.target._name].isFLVCuePointEnabled(e.info)) { dispatchEvent({type:e.type, info:e.info, vp:e.target._name}); } } else if (e.type == "rewind") { dispatchEvent({type:e.type, auto:true, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); _cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); } else if (e.type == "resize") { dispatchEvent({type:e.type, x:x, y:y, width:width, height:height, auto:true, vp:e.target._name}); _prevWidth = __width; _prevHeight = __height; } else if (e.type == "playheadUpdate") { dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if ((_preSeekTime >= 0) && (e.target.state != SEEKING)) { var _local5 = _preSeekTime; _preSeekTime = -1; _cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); dispatchEvent({type:"seek", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if (_local5 < e.playheadTime) { dispatchEvent({type:"fastForward", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } else if (_local5 > e.playheadTime) { dispatchEvent({type:"rewind", auto:false, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } _cpMgr[e.target._name].dispatchASCuePoints(); } else if (e.type == "stateChange") { var _local4 = e.target._name; if ((_local4 == _visibleVP) && (scrubbing)) { return(undefined); } if (e.state == mx.video.VideoPlayer.RESIZING) { return(undefined); } if (((_vpState[_local4].prevState == LOADING) && (_vpState[_local4].autoPlay)) && (e.state == STOPPED)) { return(undefined); } _vpState[_local4].prevState = e.state; dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if (_vp[e.target._name].state != _local3) { return(undefined); } switch (_local3) { case BUFFERING : dispatchEvent({type:"buffering", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case PAUSED : dispatchEvent({type:"paused", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case PLAYING : dispatchEvent({type:"playing", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case STOPPED : dispatchEvent({type:"stopped", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } else if (e.type == "progress") { dispatchEvent({type:e.type, bytesLoaded:e.bytesLoaded, bytesTotal:e.bytesTotal, vp:e.target._name}); } else if (e.type == "ready") { var _local4 = e.target._name; if (!_firstStreamReady) { if (_local4 == _visibleVP) { _firstStreamReady = true; if (_uiMgr.__get__skinReady() && (!_firstStreamShown)) { _uiMgr.__set__visible(true); showFirstStream(); } } } else if ((_firstStreamShown && (_local3 == STOPPED)) && _vpState[_local4].autoPlay) { _vp[_local4].play(); } dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } else if ((e.type == "close") || (e.type == "complete")) { dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } function load(contentPath, totalTime, isLive) { if (_vp[_activeVP] == undefined) { return(undefined); } if (((contentPath == undefined) || (contentPath == null)) || (contentPath == "")) { return(undefined); } autoPlay = (false); if (totalTime != undefined) { this.totalTime = (totalTime); } if (isLive != undefined) { this.isLive = (isLive); } this.contentPath = (contentPath); } function play(contentPath, totalTime, isLive) { if (_vp[_activeVP] == undefined) { return(undefined); } if (contentPath == undefined) { _vp[_activeVP].play(); } else { autoPlay = (true); if (totalTime != undefined) { this.totalTime = (totalTime); } if (isLive != undefined) { this.isLive = (isLive); } this.contentPath = (contentPath); } } function pause() { if (_vp[_activeVP] == undefined) { return(undefined); } _vp[_activeVP].pause(); } function stop() { if (_vp[_activeVP] == undefined) { return(undefined); } _vp[_activeVP].stop(); } function seek(time) { if (_vp[_activeVP] == undefined) { return(undefined); } _preSeekTime = playheadTime; _vp[_activeVP].seek(time); } function seekSeconds(time) { seek(time); } function seekPercent(percent) { if (_vp[_activeVP] == undefined) { return(undefined); } if (((((percent < 0) || (percent > 100)) || (_vp[_activeVP].totalTime == undefined)) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } seek((_vp[_activeVP].totalTime * percent) / 100); } function get playheadPercentage() { if (((_vp[_activeVP].totalTime == undefined) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) { return(undefined); } return((_vp[_activeVP].playheadTime / _vp[_activeVP].totalTime) * 100); } function set playheadPercentage(percent) { seekPercent(percent); //return(playheadPercentage); } function seekToNavCuePoint(timeNameOrCuePoint) { var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } if (((_local3.name == null) || (_local3.name == undefined)) || (typeof(_local3.name) != "string")) { seekToNextNavCuePoint(_local3.time); return(undefined); } if (isNaN(_local3.time)) { _local3.time = 0; } var _local2 = findNearestCuePoint(timeNameOrCuePoint, NAVIGATION); while ((_local2 != null) && ((_local2.time < _local3.time) || (!isFLVCuePointEnabled(_local2)))) { _local2 = findNextCuePointWithName(_local2); } if (_local2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } seek(_local2.time); } function seekToNextNavCuePoint(time) { if (_vp[_activeVP] == undefined) { return(undefined); } if (isNaN(time) || (time < 0)) { time = _vp[_activeVP].playheadTime + 0.001; } var _local3; _local3 = findNearestCuePoint(time, NAVIGATION); if (_local3 == null) { seek(_vp[_activeVP].totalTime); return(undefined); } var _local2 = _local3.index; if (_local3.time < time) { _local2++; } while ((_local2 < _local3.array.length) && (!isFLVCuePointEnabled(_local3.array[_local2]))) { _local2++; } if (_local2 >= _local3.array.length) { var _local5 = _vp[_activeVP].totalTime; if (_local3.array[_local3.array.length - 1].time > _local5) { _local5 = _local3.array[_local3.array.length - 1]; } seek(_local5); } else { seek(_local3.array[_local2].time); } } function seekToPrevNavCuePoint(time) { if (_vp[_activeVP] == undefined) { return(undefined); } if (isNaN(time) || (time < 0)) { time = _vp[_activeVP].playheadTime; } var _local3 = findNearestCuePoint(time, NAVIGATION); if (_local3 == null) { seek(0); return(undefined); } var _local2 = _local3.index; while ((_local2 >= 0) && ((!isFLVCuePointEnabled(_local3.array[_local2])) || (_local3.array[_local2].time >= (time - _seekToPrevOffset)))) { _local2--; } if (_local2 < 0) { seek(0); } else { seek(_local3.array[_local2].time); } } function addASCuePoint(timeOrCuePoint, name, parameters) { return(_cpMgr[_activeVP].addASCuePoint(timeOrCuePoint, name, parameters)); } function removeASCuePoint(timeNameOrCuePoint) { return(_cpMgr[_activeVP].removeASCuePoint(timeNameOrCuePoint)); } function findCuePoint(timeNameOrCuePoint, type) { switch (type) { case "event" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, false, timeNameOrCuePoint)); case "navigation" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, false, timeNameOrCuePoint)); case "flv" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, false, timeNameOrCuePoint)); case "actionscript" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, false, timeNameOrCuePoint)); case "all" : } return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, false, timeNameOrCuePoint)); } function findNearestCuePoint(timeNameOrCuePoint, type) { switch (type) { case "event" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, true, timeNameOrCuePoint)); case "navigation" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, true, timeNameOrCuePoint)); case "flv" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, true, timeNameOrCuePoint)); case "actionscript" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, true, timeNameOrCuePoint)); case "all" : } return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, true, timeNameOrCuePoint)); } function findNextCuePointWithName(cuePoint) { return(_cpMgr[_activeVP].getNextCuePointWithName(cuePoint)); } function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) { return(_cpMgr[_activeVP].setFLVCuePointEnabled(enabled, timeNameOrCuePoint)); } function isFLVCuePointEnabled(timeNameOrCuePoint) { return(_cpMgr[_activeVP].isFLVCuePointEnabled(timeNameOrCuePoint)); } function getNextHighestDepth() { var _local2 = super.getNextHighestDepth(); return(((_local2 < 1000) ? 1000 : (_local2))); } function bringVideoPlayerToFront(index) { if ((index == _topVP) || (_vp[index] == undefined)) { return(undefined); } _vp[_topVP].swapDepths(_vp[index].getDepth()); _topVP = index; } function getVideoPlayer(index) { return(_vp[index]); } function closeVideoPlayer(index) { if (_vp[index] == undefined) { return(undefined); } if (index == 0) { throw new mx.video.VideoError(mx.video.VideoError.DELETE_DEFAULT_PLAYER); } if (_visibleVP == index) { visibleVideoPlayerIndex = (0); } if (_activeVP == index) { activeVideoPlayerIndex = (0); } _vp[index].close(); _vp[index].unloadMovie(); delete _vp[index]; _vp[index] = undefined; } function get activeVideoPlayerIndex() { return(_activeVP); } function set activeVideoPlayerIndex(i) { if (_activeVP == i) { return; } if (_vp[_activeVP].onEnterFrame != undefined) { doContentPathConnect(); } _activeVP = i; if (_vp[_activeVP] == undefined) { createVideoPlayer(_activeVP); _vp[_activeVP].visible = false; _vp[_activeVP].volume = 0; } //return(activeVideoPlayerIndex); } function get autoPlay() { if (_vpState[_activeVP] == undefined) { return(_autoPlay); } return(_vpState[_activeVP].autoPlay); } function set autoPlay(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoPlay = flag; } _vpState[_activeVP].autoPlay = flag; //return(autoPlay); } function get autoRewind() { if (_vp[_activeVP] == undefined) { return(_autoRewind); } return(_vp[_activeVP].autoRewind); } function set autoRewind(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoRewind = flag; } _vp[_activeVP].autoRewind = flag; //return(autoRewind); } function get autoSize() { if (_vp[_activeVP] == undefined) { return(_autoSize); } return(_vp[_activeVP].autoSize); } function set autoSize(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoSize = flag; } _vp[_activeVP].autoSize = flag; //return(autoSize); } function get bitrate() { return(ncMgr.getBitrate()); } function set bitrate(b) { ncMgr.setBitrate(b); //return(bitrate); } function get buffering() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == BUFFERING); } function get bufferingBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _bufferingBar = _uiMgr.getControl(mx.video.UIManager.BUFFERING_BAR); } return(_bufferingBar); } function set bufferingBar(s) { _bufferingBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, s); } //return(bufferingBar); } function get bufferingBarHidesAndDisablesOthers() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _bufferingBarHides = _uiMgr.bufferingBarHidesAndDisablesOthers; } return(_bufferingBarHides); } function set bufferingBarHidesAndDisablesOthers(b) { _bufferingBarHides = b; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__bufferingBarHidesAndDisablesOthers(b); } //return(bufferingBarHidesAndDisablesOthers); } function get backButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _backButton = _uiMgr.getControl(mx.video.UIManager.BACK_BUTTON); } return(_backButton); } function set backButton(s) { _backButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, s); } //return(backButton); } function get bufferTime() { if (_vp[_activeVP] == undefined) { return(_bufferTime); } return(_vp[_activeVP].bufferTime); } function set bufferTime(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _bufferTime = aTime; } _vp[_activeVP].bufferTime = aTime; //return(bufferTime); } function get bytesLoaded() { return(_vp[_activeVP].bytesLoaded); } function get bytesTotal() { return(_vp[_activeVP].bytesTotal); } function get contentPath() { if ((_vp[_activeVP] == undefined) || (_vp[_activeVP].onEnterFrame != undefined)) { return(_contentPath); } return(_vp[_activeVP].url); } function set contentPath(url) { if (_global.isLivePreview) { return; } if (_vp[_activeVP] == undefined) { if (url == _contentPath) { return; } _contentPath = url; } else { if (_vp[_activeVP].url == url) { return; } _vpState[_activeVP].minProgressPercent = undefined; if (_vp[_activeVP].onEnterFrame != undefined) { delete _vp[_activeVP].onEnterFrame; _vp[_activeVP].onEnterFrame = undefined; } _cpMgr[_activeVP].reset(); if (_vpState[_activeVP].autoPlay && (_firstStreamShown)) { _vp[_activeVP].play(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime); } else { _vp[_activeVP].load(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime); } _vpState[_activeVP].isLiveSet = false; _vpState[_activeVP].totalTimeSet = false; } //return(contentPath); } function set cuePoints(cp) { if (_cuePoints != undefined) { return; } _cuePoints = cp; //return(__get__cuePoints()); } function get forwardButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _forwardButton = _uiMgr.getControl(mx.video.UIManager.FORWARD_BUTTON); } return(_forwardButton); } function set forwardButton(s) { _forwardButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, s); } //return(forwardButton); } function get height() { if (_global.isLivePreview) { return(__height); } if (_vp[_visibleVP] != undefined) { __height = _vp[_visibleVP].height; } return(__height); } function set height(h) { setSize(width, h); //return(height); } function get idleTimeout() { if (_vp[_activeVP] == undefined) { return(_idleTimeout); } return(_vp[_activeVP].idleTimeout); } function set idleTimeout(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _idleTimeout = aTime; } _vp[_activeVP].idleTimeout = aTime; //return(idleTimeout); } function get isRTMP() { if (_global.isLivePreview) { return(true); } if (_vp[_activeVP] == undefined) { return(undefined); } return(_vp[_activeVP].isRTMP); } function get isLive() { if (_vp[_activeVP] == undefined) { return(_isLive); } if (_vpState[_activeVP].isLiveSet) { return(_vpState[_activeVP].isLive); } return(_vp[_activeVP].isLive); } function set isLive(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _isLive = flag; } _vpState[_activeVP].isLive = flag; _vpState[_activeVP].isLiveSet = true; //return(isLive); } function get maintainAspectRatio() { if (_vp[_activeVP] == undefined) { return(_aspectRatio); } return(_vp[_activeVP].maintainAspectRatio); } function set maintainAspectRatio(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _aspectRatio = flag; } _vp[_activeVP].maintainAspectRatio = flag; //return(maintainAspectRatio); } function get metadata() { if (_vp[_activeVP] == undefined) { return(null); } return(_vp[_activeVP].metadata); } function get metadataLoaded() { if (_vp[_activeVP] == undefined) { return(false); } return(_cpMgr[_activeVP].metadataLoaded); } function get muteButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _muteButton = _uiMgr.getControl(mx.video.UIManager.MUTE_BUTTON); } return(_muteButton); } function set muteButton(s) { _muteButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, s); } //return(muteButton); } function get ncMgr() { if (_vp[_activeVP] == undefined) { return(null); } return(_vp[_activeVP].ncMgr); } function get pauseButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _pauseButton = _uiMgr.getControl(mx.video.UIManager.PAUSE_BUTTON); } return(_pauseButton); } function set pauseButton(s) { _pauseButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, s); } //return(pauseButton); } function get paused() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == PAUSED); } function get playButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _playButton = _uiMgr.getControl(mx.video.UIManager.PLAY_BUTTON); } return(_playButton); } function set playButton(s) { _playButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, s); } //return(playButton); } function get playheadTime() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].playheadTime); } function set playheadTime(position) { seek(position); //return(playheadTime); } function get playheadUpdateInterval() { if (_vp[_activeVP] == undefined) { return(_playheadUpdateInterval); } return(_vp[_activeVP].playheadUpdateInterval); } function set playheadUpdateInterval(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _playheadUpdateInterval = aTime; } _cpMgr[_activeVP].playheadUpdateInterval = aTime; _vp[_activeVP].playheadUpdateInterval = aTime; //return(playheadUpdateInterval); } function get playing() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == PLAYING); } function get playPauseButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _playPauseButton = _uiMgr.getControl(mx.video.UIManager.PLAY_PAUSE_BUTTON); } return(_playPauseButton); } function set playPauseButton(s) { _playPauseButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, s); } //return(playPauseButton); } function get preferredHeight() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].videoHeight); } function get preferredWidth() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].videoWidth); } function get progressInterval() { if (_vp[_activeVP] == undefined) { return(_progressInterval); } return(_vp[_activeVP].progressInterval); } function set progressInterval(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _progressInterval = aTime; } _vp[_activeVP].progressInterval = aTime; //return(progressInterval); } function get scaleX() { if (_vp[_visibleVP] != undefined) { _scaleX = (_vp[_visibleVP].width / _origWidth) * 100; } return(_scaleX); } function set scaleX(xs) { setScale(xs, scaleY); //return(scaleX); } function get scaleY() { if (_vp[_visibleVP] != undefined) { _scaleY = (_vp[_visibleVP].height / _origHeight) * 100; } return(_scaleY); } function set scaleY(ys) { setScale(scaleX, ys); //return(scaleY); } function get scrubbing() { var _local2 = seekBar; if ((_local2 == undefined) || (_local2.isDragging == undefined)) { return(false); } return(_local2.isDragging); } function get seekBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBar = _uiMgr.getControl(mx.video.UIManager.SEEK_BAR); } return(_seekBar); } function set seekBar(s) { _seekBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.SEEK_BAR, s); } //return(seekBar); } function get seekBarInterval() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBarInterval = _uiMgr.seekBarInterval; } return(_seekBarInterval); } function set seekBarInterval(s) { _seekBarInterval = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__seekBarInterval(_seekBarInterval); } //return(seekBarInterval); } function get seekBarScrubTolerance() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBarScrubTolerance = _uiMgr.seekBarScrubTolerance; } return(_seekBarScrubTolerance); } function set seekBarScrubTolerance(s) { _seekBarScrubTolerance = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance); } //return(seekBarScrubTolerance); } function get seekToPrevOffset() { return(_seekToPrevOffset); } function set seekToPrevOffset(s) { _seekToPrevOffset = s; //return(seekToPrevOffset); } function get skin() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _skin = _uiMgr.skin; } return(_skin); } function set skin(s) { _skin = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__skin(s); } //return(skin); } function get skinAutoHide() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _skinAutoHide = _uiMgr.skinAutoHide; } return(_skinAutoHide); } function set skinAutoHide(b) { if (_global.isLivePreview) { return; } _skinAutoHide = b; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__skinAutoHide(b); } //return(skinAutoHide); } function get transform() { return(_transform); } function set transform(s) { _transform = s; if (_vp[_activeVP] != undefined) { _vp[_activeVP].transform = _transform; } //return(transform); } function get state() { if (_global.isLivePreview) { return(STOPPED); } if (_vp[_activeVP] == undefined) { return(DISCONNECTED); } if ((_activeVP == _visibleVP) && (scrubbing)) { return(SEEKING); } var _local3 = _vp[_activeVP].state; if (_local3 == mx.video.VideoPlayer.RESIZING) { return(LOADING); } if (((_vpState[_activeVP].prevState == LOADING) && (_vpState[_activeVP].autoPlay)) && (_local3 == STOPPED)) { return(LOADING); } return(_local3); } function get stateResponsive() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].stateResponsive); } function get stopButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _stopButton = _uiMgr.getControl(mx.video.UIManager.STOP_BUTTON); } return(_stopButton); } function set stopButton(s) { _stopButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, s); } //return(stopButton); } function get stopped() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == STOPPED); } function get totalTime() { if (_global.isLivePreview) { return(1); } if (_vp[_activeVP] == undefined) { return(_totalTime); } if (_vpState[_activeVP].totalTimeSet) { return(_vpState[_activeVP].totalTime); } return(_vp[_activeVP].totalTime); } function set totalTime(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _totalTime = aTime; } _vpState[_activeVP].totalTime = aTime; _vpState[_activeVP].totalTimeSet = true; //return(totalTime); } function get visible() { return(_visible); } function set visible(v) { _visible = v; //return(visible); } function get visibleVideoPlayerIndex() { return(_visibleVP); } function set visibleVideoPlayerIndex(i) { if (_visibleVP == i) { return; } var _local2 = _visibleVP; if (_vp[i] == undefined) { createVideoPlayer(i); } var _local5 = (_vp[i].height != _vp[_visibleVP].height) || (_vp[i].width != _vp[_visibleVP].width); _vp[_visibleVP].visible = false; _vp[_visibleVP].volume = 0; _visibleVP = i; if (_firstStreamShown) { _uiMgr.setupSkinAutoHide(_local2); _vp[_visibleVP].visible = true; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } } else if ((_vp[_visibleVP].stateResponsive && (_vp[_visibleVP].state != DISCONNECTED)) && (_uiMgr.__get__skinReady())) { _uiMgr.__set__visible(true); _uiMgr.setupSkinAutoHide(_local2); _firstStreamReady = true; showFirstStream(); } if ((_vp[_local2].height != _vp[_visibleVP].height) || (_vp[_local2].width != _vp[_visibleVP].width)) { dispatchEvent({type:"resize", x:x, y:y, width:width, height:height, auto:false, vp:_visibleVP}); } _uiMgr.handleEvent({type:"stateChange", state:_vp[_visibleVP].state, vp:_visibleVP}); _uiMgr.handleEvent({type:"playheadUpdate", playheadTime:_vp[_visibleVP].playheadTime, vp:_visibleVP}); if (_vp[_visibleVP].isRTMP) { _uiMgr.handleEvent({type:"ready", vp:_visibleVP}); } else { _uiMgr.handleEvent({type:"progress", bytesLoaded:_vp[_visibleVP].bytesLoaded, bytesTotal:_vp[_visibleVP].bytesTotal, vp:_visibleVP}); } //return(visibleVideoPlayerIndex); } function get volume() { return(_volume); } function set volume(aVol) { if (_volume == aVol) { return; } _volume = aVol; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } dispatchEvent({type:"volumeUpdate", volume:aVol}); //return(volume); } function get volumeBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBar = _uiMgr.getControl(mx.video.UIManager.VOLUME_BAR); } return(_volumeBar); } function set volumeBar(s) { _volumeBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, s); } //return(volumeBar); } function get volumeBarInterval() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBarInterval = _uiMgr.volumeBarInterval; } return(_volumeBarInterval); } function set volumeBarInterval(s) { _volumeBarInterval = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__volumeBarInterval(_volumeBarInterval); } //return(volumeBarInterval); } function get volumeBarScrubTolerance() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBarScrubTolerance = _uiMgr.volumeBarScrubTolerance; } return(_volumeBarScrubTolerance); } function set volumeBarScrubTolerance(s) { _volumeBarScrubTolerance = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance); } //return(volumeBarScrubTolerance); } function get width() { if (_global.isLivePreview) { return(__width); } if (_vp[_visibleVP] != undefined) { __width = _vp[_visibleVP].width; } return(__width); } function set width(w) { setSize(w, height); //return(width); } function get x() { return(_x); } function set x(xpos) { _x = xpos; //return(x); } function get y() { return(_y); } function set y(ypos) { _y = ypos; //return(y); } function createVideoPlayer(index) { if (_global.isLivePreview) { return(undefined); } var _local4 = width; var _local5 = height; _vp[index] = mx.video.VideoPlayer(attachMovie("VideoPlayer", String(index), VP_DEPTH_OFFSET + index)); _vp[index].setSize(_local4, _local5); _topVP = index; _vp[index].autoRewind = _autoRewind; _vp[index].autoSize = _autoSize; _vp[index].bufferTime = _bufferTime; _vp[index].idleTimeout = _idleTimeout; _vp[index].maintainAspectRatio = _aspectRatio; _vp[index].playheadUpdateInterval = _playheadUpdateInterval; _vp[index].progressInterval = _progressInterval; _vp[index].transform = _transform; _vp[index].volume = _volume; if (index == 0) { _vpState[index] = {id:index, isLive:_isLive, isLiveSet:true, totalTime:_totalTime, totalTimeSet:true, autoPlay:_autoPlay}; if (((_contentPath != null) && (_contentPath != undefined)) && (_contentPath != "")) { _vp[index].onEnterFrame = mx.utils.Delegate.create(this, doContentPathConnect); } } else { _vpState[index] = {id:index, isLive:false, isLiveSet:true, totalTime:0, totalTimeSet:true, autoPlay:false}; } _vp[index].addEventListener("resize", this); _vp[index].addEventListener("close", this); _vp[index].addEventListener("complete", this); _vp[index].addEventListener("cuePoint", this); _vp[index].addEventListener("playheadUpdate", this); _vp[index].addEventListener("progress", this); _vp[index].addEventListener("metadataReceived", this); _vp[index].addEventListener("stateChange", this); _vp[index].addEventListener("ready", this); _vp[index].addEventListener("rewind", this); _cpMgr[index] = new mx.video.CuePointManager(this, index); _cpMgr[index].playheadUpdateInterval = _playheadUpdateInterval; } function createUIManager() { _uiMgr = new mx.video.UIManager(this); _uiMgr.__set__visible(false); if ((_backButton != undefined) && (_backButton != null)) { _uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, _backButton); } if ((_bufferingBar != undefined) && (_bufferingBar != null)) { _uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, _bufferingBar); } _uiMgr.__set__bufferingBarHidesAndDisablesOthers(_bufferingBarHides); if ((_forwardButton != undefined) && (_forwardButton != null)) { _uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, _forwardButton); } if ((_pauseButton != undefined) && (_pauseButton != null)) { _uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, _pauseButton); } if ((_playButton != undefined) && (_playButton != null)) { _uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, _playButton); } if ((_playPauseButton != undefined) && (_playPauseButton != null)) { _uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, _playPauseButton); } if ((_stopButton != undefined) && (_stopButton != null)) { _uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, _stopButton); } if ((_seekBar != undefined) && (_seekBar != null)) { _uiMgr.setControl(mx.video.UIManager.SEEK_BAR, _seekBar); } if ((_seekBarInterval != undefined) && (_seekBarInterval != null)) { _uiMgr.__set__seekBarInterval(_seekBarInterval); } if ((_seekBarScrubTolerance != undefined) && (_seekBarScrubTolerance != null)) { _uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance); } if ((_skin != undefined) && (_skin != null)) { _uiMgr.__set__skin(_skin); } if ((_skinAutoHide != undefined) && (_skinAutoHide != null)) { _uiMgr.__set__skinAutoHide(_skinAutoHide); } if ((_muteButton != undefined) && (_muteButton != null)) { _uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, _muteButton); } if ((_volumeBar != undefined) && (_volumeBar != null)) { _uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, _volumeBar); } if ((_volumeBarInterval != undefined) && (_volumeBarInterval != null)) { _uiMgr.__set__volumeBarInterval(_volumeBarInterval); } if ((_volumeBarScrubTolerance != undefined) && (_volumeBarScrubTolerance != null)) { _uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance); } } function createLivePreviewMovieClip() { preview_mc = createEmptyMovieClip("preview_mc", 10); preview_mc.createEmptyMovieClip("box_mc", 10); preview_mc.box_mc.beginFill(0); preview_mc.box_mc.moveTo(0, 0); preview_mc.box_mc.lineTo(0, 100); preview_mc.box_mc.lineTo(100, 100); preview_mc.box_mc.lineTo(100, 0); preview_mc.box_mc.lineTo(0, 0); preview_mc.box_mc.endFill(); preview_mc.attachMovie("Icon", "icon_mc", 20); } function doContentPathConnect() { delete _vp[0].onEnterFrame; _vp[0].onEnterFrame = undefined; if (_global.isLivePreview) { return(undefined); } if (_vpState[0].autoPlay && (_firstStreamShown)) { _vp[0].play(_contentPath, _isLive, _totalTime); } else { _vp[0].load(_contentPath, _isLive, _totalTime); } _vpState[0].isLiveSet = false; _vpState[0].totalTimeSet = false; } function showFirstStream() { _firstStreamShown = true; _vp[_visibleVP].visible = true; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } var _local2 = 0; while (_local2 < _vp.length) { if (((_vp[_local2] != undefined) && (_vp[_local2].state == STOPPED)) && (_vpState[_local2].autoPlay)) { _vp[_local2].play(); } _local2++; } } function _scrubStart() { var _local2 = playheadTime; _vp[_visibleVP].volume = 0; dispatchEvent({type:"stateChange", state:SEEKING, playheadTime:_local2, vp:_visibleVP}); dispatchEvent({type:"scrubStart", state:SEEKING, playheadTime:_local2}); } function _scrubFinish() { var _local3 = playheadTime; var _local2 = state; _vp[_visibleVP].volume = _volume; if (_local2 != SEEKING) { dispatchEvent({type:"stateChange", state:_local2, playheadTime:_local3, vp:_visibleVP}); } dispatchEvent({type:"scrubFinish", state:_local2, playheadTime:_local3}); } function skinError(message) { if (_firstStreamReady && (!_firstStreamShown)) { showFirstStream(); } dispatchEvent({type:"skinError", message:message}); } function skinLoaded() { if (_firstStreamReady) { _uiMgr.__set__visible(true); if (!_firstStreamShown) { showFirstStream(); } } else if (((_contentPath == undefined) || (_contentPath == null)) || (_contentPath == "")) { _uiMgr.__set__visible(true); } dispatchEvent({type:"skinLoaded"}); } static var version = "1.0.0.103"; static var DISCONNECTED = "disconnected"; static var STOPPED = "stopped"; static var PLAYING = "playing"; static var PAUSED = "paused"; static var BUFFERING = "buffering"; static var LOADING = "loading"; static var CONNECTION_ERROR = "connectionError"; static var REWINDING = "rewinding"; static var SEEKING = "seeking"; static var ALL = "all"; static var EVENT = "event"; static var NAVIGATION = "navigation"; static var FLV = "flv"; static var ACTIONSCRIPT = "actionscript"; static var VP_DEPTH_OFFSET = 100; static var SEEK_TO_PREV_OFFSET_DEFAULT = 1; }
Symbol 21 MovieClip [__Packages.mx.video.VideoPlayer] Frame 0
class mx.video.VideoPlayer extends MovieClip { var _state, _cachedState, _bufferState, _cachedPlayheadTime, _metadata, _startingPlay, _invalidSeekTime, _invalidSeekRecovery, _currentPos, _atEnd, _cmdQueue, _readyDispatched, _autoResizeDone, _lastUpdateTime, _sawSeekNotify, _updateTimeIntervalID, _updateTimeInterval, _updateProgressIntervalID, _updateProgressInterval, _idleTimeoutIntervalID, _idleTimeoutInterval, _autoResizeIntervalID, _rtmpDoStopAtEndIntervalID, _rtmpDoSeekIntervalID, _httpDoSeekIntervalID, _httpDoSeekCount, _finishAutoResizeIntervalID, _delayedBufferingIntervalID, _delayedBufferingInterval, _isLive, _autoSize, _aspectRatio, _autoPlay, _autoRewind, _bufferTime, _volume, _sound, __visible, _hiddenForResize, _hiddenForResizeMetadataDelay, _contentPath, _video, _ncMgr, _ns, attachAudio, _prevVideoWidth, _prevVideoHeight, _streamLength, _videoWidth, _videoHeight, dispatchEvent, _x, _y, _visible, _hiddenRewindPlayheadTime, ncMgrClassName, _height, _width; function VideoPlayer () { super(); mx.events.EventDispatcher.initialize(this); _state = DISCONNECTED; _cachedState = _state; _bufferState = BUFFER_EMPTY; _cachedPlayheadTime = 0; _metadata = null; _startingPlay = false; _invalidSeekTime = false; _invalidSeekRecovery = false; _currentPos = 0; _atEnd = false; _cmdQueue = new Array(); _readyDispatched = false; _autoResizeDone = false; _lastUpdateTime = -1; _sawSeekNotify = false; _updateTimeIntervalID = 0; _updateTimeInterval = DEFAULT_UPDATE_TIME_INTERVAL; _updateProgressIntervalID = 0; _updateProgressInterval = DEFAULT_UPDATE_PROGRESS_INTERVAL; _idleTimeoutIntervalID = 0; _idleTimeoutInterval = DEFAULT_IDLE_TIMEOUT_INTERVAL; _autoResizeIntervalID = 0; _rtmpDoStopAtEndIntervalID = 0; _rtmpDoSeekIntervalID = 0; _httpDoSeekIntervalID = 0; _httpDoSeekCount = 0; _finishAutoResizeIntervalID = 0; _delayedBufferingIntervalID = 0; _delayedBufferingInterval = HTTP_DELAYED_BUFFERING_INTERVAL; if (_isLive == undefined) { _isLive = false; } if (_autoSize == undefined) { _autoSize = false; } if (_aspectRatio == undefined) { _aspectRatio = true; } if (_autoPlay == undefined) { _autoPlay = true; } if (_autoRewind == undefined) { _autoRewind = true; } if (_bufferTime == undefined) { _bufferTime = 0.1; } if (_volume == undefined) { _volume = 100; } _sound = new Sound(this); _sound.setVolume(_volume); __visible = true; _hiddenForResize = false; _hiddenForResizeMetadataDelay = 0; _contentPath = ""; } function setSize(w, h) { if (((w == _video._width) && (h == _video._height)) || (_autoSize)) { return(undefined); } _video._width = w; _video._height = h; if (_aspectRatio) { startAutoResize(); } } function setScale(xs, ys) { if (((xs == _video._xscale) && (ys == _video._yscale)) || (_autoSize)) { return(undefined); } _video._xscale = xs; _video._yscale = ys; if (_aspectRatio) { startAutoResize(); } } function play(url, isLive, totalTime) { if ((url != null) && (url != undefined)) { if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PLAY, url, isLive, totalTime); return(undefined); } execQueuedCmds(); } _autoPlay = true; _load(url, isLive, totalTime); return(undefined); } if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } flushQueuedCmds(); queueCmd(PLAY); setState(LOADING); _cachedState = LOADING; _ncMgr.reconnect(); return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PLAY); return(undefined); } execQueuedCmds(); } if ((_ns == null) || (_ns == undefined)) { _createStream(); _video.attachVideo(_ns); attachAudio(_ns); } switch (_state) { case BUFFERING : if (_ncMgr.isRTMP()) { _play(0); if (_atEnd) { _atEnd = false; _currentPos = 0; setState(REWINDING); } else if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; } } case PLAYING : return(undefined); case STOPPED : if (_ncMgr.isRTMP()) { if (_isLive) { _play(-1); setState(BUFFERING); } else { _play(0); if (_atEnd) { _atEnd = false; _currentPos = 0; _state = BUFFERING; setState(REWINDING); } else if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; setState(BUFFERING); } else { setState(BUFFERING); } } } else { _pause(false); if (_atEnd) { _atEnd = false; _seek(0); _state = BUFFERING; setState(REWINDING); } else if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(PLAYING); } } break; case PAUSED : _pause(false); if (!_ncMgr.isRTMP()) { if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(PLAYING); } } else { setState(BUFFERING); } } } function load(url, isLive, totalTime) { if ((url == null) || (url == undefined)) { throw new Error("null url sent to VideoPlayer.load"); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(LOAD, url, isLive, totalTime); return(undefined); } execQueuedCmds(); } _autoPlay = false; _load(url, isLive, totalTime); } function _load(url, isLive, totalTime) { _prevVideoWidth = videoWidth; if (_prevVideoWidth == undefined) { _prevVideoWidth = _video.width; if (_prevVideoWidth == undefined) { _prevVideoWidth = 0; } } _prevVideoHeight = videoHeight; if (_prevVideoHeight == undefined) { _prevVideoHeight = _video.height; if (_prevVideoHeight == undefined) { _prevVideoHeight = 0; } } _autoResizeDone = false; _cachedPlayheadTime = 0; _bufferState = BUFFER_EMPTY; _metadata = null; _startingPlay = false; _invalidSeekTime = false; _invalidSeekRecovery = false; _isLive = ((isLive == undefined) ? false : (isLive)); _contentPath = url; _currentPos = 0; _streamLength = totalTime; _atEnd = false; _videoWidth = undefined; _videoHeight = undefined; _readyDispatched = false; _lastUpdateTime = -1; _sawSeekNotify = false; clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = 0; clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; clearInterval(_httpDoSeekIntervalID); _httpDoSeekIntervalID = 0; clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = 0; clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; closeNS(false); if ((_ncMgr == null) || (_ncMgr == undefined)) { createINCManager(); } var _local2 = _ncMgr.connectToURL(_contentPath); setState(LOADING); _cachedState = LOADING; if (_local2) { _createStream(); _setUpStream(); } if (!_ncMgr.isRTMP()) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval); } } function pause() { if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PAUSE); return(undefined); } execQueuedCmds(); } if ((((_state == PAUSED) || (_state == STOPPED)) || (_ns == null)) || (_ns == undefined)) { return(undefined); } _pause(true); setState(PAUSED); } function stop() { if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(STOP); return(undefined); } execQueuedCmds(); } if (((_state == STOPPED) || (_ns == null)) || (_ns == undefined)) { return(undefined); } if (_ncMgr.isRTMP()) { if (_autoRewind && (!_isLive)) { _currentPos = 0; _play(0, 0); _state = STOPPED; setState(REWINDING); } else { closeNS(true); setState(STOPPED); } } else { _pause(true); if (_autoRewind) { _seek(0); _state = STOPPED; setState(REWINDING); } else { setState(STOPPED); } } } function seek(time) { if (_invalidSeekTime) { return(undefined); } if (isNaN(time) || (time < 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } flushQueuedCmds(); queueCmd(SEEK, null, false, time); setState(LOADING); _cachedState = LOADING; _ncMgr.reconnect(); return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(SEEK, null, false, time); return(undefined); } execQueuedCmds(); } if ((_ns == null) || (_ns == undefined)) { _createStream(); _video.attachVideo(_ns); attachAudio(_ns); } if (_atEnd && (time < playheadTime)) { _atEnd = false; } switch (_state) { case PLAYING : _state = BUFFERING; case BUFFERING : case PAUSED : _seek(time); setState(SEEKING); break; case STOPPED : if (_ncMgr.isRTMP()) { _play(0); _pause(true); } _seek(time); _state = PAUSED; setState(SEEKING); } } function close() { closeNS(true); if (((_ncMgr != null) && (_ncMgr != undefined)) && (_ncMgr.isRTMP())) { _ncMgr.close(); } setState(DISCONNECTED); dispatchEvent({type:"close", state:_state, playheadTime:playheadTime}); } function get x() { return(_x); } function set x(xpos) { _x = xpos; //return(x); } function get y() { return(_y); } function set y(ypos) { _y = ypos; //return(y); } function get scaleX() { return(_video._xscale); } function set scaleX(xs) { setScale(xs, scaleY); //return(scaleX); } function get scaleY() { return(_video._yscale); } function set scaleY(ys) { setScale(scaleX, ys); //return(scaleY); } function get width() { return(_video._width); } function set width(w) { setSize(w, _video._height); //return(width); } function get height() { return(_video._height); } function set height(h) { setSize(_video._width, h); //return(height); } function get videoWidth() { if (_readyDispatched) { _videoWidth = _video.width; } return(_videoWidth); } function get videoHeight() { if (_readyDispatched) { _videoHeight = _video.height; } return(_videoHeight); } function get visible() { if (!_hiddenForResize) { __visible = _visible; } return(__visible); } function set visible(v) { __visible = v; if (!_hiddenForResize) { _visible = __visible; } //return(visible); } function get autoSize() { return(_autoSize); } function set autoSize(flag) { if (_autoSize != flag) { _autoSize = flag; if (_autoSize) { startAutoResize(); } } //return(autoSize); } function get maintainAspectRatio() { return(_aspectRatio); } function set maintainAspectRatio(flag) { if (_aspectRatio != flag) { _aspectRatio = flag; if (_aspectRatio && (!_autoSize)) { startAutoResize(); } } //return(maintainAspectRatio); } function get autoRewind() { return(_autoRewind); } function set autoRewind(flag) { _autoRewind = flag; //return(autoRewind); } function get playheadTime() { var _local2 = (((_ns == null) || (_ns == undefined)) ? (_currentPos) : (_ns.time)); if (_metadata.audiodelay != undefined) { _local2 = _local2 - _metadata.audiodelay; if (_local2 < 0) { _local2 = 0; } } return(_local2); } function set playheadTime(position) { seek(position); //return(playheadTime); } function get url() { return(_contentPath); } function get volume() { return(_volume); } function set volume(aVol) { _volume = aVol; if (!_hiddenForResize) { _sound.setVolume(_volume); } //return(volume); } function get transform() { return(_sound.getTransform()); } function set transform(s) { _sound.setTransform(s); //return(transform); } function get isRTMP() { if ((_ncMgr == null) || (_ncMgr == undefined)) { return(undefined); } return(_ncMgr.isRTMP()); } function get isLive() { return(_isLive); } function get state() { return(_state); } function get stateResponsive() { switch (_state) { case DISCONNECTED : case STOPPED : case PLAYING : case PAUSED : case BUFFERING : return(true); } return(false); } function get bytesLoaded() { if (((_ns == null) || (_ns == undefined)) || (_ncMgr.isRTMP())) { return(-1); } return(_ns.bytesLoaded); } function get bytesTotal() { if (((_ns == null) || (_ns == undefined)) || (_ncMgr.isRTMP())) { return(-1); } return(_ns.bytesTotal); } function get totalTime() { return(_streamLength); } function get bufferTime() { return(_bufferTime); } function set bufferTime(aTime) { _bufferTime = aTime; if ((_ns != null) && (_ns != undefined)) { _ns.setBufferTime(_bufferTime); } //return(bufferTime); } function get idleTimeout() { return(_idleTimeoutInterval); } function set idleTimeout(aTime) { _idleTimeoutInterval = aTime; if (_idleTimeoutIntervalID > 0) { clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval); } //return(idleTimeout); } function get playheadUpdateInterval() { return(_updateTimeInterval); } function set playheadUpdateInterval(aTime) { _updateTimeInterval = aTime; if (_updateTimeIntervalID > 0) { clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval); } //return(playheadUpdateInterval); } function get progressInterval() { return(_updateProgressInterval); } function set progressInterval(aTime) { _updateProgressInterval = aTime; if (_updateProgressIntervalID > 0) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval); } //return(progressInterval); } function get ncMgr() { if ((_ncMgr == null) || (_ncMgr == undefined)) { createINCManager(); } return(_ncMgr); } function get metadata() { return(_metadata); } function doUpdateTime() { var _local2 = playheadTime; switch (_state) { case STOPPED : case PAUSED : case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; } if (_lastUpdateTime != _local2) { dispatchEvent({type:"playheadUpdate", state:_state, playheadTime:_local2}); _lastUpdateTime = _local2; } } function doUpdateProgress() { if ((_ns == null) || (_ns == undefined)) { return(undefined); } if ((_ns.bytesTotal >= 0) && (_ns.bytesTotal >= 0)) { dispatchEvent({type:"progress", bytesLoaded:_ns.bytesLoaded, bytesTotal:_ns.bytesTotal}); } if (((_state == DISCONNECTED) || (_state == CONNECTION_ERROR)) || (_ns.bytesLoaded == _ns.bytesTotal)) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = 0; } } function rtmpOnStatus(info) { if (_state == CONNECTION_ERROR) { return(undefined); } switch (info.code) { case "NetStream.Play.Stop" : if (_startingPlay) { return(undefined); } switch (_state) { case RESIZING : if (_hiddenForResize) { finishAutoResize(); } break; case LOADING : case STOPPED : case PAUSED : break; default : if ((_bufferState == BUFFER_EMPTY) || (_bufferTime <= 0.1)) { _cachedPlayheadTime = playheadTime; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = setInterval(this, "rtmpDoStopAtEnd", RTMP_DO_STOP_AT_END_INTERVAL); } else { if (_bufferState != BUFFER_FULL) { break; } _bufferState = BUFFER_FULL_SAW_PLAY_STOP; } } break; case "NetStream.Buffer.Empty" : switch (_bufferState) { case BUFFER_FULL_SAW_PLAY_STOP : rtmpDoStopAtEnd(true); break; case BUFFER_FULL : if (_state == PLAYING) { setState(BUFFERING); } break; } _bufferState = BUFFER_EMPTY; break; case "NetStream.Buffer.Flush" : case "NetStream.Buffer.Full" : if (_sawSeekNotify && (_state == SEEKING)) { _bufferState = BUFFER_EMPTY; setStateFromCachedState(); doUpdateTime(); } switch (_bufferState) { case BUFFER_EMPTY : if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } } _bufferState = BUFFER_FULL; break; default : } break; case "NetStream.Pause.Notify" : if ((_state == RESIZING) && (_hiddenForResize)) { finishAutoResize(); } break; case "NetStream.Play.Start" : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; _bufferState = BUFFER_EMPTY; if (_startingPlay) { _startingPlay = false; _cachedPlayheadTime = playheadTime; } else if (_state == PLAYING) { setState(BUFFERING); } break; case "NetStream.Play.Reset" : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; if (_state == REWINDING) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; if ((playheadTime == 0) || (playheadTime < _cachedPlayheadTime)) { setStateFromCachedState(); } else { _cachedPlayheadTime = playheadTime; _rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL); } } break; case "NetStream.Seek.Notify" : if (playheadTime != _cachedPlayheadTime) { setStateFromCachedState(); doUpdateTime(); } else { _sawSeekNotify = true; if (_rtmpDoSeekIntervalID == 0) { _rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL); } } break; case "Netstream.Play.UnpublishNotify" : break; case "Netstream.Play.PublishNotify" : break; case "NetStream.Play.StreamNotFound" : if (!_ncMgr.connectAgain()) { setState(CONNECTION_ERROR); } break; case "NetStream.Play.Failed" : case "NetStream.Failed" : setState(CONNECTION_ERROR); } } function httpOnStatus(info) { switch (info.code) { case "NetStream.Play.Stop" : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; if (_invalidSeekTime) { _invalidSeekTime = false; _invalidSeekRecovery = true; setState(_cachedState); seek(playheadTime); } else { switch (_state) { case PLAYING : case BUFFERING : case SEEKING : httpDoStopAtEnd(); } } break; case "NetStream.Seek.InvalidTime" : if (_invalidSeekRecovery) { _invalidSeekTime = false; _invalidSeekRecovery = false; setState(_cachedState); seek(0); } else { _invalidSeekTime = true; } break; case "NetStream.Buffer.Empty" : _bufferState = BUFFER_EMPTY; if (_state == PLAYING) { clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = setInterval(this, "doDelayedBuffering", _delayedBufferingInterval); } break; case "NetStream.Buffer.Full" : case "NetStream.Buffer.Flush" : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; _bufferState = BUFFER_FULL; if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } } break; case "NetStream.Seek.Notify" : _invalidSeekRecovery = false; switch (_state) { case SEEKING : case REWINDING : if (_httpDoSeekIntervalID != 0) { break; } _httpDoSeekCount = 0; _httpDoSeekIntervalID = setInterval(this, "httpDoSeek", HTTP_DO_SEEK_INTERVAL); } break; case "NetStream.Play.StreamNotFound" : setState(CONNECTION_ERROR); } } function ncConnected() { if ((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { setState(CONNECTION_ERROR); } else { _createStream(); _setUpStream(); } } function ncReconnected() { if ((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { setState(CONNECTION_ERROR); } else { _ns = null; _state = STOPPED; execQueuedCmds(); } } function onMetaData(info) { if (_metadata != null) { return(undefined); } _metadata = info; if (((_streamLength == undefined) || (_streamLength == null)) || (_streamLength <= 0)) { _streamLength = info.duration; } if (isNaN(_videoWidth) || (_videoWidth <= 0)) { _videoWidth = info.width; } if (isNaN(_videoHeight) || (_videoHeight <= 0)) { _videoHeight = info.height; } dispatchEvent({type:"metadataReceived", info:info}); } function onCuePoint(info) { if ((!_hiddenForResize) || ((!isNaN(_hiddenRewindPlayheadTime)) && (playheadTime < _hiddenRewindPlayheadTime))) { dispatchEvent({type:"cuePoint", info:info}); } } function setState(s) { if (s == _state) { return(undefined); } _hiddenRewindPlayheadTime = undefined; _cachedState = _state; _cachedPlayheadTime = playheadTime; _state = s; var _local2 = _state; dispatchEvent({type:"stateChange", state:_local2, playheadTime:playheadTime}); if (!_readyDispatched) { switch (_local2) { case STOPPED : case PLAYING : case PAUSED : case BUFFERING : _readyDispatched = true; dispatchEvent({type:"ready", state:_local2, playheadTime:playheadTime}); } } if (!(_cachedState === REWINDING)) { } else { dispatchEvent({type:"rewind", state:_local2, playheadTime:playheadTime}); if (_ncMgr.isRTMP() && (_local2 == STOPPED)) { closeNS(); } } switch (_local2) { case STOPPED : case PAUSED : if (_ncMgr.isRTMP() && (_idleTimeoutIntervalID == 0)) { _idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval); } break; case SEEKING : case REWINDING : _bufferState = BUFFER_EMPTY; case PLAYING : case BUFFERING : if (_updateTimeIntervalID == 0) { _updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval); } case LOADING : case RESIZING : clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; } execQueuedCmds(); } function setStateFromCachedState() { switch (_cachedState) { case PLAYING : case PAUSED : setState(_cachedState); break; case BUFFERING : if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(_cachedState); } break; default : setState(STOPPED); } } function createINCManager() { if ((ncMgrClassName == null) || (ncMgrClassName == undefined)) { ncMgrClassName = DEFAULT_INCMANAGER; } var ncMgrConstructor = eval (this.ncMgrClassName); _ncMgr = new ncMgrConstructor(); _ncMgr.setVideoPlayer(this); } function rtmpDoStopAtEnd(force) { if (_rtmpDoStopAtEndIntervalID > 0) { switch (_state) { case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; return(undefined); } if (force || (_cachedPlayheadTime == playheadTime)) { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; } else { _cachedPlayheadTime = playheadTime; return(undefined); } } _bufferState = BUFFER_EMPTY; _atEnd = true; setState(STOPPED); if (_state != STOPPED) { return(undefined); } doUpdateTime(); if (_state != STOPPED) { return(undefined); } dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime}); if (_state != STOPPED) { return(undefined); } if ((_autoRewind && (!_isLive)) && (playheadTime != 0)) { _atEnd = false; _currentPos = 0; _play(0, 0); setState(REWINDING); } else { closeNS(); } } function rtmpDoSeek() { if ((_state != REWINDING) && (_state != SEEKING)) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; _sawSeekNotify = false; } else if (playheadTime != _cachedPlayheadTime) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; _sawSeekNotify = false; setStateFromCachedState(); doUpdateTime(); } } function httpDoStopAtEnd() { _atEnd = true; if (((_streamLength == undefined) || (_streamLength == null)) || (_streamLength <= 0)) { _streamLength = _ns.time; } _pause(true); setState(STOPPED); if (_state != STOPPED) { return(undefined); } doUpdateTime(); if (_state != STOPPED) { return(undefined); } dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime}); if (_state != STOPPED) { return(undefined); } if (_autoRewind) { _atEnd = false; _pause(true); _seek(0); setState(REWINDING); } } function httpDoSeek() { var _local2 = (_state == REWINDING) || (_state == SEEKING); if ((_local2 && (_httpDoSeekCount < HTTP_DO_SEEK_MAX_COUNT)) && ((_cachedPlayheadTime == playheadTime) || (_invalidSeekTime))) { _httpDoSeekCount++; return(undefined); } _httpDoSeekCount = 0; clearInterval(_httpDoSeekIntervalID); _httpDoSeekIntervalID = 0; if (!_local2) { return(undefined); } setStateFromCachedState(); if (_invalidSeekTime) { _invalidSeekTime = false; _invalidSeekRecovery = true; seek(playheadTime); } else { doUpdateTime(); } } function closeNS(updateCurrentPos) { if ((_ns != null) && (_ns != undefined)) { if (updateCurrentPos) { clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; doUpdateTime(); _currentPos = _ns.time; } delete _ns.onStatus; _ns.onStatus = null; _ns.close(); _ns = null; } } function doDelayedBuffering() { switch (_state) { case LOADING : case RESIZING : break; case PLAYING : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; setState(BUFFERING); break; default : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; } } function _pause(doPause) { _ns.pause(doPause); } function _play() { _startingPlay = true; switch (arguments.length) { case 0 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : 0), -1); break; case 1 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), -1); break; case 2 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), arguments[1]); break; default : throw new Error("bad args to _play"); } } function _seek(time) { if ((_metadata.audiodelay != undefined) && ((time + _metadata.audiodelay) < _streamLength)) { time = time + _metadata.audiodelay; } _ns.seek(time); _invalidSeekTime = false; _bufferState = BUFFER_EMPTY; _sawSeekNotify = false; } function isXnOK() { if (_state == LOADING) { return(true); } if (_state == CONNECTION_ERROR) { return(false); } if (_state != DISCONNECTED) { if (((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) || (!_ncMgr.getNetConnection().isConnected)) { setState(DISCONNECTED); return(false); } return(true); } return(false); } function startAutoResize() { switch (_state) { case DISCONNECTED : case CONNECTION_ERROR : return(undefined); } _autoResizeDone = false; if ((stateResponsive && (_videoWidth != undefined)) && (_videoHeight != undefined)) { doAutoResize(); } else { clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL); } } function doAutoResize() { if (_autoResizeIntervalID > 0) { switch (_state) { case RESIZING : case LOADING : break; case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; return(undefined); default : if (stateResponsive) { break; } return(undefined); } if ((((_video.width != _prevVideoWidth) || (_video.height != _prevVideoHeight)) || (_bufferState >= BUFFER_FULL)) || (_ns.time > AUTO_RESIZE_PLAYHEAD_TIMEOUT)) { if ((_hiddenForResize && (_metadata == null)) && (_hiddenForResizeMetadataDelay < AUTO_RESIZE_METADATA_DELAY_MAX)) { _hiddenForResizeMetadataDelay++; return(undefined); } _videoWidth = _video.width; _videoHeight = _video.height; clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; } else { return(undefined); } } if (((!_autoSize) && (!_aspectRatio)) || (_autoResizeDone)) { setState(_cachedState); return(undefined); } _autoResizeDone = true; if (_autoSize) { _video._width = _videoWidth; _video._height = _videoHeight; } else if (_aspectRatio) { var _local3 = (_videoWidth * height) / _videoHeight; var _local2 = (_videoHeight * width) / _videoWidth; if (_local2 < height) { _video._height = _local2; } else if (_local3 < width) { _video._width = _local3; } } if (_hiddenForResize) { _hiddenRewindPlayheadTime = playheadTime; if (_state == LOADING) { _cachedState = PLAYING; } if (!_ncMgr.isRTMP()) { _pause(true); _seek(0); clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL); } else if (!_isLive) { _currentPos = 0; _play(0, 0); setState(RESIZING); } else if (_autoPlay) { clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL); } else { finishAutoResize(); } } else { dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height}); } } function finishAutoResize() { clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = 0; if (stateResponsive) { return(undefined); } _visible = __visible; _sound.setVolume(_volume); _hiddenForResize = false; dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height}); if (_autoPlay) { if (_ncMgr.isRTMP()) { if (!_isLive) { _currentPos = 0; _play(0); } if (_state == RESIZING) { setState(LOADING); _cachedState = PLAYING; } } else { _pause(false); _cachedState = PLAYING; } } else { setState(STOPPED); } } function _createStream() { _ns = new NetStream(_ncMgr.getNetConnection()); _ns.mc = this; if (_ncMgr.isRTMP()) { _ns.onStatus = function (info) { this.mc.rtmpOnStatus(info); }; } else { _ns.onStatus = function (info) { this.mc.httpOnStatus(info); }; } _ns.onMetaData = function (info) { this.mc.onMetaData(info); }; _ns.onCuePoint = function (info) { this.mc.onCuePoint(info); }; _ns.setBufferTime(_bufferTime); } function _setUpStream() { _video.attachVideo(_ns); attachAudio(_ns); if ((!isNaN(_ncMgr.getStreamLength())) && (_ncMgr.getStreamLength() >= 0)) { _streamLength = _ncMgr.getStreamLength(); } if ((!isNaN(_ncMgr.getStreamWidth())) && (_ncMgr.getStreamWidth() >= 0)) { _videoWidth = _ncMgr.getStreamWidth(); } else { _videoWidth = undefined; } if ((!isNaN(_ncMgr.getStreamHeight())) && (_ncMgr.getStreamHeight() >= 0)) { _videoHeight = _ncMgr.getStreamHeight(); } else { _videoHeight = undefined; } if (((_autoSize || (_aspectRatio)) && (_videoWidth != undefined)) && (_videoHeight != undefined)) { _prevVideoWidth = undefined; _prevVideoHeight = undefined; doAutoResize(); } if (((!_autoSize) && (!_aspectRatio)) || ((_videoWidth != undefined) && (_videoHeight != undefined))) { if (_autoPlay) { if (!_ncMgr.isRTMP()) { _cachedState = BUFFERING; _play(); } else if (_isLive) { _cachedState = BUFFERING; _play(-1); } else { _cachedState = BUFFERING; _play(0); } } else { _cachedState = STOPPED; if (_ncMgr.isRTMP()) { _play(0, 0); } else { _play(); _pause(true); _seek(0); } } } else { _hiddenForResize = true; _hiddenForResizeMetadataDelay = 0; __visible = _visible; _visible = false; _volume = _sound.getVolume(); _sound.setVolume(0); _play(0); if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; } } clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL); } function doIdleTimeout() { clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; close(); } function flushQueuedCmds() { while (_cmdQueue.length > 0) { _cmdQueue.pop(); } } function execQueuedCmds() { while (((_cmdQueue.length > 0) && (stateResponsive || (_state == CONNECTION_ERROR))) && (((_cmdQueue[0].url != null) && (_cmdQueue[0].url != undefined)) || ((_state != DISCONNECTED) && (_state != CONNECTION_ERROR)))) { var _local2 = _cmdQueue.shift(); _cachedState = _state; _state = EXEC_QUEUED_CMD; switch (_local2.type) { case PLAY : play(_local2.url, _local2.isLive, _local2.time); break; case LOAD : load(_local2.url, _local2.isLive, _local2.time); break; case PAUSE : pause(); break; case STOP : stop(); break; case SEEK : seek(_local2.time); } } } function queueCmd(type, url, isLive, time) { _cmdQueue.push({type:type, url:url, isLive:false, time:time}); } static var version = "1.0.0.103"; static var DISCONNECTED = "disconnected"; static var STOPPED = "stopped"; static var PLAYING = "playing"; static var PAUSED = "paused"; static var BUFFERING = "buffering"; static var LOADING = "loading"; static var CONNECTION_ERROR = "connectionError"; static var REWINDING = "rewinding"; static var SEEKING = "seeking"; static var RESIZING = "resizing"; static var EXEC_QUEUED_CMD = "execQueuedCmd"; static var BUFFER_EMPTY = "bufferEmpty"; static var BUFFER_FULL = "bufferFull"; static var BUFFER_FULL_SAW_PLAY_STOP = "bufferFullSawPlayStop"; static var DEFAULT_INCMANAGER = "mx.video.NCManager"; static var DEFAULT_UPDATE_TIME_INTERVAL = 250; static var DEFAULT_UPDATE_PROGRESS_INTERVAL = 250; static var DEFAULT_IDLE_TIMEOUT_INTERVAL = 300000; static var AUTO_RESIZE_INTERVAL = 100; static var AUTO_RESIZE_PLAYHEAD_TIMEOUT = 0.5; static var AUTO_RESIZE_METADATA_DELAY_MAX = 5; static var FINISH_AUTO_RESIZE_INTERVAL = 250; static var RTMP_DO_STOP_AT_END_INTERVAL = 500; static var RTMP_DO_SEEK_INTERVAL = 100; static var HTTP_DO_SEEK_INTERVAL = 250; static var HTTP_DO_SEEK_MAX_COUNT = 4; static var CLOSE_NS_INTERVAL = 0.25; static var HTTP_DELAYED_BUFFERING_INTERVAL = 100; static var PLAY = 0; static var LOAD = 1; static var PAUSE = 2; static var STOP = 3; static var SEEK = 4; }
Symbol 22 MovieClip [__Packages.mx.video.INCManager] Frame 0
interface mx.video.INCManager { }
Symbol 23 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 24 MovieClip [__Packages.mx.video.VideoError] Frame 0
class mx.video.VideoError extends Error { var _code, message, name; function VideoError (errCode, msg) { super(); _code = errCode; message = ((("" + errCode) + ": ") + ERROR_MSG[errCode - BASE_ERROR_CODE]) + ((msg == undefined) ? "" : (": " + msg)); name = "VideoError"; } function get code() { return(_code); } static var version = "1.0.0.103"; static var BASE_ERROR_CODE = 1000; static var NO_CONNECTION = 1000; static var NO_CUE_POINT_MATCH = 1001; static var ILLEGAL_CUE_POINT = 1002; static var INVALID_SEEK = 1003; static var INVALID_CONTENT_PATH = 1004; static var INVALID_XML = 1005; static var NO_BITRATE_MATCH = 1006; static var DELETE_DEFAULT_PLAYER = 1007; static var ERROR_MSG = ["Unable to make connection to server or to find FLV on server", "No matching cue point found", "Illegal cue point", "Invalid seek", "Invalid contentPath", "Invalid xml", "No bitrate match, must be no default flv", "Cannot delete default VideoPlayer"]; }
Symbol 25 MovieClip [__Packages.mx.video.UIManager] Frame 0
class mx.video.UIManager { var _vc, _skin, _skinAutoHide, _skinReady, __visible, _bufferingBarHides, _controlsEnabled, _lastScrubPos, _lastVolumePos, cachedSoundLevel, _isMuted, controls, customClips, skin_mc, skinLoader, layout_mc, border_mc, _seekBarIntervalID, _seekBarInterval, _seekBarScrubTolerance, _volumeBarIntervalID, _volumeBarInterval, _volumeBarScrubTolerance, _bufferingDelayIntervalID, _bufferingDelayInterval, _bufferingOn, _skinAutoHideIntervalID, _progressPercent, placeholderLeft, placeholderRight, placeholderTop, placeholderBottom, videoLeft, videoRight, videoTop, videoBottom, _playAfterScrub; function UIManager (vc) { _vc = vc; _skin = undefined; _skinAutoHide = false; _skinReady = true; __visible = true; _bufferingBarHides = false; _controlsEnabled = true; _lastScrubPos = 0; _lastVolumePos = 0; cachedSoundLevel = _vc.volume; _isMuted = false; controls = new Array(); customClips = undefined; skin_mc = undefined; skinLoader = undefined; layout_mc = undefined; border_mc = undefined; _seekBarIntervalID = 0; _seekBarInterval = SEEK_BAR_INTERVAL_DEFAULT; _seekBarScrubTolerance = SEEK_BAR_SCRUB_TOLERANCE_DEFAULT; _volumeBarIntervalID = 0; _volumeBarInterval = VOLUME_BAR_INTERVAL_DEFAULT; _volumeBarScrubTolerance = VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT; _bufferingDelayIntervalID = 0; _bufferingDelayInterval = BUFFERING_DELAY_INTERVAL_DEFAULT; _bufferingOn = false; _skinAutoHideIntervalID = 0; _vc.addEventListener("metadataReceived", this); _vc.addEventListener("playheadUpdate", this); _vc.addEventListener("progress", this); _vc.addEventListener("stateChange", this); _vc.addEventListener("ready", this); _vc.addEventListener("resize", this); _vc.addEventListener("volumeUpdate", this); } function handleEvent(e) { if ((e.vp != undefined) && (e.vp != _vc.__get__visibleVideoPlayerIndex())) { return(undefined); } var _local9 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (e.type == "stateChange") { if (e.state == mx.video.FLVPlayback.BUFFERING) { if (!_bufferingOn) { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayInterval); } } else { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = 0; _bufferingOn = false; } if (e.state == mx.video.FLVPlayback.LOADING) { _progressPercent = (_vc.getVideoPlayer(e.vp).__get__isRTMP() ? 100 : 0); var _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, e.state); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } } else if ((e.type == "ready") || (e.type == "metadataReceived")) { var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, _vc.__get__state()); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } if (_vc.getVideoPlayer(e.vp).__get__isRTMP()) { _progressPercent = 100; _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } } else if (e.type == "resize") { layoutSkin(); setupSkinAutoHide(); } else if (e.type == "volumeUpdate") { if (_isMuted && (e.volume > 0)) { _isMuted = false; setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_OFF_BUTTON]); setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_ON_BUTTON]); } var _local5 = controls[VOLUME_BAR]; _local5.percentage = (_isMuted ? (cachedSoundLevel) : (e.volume)); if (_local5.percentage < 0) { _local5.percentage = 0; } else if (_local5.percentage > 100) { _local5.percentage = 100; } positionHandle(VOLUME_BAR); } else if ((e.type == "playheadUpdate") && (controls[SEEK_BAR] != undefined)) { if ((!_vc.__get__isLive()) && (_vc.__get__totalTime() > 0)) { var _local6 = (e.playheadTime / _vc.__get__totalTime()) * 100; if (_local6 < 0) { _local6 = 0; } else if (_local6 > 100) { _local6 = 100; } var _local10 = controls[SEEK_BAR]; _local10.percentage = _local6; positionHandle(SEEK_BAR); } } else if (e.type == "progress") { _progressPercent = ((e.bytesTotal <= 0) ? 100 : ((e.bytesLoaded / e.bytesTotal) * 100)); var _local7 = _vc._vpState[e.vp].minProgressPercent; if ((!isNaN(_local7)) && (_local7 > _progressPercent)) { _progressPercent = _local7; } if (_vc.__get__totalTime() > 0) { var _local8 = (_vc.__get__playheadTime() / _vc.__get__totalTime()) * 100; if (_local8 > _progressPercent) { _progressPercent = _local8; _vc._vpState[e.vp].minProgressPercent = _progressPercent; } } var _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } _vc.__set__activeVideoPlayerIndex(_local9); } function get bufferingBarHidesAndDisablesOthers() { return(_bufferingBarHides); } function set bufferingBarHidesAndDisablesOthers(b) { _bufferingBarHides = b; //return(bufferingBarHidesAndDisablesOthers); } function get controlsEnabled() { return(_controlsEnabled); } function set controlsEnabled(flag) { if (_controlsEnabled == flag) { return; } _controlsEnabled = flag; var _local2 = 0; while (_local2 < NUM_BUTTONS) { if (controls[_local2] == undefined) { } else { controls[_local2].releaseCapture(); controls[_local2].enabled = _controlsEnabled && (controls[_local2].myEnabled); skinButtonControl(controls[_local2]); } _local2++; } //return(controlsEnabled); } function get skin() { return(_skin); } function set skin(s) { if (s == _skin) { return; } if (_skin != undefined) { removeSkin(); } _skin = s; _skinReady = ((_skin == undefined) || (_skin == null)) || (_skin == ""); if (!_skinReady) { downloadSkin(); } //return(skin); } function get skinAutoHide() { return(_skinAutoHide); } function set skinAutoHide(b) { if (b == _skinAutoHide) { return; } _skinAutoHide = b; setupSkinAutoHide(); //return(skinAutoHide); } function get skinReady() { return(_skinReady); } function get seekBarInterval() { return(_seekBarInterval); } function set seekBarInterval(s) { if (_seekBarInterval == s) { return; } _seekBarInterval = s; if (_seekBarIntervalID > 0) { clearInterval(_seekBarIntervalID); _seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false); } //return(seekBarInterval); } function get volumeBarInterval() { return(_volumeBarInterval); } function set volumeBarInterval(s) { if (_volumeBarInterval == s) { return; } _volumeBarInterval = s; if (_volumeBarIntervalID > 0) { clearInterval(_volumeBarIntervalID); _volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false); } //return(volumeBarInterval); } function get bufferingDelayInterval() { return(_bufferingDelayInterval); } function set bufferingDelayInterval(s) { if (_bufferingDelayInterval == s) { return; } _bufferingDelayInterval = s; if (_bufferingDelayIntervalID > 0) { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayIntervalID); } //return(bufferingDelayInterval); } function get volumeBarScrubTolerance() { return(_volumeBarScrubTolerance); } function set volumeBarScrubTolerance(s) { _volumeBarScrubTolerance = s; //return(volumeBarScrubTolerance); } function get seekBarScrubTolerance() { return(_seekBarScrubTolerance); } function set seekBarScrubTolerance(s) { _seekBarScrubTolerance = s; //return(seekBarScrubTolerance); } function get visible() { return(__visible); } function set visible(v) { if (__visible == v) { return; } __visible = v; if (!__visible) { skin_mc._visible = false; } else { setupSkinAutoHide(); } //return(visible); } function getControl(index) { return(controls[index]); } function setControl(index, s) { if (s == null) { s = undefined; } if (s == controls[index]) { return(undefined); } switch (index) { case PAUSE_BUTTON : case PLAY_BUTTON : resetPlayPause(); break; case PLAY_PAUSE_BUTTON : if (s._parent != layout_mc) { resetPlayPause(); setControl(PAUSE_BUTTON, s.pause_mc); setControl(PLAY_BUTTON, s.play_mc); } break; case MUTE_BUTTON : if (s._parent == layout_mc) { break; } setControl(MUTE_ON_BUTTON, s.on_mc); setControl(MUTE_OFF_BUTTON, s.off_mc); } if (index >= NUM_BUTTONS) { controls[index] = s; switch (index) { case SEEK_BAR : addBarControl(SEEK_BAR); break; case VOLUME_BAR : addBarControl(VOLUME_BAR); controls[VOLUME_BAR].percentage = _vc.volume; break; case BUFFERING_BAR : controls[BUFFERING_BAR].uiMgr = this; controls[BUFFERING_BAR].controlIndex = BUFFERING_BAR; if (controls[BUFFERING_BAR]._parent == skin_mc) { finishAddBufferingBar(); } else { controls[BUFFERING_BAR].onEnterFrame = function () { this.uiMgr.finishAddBufferingBar(); }; } } setEnabledAndVisibleForState(index, _vc.__get__state()); } else { removeButtonControl(index); controls[index] = s; addButtonControl(index); } } function resetPlayPause() { if (controls[PLAY_PAUSE_BUTTON] == undefined) { return(undefined); } var _local2 = PAUSE_BUTTON; while (_local2 <= PLAY_BUTTON) { removeButtonControl(_local2); _local2++; } controls[PLAY_PAUSE_BUTTON] = undefined; } function addButtonControl(index) { var _local3 = controls[index]; if (_local3 == undefined) { return(undefined); } var _local5 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); _local3.id = index; _local3.state = UP_STATE; _local3.uiMgr = this; setEnabledAndVisibleForState(index, _vc.__get__state()); _local3.onRollOver = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.skinButtonControl(this); }; _local3.onRollOut = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; if ((index == SEEK_BAR_HANDLE) || (index == VOLUME_BAR_HANDLE)) { _local3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; _local3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; _local3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; } else { _local3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.skinButtonControl(this); }; _local3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; _local3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; } if (_local3._parent == skin_mc) { skinButtonControl(_local3); } else { _local3.onEnterFrame = function () { this.uiMgr.skinButtonControl(this); }; } _vc.__set__activeVideoPlayerIndex(_local5); } function removeButtonControl(index) { if (controls[index] == undefined) { return(undefined); } controls[index].uiMgr = undefined; controls[index].onRollOver = undefined; controls[index].onRollOut = undefined; controls[index].onPress = undefined; controls[index].onRelease = undefined; controls[index].onReleaseOutside = undefined; controls[index] = undefined; } function downloadSkin() { if (skinLoader == undefined) { skinLoader = new MovieClipLoader(); skinLoader.addListener(this); } if (skin_mc == undefined) { skin_mc = _vc.createEmptyMovieClip("skin_mc", _vc.getNextHighestDepth()); } skin_mc._visible = false; skin_mc._x = Stage.width + 100; skin_mc._y = Stage.height + 100; skinLoader.loadClip(_skin, skin_mc); } function onLoadError(target_mc, errorCode) { _skinReady = true; _vc.skinError("Unable to load skin swf"); } function onLoadInit() { try { skin_mc._visible = false; skin_mc._x = 0; skin_mc._y = 0; layout_mc = skin_mc.layout_mc; if (layout_mc == undefined) { throw new Error("No layout_mc"); } layout_mc._visible = false; customClips = new Array(); setCustomClips("bg"); if (layout_mc.playpause_mc != undefined) { setSkin(PLAY_PAUSE_BUTTON, layout_mc.playpause_mc); } else { setSkin(PAUSE_BUTTON, layout_mc.pause_mc); setSkin(PLAY_BUTTON, layout_mc.play_mc); } setSkin(STOP_BUTTON, layout_mc.stop_mc); setSkin(BACK_BUTTON, layout_mc.back_mc); setSkin(FORWARD_BUTTON, layout_mc.forward_mc); setSkin(MUTE_BUTTON, layout_mc.volumeMute_mc); setSkin(SEEK_BAR, layout_mc.seekBar_mc); setSkin(VOLUME_BAR, layout_mc.volumeBar_mc); setSkin(BUFFERING_BAR, layout_mc.bufferingBar_mc); setCustomClips("fg"); layoutSkin(); setupSkinAutoHide(); skin_mc._visible = __visible; _skinReady = true; _vc.skinLoaded(); var _local4 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local3 = _vc.__get__state(); var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, _local3); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } _vc.__set__activeVideoPlayerIndex(_local4); } catch(err:Error) { _vc.skinError(err.message); removeSkin(); } } function layoutSkin() { if (layout_mc == undefined) { return(undefined); } var _local3 = layout_mc.video_mc; if (_local3 == undefined) { throw new Error("No layout_mc.video_mc"); } placeholderLeft = _local3._x; placeholderRight = _local3._x + _local3._width; placeholderTop = _local3._y; placeholderBottom = _local3._y + _local3._height; videoLeft = 0; videoRight = _vc.width; videoTop = 0; videoBottom = _vc.height; if (((!isNaN(layout_mc.minWidth)) && (layout_mc.minWidth > 0)) && (layout_mc.minWidth > videoRight)) { videoLeft = videoLeft - ((layout_mc.minWidth - videoRight) / 2); videoRight = layout_mc.minWidth + videoLeft; } if (((!isNaN(layout_mc.minHeight)) && (layout_mc.minHeight > 0)) && (layout_mc.minHeight > videoBottom)) { videoTop = videoTop - ((layout_mc.minHeight - videoBottom) / 2); videoBottom = layout_mc.minHeight + videoTop; } var _local2; _local2 = 0; while (_local2 < customClips.length) { layoutControl(customClips[_local2]); _local2++; } _local2 = 0; while (_local2 < NUM_CONTROLS) { layoutControl(controls[_local2]); _local2++; } } function layoutControl(ctrl) { if (ctrl == undefined) { return(undefined); } if (ctrl.skin.anchorRight) { if (ctrl.skin.anchorLeft) { ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft; ctrl._width = (((ctrl.skin._x + ctrl.skin._width) - placeholderRight) + videoRight) - ctrl._x; if (ctrl.origWidth != undefined) { ctrl.origWidth = undefined; } } else { ctrl._x = (ctrl.skin._x - placeholderRight) + videoRight; } } else { ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft; } if (ctrl.skin.anchorTop) { if (ctrl.skin.anchorBottom) { ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop; ctrl._height = (((ctrl.skin._y + ctrl.skin._height) - placeholderBottom) + videoBottom) - ctrl._y; if (ctrl.origHeight != undefined) { ctrl.origHeight = undefined; } } else { ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop; } } else { ctrl._y = (ctrl.skin._y - placeholderBottom) + videoBottom; } switch (ctrl.controlIndex) { case SEEK_BAR : case VOLUME_BAR : if (ctrl.progress_mc != undefined) { if (_progressPercent == undefined) { _progressPercent = (_vc.__get__isRTMP() ? 100 : 0); } positionBar(ctrl, "progress", _progressPercent); } positionHandle(ctrl.controlIndex); break; case BUFFERING_BAR : if (ctrl.fill_mc == undefined) { break; } positionMaskedFill(ctrl, ctrl.fill_mc, 100); } if (ctrl.layoutSelf != undefined) { ctrl.layoutSelf(); } } function removeSkin() { if (skin_mc != undefined) { var _local2 = 0; while (_local2 < NUM_BUTTONS) { removeButtonControl(_local2); _local2++; } _local2 = NUM_BUTTONS; while (_local2 < NUM_CONTROLS) { controls[_local2] = undefined; _local2++; } skin_mc.unloadMovie(); layout_mc = undefined; border_mc = undefined; } } function setCustomClips(prefix) { var _local4 = 1; while (true) { var _local2 = layout_mc[(prefix + (_local4++)) + "_mc"]; if (_local2 == undefined) { break; } var _local3 = _local2.mc; if (_local3 == undefined) { _local3 = _local2._parent._parent[_local2._name]; } if (_local3 == undefined) { throw new Error("Bad clip in skin: " + _local2); } _local3.skin = _local2; customClips.push(_local3); if ((prefix == "bg") && (_local4 == 2)) { border_mc = _local3; } } } function setSkin(index, s) { if (s == undefined) { return(undefined); } var _local2 = s.mc; if (_local2 == undefined) { _local2 = s._parent._parent[s._name]; } if (_local2 == undefined) { throw new Error("Bad clip in skin: " + s); } _local2.skin = s; if (index < NUM_BUTTONS) { setupSkinStates(_local2); } else { switch (index) { case PLAY_PAUSE_BUTTON : setupSkinStates(_local2.play_mc); setupSkinStates(_local2.pause_mc); break; case MUTE_BUTTON : setupSkinStates(_local2.on_mc); setupSkinStates(_local2.off_mc); break; case SEEK_BAR : case VOLUME_BAR : var _local4 = ((index == SEEK_BAR) ? "seekBar" : "volumeBar"); if (_local2.handle_mc == undefined) { _local2.handle_mc = _local2.skin.seekBarHandle_mc; if (_local2.handle_mc == undefined) { _local2.handle_mc = _local2.skin._parent._parent[_local4 + "Handle_mc"]; } } if (_local2.progress_mc == undefined) { _local2.progress_mc = _local2.skin.progress_mc; if (_local2.progress_mc == undefined) { _local2.progress_mc = _local2.skin._parent._parent[_local4 + "Progress_mc"]; } } if (_local2.fullness_mc == undefined) { _local2.fullness_mc = _local2.skin.fullness_mc; if (_local2.fullness_mc == undefined) { _local2.fullness_mc = _local2.skin._parent._parent[_local4 + "Fullness_mc"]; } } break; case BUFFERING_BAR : if (_local2.fill_mc != undefined) { break; } _local2.fill_mc = _local2.skin.fill_mc; if (_local2.fill_mc != undefined) { break; } _local2.fill_mc = _local2.skin._parent._parent.bufferingBarFill_mc; } } setControl(index, _local2); } function setupSkinStates(ctrl) { if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl; ctrl.over_mc = ctrl; ctrl.down_mc = ctrl; ctrl.disabled_mc = ctrl; } else { ctrl._x = 0; ctrl._y = 0; ctrl.up_mc._x = 0; ctrl.up_mc._y = 0; ctrl.up_mc._visible = true; if (ctrl.over_mc == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc._x = 0; ctrl.over_mc._y = 0; ctrl.over_mc._visible = false; } if (ctrl.down_mc == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc._x = 0; ctrl.down_mc._y = 0; ctrl.down_mc._visible = false; } if (ctrl.disabled_mc == undefined) { ctrl.disabled_mc_mc = ctrl.up_mc; } else { ctrl.disabled_mc._x = 0; ctrl.disabled_mc._y = 0; ctrl.disabled_mc._visible = false; } } } function skinButtonControl(ctrl) { if (ctrl.onEnterFrame != undefined) { delete ctrl.onEnterFrame; ctrl.onEnterFrame = undefined; } if (ctrl.enabled) { switch (ctrl.state) { case UP_STATE : if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl.attachMovie(ctrl.upLinkageID, "up_mc", ctrl.getNextHighestDepth()); } applySkinState(ctrl, ctrl.up_mc); break; case OVER_STATE : if (ctrl.over_mc == undefined) { if (ctrl.overLinkageID == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc = ctrl.attachMovie(ctrl.overLinkageID, "over_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.over_mc); break; case DOWN_STATE : if (ctrl.down_mc == undefined) { if (ctrl.downLinkageID == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc = ctrl.attachMovie(ctrl.downLinkageID, "down_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.down_mc); } } else { ctrl.state = UP_STATE; if (ctrl.disabled_mc == undefined) { if (ctrl.disabledLinkageID == undefined) { ctrl.disabled_mc = ctrl.up_mc; } else { ctrl.disabled_mc = ctrl.attachMovie(ctrl.disabledLinkageID, "disabled_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.disabled_mc); } if (ctrl.placeholder_mc != undefined) { ctrl.placeholder_mc.unloadMovie(); delete ctrl.placeholder_mc; ctrl.placeholder_mc = undefined; } } function applySkinState(ctrl, state) { if (state != ctrl.currentState_mc) { if (state != undefined) { state._visible = true; } if (ctrl.currentState_mc != undefined) { ctrl.currentState_mc._visible = false; } ctrl.currentState_mc = state; } } function addBarControl(controlIndex) { var _local2 = controls[controlIndex]; _local2.isDragging = false; _local2.percentage = 0; _local2.uiMgr = this; _local2.controlIndex = controlIndex; if (_local2._parent == skin_mc) { finishAddBarControl(controlIndex); } else { _local2.onEnterFrame = function () { this.uiMgr.finishAddBarControl(this.controlIndex); }; } } function finishAddBarControl(controlIndex) { var _local2 = controls[controlIndex]; delete _local2.onEnterFrame; _local2.onEnterFrame = undefined; if (_local2.addBarControl != undefined) { _local2.addBarControl(); } calcBarMargins(_local2, "handle", true); calcBarMargins(_local2, "progress", false); calcBarMargins(_local2.progress_mc, "fill", false); calcBarMargins(_local2.progress_mc, "mask", false); calcBarMargins(_local2, "fullness", false); calcBarMargins(_local2.fullness_mc, "fill", false); calcBarMargins(_local2.fullness_mc, "mask", false); _local2.origWidth = _local2._width; _local2.origHeight = _local2._height; fixUpBar(_local2, "progress"); if (_local2.progress_mc != undefined) { fixUpBar(_local2, "progressBarFill"); if (_progressPercent == undefined) { _progressPercent = (_vc.__get__isRTMP() ? 100 : 0); } positionBar(_local2, "progress", _progressPercent); } fixUpBar(_local2, "fullness"); if (_local2.fullness_mc != undefined) { fixUpBar(_local2, "fullnessBarFill"); } fixUpBar(_local2, "handle"); _local2.handle_mc.controlIndex = controlIndex; switch (controlIndex) { case SEEK_BAR : setControl(SEEK_BAR_HANDLE, _local2.handle_mc); break; case VOLUME_BAR : setControl(VOLUME_BAR_HANDLE, _local2.handle_mc); } positionHandle(controlIndex); } function fixUpBar(ctrl, type) { if ((ctrl[type + "LinkageID"] != undefined) && (ctrl[type + "LinkageID"].length > 0)) { var _local1; if (ctrl[type + "Below"]) { _local1 = -1; while (ctrl._parent.getInstanceAtDepth(_local1) != undefined) { _local1--; } } else { ctrl[type + "Below"] = false; _local1 = ctrl._parent.getNextHighestDepth(); } ctrl[type + "_mc"] = ctrl._parent.attachMovie(ctrl[type + "LinkageID"], type + "_mc", _local1); } } function calcBarMargins(ctrl, type, symmetricMargins) { var _local2 = ctrl[type + "_mc"]; if (_local2 == undefined) { return(undefined); } if ((ctrl[type + "LeftMargin"] == undefined) && (_local2._parent == ctrl._parent)) { ctrl[type + "LeftMargin"] = _local2._x - ctrl._x; } if (ctrl[type + "RightMargin"] == undefined) { if (symmetricMargins) { ctrl[type + "RightMargin"] = ctrl[type + "LeftMargin"]; } else if (_local2._parent == ctrl._parent) { ctrl[type + "RightMargin"] = ((ctrl._width - _local2._width) - _local2._x) + ctrl._x; } } if ((ctrl[type + "TopMargin"] == undefined) && (_local2._parent == ctrl._parent)) { ctrl[type + "TopMargin"] = _local2._y - ctrl._y; } if (ctrl[type + "BottomMargin"] == undefined) { if (symmetricMargins) { ctrl[type + "BottomMargin"] = ctrl[type + "TopMargin"]; } else if (_local2._parent == ctrl._parent) { ctrl[type + "BottomMargin"] = ((ctrl._height - _local2._height) - _local2._y) + ctrl._y; } } if (ctrl[type + "X"] == undefined) { if (_local2._parent == ctrl._parent) { ctrl[type + "X"] = _local2._x - ctrl._x; } else if (_local2._parent == ctrl) { ctrl[type + "X"] = _local2._x; } } if (ctrl[type + "Y"] == undefined) { if (_local2._parent == ctrl._parent) { ctrl[type + "Y"] = _local2._y - ctrl._y; } else if (_local2._parent == ctrl) { ctrl[type + "Y"] = _local2._y; } } ctrl[type + "XScale"] = _local2._xscale; ctrl[type + "YScale"] = _local2._yscale; ctrl[type + "Width"] = _local2._width; ctrl[type + "Height"] = _local2._height; } function finishAddBufferingBar() { var _local2 = controls[BUFFERING_BAR]; delete _local2.onEnterFrame; _local2.onEnterFrame = undefined; calcBarMargins(_local2, "fill", true); fixUpBar(_local2, "fill"); if (_local2.fill_mc != undefined) { positionMaskedFill(_local2, _local2.fill_mc, 100); } } function positionMaskedFill(ctrl, fill, percent) { var _local5 = fill._parent; var _local3 = ctrl.mask_mc; if (_local3 == undefined) { _local3 = _local5.createEmptyMovieClip(ctrl._name + "Mask_mc", _local5.getNextHighestDepth()); ctrl.mask_mc = _local3; _local3.beginFill(16777215); _local3.lineTo(0, 0); _local3.lineTo(1, 0); _local3.lineTo(1, 1); _local3.lineTo(0, 1); _local3.lineTo(0, 0); _local3.endFill(); fill.setMask(_local3); _local3._x = ctrl.fillX; _local3._y = ctrl.fillY; _local3._width = ctrl.fillWidth; _local3._height = ctrl.fillHeight; _local3._visible = false; calcBarMargins(ctrl, "mask", true); } if (_local5 == ctrl) { if (fill.slideReveal) { fill._x = (ctrl.maskX - ctrl.fillWidth) + ((ctrl.fillWidth * percent) / 100); } else { _local3._width = (ctrl.fillWidth * percent) / 100; } } else if (_local5 == ctrl._parent) { if (fill.slideReveal) { _local3._x = ctrl._x + ctrl.maskLeftMargin; _local3._y = ctrl._y + ctrl.maskTopMargin; _local3._width = (ctrl._width - ctrl.maskRightMargin) - ctrl.maskLeftMargin; _local3._height = (ctrl._height - ctrl.maskTopMargin) - ctrl.maskBottomMargin; fill._x = (_local3._x - ctrl.fillWidth) + ((ctrl.maskWidth * percent) / 100); fill._y = ctrl._y + ctrl.fillTopMargin; } else { fill._x = ctrl._x + ctrl.fillLeftMargin; fill._y = ctrl._y + ctrl.fillTopMargin; _local3._x = fill._x; _local3._y = fill._y; _local3._width = (((ctrl._width - ctrl.fillRightMargin) - ctrl.fillLeftMargin) * percent) / 100; _local3._height = (ctrl._height - ctrl.fillTopMargin) - ctrl.fillBottomMargin; } } } function startHandleDrag(controlIndex) { var _local2 = controls[controlIndex]; var _local5 = _local2.handle_mc; if ((_local2.startHandleDrag == undefined) || (!_local2.startHandleDrag())) { var _local3 = _local2._y + _local2.handleY; var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); _local5.startDrag(false, _local2._x + _local2.handleLeftMargin, _local3, (_local2._x + _local4) - _local2.handleRightMargin, _local3); } _local2.isDragging = true; } function stopHandleDrag(controlIndex) { var _local2 = controls[controlIndex]; var _local3 = _local2.handle_mc; if ((_local2.stopHandleDrag == undefined) || (!_local2.stopHandleDrag())) { _local3.stopDrag(); } _local2.isDragging = false; } function positionHandle(controlIndex) { var _local2 = controls[controlIndex]; var _local3 = _local2.handle_mc; if (_local3 == undefined) { return(undefined); } if ((_local2.positionHandle != undefined) && (_local2.positionHandle())) { return(undefined); } var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); var _local5 = (_local4 - _local2.handleRightMargin) - _local2.handleLeftMargin; _local3._x = (_local2._x + _local2.handleLeftMargin) + ((_local5 * _local2.percentage) / 100); _local3._y = _local2._y + _local2.handleY; if (_local2.fullness_mc != undefined) { positionBar(_local2, "fullness", _local2.percentage); } } function positionBar(ctrl, type, percent) { if ((ctrl.positionBar != undefined) && (ctrl.positionBar(type, percent))) { return(undefined); } var _local2 = ctrl[type + "_mc"]; if (_local2._parent == ctrl) { if (_local2.fill_mc == undefined) { _local2._xscale = (ctrl[type + "XScale"] * percent) / 100; } else { positionMaskedFill(_local2, _local2.fill_mc, percent); } } else { _local2._x = ctrl._x + ctrl[type + "LeftMargin"]; _local2._y = ctrl._y + ctrl[type + "Y"]; if (_local2.fill_mc == undefined) { _local2._width = (((ctrl._width - ctrl[type + "LeftMargin"]) - ctrl[type + "RightMargin"]) * percent) / 100; } else { positionMaskedFill(_local2, _local2.fill_mc, percent); } } } function calcPercentageFromHandle(controlIndex) { var _local2 = controls[controlIndex]; var _local5 = _local2.handle_mc; if ((_local2.calcPercentageFromHandle == undefined) || (!_local2.calcPercentageFromHandle())) { var _local3 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); var _local6 = (_local3 - _local2.handleRightMargin) - _local2.handleLeftMargin; var _local4 = _local5._x - (_local2._x + _local2.handleLeftMargin); _local2.percentage = (_local4 / _local6) * 100; if (_local2.fullness_mc != undefined) { positionBar(_local2, "fullness", _local2.percentage); } } if (_local2.percentage < 0) { _local2.percentage = 0; } if (_local2.percentage > 100) { _local2.percentage = 100; } } function handleRelease(controlIndex) { var _local3 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (controlIndex == SEEK_BAR) { seekBarListener(true); } else if (controlIndex == VOLUME_BAR) { volumeBarListener(true); } stopHandleDrag(controlIndex); _vc.__set__activeVideoPlayerIndex(_local3); if (controlIndex == SEEK_BAR) { _vc._scrubFinish(); } } function seekBarListener(finish) { var _local3 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local4 = controls[SEEK_BAR]; calcPercentageFromHandle(SEEK_BAR); var _local2 = _local4.percentage; if (finish) { clearInterval(_seekBarIntervalID); _seekBarIntervalID = 0; if (_local2 != _lastScrubPos) { _vc.seekPercent(_local2); } _vc.addEventListener("playheadUpdate", this); if (_playAfterScrub) { _vc.play(); } } else if (_vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()).__get__state() == mx.video.VideoPlayer.SEEKING) { } else if ((((_seekBarScrubTolerance <= 0) || (Math.abs(_local2 - _lastScrubPos) > _seekBarScrubTolerance)) || (_local2 < _seekBarScrubTolerance)) || (_local2 > (100 - _seekBarScrubTolerance))) { if (_local2 != _lastScrubPos) { _lastScrubPos = _local2; _vc.seekPercent(_local2); } } _vc.__set__activeVideoPlayerIndex(_local3); } function volumeBarListener(finish) { var _local3 = controls[VOLUME_BAR]; calcPercentageFromHandle(VOLUME_BAR); var _local2 = _local3.percentage; if (finish) { clearInterval(_volumeBarIntervalID); _volumeBarIntervalID = 0; _vc.addEventListener("volumeUpdate", this); } if ((((finish || (_volumeBarScrubTolerance <= 0)) || (Math.abs(_local2 - _lastVolumePos) > _volumeBarScrubTolerance)) || (_local2 < _volumeBarScrubTolerance)) || (_local2 > (100 - _volumeBarScrubTolerance))) { if (_local2 != _lastVolumePos) { if (_isMuted) { cachedSoundLevel = _local2; } else { _vc.__set__volume(_local2); } } } } function doBufferingDelay() { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = 0; var _local2 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (_vc.__get__state() == mx.video.FLVPlayback.BUFFERING) { _bufferingOn = true; handleEvent({type:"stateChange", state:mx.video.FLVPlayback.BUFFERING, vp:_vc.__get__visibleVideoPlayerIndex()}); } _vc.__set__activeVideoPlayerIndex(_local2); } function dispatchMessage(ctrl) { if (ctrl.id == SEEK_BAR_HANDLE) { _vc._scrubStart(); } var _local2 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); switch (ctrl.id) { case PAUSE_BUTTON : _vc.pause(); break; case PLAY_BUTTON : _vc.play(); break; case STOP_BUTTON : _vc.stop(); break; case SEEK_BAR_HANDLE : calcPercentageFromHandle(SEEK_BAR); _lastScrubPos = controls[SEEK_BAR].percentage; _vc.removeEventListener("playheadUpdate", this); if (_vc.__get__playing() || (_vc.__get__buffering())) { _playAfterScrub = true; } else if (_vc.__get__state() != mx.video.VideoPlayer.SEEKING) { _playAfterScrub = false; } _seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false); startHandleDrag(SEEK_BAR, SEEK_BAR_HANDLE); _vc.pause(); break; case VOLUME_BAR_HANDLE : calcPercentageFromHandle(VOLUME_BAR); _lastVolumePos = controls[VOLUME_BAR].percentage; _vc.removeEventListener("volumeUpdate", this); _volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false); startHandleDrag(VOLUME_BAR, VOLUME_BAR_HANDLE); break; case BACK_BUTTON : _vc.seekToPrevNavCuePoint(); break; case FORWARD_BUTTON : _vc.seekToNextNavCuePoint(); break; case MUTE_ON_BUTTON : case MUTE_OFF_BUTTON : if (!_isMuted) { _isMuted = true; cachedSoundLevel = _vc.volume; _vc.__set__volume(0); } else { _isMuted = false; _vc.__set__volume(cachedSoundLevel); } setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_OFF_BUTTON]); setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_ON_BUTTON]); break; default : throw new Error("Unknown ButtonControl"); } _vc.__set__activeVideoPlayerIndex(_local2); } function setEnabledAndVisibleForState(index, state) { var _local5 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local3 = state; if ((_local3 == mx.video.FLVPlayback.BUFFERING) && (!_bufferingOn)) { _local3 = mx.video.FLVPlayback.PLAYING; } switch (index) { case VOLUME_BAR : case VOLUME_BAR_HANDLE : controls[index].myEnabled = true; controls[index].enabled = _controlsEnabled; break; case MUTE_ON_BUTTON : controls[index].myEnabled = !_isMuted; if (controls[MUTE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; case MUTE_OFF_BUTTON : controls[index].myEnabled = _isMuted; if (controls[MUTE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; default : switch (_local3) { case mx.video.FLVPlayback.LOADING : case mx.video.FLVPlayback.CONNECTION_ERROR : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.DISCONNECTED : controls[index].myEnabled = _vc.__get__contentPath() != undefined; break; case mx.video.FLVPlayback.SEEKING : break; default : controls[index].myEnabled = true; } } switch (index) { case SEEK_BAR : switch (_local3) { case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : case mx.video.FLVPlayback.SEEKING : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); break; default : controls[index].myEnabled = false; } if (controls[index].myEnabled) { controls[index].myEnabled = (!isNaN(_vc.__get__totalTime())) && (_vc.__get__totalTime() > 0); } controls[index].handle_mc.myEnabled = controls[index].myEnabled; controls[index].handle_mc.enabled = controls[index].handle_mc.myEnabled; controls[index].handle_mc._visible = controls[index].myEnabled; var _local4 = (((!_bufferingBarHides) || (controls[index].myEnabled)) || (controls[BUFFERING_BAR] == undefined)) || (!controls[BUFFERING_BAR]._visible); controls[index]._visible = _local4; controls[index].progress_mc._visible = _local4; controls[index].progress_mc.fill_mc._visible = _local4; controls[index].fullness_mc._visible = _local4; controls[index].progress_mc.fill_mc._visible = _local4; break; case BUFFERING_BAR : switch (_local3) { case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : case mx.video.FLVPlayback.SEEKING : controls[index].myEnabled = false; break; default : controls[index].myEnabled = true; } controls[index]._visible = controls[index].myEnabled; controls[index].fill_mc._visible = controls[index].myEnabled; break; case PAUSE_BUTTON : switch (_local3) { case mx.video.FLVPlayback.DISCONNECTED : case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PLAYING : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } if (controls[PLAY_PAUSE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; case PLAY_BUTTON : switch (_local3) { case mx.video.FLVPlayback.PLAYING : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PAUSED : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } if (controls[PLAY_PAUSE_BUTTON] != undefined) { controls[index]._visible = !controls[PAUSE_BUTTON]._visible; } break; case STOP_BUTTON : switch (_local3) { case mx.video.FLVPlayback.DISCONNECTED : case mx.video.FLVPlayback.STOPPED : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = true; } break; case BACK_BUTTON : case FORWARD_BUTTON : if (!(_local3 === mx.video.FLVPlayback.BUFFERING)) { } else { controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } } controls[index].enabled = _controlsEnabled && (controls[index].myEnabled); _vc.__set__activeVideoPlayerIndex(_local5); } function setupSkinAutoHide() { var _local2 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()); if (_skinAutoHide && (skin_mc != undefined)) { skinAutoHideHitTest(); if (_skinAutoHideIntervalID == 0) { _skinAutoHideIntervalID = setInterval(this, "skinAutoHideHitTest", SKIN_AUTO_HIDE_INTERVAL); } } else { skin_mc._visible = __visible; clearInterval(_skinAutoHideIntervalID); _skinAutoHideIntervalID = 0; } } function skinAutoHideHitTest() { if (!__visible) { skin_mc._visible = false; } else { var _local4 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()); var _local3 = _local4.hitTest(_root._xmouse, _root._ymouse, true); if ((!_local3) && (border_mc != undefined)) { _local3 = border_mc.hitTest(_root._xmouse, _root._ymouse, true); } skin_mc._visible = _local3; } } static var version = "1.0.0.103"; static var PAUSE_BUTTON = 0; static var PLAY_BUTTON = 1; static var STOP_BUTTON = 2; static var SEEK_BAR_HANDLE = 3; static var BACK_BUTTON = 4; static var FORWARD_BUTTON = 5; static var MUTE_ON_BUTTON = 6; static var MUTE_OFF_BUTTON = 7; static var VOLUME_BAR_HANDLE = 8; static var NUM_BUTTONS = 9; static var PLAY_PAUSE_BUTTON = 9; static var MUTE_BUTTON = 10; static var BUFFERING_BAR = 11; static var SEEK_BAR = 12; static var VOLUME_BAR = 13; static var NUM_CONTROLS = 14; static var UP_STATE = 0; static var OVER_STATE = 1; static var DOWN_STATE = 2; static var SKIN_AUTO_HIDE_INTERVAL = 200; static var VOLUME_BAR_INTERVAL_DEFAULT = 250; static var VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT = 0; static var SEEK_BAR_INTERVAL_DEFAULT = 250; static var SEEK_BAR_SCRUB_TOLERANCE_DEFAULT = 5; static var BUFFERING_DELAY_INTERVAL_DEFAULT = 1000; }
Symbol 26 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var _local2 = function () { var _local2 = arguments.callee.target; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }
Symbol 27 MovieClip [__Packages.mx.video.SMILManager] Frame 0
class mx.video.SMILManager { var _owner, _url, xml, baseURLAttr, videoTags, width, height; function SMILManager (owner) { _owner = owner; } function connectXML(url) { _url = url; xml = new XML(); xml.onLoad = mx.utils.Delegate.create(this, xmlOnLoad); xml.load(url); return(false); } function xmlOnLoad(success) { try { if (!success) { _owner.helperDone(this, false); } else { baseURLAttr = new Array(); videoTags = new Array(); var _local4 = xml.firstChild; if (_local4.nodeName == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" No root node found; if file is an flv it must have .flv extension"); } else if (_local4.nodeName.toLowerCase() != "smil") { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, (("URL: \"" + _url) + "\" Root node not smil: ") + _local4.nodeName); } var _local5 = false; var _local3 = 0; while (_local3 < _local4.childNodes.length) { var _local2 = _local4.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "head") { parseHead(_local2); } else if (_local2.nodeName.toLowerCase() == "body") { _local5 = true; parseBody(_local2); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Tag ") + _local2.nodeName) + " not supported in ") + _local4.nodeName) + " tag."); } _local3++; } if (!_local5) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Tag body is required."); } _owner.helperDone(this, true); } } catch(err:Error) { _owner.helperDone(this, false); throw err; } } function parseHead(parentNode) { var _local4 = false; var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "meta") { for (var _local6 in _local2.attributes) { if (_local6.toLowerCase() == "base") { baseURLAttr.push(_local2.attributes[_local6]); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Attribute ") + _local6) + " not supported in ") + _local2.nodeName) + " tag."); } } } else if (_local2.nodeName.toLowerCase() == "layout") { if (!_local4) { parseLayout(_local2); _local4 = true; } } _local3++; } } function parseLayout(parentNode) { var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "root-layout") { for (var _local5 in _local2.attributes) { if (_local5.toLowerCase() == "width") { width = Number(_local2.attributes[_local5]); } else if (_local5.toLowerCase() == "height") { height = Number(_local2.attributes[_local5]); } } if (((isNaN(width) || (width < 0)) || (isNaN(height))) || (height < 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + _local2.nodeName) + " requires attributes id, width and height. Width and height must be numbers greater than or equal to 0."); } width = Math.round(width); height = Math.round(height); return(undefined); } _local3++; } } function parseBody(parentNode) { var _local6 = 0; var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else { _local6++; if (_local6 > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + parentNode.nodeName) + " is required to contain exactly one tag."); } if (_local2.nodeName.toLowerCase() == "switch") { parseSwitch(_local2); } else if ((_local2.nodeName.toLowerCase() == "video") || (_local2.nodeName.toLowerCase() == "ref")) { var _local5 = parseVideo(_local2); videoTags.push(_local5); } } _local3++; } if (videoTags.length < 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" At least one video of ref tag is required."); } } function parseSwitch(parentNode) { var _local4 = 0; while (_local4 < parentNode.childNodes.length) { var _local5 = parentNode.childNodes[_local4]; if (_local5.nodeType != ELEMENT_NODE) { } else if ((_local5.nodeName.toLowerCase() == "video") || (_local5.nodeName.toLowerCase() == "ref")) { var _local3 = parseVideo(_local5); if (_local3.bitrate == undefined) { videoTags.push(_local3); } else { var _local6 = false; var _local2 = 0; while (_local2 < videoTags.length) { if ((videoTags[_local2].bitrate == undefined) || (_local3.bitrate < videoTags[_local4].bitrate)) { _local6 = true; videoTags.splice(_local2, 0, videoTags); break; } _local2++; } if (!_local6) { videoTags.push(_local3); } } } _local4++; } } function parseVideo(node) { var _local3 = new Object(); for (var _local4 in node.attributes) { if (_local4.toLowerCase() == "src") { _local3.src = node.attributes[_local4]; } else if (_local4.toLowerCase() == "system-bitrate") { _local3.bitrate = Number(node.attributes[_local4]); } else if (_local4.toLowerCase() == "dur") { _local3.dur = Number(node.attributes[_local4]); } } if (_local3.src == undefined) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Attribute src is required in ") + node.nodeName) + " tag."); } return(_local3); } static var version = "1.0.0.103"; static var ELEMENT_NODE = 1; }
Symbol 28 MovieClip [__Packages.mx.video.NCManager] Frame 0
class mx.video.NCManager implements mx.video.INCManager { var _timeoutIntervalId, _tryNCIntervalId, _timeout, _isRTMP, _serverName, _wrappedURL, _portNumber, _appName, _contentPath, _streamName, _streamLength, _streamWidth, _streamHeight, _streams, _autoSenseBW, _payload, _connTypeCounter, _bitrate, _owner, _nc, _protocol, _smilMgr, _ncUri, fallbackServerName, _tryNC; function NCManager () { initNCInfo(); initOtherInfo(); _timeoutIntervalId = 0; _tryNCIntervalId = 0; _timeout = DEFAULT_TIMEOUT; } function initNCInfo() { _isRTMP = undefined; _serverName = undefined; _wrappedURL = undefined; _portNumber = undefined; _appName = undefined; } function initOtherInfo() { _contentPath = undefined; _streamName = undefined; _streamLength = undefined; _streamWidth = undefined; _streamHeight = undefined; _streams = undefined; _autoSenseBW = false; _payload = 0; _connTypeCounter = 0; cleanConns(); } function getTimeout() { return(_timeout); } function setTimeout(t) { _timeout = t; if (_timeoutIntervalId != 0) { clearInterval(_timeoutIntervalId); _timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout); } } function getBitrate() { return(_bitrate); } function setBitrate(b) { if ((_isRTMP == undefined) || (!_isRTMP)) { _bitrate = b; } } function getVideoPlayer() { return(_owner); } function setVideoPlayer(v) { _owner = v; } function getNetConnection() { return(_nc); } function getStreamName() { return(_streamName); } function isRTMP() { return(_isRTMP); } function getStreamLength() { return(_streamLength); } function getStreamWidth() { return(_streamWidth); } function getStreamHeight() { return(_streamHeight); } function connectToURL(url) { initOtherInfo(); _contentPath = url; if (((_contentPath == null) || (_contentPath == undefined)) || (_contentPath == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH); } var _local2 = parseURL(_contentPath); if ((_local2.streamName == undefined) || (_local2.streamName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } if (_local2.isRTMP) { var _local3 = canReuseOldConnection(_local2); _isRTMP = true; _protocol = _local2.protocol; _streamName = _local2.streamName; _serverName = _local2.serverName; _wrappedURL = _local2.wrappedURL; _portNumber = _local2.portNumber; _appName = _local2.appName; if ((((_appName == undefined) || (_appName == "")) || (_streamName == undefined)) || (_streamName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } _autoSenseBW = _streamName.indexOf(",") != -1; return(_local3 || (connectRTMP())); } if (_local2.streamName.slice(-4).toLowerCase() == ".flv") { var _local3 = canReuseOldConnection(_local2); _isRTMP = false; _streamName = _local2.streamName; return(_local3 || (connectHTTP())); } _smilMgr = new mx.video.SMILManager(this); return(_smilMgr.connectXML(_local2.streamName)); } function connectAgain() { var _local2 = _appName.indexOf("/"); if (_local2 < 0) { _local2 = _streamName.indexOf("/"); if (_local2 >= 0) { _appName = _appName + "/"; _appName = _appName + _streamName.slice(0, _local2); _streamName = _streamName.slice(_local2 + 1); } return(false); } var _local3 = _appName.slice(_local2 + 1); _local3 = _local3 + "/"; _local3 = _local3 + _streamName; _streamName = _local3; _appName = _appName.slice(0, _local2); close(); _payload = 0; _connTypeCounter = 0; cleanConns(); connectRTMP(); return(true); } function reconnect() { if (!_isRTMP) { throw new Error("Cannot call reconnect on an http connection"); } _nc.onStatus = function (info) { this.mc.reconnectOnStatus(this, info); }; _nc.onBWDone = function () { this.mc.onReconnected(); }; _nc.connect(_ncUri, false); } function onReconnected() { delete _nc.onStatus; delete _nc.onBWDone; _owner.ncReconnected(); } function close() { if (_nc) { _nc.close(); } } function helperDone(helper, success) { if (helper != _smilMgr) { return(undefined); } if (!success) { _nc = undefined; _owner.ncConnected(); delete _smilMgr; return(undefined); } _streamWidth = _smilMgr.width; _streamHeight = _smilMgr.height; var _local2; var _local4 = _smilMgr.baseURLAttr[0]; if ((_local4 != undefined) && (_local4 != "")) { _local2 = parseURL(_local4); _isRTMP = _local2.isRTMP; _streamName = _local2.streamName; if (_isRTMP) { _protocol = _local2.protocol; _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; if ((_appName == undefined) || (_appName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4); } if (_smilMgr.baseURLAttr.length > 1) { _local2 = parseURL(_smilMgr.baseURLAttr[1]); if (_local2.serverName != undefined) { fallbackServerName = _local2.serverName; } } } } _streams = _smilMgr.videoTags; var _local3 = 0; while (_local3 < _streams.length) { _local4 = _streams[_local3].src; _local2 = parseURL(_local4); if (_isRTMP == undefined) { _isRTMP = _local2.isRTMP; if (_isRTMP) { _protocol = _local2.protocol; if (_streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Cannot switch between multiple absolute RTMP URLs, must use meta tag base attribute."); } _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; if ((_appName == undefined) || (_appName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4); } } } else if ((((_streamName != undefined) && (_streamName != "")) && (!_local2.isRelative)) && (_streams.length > 1)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "When using meta tag base attribute, cannot use absolute URLs for video or ref tag src attributes."); } _streams[_local3].parseResults = _local2; _local3++; } _autoSenseBW = _streams.length > 1; if (!_autoSenseBW) { if (_streamName != undefined) { _streamName = _streamName + _streams[0].parseResults.streamName; } else { _streamName = _streams[0].parseResults.streamName; } _streamLength = _streams[0].dur; } if (_isRTMP) { connectRTMP(); } else { if (_autoSenseBW) { bitrateMatch(); } connectHTTP(); _owner.ncConnected(); } } function bitrateMatch() { var _local3; if (isNaN(_bitrate)) { _local3 = 0; } else { var _local2 = 0; while (_local2 < _streams.length) { if (isNaN(_streams[_local2].bitrate) || (_bitrate <= _streams[_local2].bitrate)) { _local3 = _local2; break; } _local2++; } } if (isNaN(_local3)) { throw new mx.video.VideoError(mx.video.VideoError.NO_BITRATE_MATCH); } if (_streamName != undefined) { _streamName = _streamName + _streams[_local3].src; } else { _streamName = _streams[_local3].src; } _streamLength = _streams[_local3].dur; } function parseURL(url) { var _local2 = new Object(); var _local3 = 0; var _local4 = url.indexOf(":/", _local3); if (_local4 >= 0) { _local4 = _local4 + 2; _local2.protocol = url.slice(_local3, _local4); _local2.isRelative = false; } else { _local2.isRelative = true; } if ((_local2.protocol != undefined) && (((_local2.protocol == "rtmp:/") || (_local2.protocol == "rtmpt:/")) || (_local2.protocol == "rtmps:/"))) { _local2.isRTMP = true; _local3 = _local4; if (url.charAt(_local3) == "/") { _local3++; var _local7 = url.indexOf(":", _local3); var _local8 = url.indexOf("/", _local3); if (_local8 < 0) { if (_local7 < 0) { _local2.serverName = url.slice(_local3); } else { _local4 = _local7; _local2.portNumber = url.slice(_local3, _local4); _local3 = _local4 + 1; _local2.serverName = url.slice(_local3); } return(_local2); } if ((_local7 >= 0) && (_local7 < _local8)) { _local4 = _local7; _local2.serverName = url.slice(_local3, _local4); _local3 = _local4 + 1; _local4 = _local8; _local2.portNumber = url.slice(_local3, _local4); } else { _local4 = _local8; _local2.serverName = url.slice(_local3, _local4); } _local3 = _local4 + 1; } if (url.charAt(_local3) == "?") { var _local9 = url.slice(_local3 + 1); var _local6 = parseURL(_local9); if ((_local6.protocol == undefined) || (!_local6.isRTMP)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } _local2.wrappedURL = "?"; _local2.wrappedURL = _local2.wrappedURL + _local6.protocol; if (_local6.server != undefined) { _local2.wrappedURL = _local2.wrappedURL + "/"; _local2.wrappedURL = _local2.wrappedURL + _local6.server; } if (_local6.wrappedURL != undefined) { _local2.wrappedURL = _local2.wrappedURL + "/?"; _local2.wrappedURL = _local2.wrappedURL + _local6.wrappedURL; } _local2.appName = _local6.appName; _local2.streamName = _local6.streamName; return(_local2); } _local4 = url.indexOf("/", _local3); if (_local4 < 0) { _local2.appName = url.slice(_local3); return(_local2); } _local2.appName = url.slice(_local3, _local4); _local3 = _local4 + 1; _local4 = url.indexOf("/", _local3); if (_local4 < 0) { _local2.streamName = url.slice(_local3); return(_local2); } _local2.appName = _local2.appName + "/"; _local2.appName = _local2.appName + url.slice(_local3, _local4); _local3 = _local4 + 1; _local2.streamName = url.slice(_local3); } else { _local2.isRTMP = false; _local2.streamName = url; } return(_local2); } function canReuseOldConnection(parseResults) { if ((_nc == undefined) || (_nc == null)) { return(false); } if (!parseResults.isRTMP) { if (!_isRTMP) { return(true); } _owner.close(); _nc = null; initNCInfo(); return(false); } if (_isRTMP) { if (((((parseResults.serverName == _serverName) && (parseResults.appName == _appName)) && (parseResults.protocol == _protocol)) && (parseResults.portNumber == _portNumber)) && (parseResults.wrappedURL == _wrappedURL)) { return(true); } _owner.close(); _nc = null; } initNCInfo(); return(false); } function connectHTTP() { _nc = new NetConnection(); _nc.connect(null); return(true); } function connectRTMP() { clearInterval(_timeoutIntervalId); _timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout); _tryNC = new Array(); var _local2 = 0; while (_local2 < RTMP_CONN.length) { _tryNC[_local2] = new NetConnection(); _tryNC[_local2].mc = this; _tryNC[_local2].pending = false; _tryNC[_local2].connIndex = _local2; _tryNC[_local2].onBWDone = function (p_bw) { this.mc.onConnected(this, p_bw); }; _tryNC[_local2].onBWCheck = function () { return(++this.mc._payload); }; _tryNC[_local2].onStatus = function (info) { this.mc.connectOnStatus(this, info); }; _local2++; } nextConnect(); return(false); } function nextConnect() { clearInterval(_tryNCIntervalId); _tryNCIntervalId = 0; var _local4; var _local3; if (_connTypeCounter == 0) { _local4 = _protocol; if (_portNumber != undefined) { _local3 = _portNumber; } else { var _local2 = 0; while (_local2 < RTMP_CONN.length) { if (_local4 == RTMP_CONN[_local2].protocol) { _local3 = RTMP_CONN[_local2].port; break; } _local2++; } } } else { _local4 = RTMP_CONN[_connTypeCounter].protocol; _local3 = RTMP_CONN[_connTypeCounter].port; } var _local5 = ((_local4 + ((_serverName == undefined) ? "" : (((("/" + _serverName) + ":") + _local3) + "/"))) + ((_wrappedURL == undefined) ? "" : (_wrappedURL + "/"))) + _appName; _tryNC[_connTypeCounter].pending = true; _tryNC[_connTypeCounter].connect(_local5, _autoSenseBW); if (_connTypeCounter < (RTMP_CONN.length - 1)) { _connTypeCounter++; _tryNCIntervalId = setInterval(this, "nextConnect", 1500); } } function cleanConns() { clearInterval(_tryNCIntervalId); _tryNCIntervalId = 0; if (_tryNC != undefined) { var _local2 = 0; while (_local2 < _tryNC.length) { if (_tryNC[_local2] != undefined) { delete _tryNC[_local2].onStatus; if (_tryNC[_local2].pending) { _tryNC[_local2].onStatus = function (info) { this.mc.disconnectOnStatus(this, info); }; } else { delete _tryNC[_local2].onStatus; _tryNC[_local2].close(); } } delete _tryNC[_local2]; _local2++; } delete _tryNC; } } function tryFallBack() { if (((_serverName == fallbackServerName) || (fallbackServerName == undefined)) || (fallbackServerName == null)) { delete _nc; _nc = undefined; _owner.ncConnected(); } else { _connTypeCounter = 0; cleanConns(); _serverName = fallbackServerName; connectRTMP(); } } function onConnected(p_nc, p_bw) { clearInterval(_timeoutIntervalId); _timeoutIntervalId = 0; delete p_nc.onBWDone; delete p_nc.onBWCheck; delete p_nc.onStatus; _nc = p_nc; _ncUri = _nc.uri; if (_autoSenseBW) { _bitrate = p_bw * 1024; if (_streams != undefined) { bitrateMatch(); } else if (_streamName.indexOf(",") != -1) { var _local3 = _streamName.split(","); var _local2 = 0; while (_local2 < _local3.length) { var _local4 = stripFrontAndBackWhiteSpace(_local3[_local2]); if ((_local2 + 1) < _local3.length) { if (p_bw <= Number(_local3[_local2 + 1])) { _streamName = _local4; break; } } else { _streamName = _local4; break; } _local2 = _local2 + 2; } } } if (_streamName.slice(-4).toLowerCase() == ".flv") { _streamName = _streamName.slice(0, -4); } if ((!_owner.__get__isLive()) && (_streamLength == undefined)) { var _local6 = new Object(); _local6.mc = this; _local6.onResult = function (length) { this.mc.getStreamLengthResult(length); }; _nc.call("getStreamLength", _local6, _streamName); } else { _owner.ncConnected(); } } function connectOnStatus(target, info) { target.pending = false; if (info.code == "NetConnection.Connect.Success") { _nc = _tryNC[target.connIndex]; _tryNC[target.connIndex] = undefined; cleanConns(); } else if (((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) && (target.connIndex == (RTMP_CONN.length - 1))) { if (!connectAgain()) { tryFallBack(); } } } function reconnectOnStatus(target, info) { if ((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) { delete _nc; _nc = undefined; _owner.ncReconnected(); } } function disconnectOnStatus(target, info) { if (info.code == "NetConnection.Connect.Success") { delete target.onStatus; target.close(); } } function getStreamLengthResult(length) { _streamLength = length; _owner.ncConnected(); } function _onFCSConnectTimeOut() { cleanConns(); _nc = undefined; if (!connectAgain()) { _owner.ncConnected(); } } static function stripFrontAndBackWhiteSpace(p_str) { var _local1; var _local2 = p_str.length; var _local4 = 0; var _local5 = _local2; _local1 = 0; while (_local1 < _local2) { switch (p_str.charCodeAt(_local1)) { case 9 : case 10 : case 13 : case 32 : break; default : _local4 = _local1; break;!//outer level } _local1++; } _local1 = _local2; while (_local1 >= 0) { switch (p_str.charCodeAt(_local1)) { case 9 : case 10 : case 13 : case 32 : break; default : _local5 = _local1 + 1; break;!//outer level } _local1--; } if (_local5 <= _local4) { return(""); } return(p_str.slice(_local4, _local5)); } static var version = "1.0.0.103"; var DEFAULT_TIMEOUT = 60000; static var RTMP_CONN = [{protocol:"rtmp:/", port:"1935"}, {protocol:"rtmp:/", port:"443"}, {protocol:"rtmpt:/", port:"80"}, {protocol:"rtmps:/", port:"443"}]; }
Symbol 29 MovieClip [__Packages.mx.video.CuePointManager] Frame 0
class mx.video.CuePointManager { var _owner, _id, _asCuePointTolerance, _linearSearchTolerance, _metadataLoaded, allCuePoints, asCuePoints, _disabledCuePoints, flvCuePoints, navCuePoints, eventCuePoints, _asCuePointIndex, __get__playheadUpdateInterval, _disabledCuePointsByNameOnly; function CuePointManager (owner, id) { _owner = owner; _id = id; reset(); _asCuePointTolerance = _owner.getVideoPlayer(_id).__get__playheadUpdateInterval() / 2000; _linearSearchTolerance = DEFAULT_LINEAR_SEARCH_TOLERANCE; } function reset() { _metadataLoaded = false; allCuePoints = null; asCuePoints = null; _disabledCuePoints = null; flvCuePoints = null; navCuePoints = null; eventCuePoints = null; _asCuePointIndex = 0; } function get metadataLoaded() { return(_metadataLoaded); } function set playheadUpdateInterval(aTime) { _asCuePointTolerance = aTime / 2000; //return(__get__playheadUpdateInterval()); } function get id() { return(_id); } function addASCuePoint(timeOrCuePoint, name, parameters) { var _local3; if (typeof(timeOrCuePoint) == "object") { _local3 = deepCopyObject(timeOrCuePoint); } else { _local3 = {time:timeOrCuePoint, name:name, parameters:deepCopyObject(parameters)}; } var _local7 = isNaN(_local3.time) || (_local3.time < 0); if (_local7) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } var _local6 = (_local3.name == undefined) || (_local3.name == null); if (_local6) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null"); } var _local2; _local3.type = "actionscript"; if (((asCuePoints == null) || (asCuePoints == undefined)) || (asCuePoints.length < 1)) { _local2 = 0; asCuePoints = new Array(); asCuePoints.push(_local3); } else { _local2 = getCuePointIndex(asCuePoints, true, _local3.time); _local2 = ((asCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1)); asCuePoints.splice(_local2, 0, _local3); } if (((allCuePoints == null) || (allCuePoints == undefined)) || (allCuePoints.length < 1)) { _local2 = 0; allCuePoints = new Array(); allCuePoints.push(_local3); } else { _local2 = getCuePointIndex(allCuePoints, true, _local3.time); _local2 = ((allCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1)); allCuePoints.splice(_local2, 0, _local3); } var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime(); if (_local5 > 0) { if (_asCuePointIndex == _local2) { if (_local5 > asCuePoints[_local2].time) { _asCuePointIndex++; } } else if (_asCuePointIndex > _local2) { _asCuePointIndex++; } } else { _asCuePointIndex = 0; } var _local4 = deepCopyObject(asCuePoints[_local2]); _local4.array = asCuePoints; _local4.index = _local2; return(_local4); } function removeASCuePoint(timeNameOrCuePoint) { if (((asCuePoints == null) || (asCuePoints == undefined)) || (asCuePoints.length < 1)) { return(null); } var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local2 = getCuePointIndex(asCuePoints, false, _local3.time, _local3.name); if (_local2 < 0) { return(null); } _local3 = asCuePoints[_local2]; asCuePoints.splice(_local2, 1); _local2 = getCuePointIndex(allCuePoints, false, _local3.time, _local3.name); if (_local2 > 0) { allCuePoints.splice(_local2, 1); } if (_owner.getVideoPlayer(_id).__get__playheadTime() > 0) { if (_asCuePointIndex > _local2) { _asCuePointIndex--; } } else { _asCuePointIndex = 0; } return(_local3); } function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) { var _local4; switch (typeof(timeNameOrCuePoint)) { case "string" : _local4 = {name:timeNameOrCuePoint}; break; case "number" : _local4 = {time:timeNameOrCuePoint}; break; case "object" : _local4 = timeNameOrCuePoint; } var _local12 = isNaN(_local4.time) || (_local4.time < 0); var _local11 = (_local4.name == undefined) || (_local4.name == null); if (_local12 && (_local11)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } var _local6 = 0; var _local2; var _local5; if (_local12) { if (!_metadataLoaded) { if (_disabledCuePointsByNameOnly[_local4.name] == undefined) { if (!enabled) { if (((_disabledCuePointsByNameOnly == null) || (_disabledCuePointsByNameOnly == undefined)) || (_disabledCuePointsByNameOnly.length < 0)) { _disabledCuePointsByNameOnly = new Object(); } _disabledCuePointsByNameOnly[_local4.name] = new Array(); } } else { if (enabled) { _disabledCuePointsByNameOnly[_local4.name] = undefined; } return(-1); } removeCuePoints(_disabledCuePoints, _local4); return(-1); } if (enabled) { _local6 = removeCuePoints(_disabledCuePoints, _local4); } else { var _local3; _local2 = getCuePointIndex(flvCuePoints, true, -1, _local4.name); while (_local2 >= 0) { _local3 = flvCuePoints[_local2]; _local5 = getCuePointIndex(_disabledCuePoints, true, _local3.time); if ((_local5 < 0) || (_disabledCuePoints[_local5].time != _local3.time)) { _disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, {name:_local3.name, time:_local3.time}); _local6 = _local6 + 1; } _local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2); } } return(_local6); } _local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time, _local4.name); if (_local2 < 0) { if (enabled) { if (!_metadataLoaded) { _local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time); if (_local2 < 0) { _local5 = getCuePointIndex(_disabledCuePointsByNameOnly[_local4.name], true, _local4.time); if (cuePointCompare(_local4.time, null, _disabledCuePointsByNameOnly[_local4.name]) != 0) { _disabledCuePointsByNameOnly[_local4.name] = insertCuePoint(_local5, _disabledCuePointsByNameOnly[_local4.name], _local4); } } else { _disabledCuePoints.splice(_local2, 1); } } return((_metadataLoaded ? 0 : -1)); } } else { if (enabled) { _disabledCuePoints.splice(_local2, 1); _local6 = 1; } else { _local6 = 0; } return((_metadataLoaded ? (_local6) : -1)); } if (_metadataLoaded) { _local2 = getCuePointIndex(flvCuePoints, false, _local4.time, _local4.name); if (_local2 < 0) { return(0); } if (_local11) { _local4.name = flvCuePoints[_local2].name; } } _local5 = getCuePointIndex(_disabledCuePoints, true, _local4.time); _disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, _local4); _local6 = 1; return((_metadataLoaded ? 1 : -1)); } function removeCuePoints(cuePointArray, cuePoint) { var _local2; var _local4; var _local5 = 0; _local2 = getCuePointIndex(cuePointArray, true, -1, cuePoint.name); while (_local2 >= 0) { _local4 = cuePointArray[_local2]; cuePointArray.splice(_local2, 1); _local2--; _local5++; _local2 = getNextCuePointIndexWithName(_local4.name, cuePointArray, _local2); } return(_local5); } function insertCuePoint(insertIndex, cuePointArray, cuePoint) { if (insertIndex < 0) { cuePointArray = new Array(); cuePointArray.push(cuePoint); } else { if (cuePointArray[insertIndex].time > cuePoint.time) { insertIndex = 0; } else { insertIndex++; } cuePointArray.splice(insertIndex, 0, cuePoint); } return(cuePointArray); } function isFLVCuePointEnabled(timeNameOrCuePoint) { if (!_metadataLoaded) { return(true); } var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local5 = isNaN(_local3.time) || (_local3.time < 0); var _local6 = (_local3.name == undefined) || (_local3.name == null); if (_local5 && (_local6)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } if (_local5) { var _local2 = getCuePointIndex(flvCuePoints, true, -1, _local3.name); if (_local2 < 0) { return(true); } while (_local2 >= 0) { if (getCuePointIndex(_disabledCuePoints, false, flvCuePoints[_local2].time, flvCuePoints[_local2].name) < 0) { return(true); } _local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2); } return(false); } return(getCuePointIndex(_disabledCuePoints, false, _local3.time, _local3.name) < 0); } function dispatchASCuePoints() { var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime(); if ((_owner.getVideoPlayer(_id).__get__stateResponsive() && (asCuePoints != null)) && (asCuePoints != undefined)) { while ((_asCuePointIndex < asCuePoints.length) && (asCuePoints[_asCuePointIndex].time <= (_local5 + _asCuePointTolerance))) { _owner.dispatchEvent({type:"cuePoint", info:deepCopyObject(asCuePoints[_asCuePointIndex++]), vp:_id}); } } } function resetASCuePointIndex(time) { if (((time <= 0) || (asCuePoints == null)) || (asCuePoints == undefined)) { _asCuePointIndex = 0; return(undefined); } var _local2 = getCuePointIndex(asCuePoints, true, time); _asCuePointIndex = ((asCuePoints[_local2].time < time) ? (_local2 + 1) : (_local2)); } function processFLVCuePoints(metadataCuePoints) { _metadataLoaded = true; if (((metadataCuePoints == undefined) || (metadataCuePoints == null)) || (metadataCuePoints.length < 1)) { flvCuePoints = null; navCuePoints = null; eventCuePoints = null; return(undefined); } flvCuePoints = metadataCuePoints; navCuePoints = new Array(); eventCuePoints = new Array(); var _local5; var _local6 = -1; var _local2; var _local4 = _disabledCuePoints; var _local3 = 0; _disabledCuePoints = new Array(); var _local9 = 0; while (_local2 = flvCuePoints[_local9++] , _local2 != undefined) { if ((_local6 > 0) && (_local6 >= _local2.time)) { flvCuePoints = null; navCuePoints = null; eventCuePoints = null; _disabledCuePoints = null; _disabledCuePointsByNameOnly = null; throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Unsorted cuePoint found after time: " + _local6); } _local6 = _local2.time; while ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, null, _local2) < 0)) { _local3++; } if ((_disabledCuePointsByNameOnly[_local2.name] != undefined) || ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, _local4[_local3].name, _local2) == 0))) { _disabledCuePoints.push({time:_local2.time, name:_local2.name}); } if (_local2.type == "navigation") { navCuePoints.push(_local2); } else if (_local2.type == "event") { eventCuePoints.push(_local2); } if (((allCuePoints == null) || (allCuePoints == undefined)) || (allCuePoints.length < 1)) { allCuePoints = new Array(); allCuePoints.push(_local2); } else { _local5 = getCuePointIndex(allCuePoints, true, _local2.time); _local5 = ((allCuePoints[_local5].time > _local2.time) ? 0 : (_local5 + 1)); allCuePoints.splice(_local5, 0, _local2); } } delete _disabledCuePointsByNameOnly; _disabledCuePointsByNameOnly = null; delete _disabledCuePointsByNameOnly; _disabledCuePointsByNameOnly = null; } function processCuePointsProperty(cuePoints) { if (((cuePoints == undefined) || (cuePoints == null)) || (cuePoints.length == 0)) { return(undefined); } var _local4 = 0; var _local8; var _local6; var _local7; var _local5; var _local9; var _local2 = 0; while (_local2 < (cuePoints.length - 1)) { switch (_local4) { case 6 : addOrDisable(_local9, _local5); _local4 = 0; case 0 : if (cuePoints[_local2++] != "t") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } _local5 = new Object(); _local5.time = cuePoints[_local2] / 1000; _local4++; break; case 1 : if (cuePoints[_local2++] != "n") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if ((cuePoints[_local2] == undefined) || (cuePoints[_local2] == null)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be null or undefined"); } _local5.name = unescape(cuePoints[_local2]); _local4++; break; case 2 : if (cuePoints[_local2++] != "t") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be number"); } switch (cuePoints[_local2]) { case 0 : _local5.type = "event"; break; case 1 : _local5.type = "navigation"; break; case 2 : _local5.type = "actionscript"; break; default : throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be 0, 1 or 2"); } _local4++; break; case 3 : if (cuePoints[_local2++] != "d") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "disabled must be number"); } _local9 = cuePoints[_local2] != 0; _local4++; break; case 4 : if (cuePoints[_local2++] != "p") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "num params must be number"); } _local8 = cuePoints[_local2]; _local4++; if (_local8 == 0) { _local4++; } else { _local5.parameters = new Object(); } break; case 5 : _local6 = cuePoints[_local2++]; _local7 = cuePoints[_local2]; if (typeof(_local6) == "string") { _local6 = unescape(_local6); } if (typeof(_local7) == "string") { _local7 = unescape(_local7); } _local5.parameters[_local6] = _local7; _local8--; if (_local8 != 0) { break; } _local4++; } _local2++; } if (_local4 == 6) { addOrDisable(_local9, _local5); } else { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected end of cuePoint param string"); } } function addOrDisable(disable, cuePoint) { if (disable) { if (cuePoint.type == "actionscript") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Cannot disable actionscript cue points"); } setFLVCuePointEnabled(false, cuePoint); } else if (cuePoint.type == "actionscript") { addASCuePoint(cuePoint); } } function unescape(origStr) { var _local3 = origStr; var _local1 = 0; while (_local1 < cuePointsReplace.length) { var _local2 = _local3.split(cuePointsReplace[_local1++]); if (_local2.length > 1) { _local3 = _local2.join(cuePointsReplace[_local1]); } _local1++; } return(_local3); } function getCuePointIndex(cuePointArray, closeIsOK, time, name, start, len) { if (((cuePointArray == null) || (cuePointArray == undefined)) || (cuePointArray.length < 1)) { return(-1); } var _local13 = isNaN(time) || (time < 0); var _local16 = (name == undefined) || (name == null); if (_local13 && (_local16)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } if ((start == undefined) || (start == null)) { start = 0; } if ((len == undefined) || (len == null)) { len = cuePointArray.length; } if ((!_local16) && (closeIsOK || (_local13))) { var _local8; var _local2; if (_local13) { _local8 = start; } else { _local8 = getCuePointIndex(cuePointArray, closeIsOK, time); } _local2 = _local8; while (_local2 >= start) { if (cuePointArray[_local2].name == name) { break; } _local2--; } if (_local2 >= start) { return(_local2); } _local2 = _local8 + 1; while (_local2 < len) { if (cuePointArray[_local2].name == name) { break; } _local2++; } if (_local2 < len) { return(_local2); } return(-1); } var _local6; if (len <= _linearSearchTolerance) { var _local11 = start + len; var _local3 = start; while (_local3 < _local11) { _local6 = cuePointCompare(time, name, cuePointArray[_local3]); if (_local6 == 0) { return(_local3); } if (_local6 < 0) { break; } _local3++; } if (closeIsOK) { if (_local3 > 0) { return(_local3 - 1); } return(0); } return(-1); } var _local12 = Math.floor(len / 2); var _local15 = start + _local12; _local6 = cuePointCompare(time, name, cuePointArray[_local15]); if (_local6 < 0) { return(getCuePointIndex(cuePointArray, closeIsOK, time, name, start, _local12)); } if (_local6 > 0) { return(getCuePointIndex(cuePointArray, closeIsOK, time, name, _local15 + 1, (_local12 - 1) + (len % 2))); } return(_local15); } function getNextCuePointIndexWithName(name, array, index) { if ((name == undefined) || (name == null)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null"); } if ((array == null) || (array == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.array undefined"); } if ((isNaN(index) || (index < -1)) || (index >= array.length)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.index must be number between -1 and cuePoint.array.length"); } var _local1; _local1 = index + 1; while (_local1 < array.length) { if (array[_local1].name == name) { break; } _local1++; } if (_local1 < array.length) { return(_local1); } return(-1); } static function cuePointCompare(time, name, cuePoint) { var _local2 = Math.round(time * 1000); var _local3 = Math.round(cuePoint.time * 1000); if (_local2 < _local3) { return(-1); } if (_local2 > _local3) { return(1); } if ((name != null) || (name != undefined)) { if (name == cuePoint.name) { return(0); } if (name < cuePoint.name) { return(-1); } return(1); } return(0); } function getCuePoint(cuePointArray, closeIsOK, timeNameOrCuePoint) { var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local2 = getCuePointIndex(cuePointArray, closeIsOK, _local3.time, _local3.name); if (_local2 < 0) { return(null); } _local3 = deepCopyObject(cuePointArray[_local2]); _local3.array = cuePointArray; _local3.index = _local2; return(_local3); } function getNextCuePointWithName(cuePoint) { if ((cuePoint == null) || (cuePoint == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint parameter undefined"); } if (isNaN(cuePoint.time) || (cuePoint.time < 0)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } var _local3 = getNextCuePointIndexWithName(cuePoint.name, cuePoint.array, cuePoint.index); if (_local3 < 0) { return(null); } var _local4 = deepCopyObject(cuePoint.array[_local3]); _local4.array = cuePoint.array; _local4.index = _local3; return(_local4); } static function deepCopyObject(obj, recurseLevel) { if (((obj == undefined) || (obj == null)) || (typeof(obj) != "object")) { return(obj); } if (recurseLevel == undefined) { recurseLevel = 0; } var _local2 = new Object(); for (var _local4 in obj) { if ((recurseLevel == 0) && ((_local4 == "array") || (_local4 == "index"))) { } else if (typeof(obj[_local4]) == "object") { _local2[_local4] = deepCopyObject(obj[_local4], recurseLevel + 1); } else { _local2[_local4] = obj[_local4]; } } return(_local2); } static var DEFAULT_LINEAR_SEARCH_TOLERANCE = 50; static var cuePointsReplace = ["&quot;", "\"", "&#39;", "'", "&#44;", ",", "&amp;", "&"]; }
Symbol 69 MovieClip Frame 15
if (eating) { gotoAndPlay (1); }
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 9
stop();
Symbol 89 MovieClip Frame 18
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 53
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
Symbol 110 MovieClip Frame 17
_parent.doValSound();
Symbol 110 MovieClip Frame 47
stop(); _root.zwart.gotoAndPlay(2);
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 15
stop();
Symbol 137 MovieClip Frame 25
stop();
Symbol 137 MovieClip Frame 42
gotoAndStop ("mouseoff");
Symbol 138 Button
on (release) { gotoAndPlay (2); } on (rollOver, dragOver) { tellTarget ("icon_mc") { gotoAndPlay ("mouseover"); }; } on (press) { tellTarget ("icon_mc") { gotoAndPlay ("mousedown"); }; } on (rollOut, dragOut) { tellTarget ("icon_mc") { gotoAndPlay ("mouseout"); }; }
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
stop();
Symbol 162 MovieClip Frame 1
play();
Instance of Symbol 20 MovieClip [FLVPlayback] in Symbol 162 MovieClip Frame 1
//component parameters onClipEvent (construct) { autoPlay = true; autoRewind = true; autoSize = false; bufferTime = 0.1; contentPath = "reel.flv"; isLive = false; maintainAspectRatio = true; skin = "ClearOverPlayMute.swf"; skinAutoHide = true; totalTime = 0; volume = 100; }
Symbol 162 MovieClip Frame 34
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
play();
Symbol 163 MovieClip Frame 24
stop();
Symbol 163 MovieClip Frame 34
_parent.toClip.gotoAndPlay("goclip"); _parent.currentClip = _parent.toClip; gotoAndStop (1);
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 24
stop();
Symbol 171 MovieClip Frame 34
_parent.toClip.gotoAndPlay("goclip"); _parent.currentClip = _parent.toClip; gotoAndStop (1);
Symbol 182 Button
on (release) { getURL ("mailto:info@10mg.nl"); }
Symbol 186 Button
on (release) { getURL ("mailto:demmy@10mg.nl"); }
Symbol 190 Button
on (release) { getURL ("mailto:marc@10mg.nl"); }
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 24
stop();
Symbol 196 MovieClip Frame 34
_parent.toClip.gotoAndPlay("goclip"); _parent.currentClip = _parent.toClip; gotoAndStop (1);
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 1
initx = getProperty(this._parent.box, _x); initxNew = this._parent.targetx - initx; this._parent.box._x = initx + (initxNew / 3.5);
Symbol 202 MovieClip Frame 2
gotoAndPlay (1);
Symbol 204 Button
on (release) { this["clip" + test].gotoAndPlay("endclip"); } on (press) { gotoAndPlay (31); }
Symbol 205 MovieClip Frame 1
txtInfo_mc.gotoAndStop(_root.frameNr); stop();
Symbol 205 MovieClip Frame 2
_root.soundObj.fade(1000, 100, 0); if (_root.tracker) { _root.doInterface("info/open"); } if (_root.frameNr == 1) { black_mc._visible = true; blue_mc._visible = false; } else { black_mc._visible = false; blue_mc._visible = true; }
Symbol 205 MovieClip Frame 30
targetx = box._x; this.clip3.infobg_mc.gotoAndStop(_root.frameNr); this.clip3.txtContact_mc.gotoAndStop(_root.frameNr); this.clip2.txtContact_mc.gotoAndStop(_root.frameNr); this.clip2.infobg_mc.gotoAndStop(_root.frameNr); this.clip1.infobg_mc.gotoAndStop(_root.frameNr); but1.onRelease = function () { if (activeNum != 1) { if (_root.tracker) { _root.doInterface("info/info"); } this._parent.targetx = this._parent.but1._x; this._parent.toClip = clip1; activeNum = 1; this._parent.currentClip.gotoAndPlay("endclip"); } }; but2.onRelease = function () { if (activeNum != 2) { if (_root.tracker) { _root.doInterface("info/clients"); } this._parent.targetx = this._parent.but2._x; this._parent.toClip = clip2; activeNum = 2; this._parent.currentClip.gotoAndPlay("endclip"); } }; but3.onRelease = function () { if (activeNum != 3) { if (_root.tracker) { _root.doInterface("info/contact"); } this._parent.targetx = this._parent.but3._x; this._parent.toClip = clip3; activeNum = 3; this._parent.currentClip.gotoAndPlay("endclip"); } }; clip1.gotoAndPlay("goclip"); activeNum = 1; currentClip = clip1; stop();
Symbol 205 MovieClip Frame 31
if (_root.tracker) { _root.doInterface("info/sluit"); } _root.soundObj.fade(1000, 0, 100); this.menuBg_mc.gotoAndStop(2); this.box.gotoAndStop(2);
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
stop();
Symbol 211 MovieClip Frame 3
stop();
Symbol 211 MovieClip Frame 4
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
play();
Symbol 214 MovieClip Frame 12
stop();
Symbol 214 MovieClip Frame 23
gotoAndStop (1);
Symbol 215 Button
on (rollOver) { konijn.konijnVal_mc.oren.gotoAndPlay("in"); } on (rollOut) { konijn.konijnVal_mc.oren.gotoAndPlay("out"); } on (release) { _root.startEating(); }
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 3
play();
Symbol 222 MovieClip Frame 75
gotoAndPlay (3);
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 12
stop();
Symbol 246 MovieClip Frame 17
stop();
Symbol 246 MovieClip Frame 20
gotoAndStop ("in");
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 2
stop();
Symbol 276 MovieClip Frame 3
stop();
Symbol 276 MovieClip Frame 4
stop();
Symbol 276 MovieClip Frame 5
stop();
Symbol 276 MovieClip Frame 6
stop();
Symbol 276 MovieClip Frame 7
stop();
Symbol 276 MovieClip Frame 8
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 8
stop();
Symbol 277 MovieClip Frame 9
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
stop();
Symbol 279 MovieClip Frame 3
play();
Symbol 279 MovieClip Frame 75
gotoAndPlay (3);
Symbol 292 MovieClip Frame 1
shade.gotoAndStop(_currentframe); stop();
Symbol 292 MovieClip Frame 2
shade.gotoAndStop(_currentframe);
Symbol 292 MovieClip Frame 3
shade.gotoAndStop(_currentframe);
Symbol 292 MovieClip Frame 4
shade.gotoAndStop(_currentframe);
Symbol 292 MovieClip Frame 5
shade.gotoAndStop(_currentframe);
Symbol 292 MovieClip Frame 6
shade.gotoAndStop(_currentframe);
Symbol 292 MovieClip Frame 7
shade.gotoAndStop(_currentframe);
Symbol 292 MovieClip Frame 8
shade.gotoAndStop(_currentframe); delete shade.cutting.onEnterFrame; stop();
Symbol 292 MovieClip Frame 9
shade.gotoAndStop(_currentframe); shade.cutting.onEnterFrame = function () { this.gotoAndStop(cutting._currentframe); }; stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 2
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 11
stop();
Symbol 307 MovieClip Frame 12
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 2
stop();
Symbol 311 MovieClip Frame 3
play();
Symbol 311 MovieClip Frame 75
gotoAndPlay (3);
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 9
stop();
Symbol 322 MovieClip Frame 10
stop();
Symbol 325 MovieClip Frame 1
shade.gotoAndStop(_currentframe); stop();
Symbol 325 MovieClip Frame 2
shade.gotoAndStop(_currentframe);
Symbol 325 MovieClip Frame 3
shade.gotoAndStop(_currentframe);
Symbol 325 MovieClip Frame 4
shade.gotoAndStop(_currentframe);
Symbol 325 MovieClip Frame 5
shade.gotoAndStop(_currentframe);
Symbol 325 MovieClip Frame 6
shade.gotoAndStop(_currentframe);
Symbol 325 MovieClip Frame 7
shade.gotoAndStop(_currentframe);
Symbol 325 MovieClip Frame 8
shade.gotoAndStop(_currentframe);
Symbol 325 MovieClip Frame 9
shade.gotoAndStop(_currentframe); stop();
Symbol 325 MovieClip Frame 10
shade.gotoAndStop(_currentframe); stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 2
play();
Symbol 341 MovieClip Frame 5
gotoAndPlay (2);
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
play();
Symbol 345 MovieClip Frame 5
gotoAndPlay (2);
Symbol 357 MovieClip Frame 40
gotoAndPlay (1);
Symbol 359 MovieClip Frame 40
gotoAndPlay (1);
Symbol 361 MovieClip Frame 42
gotoAndPlay (1);
Symbol 363 MovieClip Frame 50
stop();
Symbol 364 MovieClip Frame 1
function doSeconds() { if (_root.enlightment) { clearInterval(timerClockID); } else { seconds--; if (seconds < 0) { minutes--; seconds = 59; } if ((minutes == 0) and (seconds == 0)) { minutes = 0; clearInterval(timerClockID); gotoAndPlay ("spD"); } if (seconds < 10) { secondsDisplay = "0" + seconds.toString(); } else { secondsDisplay = seconds.toString(); } timeDisplay = (minutes.toString() + ":") + secondsDisplay; clearInterval(colorID); } } function doColor() { klok_txt.textColor = 10066329 /* 0x999999 */; clearInterval(colorID); } var seconds = 0; var minutes = 1; var secondsDisplay; doSeconds(); clearInterval(timerClockID); timerClockID = setInterval(this, "doSeconds", 1000); stop();
Symbol 364 MovieClip Frame 42
gotoAndPlay ("spS");
Symbol 364 MovieClip Frame 82
if (_root.error < 1) { if (seconds < 30) { play(); } else { gotoAndPlay ("spA"); } } else { _root.writeMssg("Carefull, 2 more mistakes and it's all over!"); }
Symbol 364 MovieClip Frame 122
if (_root.error < 2) { if (seconds < 10) { play(); } else { gotoAndPlay ("spB"); } } else { _root.writeMssg("Carefull, 1 more mistake and it's all over!"); }
Symbol 364 MovieClip Frame 162
if (_root.error < 3) { gotoAndPlay ("spC"); }
Symbol 364 MovieClip Frame 163
_root.gameEnd = true; _root.flatlineSound.start(0.03, 1000);
Symbol 364 MovieClip Frame 204
_root.gameOver(); clearInterval(timerClockID); stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
play();
Symbol 365 MovieClip Frame 3
Symbol 365 MovieClip Frame 41
_root.gotoAndPlay("gameOver");
Symbol 365 MovieClip Frame 82
stop();
Symbol 366 MovieClip Frame 1
_root.setPositions(); _root.setPositions();
Symbol 366 MovieClip Frame 19
_root.setPositions(); _root.setPositions();
Symbol 366 MovieClip Frame 23
_root.setPositions();
Symbol 366 MovieClip Frame 26
_root.setPositions();
Symbol 366 MovieClip Frame 27
_root.setPositions();
Symbol 366 MovieClip Frame 29
_root.setPositions();
Symbol 366 MovieClip Frame 33
_root.setPositions();
Symbol 366 MovieClip Frame 36
_root.setPositions();
Symbol 366 MovieClip Frame 37
_root.setPositions();
Symbol 366 MovieClip Frame 38
_root.setPositions();
Symbol 366 MovieClip Frame 40
_root.setPositions();
Symbol 366 MovieClip Frame 44
_root.setPositions();
Symbol 366 MovieClip Frame 47
_root.setPositions();
Symbol 366 MovieClip Frame 48
_root.setPositions();
Symbol 366 MovieClip Frame 62
_root.setPositions();
Symbol 366 MovieClip Frame 63
_root.setPositions();
Symbol 366 MovieClip Frame 64
_root.setPositions();
Symbol 366 MovieClip Frame 66
_root.setPositions();
Symbol 366 MovieClip Frame 69
stop(); stop();
Symbol 366 MovieClip Frame 71
_root.setPositions(); play();
Symbol 366 MovieClip Frame 108
_root.verlichtingSound.stop(); _root.doodSound.stop(); _root.flatlineSound.stop(); delete _root.onMouseDown; delete _root.onMouseUp; delete _root.pincet_front.onEnterFrame; delete _root.pincet_front3.onEnterFrame; _root.gotoAndPlay(14); gotoAndStop (1);
Symbol 398 MovieClip Frame 1
finished = false; stop();
Symbol 398 MovieClip Frame 30
finished = true; stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
if (_root.scratchControl._currentframe == 1) { _root.scratchControl.gotoAndStop(2); }
Symbol 415 MovieClip Frame 17
stop();
Symbol 416 MovieClip Frame 1
_root.effectSound.stop(); stop();
Symbol 416 MovieClip Frame 2
_root.effectSound.start(0.4, 2000); _root.effectSound.setVolume(100); stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
play();
Symbol 422 MovieClip Frame 12
stop();
Symbol 422 MovieClip Frame 23
gotoAndStop (1);
Symbol 443 MovieClip Frame 39
gotoAndPlay (1);
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 2
stop();
Symbol 448 MovieClip Frame 3
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 472 MovieClip Frame 3
stop();
Symbol 472 MovieClip Frame 4
stop();
Symbol 472 MovieClip Frame 5
stop();
Symbol 472 MovieClip Frame 6
stop();
Symbol 472 MovieClip Frame 7
stop();
Symbol 472 MovieClip Frame 8
stop();
Symbol 472 MovieClip Frame 9
stop();
Symbol 472 MovieClip Frame 10
stop();
Symbol 472 MovieClip Frame 11
stop();
Symbol 472 MovieClip Frame 12
stop();
Symbol 472 MovieClip Frame 20
play();
Symbol 472 MovieClip Frame 30
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 490 MovieClip Frame 3
stop();
Symbol 490 MovieClip Frame 4
stop();
Symbol 490 MovieClip Frame 5
stop();
Symbol 490 MovieClip Frame 6
stop();
Symbol 490 MovieClip Frame 7
stop();
Symbol 490 MovieClip Frame 8
stop();
Symbol 490 MovieClip Frame 9
stop();
Symbol 490 MovieClip Frame 10
stop();
Symbol 490 MovieClip Frame 11
stop();
Symbol 490 MovieClip Frame 12
stop();
Symbol 490 MovieClip Frame 20
play();
Symbol 490 MovieClip Frame 30
stop();
Symbol 496 MovieClip Frame 1
finished = false; stop();
Symbol 496 MovieClip Frame 30
finished = true; stop();
Symbol 500 MovieClip Frame 12
if (this.noShade) { shade._visible = false; } stop();
Symbol 500 MovieClip Frame 17
stop();
Symbol 500 MovieClip Frame 22
gotoAndPlay (14);
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 12
stop();
Symbol 505 MovieClip Frame 17
stop();
Symbol 505 MovieClip Frame 20
gotoAndStop ("in");
Symbol 518 MovieClip Frame 54
stop();
Symbol 540 MovieClip Frame 23
stop();
Symbol 548 MovieClip Frame 23
stop();
Symbol 556 MovieClip Frame 318
gotoAndPlay (1);
Symbol 585 MovieClip Frame 60
gotoAndPlay (1);
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 2
stop();
Symbol 608 MovieClip Frame 1
if (_root.gameEnd) { title_mc.gotoAndStop(1); } else { title_mc.gotoAndStop(2); }
Symbol 614 Button
on (release) { sendFriend_btn.enabled = false; gotoAndPlay (2); }
Symbol 615 Button
on (release) { playAgain_btn.enabled = false; _root.doodSound.fade(400, _root.doodSound.getVolume(), 0); _root.verlichtingSound.fade(400, _root.verlichtingSound.getVolume(), 0); _root.fadeOut.gotoAndPlay("again"); }
Symbol 663 Button
on (release) { _parent._parent.gotoAndPlay(32); }
Symbol 664 MovieClip Frame 1
function validateEmail(emailInput) { if (((((((((emailInput.length < 6) || (emailInput.indexOf(",") >= 0)) || (emailInput.indexOf(":") >= 0)) || (emailInput.indexOf("/") >= 0)) || (emailInput.indexOf(" ") >= 0)) || (emailInput.indexOf("@") <= 0)) || (emailInput.indexOf("@") != emailInput.lastIndexOf("@"))) || (emailInput.lastIndexOf(".") < emailInput.indexOf("@"))) || ((emailInput.lastIndexOf(".") + 3) > emailInput.length)) { return(false); } return(true); } _root.baseURL = "http://www.10mg.nl/php/"; send_btn.enabled = true; var errorText = ""; send_btn.onRelease = function () { errorText = ""; send_btn.enabled = false; if (_root.naamVan == "your name") { errorText = "Please enter your name."; Selection.setFocus("naamVan_txt"); } if (_root.naamAan == "friends name") { errorText = "Please enter your friends name."; Selection.setFocus("naamAan_txt"); } if (!validateEmail(_root.emailVan)) { errorText = "Please enter a valid e-mail."; Selection.setFocus("emailVan_txt"); } if (!validateEmail(_root.emailAan)) { errorText = "Please enter a valid e-mail for your friend."; Selection.setFocus("emailAan_txt"); } if (errorText == "") { if (_root.tracker) { getURL ("javascript:urchinTracker('/game/sendfriend');"); } var _local4 = _root.baseURL + "addPersoon.php"; var result_lv = new LoadVars(); result_lv.onLoad = function (success) { if (success) { if (result_lv.result == "error") { send_btn.enabled = true; errorText = "Er is een communicatiefout opgetreden."; } } else { send_btn.enabled = true; errorText = "Er kon geen verbinding worden gemaakt met de server."; } }; var _local3 = new LoadVars(); _local3.naamVan = _root.naamVan; _local3.emailVan = _root.emailVan; _local3.naamAan = _root.naamAan; _local3.emailAan = _root.emailAan; _local3.sendAndLoad(_local4, result_lv, "POST"); _parent._parent.play(); } else { send_btn.enabled = true; } }; close_btn.onRelease = function () { _parent._parent.play(); };
Symbol 700 MovieClip Frame 6
stop();
Symbol 754 Button
on (press) { gotoAndPlay (2); }
Symbol 755 MovieClip Frame 1
sendFriend_btn.enabled = true; playAgain_btn.enabled = true; stop();
Symbol 755 MovieClip Frame 31
stop();
Symbol 755 MovieClip Frame 61
gotoAndStop (1);
Symbol 755 MovieClip Frame 62
play();
Symbol 755 MovieClip Frame 109
stop();
Symbol 756 MovieClip Frame 40
stop();
Symbol 757 MovieClip Frame 1
function onKeyDown() { switch (Key.getCode()) { case 38 : scl = scl * 1.03; return; case 40 : scl = scl * 0.96; return; case 37 : r = r - 0.01; return; case 39 : r = r + 0.01; return; case 187 : slices = slices + 2; angle = Math.PI / slices; return; case 189 : if (slices > 4) { slices = slices - 2; angle = Math.PI / slices; } return; case 49 : rotate1 = !rotate1; return; case 50 : rotate2 = !rotate2; return; case 51 : rotate3 = !rotate3; return; case 52 : flip = !flip; return; case 53 : sh1 = sh1 + 0.04; return; case 54 : sh1 = sh1 - 0.04; return; case 55 : sh2 = sh2 + 0.04; return; case 56 : sh2 = sh2 - 0.04; return; case 78 : sclfact = sclfact + 0.01; return; case 77 : sclfact = sclfact - 0.01; return; case 48 : sclfact = 0; return; case 81 : rotspeed1 = rotspeed1 + 0.001; return; case 87 : rotspeed1 = rotspeed1 - 0.001; return; case 65 : rotspeed2 = rotspeed2 + 0.001; return; case 89 : rotspeed3 = rotspeed3 + 0.001; return; case 88 : rotspeed3 = rotspeed3 - 0.001; return; case 69 : rotspeed1 = 0; return; case 68 : rotspeed2 = 0; return; case 67 : rotspeed3 = 0; return; case 83 : rotspeed2 = rotspeed2 - 0.001; } } function onEnterFrame() { _root.kall = scl; if (rotate1) { r = r + rotspeed1; } if (rotate2) { r2 = r2 - rotspeed2; } if (rotate3) { rot = rot + rotspeed3; } var _local2 = 0; while (_local2 < slices) { m.identity(); m.b = m.b + sh1; m.c = m.c + sh2; m.rotate(r2); m.translate((2 * _xmouse) / scl, ((2 * _ymouse) / scl) + ((_local2 * sclfact) * 10)); m.rotate(r); m.scale(scl, scl); slice.clear(); slice.lineStyle(); slice.moveTo(0, 0); slice.beginBitmapFill(stampImage, m); slice.lineTo(Math.cos((angle + nudge) - (Math.PI/2)) * diag, Math.sin((angle + nudge) - (Math.PI/2)) * diag); slice.lineTo(Math.cos((-(angle + nudge)) - (Math.PI/2)) * diag, Math.sin((-(angle + nudge)) - (Math.PI/2)) * diag); slice.lineTo(0, 0); slice.endFill(); m.identity(); if (flip && ((_local2 % 2) == 1)) { m.scale(-1, 1); } m.rotate(rot + ((_local2 * angle) * 2)); m.translate(hsize * 0.5, vsize * 0.5); map.draw(slice, m, null, "normal", null, true); _local2++; } } _quality = "BEST"; var vsize = _root.vsize; var hsize = _root.hsize; var diag = (Math.sqrt((2 * hsize) * hsize) * 0.62); var map = (new flash.display.BitmapData(hsize, vsize, true, 0)); var mapHolder = createEmptyMovieClip("mapHolder", 1); var code; mapHolder.attachBitmap(map, 0); var image = flash.display.BitmapData.loadBitmap("image"); var stampImage = (new flash.display.BitmapData(image.width, image.height, false)); stampImage.draw(image, new flash.geom.Matrix(0.5, 0, 0, 0.5, 0, 0), null, "normal", null, true); stampImage.draw(image, new flash.geom.Matrix(-0.5, 0, 0, 0.5, image.width, 0), null, "normal", null, true); stampImage.draw(image, new flash.geom.Matrix(0.5, 0, 0, -0.5, 0, image.height), null, "normal", null, true); stampImage.draw(image, new flash.geom.Matrix(-0.5, 0, 0, -0.5, image.width, image.height), null, "normal", null, true); image.dispose(); var rotate1 = false; var rotate2 = false; var rotate3 = false; var flip = true; var singleview = true; var slice = createEmptyMovieClip("slice", 0); slice._visible = false; var slices = 12; var angle = (Math.PI / slices); var nudge = 0.009; var rotspeed1 = 0.007; var rotspeed2 = -0.003; var rotspeed3 = -0.005; var sclfact = 0; var rot = 0; var r = 0; var r2 = 0; var sh1 = 0; var sh2 = 0; var scl = 7.3; var m = (new flash.geom.Matrix()); Key.addListener(this); rotate1 = !rotate1; rotate2 = !rotate2; this.tween("scl", 1, 7, "easeOutCubic");
Symbol 757 MovieClip Frame 2
stop();
Symbol 792 MovieClip Frame 167
stop();
Symbol 793 MovieClip Frame 50
Symbol 793 MovieClip Frame 206
gotoAndPlay ("loopz");
Symbol 793 MovieClip Frame 207
stop();

Library Items

Symbol 1 Bitmap [image]
Symbol 2 MovieClip [darmB]
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:5
Symbol 5 MovieClip [pieceB]Uses:4
Symbol 6 MovieClip [darmC]
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:9
Symbol 9 MovieClip [piece]Uses:8
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip [reveal]Uses:10
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:13Used by:20
Symbol 15 VideoUsed by:16
Symbol 16 MovieClip [VideoPlayer]Uses:15Used by:20
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:19
Symbol 19 MovieClip [Icon]Uses:18Used by:20
Symbol 20 MovieClip [FLVPlayback]Uses:14 16 19Used by:162
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:30Used by:Timeline
Symbol 32 BitmapUsed by:33 217
Symbol 33 GraphicUses:32Used by:34
Symbol 34 MovieClipUses:33Used by:55  Timeline
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:35Used by:Timeline
Symbol 37 GraphicUsed by:395 556 657  Timeline
Symbol 38 GraphicUsed by:Timeline
Symbol 39 FontUsed by:40 347
Symbol 40 EditableTextUses:39Used by:Timeline
Symbol 41 GraphicUsed by:46
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:42Used by:46
Symbol 44 GraphicUsed by:45 124 138 203 204 276 322 421 656
Symbol 45 MovieClipUses:44Used by:46 50 365 366 518  Timeline
Symbol 46 MovieClipUses:41 43 45Used by:Timeline
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:49
Symbol 49 MovieClipUses:48Used by:Timeline
Symbol 50 MovieClipUses:45Used by:Timeline
Symbol 51 MovieClipUsed by:398 472 496 540  Timeline
Symbol 795 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon]
Symbol 796 MovieClip [__Packages.mx.transitions.BroadcasterMX]
Symbol 797 MovieClip [__Packages.mx.transitions.Tween]
Symbol 798 MovieClip [__Packages.mx.transitions.easing.Bounce]
Symbol 799 MovieClip [__Packages.com.mosesSupposes.fuse.Shortcuts]
Symbol 800 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon]
Symbol 801 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine]
Symbol 802 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager]
Symbol 803 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing]
Symbol 12 MovieClip [__Packages.mx.video.FLVPlayback]
Symbol 21 MovieClip [__Packages.mx.video.VideoPlayer]
Symbol 22 MovieClip [__Packages.mx.video.INCManager]
Symbol 23 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 24 MovieClip [__Packages.mx.video.VideoError]
Symbol 25 MovieClip [__Packages.mx.video.UIManager]
Symbol 26 MovieClip [__Packages.mx.utils.Delegate]
Symbol 27 MovieClip [__Packages.mx.video.SMILManager]
Symbol 28 MovieClip [__Packages.mx.video.NCManager]
Symbol 29 MovieClip [__Packages.mx.video.CuePointManager]
Symbol 52 Sound [intro]Used by:Timeline
Symbol 53 Sound [schot]Used by:Timeline
Symbol 54 Sound [val]Used by:Timeline
Symbol 55 MovieClipUses:34Used by:Timeline
Symbol 56 BitmapUsed by:57
Symbol 57 GraphicUses:56Used by:58
Symbol 58 MovieClipUses:57Used by:110
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:61
Symbol 61 MovieClipUses:60Used by:109
Symbol 62 BitmapUsed by:63
Symbol 63 GraphicUses:62Used by:64
Symbol 64 MovieClipUses:63Used by:65
Symbol 65 MovieClipUses:64Used by:109
Symbol 66 BitmapUsed by:67
Symbol 67 GraphicUses:66Used by:68
Symbol 68 MovieClipUses:67Used by:69
Symbol 69 MovieClipUses:68Used by:109
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:89
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:75
Symbol 75 MovieClipUses:74Used by:89
Symbol 76 BitmapUsed by:77
Symbol 77 GraphicUses:76Used by:78
Symbol 78 MovieClipUses:77Used by:89
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:81
Symbol 81 MovieClipUses:80Used by:89
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:84
Symbol 84 MovieClipUses:83Used by:89
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:87
Symbol 87 MovieClipUses:86Used by:88
Symbol 88 MovieClipUses:87Used by:89
Symbol 89 MovieClipUses:72 75 78 81 84 88Used by:109
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:92
Symbol 92 MovieClipUses:91Used by:109
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClipUses:93Used by:109
Symbol 95 GraphicUsed by:96
Symbol 96 MovieClipUses:95Used by:109
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:99
Symbol 99 MovieClipUses:98Used by:109
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:102
Symbol 102 MovieClipUses:101Used by:109
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:105
Symbol 105 MovieClipUses:104Used by:109
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:108
Symbol 108 MovieClipUses:107Used by:109
Symbol 109 MovieClipUses:61 65 69 89 92 94 96 99 102 105 108Used by:110
Symbol 110 MovieClipUses:58 109Used by:Timeline
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:111Used by:Timeline
Symbol 113 FontUsed by:114 346
Symbol 114 EditableTextUses:113Used by:Timeline
Symbol 115 FontUsed by:117
Symbol 116 FontUsed by:117
Symbol 117 TextUses:115 116Used by:118
Symbol 118 MovieClipUses:117Used by:119
Symbol 119 MovieClipUses:118Used by:Timeline
Symbol 120 GraphicUsed by:Timeline
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClipUses:121Used by:123 448
Symbol 123 MovieClipUses:122Used by:Timeline
Symbol 124 MovieClipUses:44Used by:205
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClipUses:125Used by:205
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:127Used by:205
Symbol 129 FontUsed by:130 131
Symbol 130 TextUses:129Used by:132
Symbol 131 TextUses:129Used by:132
Symbol 132 MovieClipUses:130 131Used by:205
Symbol 133 BitmapUsed by:134
Symbol 134 GraphicUses:133Used by:135
Symbol 135 MovieClipUses:134Used by:136
Symbol 136 MovieClipUses:135Used by:137
Symbol 137 MovieClipUses:136Used by:205
Symbol 138 ButtonUses:44Used by:205
Symbol 139 FontUsed by:140 141 143 144 146 147 154 165 167 173 175 177
Symbol 140 TextUses:139Used by:142
Symbol 141 TextUses:139Used by:142
Symbol 142 MovieClipUses:140 141Used by:205
Symbol 143 TextUses:139Used by:145
Symbol 144 TextUses:139Used by:145
Symbol 145 MovieClipUses:143 144Used by:205
Symbol 146 TextUses:139Used by:148
Symbol 147 TextUses:139Used by:148
Symbol 148 MovieClipUses:146 147Used by:205
Symbol 149 GraphicUsed by:150 349
Symbol 150 MovieClipUses:149Used by:163 171 196
Symbol 151 GraphicUsed by:153
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClipUses:151 152Used by:163 171 196
Symbol 154 TextUses:139Used by:162
Symbol 155 BitmapUsed by:156
Symbol 156 GraphicUses:155Used by:159
Symbol 157 FontUsed by:158 164 166 168 169 172 174 176 178 179 180 183 184 187 188 191 192 193 194
Symbol 158 TextUses:157Used by:159
Symbol 159 MovieClipUses:156 158Used by:162
Symbol 160 ShapeTweeningUsed by:162
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClipUses:154 159 20 160 161Used by:163
Symbol 163 MovieClipUses:150 153 162Used by:205
Symbol 164 TextUses:157Used by:170
Symbol 165 TextUses:139Used by:170
Symbol 166 TextUses:157Used by:170
Symbol 167 TextUses:139Used by:170
Symbol 168 TextUses:157Used by:170
Symbol 169 TextUses:157Used by:170
Symbol 170 MovieClipUses:164 165 166 167 168 169Used by:171
Symbol 171 MovieClipUses:150 153 170Used by:205
Symbol 172 TextUses:157Used by:195
Symbol 173 TextUses:139Used by:195
Symbol 174 TextUses:157Used by:195
Symbol 175 TextUses:139Used by:195
Symbol 176 TextUses:157Used by:195
Symbol 177 TextUses:139Used by:195
Symbol 178 TextUses:157Used by:195
Symbol 179 TextUses:157Used by:182
Symbol 180 TextUses:157Used by:182
Symbol 181 GraphicUsed by:182
Symbol 182 ButtonUses:179 180 181Used by:195
Symbol 183 TextUses:157Used by:186
Symbol 184 TextUses:157Used by:186
Symbol 185 GraphicUsed by:186
Symbol 186 ButtonUses:183 184 185Used by:195
Symbol 187 TextUses:157Used by:190
Symbol 188 TextUses:157Used by:190
Symbol 189 GraphicUsed by:190
Symbol 190 ButtonUses:187 188 189Used by:195
Symbol 191 TextUses:157Used by:195
Symbol 192 TextUses:157Used by:195
Symbol 193 TextUses:157Used by:195
Symbol 194 TextUses:157Used by:195
Symbol 195 MovieClipUses:172 173 174 175 176 177 178 182 186 190 191 192 193 194Used by:196
Symbol 196 MovieClipUses:150 153 195Used by:205
Symbol 197 GraphicUsed by:205 215 426
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:200
Symbol 200 MovieClipUses:199Used by:201
Symbol 201 MovieClipUses:200Used by:205
Symbol 202 MovieClipUsed by:205
Symbol 203 ButtonUses:44Used by:205
Symbol 204 ButtonUses:44Used by:205
Symbol 205 MovieClipUses:124 126 128 132 137 138 142 145 148 163 171 196 197 201 202 203 204Used by:Timeline
Symbol 206 FontUsed by:207 208 209 210
Symbol 207 TextUses:206Used by:211
Symbol 208 TextUses:206Used by:211
Symbol 209 TextUses:206Used by:211
Symbol 210 TextUses:206Used by:211
Symbol 211 MovieClipUses:207 208 209 210Used by:214 422
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClipUses:212Used by:214 422
Symbol 214 MovieClipUses:211 213Used by:Timeline
Symbol 215 ButtonUses:197Used by:Timeline
Symbol 216 GraphicUsed by:Timeline
Symbol 217 GraphicUses:32Used by:218
Symbol 218 MovieClipUses:217Used by:Timeline
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:221
Symbol 221 MovieClipUses:220Used by:222
Symbol 222 MovieClipUses:221Used by:246
Symbol 223 BitmapUsed by:224
Symbol 224 GraphicUses:223Used by:246
Symbol 225 BitmapUsed by:226
Symbol 226 GraphicUses:225Used by:246
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:246
Symbol 229 BitmapUsed by:230
Symbol 230 GraphicUses:229Used by:246
Symbol 231 BitmapUsed by:232
Symbol 232 GraphicUses:231Used by:246
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:246
Symbol 235 BitmapUsed by:236
Symbol 236 GraphicUses:235Used by:246
Symbol 237 BitmapUsed by:238
Symbol 238 GraphicUses:237Used by:246
Symbol 239 BitmapUsed by:240
Symbol 240 GraphicUses:239Used by:246
Symbol 241 BitmapUsed by:242
Symbol 242 GraphicUses:241Used by:246
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:245
Symbol 245 MovieClipUses:244Used by:246 505
Symbol 246 MovieClipUses:222 224 226 228 230 232 234 236 238 240 242 245Used by:Timeline
Symbol 247 BitmapUsed by:248
Symbol 248 GraphicUses:247Used by:277 278
Symbol 249 BitmapUsed by:250 280
Symbol 250 GraphicUses:249Used by:277
Symbol 251 BitmapUsed by:252 282
Symbol 252 GraphicUses:251Used by:277
Symbol 253 BitmapUsed by:254 284
Symbol 254 GraphicUses:253Used by:277
Symbol 255 BitmapUsed by:256 286
Symbol 256 GraphicUses:255Used by:277
Symbol 257 BitmapUsed by:258 288
Symbol 258 GraphicUses:257Used by:277
Symbol 259 BitmapUsed by:260 290
Symbol 260 GraphicUses:259Used by:277
Symbol 261 BitmapUsed by:262 263
Symbol 262 GraphicUses:261Used by:277
Symbol 263 GraphicUses:261Used by:276 292
Symbol 264 BitmapUsed by:265
Symbol 265 GraphicUses:264Used by:266
Symbol 266 MovieClipUses:265Used by:276
Symbol 267 BitmapUsed by:268
Symbol 268 GraphicUses:267Used by:269
Symbol 269 MovieClipUses:268Used by:276
Symbol 270 BitmapUsed by:271
Symbol 271 GraphicUses:270Used by:272
Symbol 272 MovieClipUses:271Used by:276
Symbol 273 BitmapUsed by:274
Symbol 274 GraphicUses:273Used by:275
Symbol 275 MovieClipUses:274Used by:276
Symbol 276 MovieClipUses:44 263 266 269 272 275Used by:277 292
Symbol 277 MovieClipUses:248 250 252 254 256 258 260 262 276Used by:292
Symbol 278 MovieClipUses:248Used by:279
Symbol 279 MovieClipUses:278Used by:292
Symbol 280 GraphicUses:249Used by:281
Symbol 281 MovieClipUses:280Used by:292
Symbol 282 GraphicUses:251Used by:283
Symbol 283 MovieClipUses:282Used by:292
Symbol 284 GraphicUses:253Used by:285
Symbol 285 MovieClipUses:284Used by:292
Symbol 286 GraphicUses:255Used by:287
Symbol 287 MovieClipUses:286Used by:292
Symbol 288 GraphicUses:257Used by:289
Symbol 289 MovieClipUses:288Used by:292
Symbol 290 GraphicUses:259Used by:291
Symbol 291 MovieClipUses:290Used by:292
Symbol 292 MovieClipUses:277 279 281 283 285 287 289 291 263 276Used by:Timeline
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:293Used by:295
Symbol 295 MovieClipUses:294Used by:296
Symbol 296 MovieClipUses:295Used by:307  Timeline
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:307  Timeline
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:307  Timeline
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:307
Symbol 303 BitmapUsed by:304
Symbol 304 GraphicUses:303Used by:307
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:307  Timeline
Symbol 307 MovieClipUses:296 298 300 302 304 306Used by:Timeline
Symbol 308 BitmapUsed by:309
Symbol 309 GraphicUses:308Used by:310
Symbol 310 MovieClipUses:309Used by:311
Symbol 311 MovieClipUses:310Used by:322 325
Symbol 312 BitmapUsed by:313
Symbol 313 GraphicUses:312Used by:322 325
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:322 325
Symbol 316 BitmapUsed by:317
Symbol 317 GraphicUses:316Used by:322 325
Symbol 318 BitmapUsed by:319 323
Symbol 319 GraphicUses:318Used by:322
Symbol 320 BitmapUsed by:321 324
Symbol 321 GraphicUses:320Used by:322
Symbol 322 MovieClipUses:311 313 315 317 44 319 321Used by:325
Symbol 323 GraphicUses:318Used by:325
Symbol 324 GraphicUses:320Used by:325
Symbol 325 MovieClipUses:322 311 313 315 317 323 324Used by:Timeline
Symbol 326 GraphicUsed by:327
Symbol 327 MovieClipUses:326Used by:Timeline
Symbol 328 BitmapUsed by:329
Symbol 329 GraphicUses:328Used by:330 402
Symbol 330 MovieClipUses:329Used by:Timeline
Symbol 331 GraphicUsed by:332
Symbol 332 MovieClipUses:331Used by:341 345
Symbol 333 GraphicUsed by:334
Symbol 334 MovieClipUses:333Used by:341
Symbol 335 GraphicUsed by:341
Symbol 336 GraphicUsed by:339
Symbol 337 GraphicUsed by:339
Symbol 338 GraphicUsed by:339
Symbol 339 MovieClipUses:336 337 338Used by:341 345
Symbol 340 SoundUsed by:341
Symbol 341 MovieClipUses:332 334 335 339 340Used by:Timeline
Symbol 342 GraphicUsed by:343
Symbol 343 MovieClipUses:342Used by:345
Symbol 344 GraphicUsed by:345
Symbol 345 MovieClipUses:332 343 339 344Used by:Timeline
Symbol 346 EditableTextUses:113Used by:Timeline
Symbol 347 EditableTextUses:39Used by:364
Symbol 348 SoundUsed by:364
Symbol 349 MovieClipUses:149Used by:364
Symbol 350 GraphicUsed by:353
Symbol 351 GraphicUsed by:352
Symbol 352 MovieClipUses:351Used by:353 357 359 361 363
Symbol 353 MovieClipUses:350 352Used by:364
Symbol 354 GraphicUsed by:357
Symbol 355 SoundUsed by:357 359 361
Symbol 356 SoundUsed by:357 359 361  Timeline
Symbol 357 MovieClipUses:354 352 355 356Used by:364
Symbol 358 GraphicUsed by:359
Symbol 359 MovieClipUses:358 352 355 356Used by:364
Symbol 360 GraphicUsed by:361
Symbol 361 MovieClipUses:360 352 355 356Used by:364
Symbol 362 GraphicUsed by:363
Symbol 363 MovieClipUses:362 352Used by:364
Symbol 364 MovieClipUses:347 348 349 353 357 359 361 363Used by:Timeline
Symbol 365 MovieClipUses:45Used by:Timeline
Symbol 366 MovieClipUses:45Used by:Timeline
Symbol 367 Sound [flatline]Used by:Timeline
Symbol 368 Sound [shock]Used by:Timeline
Symbol 369 BitmapUsed by:370
Symbol 370 GraphicUses:369Used by:371
Symbol 371 MovieClipUses:370Used by:Timeline
Symbol 372 GraphicUsed by:373
Symbol 373 MovieClipUses:372Used by:Timeline
Symbol 374 BitmapUsed by:375
Symbol 375 GraphicUses:374Used by:376
Symbol 376 MovieClipUses:375Used by:Timeline
Symbol 377 BitmapUsed by:378
Symbol 378 GraphicUses:377Used by:379
Symbol 379 MovieClipUses:378Used by:Timeline
Symbol 380 BitmapUsed by:381
Symbol 381 GraphicUses:380Used by:382
Symbol 382 MovieClipUses:381Used by:Timeline
Symbol 383 BitmapUsed by:384
Symbol 384 GraphicUses:383Used by:385
Symbol 385 MovieClipUses:384Used by:Timeline
Symbol 386 BitmapUsed by:387
Symbol 387 GraphicUses:386Used by:388
Symbol 388 MovieClipUses:387Used by:Timeline
Symbol 389 BitmapUsed by:390
Symbol 390 GraphicUses:389Used by:391
Symbol 391 MovieClipUses:390Used by:Timeline
Symbol 392 Sound [knetterSnd]Used by:Timeline
Symbol 393 GraphicUsed by:394
Symbol 394 MovieClipUses:393Used by:Timeline
Symbol 395 MovieClipUses:37Used by:398 496
Symbol 396 GraphicUsed by:398
Symbol 397 GraphicUsed by:398
Symbol 398 MovieClipUses:395 396 51 397Used by:Timeline
Symbol 399 BitmapUsed by:400
Symbol 400 GraphicUses:399Used by:401
Symbol 401 MovieClipUses:400Used by:402
Symbol 402 MovieClipUses:329 401Used by:756  Timeline
Symbol 403 GraphicUsed by:Timeline
Symbol 404 BitmapUsed by:405
Symbol 405 GraphicUses:404Used by:406
Symbol 406 MovieClipUses:405Used by:407  Timeline
Symbol 407 MovieClipUses:406Used by:Timeline
Symbol 408 BitmapUsed by:410
Symbol 409 BitmapUsed by:410
Symbol 410 GraphicUses:408 409Used by:411
Symbol 411 MovieClipUses:410Used by:412
Symbol 412 MovieClipUses:411Used by:Timeline
Symbol 413 GraphicUsed by:414
Symbol 414 MovieClipUses:413Used by:415
Symbol 415 MovieClipUses:414Used by:Timeline
Symbol 416 MovieClipUsed by:Timeline
Symbol 417 GraphicUsed by:418
Symbol 418 MovieClipUses:417Used by:Timeline
Symbol 419 Sound [druppel]Used by:420
Symbol 420 MovieClipUses:419Used by:Timeline
Symbol 421 ButtonUses:44Used by:Timeline
Symbol 422 MovieClipUses:211 213Used by:Timeline
Symbol 423 Sound [pakop]Used by:Timeline
Symbol 424 Sound [scheer]Used by:Timeline
Symbol 425 GraphicUsed by:Timeline
Symbol 426 MovieClipUses:197Used by:Timeline
Symbol 427 GraphicUsed by:428
Symbol 428 MovieClipUses:427Used by:430
Symbol 429 GraphicUsed by:430
Symbol 430 MovieClipUses:428 429Used by:431
Symbol 431 MovieClipUses:430Used by:Timeline
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClipUses:432Used by:Timeline
Symbol 434 BitmapUsed by:435
Symbol 435 GraphicUses:434Used by:436
Symbol 436 MovieClipUses:435Used by:443
Symbol 437 BitmapUsed by:438
Symbol 438 GraphicUses:437Used by:439
Symbol 439 MovieClipUses:438Used by:443
Symbol 440 BitmapUsed by:441
Symbol 441 GraphicUses:440Used by:442
Symbol 442 MovieClipUses:441Used by:443
Symbol 443 MovieClipUses:436 439 442Used by:Timeline
Symbol 444 GraphicUsed by:448
Symbol 445 GraphicUsed by:446
Symbol 446 MovieClipUses:445Used by:448
Symbol 447 GraphicUsed by:448
Symbol 448 MovieClipUses:444 446 447 122Used by:Timeline
Symbol 449 GraphicUsed by:Timeline
Symbol 450 GraphicUsed by:472
Symbol 451 GraphicUsed by:472
Symbol 452 GraphicUsed by:472
Symbol 453 GraphicUsed by:472
Symbol 454 GraphicUsed by:472
Symbol 455 GraphicUsed by:472
Symbol 456 GraphicUsed by:472
Symbol 457 GraphicUsed by:472
Symbol 458 GraphicUsed by:472
Symbol 459 GraphicUsed by:472
Symbol 460 GraphicUsed by:472
Symbol 461 GraphicUsed by:472
Symbol 462 ShapeTweeningUsed by:472
Symbol 463 ShapeTweeningUsed by:472
Symbol 464 GraphicUsed by:472
Symbol 465 GraphicUsed by:472
Symbol 466 GraphicUsed by:472
Symbol 467 GraphicUsed by:472 540
Symbol 468 GraphicUsed by:472
Symbol 469 GraphicUsed by:472 540
Symbol 470 GraphicUsed by:472
Symbol 471 GraphicUsed by:472
Symbol 472 MovieClipUses:450 51 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471Used by:Timeline
Symbol 473 GraphicUsed by:474
Symbol 474 MovieClipUses:473Used by:Timeline
Symbol 475 GraphicUsed by:490 548
Symbol 476 GraphicUsed by:490 548
Symbol 477 GraphicUsed by:490 548
Symbol 478 GraphicUsed by:490 548
Symbol 479 GraphicUsed by:490 548
Symbol 480 GraphicUsed by:490 548
Symbol 481 GraphicUsed by:490 548
Symbol 482 GraphicUsed by:490 548
Symbol 483 GraphicUsed by:490 548
Symbol 484 GraphicUsed by:490 548
Symbol 485 GraphicUsed by:490 548
Symbol 486 GraphicUsed by:490 548
Symbol 487 ShapeTweeningUsed by:490
Symbol 488 ShapeTweeningUsed by:490
Symbol 489 GraphicUsed by:490
Symbol 490 MovieClipUses:475 476 477 478 479 480 481 482 483 484 485 486 487 488 489Used by:Timeline
Symbol 491 GraphicUsed by:492
Symbol 492 ButtonUses:491Used by:Timeline
Symbol 493 Sound [snijden]Used by:Timeline
Symbol 494 GraphicUsed by:496
Symbol 495 GraphicUsed by:496
Symbol 496 MovieClipUses:395 494 51 495Used by:Timeline
Symbol 497 GraphicUsed by:Timeline
Symbol 498 GraphicUsed by:499
Symbol 499 MovieClipUses:498Used by:500
Symbol 500 MovieClipUses:499Used by:Timeline
Symbol 501 GraphicUsed by:Timeline
Symbol 502 GraphicUsed by:Timeline
Symbol 503 GraphicUsed by:Timeline
Symbol 504 GraphicUsed by:Timeline
Symbol 505 MovieClipUses:245Used by:Timeline
Symbol 506 GraphicUsed by:Timeline
Symbol 507 GraphicUsed by:Timeline
Symbol 508 GraphicUsed by:513
Symbol 509 BitmapUsed by:510
Symbol 510 GraphicUses:509Used by:513
Symbol 511 GraphicUsed by:512
Symbol 512 MovieClipUses:511Used by:513
Symbol 513 MovieClipUses:508 510 512Used by:Timeline
Symbol 514 Sound [bakje]Used by:Timeline
Symbol 515 BitmapUsed by:516
Symbol 516 GraphicUses:515Used by:517
Symbol 517 MovieClipUses:516Used by:Timeline
Symbol 518 MovieClipUses:45Used by:Timeline
Symbol 519 GraphicUsed by:Timeline
Symbol 520 GraphicUsed by:540
Symbol 521 GraphicUsed by:540
Symbol 522 GraphicUsed by:540
Symbol 523 GraphicUsed by:540
Symbol 524 ShapeTweeningUsed by:540
Symbol 525 ShapeTweeningUsed by:540
Symbol 526 GraphicUsed by:540
Symbol 527 GraphicUsed by:540
Symbol 528 GraphicUsed by:540
Symbol 529 GraphicUsed by:540
Symbol 530 GraphicUsed by:540
Symbol 531 GraphicUsed by:540
Symbol 532 GraphicUsed by:540
Symbol 533 GraphicUsed by:540
Symbol 534 GraphicUsed by:540
Symbol 535 GraphicUsed by:540
Symbol 536 GraphicUsed by:540
Symbol 537 GraphicUsed by:540
Symbol 538 GraphicUsed by:540
Symbol 539 GraphicUsed by:540
Symbol 540 MovieClipUses:51 520 467 521 522 469 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539Used by:Timeline
Symbol 541 GraphicUsed by:548
Symbol 542 GraphicUsed by:548
Symbol 543 GraphicUsed by:548
Symbol 544 GraphicUsed by:548
Symbol 545 ShapeTweeningUsed by:548
Symbol 546 ShapeTweeningUsed by:548
Symbol 547 GraphicUsed by:548
Symbol 548 MovieClipUses:475 541 542 543 544 545 546 547 486 485 484 483 482 481 480 479 478 477 476Used by:Timeline
Symbol 549 Sound [verlichting]Used by:Timeline
Symbol 550 BitmapUsed by:551
Symbol 551 GraphicUses:550Used by:552
Symbol 552 MovieClipUses:551Used by:556
Symbol 553 BitmapUsed by:554
Symbol 554 GraphicUses:553Used by:555
Symbol 555 MovieClipUses:554Used by:556
Symbol 556 MovieClipUses:37 552 555Used by:Timeline
Symbol 557 BitmapUsed by:558
Symbol 558 GraphicUses:557Used by:756
Symbol 559 BitmapUsed by:560
Symbol 560 GraphicUses:559Used by:756
Symbol 561 BitmapUsed by:562
Symbol 562 GraphicUses:561Used by:756
Symbol 563 BitmapUsed by:564
Symbol 564 GraphicUses:563Used by:756
Symbol 565 BitmapUsed by:566
Symbol 566 GraphicUses:565Used by:756
Symbol 567 BitmapUsed by:568
Symbol 568 GraphicUses:567Used by:569
Symbol 569 MovieClipUses:568Used by:585
Symbol 570 BitmapUsed by:571
Symbol 571 GraphicUses:570Used by:572
Symbol 572 MovieClipUses:571Used by:585
Symbol 573 BitmapUsed by:574
Symbol 574 GraphicUses:573Used by:575
Symbol 575 MovieClipUses:574Used by:585
Symbol 576 BitmapUsed by:577
Symbol 577 GraphicUses:576Used by:578
Symbol 578 MovieClipUses:577Used by:585
Symbol 579 BitmapUsed by:580
Symbol 580 GraphicUses:579Used by:581
Symbol 581 MovieClipUses:580Used by:585
Symbol 582 BitmapUsed by:583
Symbol 583 GraphicUses:582Used by:584
Symbol 584 MovieClipUses:583Used by:585
Symbol 585 MovieClipUses:569 572 575 578 581 584Used by:756
Symbol 586 GraphicUsed by:587
Symbol 587 MovieClipUses:586Used by:590
Symbol 588 GraphicUsed by:589 726
Symbol 589 MovieClipUses:588Used by:590 618 716
Symbol 590 MovieClipUses:587 589Used by:591
Symbol 591 MovieClipUses:590Used by:611
Symbol 592 GraphicUsed by:593
Symbol 593 MovieClipUses:592Used by:596
Symbol 594 GraphicUsed by:595 734
Symbol 595 MovieClipUses:594Used by:596 618 716
Symbol 596 MovieClipUses:593 595Used by:597
Symbol 597 MovieClipUses:596Used by:611
Symbol 598 GraphicUsed by:599
Symbol 599 MovieClipUses:598Used by:600 601 755
Symbol 600 MovieClipUses:599Used by:602
Symbol 601 MovieClipUses:599Used by:602
Symbol 602 MovieClipUses:600 601Used by:611
Symbol 603 GraphicUsed by:604 748
Symbol 604 MovieClipUses:603Used by:609
Symbol 605 GraphicUsed by:607
Symbol 606 GraphicUsed by:607
Symbol 607 MovieClipUses:605 606Used by:608
Symbol 608 MovieClipUses:607Used by:609 618
Symbol 609 MovieClipUses:604 608Used by:610
Symbol 610 MovieClipUses:609Used by:611
Symbol 611 MovieClipUses:591 597 602 610Used by:612
Symbol 612 MovieClipUses:611Used by:755
Symbol 613 GraphicUsed by:614 615 754
Symbol 614 ButtonUses:613Used by:755
Symbol 615 ButtonUses:613Used by:755
Symbol 616 GraphicUsed by:755
Symbol 617 GraphicUsed by:755
Symbol 618 MovieClipUses:589 595 608Used by:755
Symbol 619 ShapeTweeningUsed by:755
Symbol 620 ShapeTweeningUsed by:755
Symbol 621 GraphicUsed by:622
Symbol 622 MovieClipUses:621Used by:664 755
Symbol 623 ShapeTweeningUsed by:755
Symbol 624 ShapeTweeningUsed by:755
Symbol 625 ShapeTweeningUsed by:755
Symbol 626 ShapeTweeningUsed by:755
Symbol 627 ShapeTweeningUsed by:755
Symbol 628 ShapeTweeningUsed by:755
Symbol 629 ShapeTweeningUsed by:755
Symbol 630 ShapeTweeningUsed by:755
Symbol 631 ShapeTweeningUsed by:755
Symbol 632 ShapeTweeningUsed by:755
Symbol 633 GraphicUsed by:755
Symbol 634 ShapeTweeningUsed by:755
Symbol 635 ShapeTweeningUsed by:755
Symbol 636 ShapeTweeningUsed by:755
Symbol 637 FontUsed by:638
Symbol 638 TextUses:637Used by:639
Symbol 639 MovieClipUses:638Used by:657 755
Symbol 640 GraphicUsed by:641
Symbol 641 MovieClipUses:640Used by:664 755
Symbol 642 ShapeTweeningUsed by:755
Symbol 643 ShapeTweeningUsed by:755
Symbol 644 GraphicUsed by:755
Symbol 645 GraphicUsed by:646 656
Symbol 646 MovieClipUses:645Used by:647
Symbol 647 MovieClipUses:646Used by:656 755
Symbol 648 GraphicUsed by:755
Symbol 649 FontUsed by:650 651 652 653 658 659 660 661 662
Symbol 650 EditableTextUses:649Used by:755
Symbol 651 EditableTextUses:649Used by:755
Symbol 652 EditableTextUses:649Used by:755
Symbol 653 EditableTextUses:649Used by:755
Symbol 654 GraphicUsed by:664
Symbol 655 GraphicUsed by:664
Symbol 656 ButtonUses:647 44 645Used by:664
Symbol 657 ButtonUses:639 37Used by:664
Symbol 658 EditableTextUses:649Used by:664
Symbol 659 EditableTextUses:649Used by:664
Symbol 660 EditableTextUses:649Used by:664
Symbol 661 EditableTextUses:649Used by:664
Symbol 662 EditableTextUses:649Used by:664
Symbol 663 ButtonUsed by:664
Symbol 664 MovieClipUses:654 622 655 656 657 641 658 659 660 661 662 663Used by:665
Symbol 665 MovieClipUses:664Used by:755
Symbol 666 GraphicUsed by:667
Symbol 667 MovieClipUses:666Used by:755
Symbol 668 ShapeTweeningUsed by:755
Symbol 669 ShapeTweeningUsed by:755
Symbol 670 ShapeTweeningUsed by:755
Symbol 671 ShapeTweeningUsed by:755
Symbol 672 GraphicUsed by:755
Symbol 673 ShapeTweeningUsed by:755
Symbol 674 ShapeTweeningUsed by:755
Symbol 675 ShapeTweeningUsed by:755
Symbol 676 ShapeTweeningUsed by:755
Symbol 677 ShapeTweeningUsed by:755
Symbol 678 ShapeTweeningUsed by:755
Symbol 679 ShapeTweeningUsed by:755
Symbol 680 ShapeTweeningUsed by:755
Symbol 681 ShapeTweeningUsed by:755
Symbol 682 ShapeTweeningUsed by:755
Symbol 683 ShapeTweeningUsed by:755
Symbol 684 ShapeTweeningUsed by:755
Symbol 685 GraphicUsed by:755
Symbol 686 GraphicUsed by:755
Symbol 687 ShapeTweeningUsed by:755
Symbol 688 ShapeTweeningUsed by:755
Symbol 689 ShapeTweeningUsed by:755
Symbol 690 ShapeTweeningUsed by:755
Symbol 691 ShapeTweeningUsed by:755
Symbol 692 ShapeTweeningUsed by:755
Symbol 693 GraphicUsed by:755
Symbol 694 ShapeTweeningUsed by:755
Symbol 695 ShapeTweeningUsed by:755
Symbol 696 ShapeTweeningUsed by:755
Symbol 697 ShapeTweeningUsed by:755
Symbol 698 ShapeTweeningUsed by:700
Symbol 699 GraphicUsed by:700
Symbol 700 MovieClipUses:698 699Used by:755
Symbol 701 ShapeTweeningUsed by:755
Symbol 702 GraphicUsed by:755
Symbol 703 GraphicUsed by:755
Symbol 704 ShapeTweeningUsed by:755
Symbol 705 GraphicUsed by:755
Symbol 706 ShapeTweeningUsed by:755
Symbol 707 ShapeTweeningUsed by:755
Symbol 708 ShapeTweeningUsed by:755
Symbol 709 ShapeTweeningUsed by:755
Symbol 710 GraphicUsed by:755
Symbol 711 ShapeTweeningUsed by:755
Symbol 712 ShapeTweeningUsed by:755
Symbol 713 ShapeTweeningUsed by:755
Symbol 714 GraphicUsed by:715 749
Symbol 715 MovieClipUses:714Used by:716
Symbol 716 MovieClipUses:589 595 715Used by:755
Symbol 717 ShapeTweeningUsed by:755
Symbol 718 ShapeTweeningUsed by:755
Symbol 719 ShapeTweeningUsed by:755
Symbol 720 GraphicUsed by:725
Symbol 721 ShapeTweeningUsed by:725
Symbol 722 ShapeTweeningUsed by:725
Symbol 723 ShapeTweeningUsed by:725
Symbol 724 GraphicUsed by:725
Symbol 725 MovieClipUses:720 721 722 723 724Used by:727
Symbol 726 MovieClipUses:588Used by:727
Symbol 727 MovieClipUses:725 726Used by:728
Symbol 728 MovieClipUses:727Used by:752
Symbol 729 ShapeTweeningUsed by:733
Symbol 730 ShapeTweeningUsed by:733
Symbol 731 ShapeTweeningUsed by:733
Symbol 732 GraphicUsed by:733
Symbol 733 MovieClipUses:729 730 731 732Used by:735
Symbol 734 MovieClipUses:594Used by:735
Symbol 735 MovieClipUses:733 734Used by:736
Symbol 736 MovieClipUses:735Used by:752
Symbol 737 GraphicUsed by:738
Symbol 738 MovieClipUses:737Used by:739 740
Symbol 739 MovieClipUses:738Used by:741
Symbol 740 MovieClipUses:738Used by:741
Symbol 741 MovieClipUses:739 740Used by:752
Symbol 742 ShapeTweeningUsed by:748
Symbol 743 ShapeTweeningUsed by:748
Symbol 744 ShapeTweeningUsed by:748
Symbol 745 ShapeTweeningUsed by:748
Symbol 746 ShapeTweeningUsed by:748
Symbol 747 GraphicUsed by:748
Symbol 748 MovieClipUses:603 742 743 744 745 746 747Used by:750
Symbol 749 MovieClipUses:714Used by:750
Symbol 750 MovieClipUses:748 749Used by:751
Symbol 751 MovieClipUses:750Used by:752
Symbol 752 MovieClipUses:728 736 741 751Used by:753
Symbol 753 MovieClipUses:752Used by:755
Symbol 754 ButtonUses:613Used by:755
Symbol 755 MovieClipUses:612 614 615 616 599 617 618 619 620 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 639 641 642 643 644 647 648 650 651 652 653 665 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 700 701 702 703 704 705 706 707 708 709 710 711 712 713 716 717 718 719 753 754Used by:756 793
Symbol 756 MovieClipUses:402 558 560 562 564 566 585 755Used by:Timeline
Symbol 757 MovieClipUsed by:Timeline
Symbol 758 BitmapUsed by:759
Symbol 759 GraphicUses:758Used by:760
Symbol 760 MovieClipUses:759Used by:761
Symbol 761 MovieClipUses:760Used by:793
Symbol 762 BitmapUsed by:764 771
Symbol 763 BitmapUsed by:764 783
Symbol 764 GraphicUses:762 763Used by:765
Symbol 765 MovieClipUses:764Used by:793
Symbol 766 GraphicUsed by:767
Symbol 767 MovieClipUses:766Used by:793
Symbol 768 MovieClipUsed by:793
Symbol 769 GraphicUsed by:770
Symbol 770 MovieClipUses:769Used by:786
Symbol 771 GraphicUses:762Used by:772
Symbol 772 MovieClipUses:771Used by:782
Symbol 773 BitmapUsed by:774
Symbol 774 GraphicUses:773Used by:775
Symbol 775 MovieClipUses:774Used by:782
Symbol 776 BitmapUsed by:777
Symbol 777 GraphicUses:776Used by:778
Symbol 778 MovieClipUses:777Used by:782
Symbol 779 BitmapUsed by:780
Symbol 780 GraphicUses:779Used by:781
Symbol 781 MovieClipUses:780Used by:782
Symbol 782 MovieClipUses:772 775 778 781Used by:786
Symbol 783 GraphicUses:763Used by:784
Symbol 784 MovieClipUses:783Used by:785
Symbol 785 MovieClipUses:784Used by:786
Symbol 786 MovieClipUses:770 782 785Used by:787
Symbol 787 MovieClipUses:786Used by:793
Symbol 788 BitmapUsed by:789
Symbol 789 GraphicUses:788Used by:790
Symbol 790 MovieClipUses:789Used by:791
Symbol 791 MovieClipUses:790Used by:792
Symbol 792 MovieClipUses:791Used by:793
Symbol 793 MovieClipUses:761 765 767 768 787 755 792Used by:Timeline
Symbol 794 Sound [dood_sound]Used by:Timeline

Instance Names

"roze_back"Frame 1Symbol 31 MovieClip
"backgroundOver"Frame 1Symbol 34 MovieClip
"lifeline_extension"Frame 1Symbol 36 MovieClip
"backgroundOver"Frame 1Symbol 34 MovieClip
"perc_txt"Frame 1Symbol 40 EditableText
"load_anim"Frame 1Symbol 46 MovieClip
"fwa"Frame 1Symbol 49 MovieClip
"zwart"Frame 1Symbol 50 MovieClip
"soundeffex"Frame 1Symbol 51 MovieClip
"roze_back"Frame 4Symbol 31 MovieClip
"glans"Frame 22Symbol 110 MovieClip
"maskerBack"Frame 22Symbol 112 MovieClip
"konijn"Frame 22Symbol 110 MovieClip
"subTitle_txt"Frame 22Symbol 114 EditableText
"logo_mc"Frame 22Symbol 119 MovieClip
"pointer_mc"Frame 22Symbol 123 MovieClip
"textStart"Frame 22Symbol 214 MovieClip
"konijnVal_btn"Frame 31Symbol 215 Button
"konijn"Frame 33Symbol 110 MovieClip
"pincet_front"Frame 38Symbol 246 MovieClip
"scalpel"Frame 38Symbol 292 MovieClip
"marker"Frame 38Symbol 307 MovieClip
"krabber"Frame 38Symbol 325 MovieClip
"rabbit"Frame 38Symbol 327 MovieClip
"shockThing_mc"Frame 38Symbol 341 MovieClip
"shockThing2_mc"Frame 38Symbol 345 MovieClip
"subTitle_txt"Frame 38Symbol 346 EditableText
"info_mc"Frame 38Symbol 364 MovieClip
"white2"Frame 38Symbol 365 MovieClip
"fadeOut"Frame 38Symbol 366 MovieClip
"black"Frame 41Symbol 373 MovieClip
"pijltje1"Frame 99Symbol 398 MovieClip
"tekstLayers"Frame 99Symbol 51 MovieClip
"vachtje"Frame 99Symbol 407 MovieClip
"maskee"Frame 99Symbol 412 MovieClip
"btn"Frame 99Symbol 415 MovieClip
"scratchControl"Frame 99Symbol 416 MovieClip
"maskee2"Frame 99Symbol 418 MovieClip
"druppel_mc"Frame 99Symbol 420 MovieClip
"krabberClick_btn"Frame 99Symbol 421 Button
"textHint_mc"Frame 99Symbol 422 MovieClip
"markerDropshadow"Frame 102Symbol 296 MovieClip
"container3"Frame 109Symbol 51 MovieClip
"container2"Frame 109Symbol 51 MovieClip
"stift"Frame 109Symbol 431 MovieClip
"stiftstatisch"Frame 123Symbol 307 MovieClip
"marker"Frame 123Symbol 307 MovieClip
"batteryShape"Frame 128Symbol 433 MovieClip
"battery"Frame 128Symbol 448 MovieClip
"container1"Frame 128Symbol 51 MovieClip
"mask"Frame 128Symbol 472 MovieClip
"hitBelly"Frame 128Symbol 474 MovieClip
"maskee"Frame 128Symbol 412 MovieClip
"stift"Frame 128Symbol 431 MovieClip
"krassen"Frame 128Symbol 51 MovieClip
"rand"Frame 128Symbol 490 MovieClip
"btnOver"Frame 128Symbol 492 Button
"krabber"Frame 128Symbol 325 MovieClip
"scalpel"Frame 128Symbol 292 MovieClip
"textHint_mc"Frame 128Symbol 422 MovieClip
"pijltje2"Frame 129Symbol 496 MovieClip
"scalpel"Frame 134Symbol 292 MovieClip
"pincet_backC"Frame 134Symbol 500 MovieClip
"pincet_backB"Frame 134Symbol 500 MovieClip
"pincet_backA"Frame 134Symbol 500 MovieClip
"pincet_back0"Frame 134Symbol 500 MovieClip
"pincet_back1"Frame 134Symbol 500 MovieClip
"pincet_front3"Frame 134Symbol 505 MovieClip
"pincet_front"Frame 134Symbol 246 MovieClip
"konijnLeft"Frame 134Symbol 402 MovieClip
"textHint_mc"Frame 134Symbol 422 MovieClip
"pincet_back2"Frame 139Symbol 500 MovieClip
"krabber"Frame 140Symbol 325 MovieClip
"tray"Frame 140Symbol 513 MovieClip
"pincet_back3"Frame 140Symbol 500 MovieClip
"pincet_front3"Frame 140Symbol 505 MovieClip
"battery"Frame 140Symbol 448 MovieClip
"pincet_front"Frame 140Symbol 246 MovieClip
"pil"Frame 153Symbol 517 MovieClip
"white"Frame 161Symbol 518 MovieClip
"pil"Frame 161Symbol 517 MovieClip
"rand"Frame 161Symbol 548 MovieClip
"wolken"Frame 174Symbol 556 MovieClip
"kaleidoscope"Frame 191Symbol 757 MovieClip
"white"Frame 346Symbol 45 MovieClip
"dood_mc"Frame 346Symbol 793 MovieClip
"_video"Symbol 16 MovieClip [VideoPlayer] Frame 1Symbol 15 Video
"boundingBox_mc"Symbol 20 MovieClip [FLVPlayback] Frame 1Symbol 14 MovieClip
"backgroundOver"Symbol 55 MovieClip Frame 1Symbol 34 MovieClip
"neus"Symbol 109 MovieClip Frame 1Symbol 69 MovieClip
"oren"Symbol 109 MovieClip Frame 1Symbol 89 MovieClip
"konijnVal_mc"Symbol 110 MovieClip Frame 1Symbol 109 MovieClip
"infobg_mc"Symbol 163 MovieClip Frame 1Symbol 153 MovieClip
"txtContact_mc"Symbol 163 MovieClip Frame 2Symbol 162 MovieClip
"infobg_mc"Symbol 171 MovieClip Frame 1Symbol 153 MovieClip
"txtContact_mc"Symbol 171 MovieClip Frame 2Symbol 170 MovieClip
"infobg_mc"Symbol 196 MovieClip Frame 1Symbol 153 MovieClip
"txtContact_mc"Symbol 196 MovieClip Frame 2Symbol 195 MovieClip
"blue_mc"Symbol 205 MovieClip Frame 1Symbol 126 MovieClip
"black_mc"Symbol 205 MovieClip Frame 1Symbol 128 MovieClip
"txtInfo_mc"Symbol 205 MovieClip Frame 1Symbol 132 MovieClip
"icon_mc"Symbol 205 MovieClip Frame 1Symbol 137 MovieClip
"info-contact_mc"Symbol 205 MovieClip Frame 5Symbol 142 MovieClip
"clip1"Symbol 205 MovieClip Frame 30Symbol 163 MovieClip
"clip2"Symbol 205 MovieClip Frame 30Symbol 171 MovieClip
"clip3"Symbol 205 MovieClip Frame 30Symbol 196 MovieClip
"box"Symbol 205 MovieClip Frame 30Symbol 201 MovieClip
"but1"Symbol 205 MovieClip Frame 30Symbol 203 Button
"but2"Symbol 205 MovieClip Frame 30Symbol 203 Button
"but3"Symbol 205 MovieClip Frame 30Symbol 203 Button
"icon_mc"Symbol 205 MovieClip Frame 30Symbol 137 MovieClip
"txt_mc"Symbol 214 MovieClip Frame 1Symbol 211 MovieClip
"pincetDropshadow"Symbol 246 MovieClip Frame 1Symbol 222 MovieClip
"cutting"Symbol 277 MovieClip Frame 9Symbol 276 MovieClip
"shade"Symbol 292 MovieClip Frame 1Symbol 277 MovieClip
"scalpelDropshadow"Symbol 292 MovieClip Frame 1Symbol 279 MovieClip
"cutting"Symbol 292 MovieClip Frame 9Symbol 276 MovieClip
"markerDropshadow"Symbol 307 MovieClip Frame 1Symbol 296 MovieClip
"krabberDropshadow"Symbol 322 MovieClip Frame 1Symbol 311 MovieClip
"shade"Symbol 325 MovieClip Frame 1Symbol 322 MovieClip
"krabberDropshadow"Symbol 325 MovieClip Frame 1Symbol 311 MovieClip
"hit"Symbol 341 MovieClip Frame 1Symbol 332 MovieClip
"stroom"Symbol 341 MovieClip Frame 2Symbol 339 MovieClip
"hit"Symbol 345 MovieClip Frame 1Symbol 332 MovieClip
"stroom"Symbol 345 MovieClip Frame 2Symbol 339 MovieClip
"klok_txt"Symbol 364 MovieClip Frame 1Symbol 347 EditableText
"black"Symbol 366 MovieClip Frame 1Symbol 45 MovieClip
"black"Symbol 366 MovieClip Frame 71Symbol 45 MovieClip
"follow"Symbol 398 MovieClip Frame 1Symbol 51 MovieClip
"follow"Symbol 398 MovieClip Frame 18Symbol 51 MovieClip
"txt_mc"Symbol 422 MovieClip Frame 1Symbol 211 MovieClip
"stift"Symbol 431 MovieClip Frame 1Symbol 430 MovieClip
"follow"Symbol 472 MovieClip Frame 1Symbol 51 MovieClip
"follow"Symbol 496 MovieClip Frame 1Symbol 51 MovieClip
"follow"Symbol 496 MovieClip Frame 18Symbol 51 MovieClip
"shade"Symbol 500 MovieClip Frame 12Symbol 499 MovieClip
"shade"Symbol 505 MovieClip Frame 12Symbol 245 MovieClip
"vlak"Symbol 513 MovieClip Frame 1Symbol 512 MovieClip
"follow"Symbol 540 MovieClip Frame 1Symbol 51 MovieClip
"title_mc"Symbol 608 MovieClip Frame 1Symbol 607 MovieClip
"close_btn"Symbol 664 MovieClip Frame 1Symbol 656 Button
"send_btn"Symbol 664 MovieClip Frame 1Symbol 657 Button
"naamVan_txt"Symbol 664 MovieClip Frame 1Symbol 658 EditableText
"emailVan_txt"Symbol 664 MovieClip Frame 1Symbol 659 EditableText
"naamAan_txt"Symbol 664 MovieClip Frame 1Symbol 660 EditableText
"emailAan_txt"Symbol 664 MovieClip Frame 1Symbol 661 EditableText
"sendFriend_btn"Symbol 755 MovieClip Frame 1Symbol 614 Button
"playAgain_btn"Symbol 755 MovieClip Frame 1Symbol 615 Button
"doekMovie_mc"Symbol 756 MovieClip Frame 20Symbol 755 MovieClip
"doekMovie_mc"Symbol 793 MovieClip Frame 30Symbol 755 MovieClip
"wolk_mc"Symbol 793 MovieClip Frame 51Symbol 792 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "image"
ExportAssets (56)Timeline Frame 1Symbol 2 as "darmB"
ExportAssets (56)Timeline Frame 1Symbol 5 as "pieceB"
ExportAssets (56)Timeline Frame 1Symbol 6 as "darmC"
ExportAssets (56)Timeline Frame 1Symbol 9 as "piece"
ExportAssets (56)Timeline Frame 1Symbol 11 as "reveal"
ExportAssets (56)Timeline Frame 1Symbol 16 as "VideoPlayer"
ExportAssets (56)Timeline Frame 1Symbol 19 as "Icon"
ExportAssets (56)Timeline Frame 1Symbol 20 as "FLVPlayback"
ExportAssets (56)Timeline Frame 1Symbol 795 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 796 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 797 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 798 as "__Packages.mx.transitions.easing.Bounce"
ExportAssets (56)Timeline Frame 1Symbol 799 as "__Packages.com.mosesSupposes.fuse.Shortcuts"
ExportAssets (56)Timeline Frame 1Symbol 800 as "__Packages.com.mosesSupposes.fuse.FuseKitCommon"
ExportAssets (56)Timeline Frame 1Symbol 801 as "__Packages.com.mosesSupposes.fuse.ZigoEngine"
ExportAssets (56)Timeline Frame 1Symbol 802 as "__Packages.com.mosesSupposes.fuse.ZManager"
ExportAssets (56)Timeline Frame 1Symbol 803 as "__Packages.com.mosesSupposes.fuse.PennerEasing"
ExportAssets (56)Timeline Frame 1Symbol 12 as "__Packages.mx.video.FLVPlayback"
ExportAssets (56)Timeline Frame 1Symbol 21 as "__Packages.mx.video.VideoPlayer"
ExportAssets (56)Timeline Frame 1Symbol 22 as "__Packages.mx.video.INCManager"
ExportAssets (56)Timeline Frame 1Symbol 23 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 24 as "__Packages.mx.video.VideoError"
ExportAssets (56)Timeline Frame 1Symbol 25 as "__Packages.mx.video.UIManager"
ExportAssets (56)Timeline Frame 1Symbol 26 as "__Packages.mx.utils.Delegate"
ExportAssets (56)Timeline Frame 1Symbol 27 as "__Packages.mx.video.SMILManager"
ExportAssets (56)Timeline Frame 1Symbol 28 as "__Packages.mx.video.NCManager"
ExportAssets (56)Timeline Frame 1Symbol 29 as "__Packages.mx.video.CuePointManager"
ExportAssets (56)Timeline Frame 21Symbol 52 as "intro"
ExportAssets (56)Timeline Frame 21Symbol 53 as "schot"
ExportAssets (56)Timeline Frame 21Symbol 54 as "val"
ExportAssets (56)Timeline Frame 38Symbol 367 as "flatline"
ExportAssets (56)Timeline Frame 38Symbol 368 as "shock"
ExportAssets (56)Timeline Frame 75Symbol 392 as "knetterSnd"
ExportAssets (56)Timeline Frame 99Symbol 419 as "druppel"
ExportAssets (56)Timeline Frame 99Symbol 423 as "pakop"
ExportAssets (56)Timeline Frame 100Symbol 424 as "scheer"
ExportAssets (56)Timeline Frame 128Symbol 493 as "snijden"
ExportAssets (56)Timeline Frame 140Symbol 514 as "bakje"
ExportAssets (56)Timeline Frame 161Symbol 549 as "verlichting"
ExportAssets (56)Timeline Frame 346Symbol 794 as "dood_sound"

Labels

"arrow"Frame 33
"ending"Frame 34
"shock"Frame 38
"scheren"Frame 99
"snijden"Frame 128
"pincet"Frame 134
"pincet2"Frame 140
"pil"Frame 153
"end"Frame 161
"repeat"Frame 195
"gameOver"Frame 346
"loaded"Symbol 46 MovieClip Frame 104
"in"Symbol 89 MovieClip Frame 3
"out"Symbol 89 MovieClip Frame 11
"mouseoff"Symbol 137 MovieClip Frame 1
"mouseover"Symbol 137 MovieClip Frame 2
"mousedown"Symbol 137 MovieClip Frame 15
"mouseout"Symbol 137 MovieClip Frame 26
"video"Symbol 162 MovieClip Frame 1
"goclip"Symbol 163 MovieClip Frame 2
"endclip"Symbol 163 MovieClip Frame 25
"goclip"Symbol 171 MovieClip Frame 2
"endclip"Symbol 171 MovieClip Frame 25
"goclip"Symbol 196 MovieClip Frame 2
"endclip"Symbol 196 MovieClip Frame 25
"in"Symbol 214 MovieClip Frame 2
"out"Symbol 214 MovieClip Frame 13
"in"Symbol 246 MovieClip Frame 12
"uit"Symbol 246 MovieClip Frame 17
"shade"Symbol 292 MovieClip Frame 9
"spS"Symbol 364 MovieClip Frame 2
"spA"Symbol 364 MovieClip Frame 43
"spB"Symbol 364 MovieClip Frame 83
"spC"Symbol 364 MovieClip Frame 123
"spD"Symbol 364 MovieClip Frame 163
"again"Symbol 366 MovieClip Frame 71
"in"Symbol 422 MovieClip Frame 2
"out"Symbol 422 MovieClip Frame 13
"in"Symbol 505 MovieClip Frame 12
"uit"Symbol 505 MovieClip Frame 17
"loopz"Symbol 793 MovieClip Frame 50

Dynamic Text Variables

timeDisplaySymbol 40 EditableText"<p align="center"><font face="OCR A Extended" size="72" color="#ffffff" letterSpacing="-7.000000" kerning="1">0% &nbsp;&nbsp;&nbsp;</font></p>"
timeDisplaySymbol 347 EditableText"<p align="center"><font face="OCR A Extended" size="57" color="#999999" letterSpacing="0.000000" kerning="1">0:00</font></p>"
_root.naamVanSymbol 658 EditableText"your name"
_root.emailVanSymbol 659 EditableText"your e-mail"
_root.naamAanSymbol 660 EditableText"friends name"
_root.emailAanSymbol 661 EditableText"friends e-mail"
errorTextSymbol 662 EditableText""




http://swfchan.com/22/108321/info.shtml
Created: 15/3 -2019 15:36:16 Last modified: 15/3 -2019 15:36:16 Server time: 05/11 -2024 19:40:46