I am taking over a project which is very complex and i can’t get my head around it, although it is a simple menu!
It comprises of a web page, an xml doc and a .swf, all of the code i will copy and paste below - my main question is how is the .swf finding the image files in the .xml?
XML
<itemGroup id="4030faec731c1210VgnVCM100000ba42f00aRCRD" embedFonts="true">
−
<item id="3030faec731c1210VgnVCM100000ba42f00a____" template="image" layoutId="1" img="/Dcom-Global/Local%20Assets/Images/Full%20Size%20Images/dtt_metal_460x270.jpg">
<text id="title">Metals industry in the downturn</text>
<text id="subtitle">Managing in volatile times</text>
<text id="button">MORE</text>
−
<link>
/view/en_GX/global/insights/focus-on-the-issues/article/56a98bed57912210VgnVCM100000ba42f00aRCRD.htm
</link>
<tracking/>
</item>
−
<item id="13ba812a64702210VgnVCM100000ba42f00a____" template="image" layoutId="2" img="/Dcom-Global/Local%20Assets/Images/Full%20Size%20Images/dtt_cyber_470x260.jpg">
<text id="title">Cybersecurity</text>
<text id="subtitle">Everybody's imperative</text>
<text id="button">MORE</text>
−
<link>
/view/en_GX/global/insights/focus-on-the-issues/article/d3838bed57912210VgnVCM100000ba42f00aRCRD.htm
</link>
<tracking/>
</item>
−
<item id="5d711b48d4702210VgnVCM100000ba42f00a____" template="image" layoutId="3" img="/Dcom-Global/Local%20Assets/Images/Full%20Size%20Images/dtt_downturn_460x270.jpg">
<text id="title">Corporate governance in the downturn</text>
<text id="subtitle">Managing in volatile times</text>
<text id="button">MORE</text>
−
<link>
/view/en_GX/global/insights/focus-on-the-issues/article/23e0cf6d88912210VgnVCM100000ba42f00aRCRD.htm
</link>
<tracking/>
</item>
−
<item id="08e67ce7fcd52210VgnVCM200000bb42f00a____" template="image" layoutId="4" img="/Dcom-Global/Local%20Assets/Images/Full%20Size%20Images/dtt_risk_640x270.jpg">
<text id="title">Risk management in the downturn</text>
<text id="subtitle">Managing in volatile times</text>
<text id="button">MORE</text>
−
<link>
/view/en_GX/global/insights/focus-on-the-issues/article/5e1033a3b3d52210VgnVCM200000bb42f00aRCRD.htm
</link>
<tracking/>
</item>
</itemGroup>
HTML Embed
<script language="javascript" type="text/javascript" src="/ecm-cm-dpm-web/common/flash/library/js/swfobject.js"></script>
<script language="javascript" type="text/javascript" src="/ecm-cm-dpm-web/scripts/dhomeFlash.js"></script>
<script type="text/javascript">
<!--
function createMain(){
// create main flash object
var swfSource="/ecm-cm-dpm-web/common/flash/resources/global/flash/preloader_home.swf";
var baseUrl = document.location.protocol + "//" + document.location.host ;
var flashvars = {};
//set xml path
var sConfigPath = baseUrl + "/ecm-cm-dpm-web/getflash?queryParams=view=dhome/cid=" + "4030faec731c1210VgnVCM100000ba42f00aRCRD";
flashvars.configPath = sConfigPath;
//set SWFs path
flashvars.swfPath = baseUrl + "/ecm-cm-dpm-web/common/flash/resources/global/flash/";
//set assets path
flashvars.assetsPath = baseUrl + "/assets/flash_content/";
//set assets path
flashvars.mediaAssetsPath = baseUrl + "/assets";
//set language
flashvars.configLang = "en_US";
var params = {};
params.menu = "false";
params.wmode = "transparent";
params.scale = "noscale";
params.align = "LT";
params.allowScriptAccess = "always";
var attributes = {};
attributes.id = "home";
attributes.name = "home";
swfobject.embedSWF(swfSource, "swf", "100%", "430", "9.0.0", "/ecm-cm-dpm-web/common/flash/resources/global/flash/expressInstall.swf", flashvars, params, attributes);
}
//-->
</script>
<div id="detectContainer">
<div id="detect">
<script type="text/javascript">
<!--
// <![CDATA[
// create accessibility detection flash object
var swfSource="/ecm-cm-dpm-web/common/flash/resources/global/flash/access_detect.swf";
var flashvars = {};
var params = {};
var attributes = {};
attributes.id = "home";
attributes.name = "home";
swfobject.embedSWF(swfSource, "detect", "100%", "430", "9.0.0", "/ecm-cm-dpm-web/common/flash/resources/global/flash/expressInstall.swf", flashvars, params, attributes);
// ]]>
//-->
</script>
</div>
</div>
<div id="flashPortlet">
<div id="swfContainer">
<div id="swf">
<p align="center" class="homeFlashPlayerMsg">
<font color="#666666" size="2" face="Verdana, Arial, Helvetica, sans-serif">
Please install
<a href="http://www.adobe.com/go/getflash/" target="_blank">
Adobe Flash Player
</a>.
</font>
</p>
</div>
</div>
</div>
And actionscript…
function determineLength()
{
totalLength = Math.floor(duration);
totalMinutes = Math.floor(totalLength / 60);
if (totalMinutes < 10)
{
totalMinutes = "0" + totalMinutes;
}
totalSeconds = Math.floor(totalLength) % 60;
if (totalSeconds < 10)
{
totalSeconds = "0" + totalSeconds;
}
videoLength = totalMinutes + ":" + totalSeconds;
}
function determineCurrent()
{
if (ns.time > duration)
{
ns.pause(true);
ns.seek(0);
playSwitch = false;
videoplayer.onEnterFrame = function ()
{
if (this._alpha - 7 <= 0)
{
videoplayer._alpha = 0;
delete this.onEnterFrame;
videoplayer._y = -1000;
prev_btn.enabled = true;
next_btn.enabled = true;
more_btn.enabled = true;
autoAdvanceInterval = setInterval(autoAdvance, 10000);
return;
}
this._alpha = this._alpha - 7;
}
;
}
currentMinutes = Math.floor(current / 60);
if (currentMinutes < 10)
{
currentMinutes = "0" + currentMinutes;
}
currentSeconds = Math.floor(current) % 60;
if (currentSeconds < 10)
{
currentSeconds = "0" + currentSeconds;
}
currentPosition = currentMinutes + ":" + currentSeconds;
}
function timeStatus()
{
determineCurrent();
videoplayer.controls.statusClip.timeStatusText.text = currentPosition + "/" + videoLength;
}
function statusCheck()
{
if (isNaN(duration))
{
videoplayer.controls.statusClip._visible = false;
return;
}
determineLength();
videoplayer.controls.statusClip._visible = true;
clearInterval(statusCheckInterval);
}
function videoStatus()
{
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
videoplayer.controls.loader.loadbar._width = amountLoaded * 350;
videoplayer.controls.loader.scrub._x = ns.time / duration * 350;
current = Math.floor(ns.time);
timeStatus();
}
function scrubit()
{
ns.seek(Math.floor(videoplayer.controls.loader.scrub._x / 350 * duration));
timeStatus();
}
function setVolume()
{
newVolume = Math.floor(videoplayer.controls.volumeSlider.sliderBar._x) * 1.667;
audio_sound.setVolume(newVolume);
volumeSwitch = true;
}
function autoAdvance()
{
nextPanel();
}
var myXML = new XML();
myXML.ignoreWhite = true;
myXML.load(configPath);
myXML.onLoad = function (success)
{
if (success)
{
var slot1X = 160;
var slot1Y = 51;
var slot1Scale = 100;
var movedRightX = 810;
var slot2X = 180;
var slot2Y = 33;
var slot2Scale = 94;
var slot3X = 197;
var slot3Y = 21;
var slot3Scale = 89;
var slot4X = 213;
var slot4Y = 9;
var slot4Scale = 84;
var slot5X = 228;
var slot5Y = 0;
var slot5Scale = 80;
var totalPanels = myXML.firstChild.firstChild.childNodes.length;
panel1._y = slot1Y;
if (totalPanels > 1)
{
panel2._y = slot2Y;
}
if (totalPanels > 2)
{
panel3._y = slot3Y;
}
if (totalPanels > 3)
{
panel4._y = slot4Y;
}
if (totalPanels > 4)
{
panel5._y = slot5Y;
}
panel5.swapDepths(1);
panel4.swapDepths(2);
panel3.swapDepths(3);
panel2.swapDepths(4);
panel1.swapDepths(5);
videoplayer.swapDepths(10);
var topPanel = 1;
var featuredURL = "";
xmlVideo = new Array();
xmlSwf = new Array();
xmlImage = new Array();
xmlTitle = new Array();
xmlSubtitle = new Array();
xmlButton = new Array();
xmlURL = new Array();
i = 1;
while (i <= totalPanels)
{
var targetPanel = eval("panel" + i);
var resourcePath = mediaAssetsPath;
if (myXML.firstChild.firstChild.childNodes[i - 1].attributes.template == "video")
{
xmlVideo* = myXML.firstChild.firstChild.childNodes[i - 1].attributes.video;
xmlImage* = myXML.firstChild.firstChild.childNodes[i - 1].attributes.img;
loadMovie(resourcePath + xmlImage*, targetPanel.empty);
targetPanel.btnPreviewPlay._alpha = 75;
targetPanel.btnPreviewPlay.enabled = true;
}
if (myXML.firstChild.firstChild.childNodes[i - 1].attributes.template == "swf")
{
xmlSwf* = myXML.firstChild.firstChild.childNodes[i - 1].attributes.swf;
var url = resourcePath + xmlSwf*;
var movieClip = targetPanel.empty;
var listenerObj = new Object();
listenerObj.onLoadInit = function (target_mc)
{
targetPanel.empty.stop();
}
;
var movieClipLoader = new MovieClipLoader();
movieClipLoader.addListener(listenerObj);
movieClipLoader.loadClip(url, movieClip);
targetPanel.btnPreviewPlay.enabled = false;
}
if (myXML.firstChild.firstChild.childNodes[i - 1].attributes.template == "image")
{
xmlImage* = myXML.firstChild.firstChild.childNodes[i - 1].attributes.img;
loadMovie(resourcePath + xmlImage*, targetPanel.empty);
targetPanel.btnPreviewPlay.enabled = false;
}
xmlTitle* = myXML.firstChild.firstChild.childNodes[i - 1].firstChild.firstChild.nodeValue;
xmlSubtitle* = myXML.firstChild.firstChild.childNodes[i - 1].childNodes[1].firstChild.nodeValue;
xmlButton* = myXML.firstChild.firstChild.childNodes[i - 1].childNodes[2].firstChild.nodeValue;
xmlURL* = myXML.firstChild.firstChild.childNodes[i - 1].childNodes[3].firstChild.nodeValue;
targetPanel.txtTitle.text = xmlTitle*;
targetPanel.txtSubtitle.text = xmlSubtitle*;
targetPanel.txtMore.text = xmlButton*;
++i;
}
next_btn.onRelease = function ()
{
clearInterval(autoAdvanceInterval);
nextPanel();
autoAdvanceInterval = setInterval(autoAdvance, 10000);
}
;
prev_btn.onRelease = function ()
{
clearInterval(autoAdvanceInterval);
prevPanel();
autoAdvanceInterval = setInterval(autoAdvance, 10000);
}
;
more_btn.onRelease = function ()
{
featuredURL = xmlURL[topPanel];
getURL(featuredURL, "_self");
}
;
_global.nextPanel = function ()
{
next_btn.enabled = false;
prev_btn.enabled = false;
stopFlash();
var instanceToMove = eval("panel" + topPanel);
var lastSlotX = eval("slot" + totalPanels + "X");
var lastSlotY = eval("slot" + totalPanels + "Y");
var lastSlotScale = eval("slot" + totalPanels + "Scale");
instanceToMove.onEnterFrame = function ()
{
var myBlur = new flash.filters.BlurFilter(20, 0, 1);
var myTempFilters = this.filters;
myTempFilters.push(myBlur);
this.filters = myTempFilters;
if (this._x + 70 >= movedRightX)
{
this._x = movedRightX;
this.filters = [];
delete (this.onEnterFrame);
this.swapDepths(0);
var nextDepth = 5;
i = 1;
while (i < totalPanels)
{
var promotedPanelNum = topPanel + i;
if (promotedPanelNum > totalPanels)
{
promotedPanelNum = promotedPanelNum - totalPanels;
}
var promotedPanel = eval("panel" + promotedPanelNum);
promotedPanel.swapDepths(nextDepth);
--nextDepth;
++i;
}
instanceToMove.onEnterFrame = function ()
{
if (this._xscale - 5 <= lastSlotScale)
{
this._xscale = lastSlotScale;
this._yscale = lastSlotScale;
this._y = lastSlotY;
delete this.onEnterFrame;
instanceToMove.onEnterFrame = function ()
{
this.filters = myTempFilters;
if (this._x - 50 <= lastSlotX)
{
this._x = lastSlotX;
this.filters = [];
delete this.onEnterFrame;
++topPanel;
if (topPanel > totalPanels)
{
topPanel = topPanel - totalPanels;
}
next_btn.enabled = true;
prev_btn.enabled = true;
checkForVideo();
checkForFlash();
return;
}
this._x = this._x - 50;
}
;
return;
}
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
this._x = this._x + 5;
this._y = this._y - 10;
}
;
return;
}
this._x = this._x + 70;
}
;
i = 1;
for (;;)
{
if (i > totalPanels)
{
return;
}
var currentPanel = eval("panel" + i);
if (currentPanel > totalPanels)
{
currentPanel = currentPanel - totalPanels;
}
if (currentPanel._x == slot2X)
{
currentPanel.onEnterFrame = function ()
{
if (this._xscale + 1 >= slot1Scale)
{
this._xscale = slot1Scale;
this._yscale = slot1Scale;
this._x = slot1X;
this._y = slot1Y;
delete this.onEnterFrame;
return;
}
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._x = this._x - 3;
this._y = this._y + 3;
}
;
}
if (currentPanel._x == slot3X)
{
currentPanel.onEnterFrame = function ()
{
if (this._xscale + 1 >= slot2Scale)
{
this._xscale = slot2Scale;
this._yscale = slot2Scale;
this._x = slot2X;
this._y = slot2Y;
delete (this.onEnterFrame);
return;
}
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._x = this._x - 3;
this._y = this._y + 2;
}
;
}
if (currentPanel._x == slot4X)
{
currentPanel.onEnterFrame = function ()
{
if (this._xscale + 1 >= slot3Scale)
{
this._xscale = slot3Scale;
this._yscale = slot3Scale;
this._x = slot3X;
this._y = slot3Y;
delete (this.onEnterFrame);
return;
}
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._x = this._x - 3;
this._y = this._y + 2;
}
;
}
if (currentPanel._x == slot5X)
{
currentPanel.onEnterFrame = function ()
{
if (this._xscale + 1 >= slot4Scale)
{
this._xscale = slot4Scale;
this._yscale = slot4Scale;
this._x = slot4X;
this._y = slot4Y;
delete this.onEnterFrame;
return;
}
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._x = this._x - 3;
this._y = this._y + 2;
}
;
}
++i;
}
}
;
_global.prevPanel = function ()
{
next_btn.enabled = false;
prev_btn.enabled = false;
stopFlash();
var lastPanel = topPanel - 1;
if (lastPanel < 1)
{
lastPanel = lastPanel + totalPanels;
}
var instanceToRestore = eval("panel" + lastPanel);
instanceToRestore._x = instanceToRestore._x + 1;
instanceToRestore.onEnterFrame = function ()
{
var myBlur = new flash.filters.BlurFilter(20, 0, 1);
var myTempFilters = this.filters;
myTempFilters.push(myBlur);
this.filters = myTempFilters;
if (this._x + 70 >= movedRightX)
{
this._x = movedRightX;
this.filters = [];
delete this.onEnterFrame;
this.swapDepths(6);
var nextDepth = 1;
i = 1;
while (i <= totalPanels)
{
var demotedPanelNum = topPanel - 1 - i;
if (demotedPanelNum < 1)
{
demotedPanelNum = demotedPanelNum + totalPanels;
}
if (demotedPanelNum < 1)
{
demotedPanelNum = 1;
}
var demotedPanel = eval("panel" + demotedPanelNum);
demotedPanel.swapDepths(nextDepth);
++nextDepth;
++i;
}
instanceToRestore.onEnterFrame = function ()
{
if (this._xscale + 5 >= slot1Scale)
{
this._xscale = slot1Scale;
this._yscale = slot1Scale;
this._y = slot1Y;
delete this.onEnterFrame;
instanceToRestore.onEnterFrame = function ()
{
var __reg3 = new flash.filters.BlurFilter(20, 0, 1);
var __reg2 = this.filters;
__reg2.push(__reg3);
this.filters = __reg2;
if (this._x - 70 <= slot1X)
{
this._x = slot1X;
this.filters = [];
delete (this.onEnterFrame);
--topPanel;
if (topPanel < 1)
{
topPanel = totalPanels;
}
next_btn.enabled = true;
prev_btn.enabled = true;
checkForFlash();
return;
}
this._x = this._x - 70;
}
;
return;
}
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
this._x = this._x - 5;
this._y = this._y + 10;
}
;
return;
}
this._x = this._x + 70;
}
;
i = 1;
for (;;)
{
if (i > totalPanels)
{
return;
}
var currentPanel = eval("panel" + i);
if (currentPanel._x == slot4X)
{
currentPanel.onEnterFrame = function ()
{
if (this._xscale - 1 <= slot5Scale)
{
this._xscale = slot5Scale;
this._yscale = slot5Scale;
this._x = slot5X;
this._y = slot5Y;
delete (this.onEnterFrame);
return;
}
this._xscale = this._xscale - 1;
this._yscale = this._yscale - 1;
this._x = this._x + 3;
this._y = this._y - 2;
}
;
}
if (currentPanel._x == slot3X)
{
currentPanel.onEnterFrame = function ()
{
if (this._xscale - 1 <= slot4Scale)
{
this._xscale = slot4Scale;
this._yscale = slot4Scale;
this._x = slot4X;
this._y = slot4Y;
delete this.onEnterFrame;
return;
}
this._xscale = this._xscale - 1;
this._yscale = this._yscale - 1;
this._x = this._x + 3;
this._y = this._y - 2;
}
;
}
if (currentPanel._x == slot2X)
{
currentPanel.onEnterFrame = function ()
{
if (this._xscale - 1 <= slot3Scale)
{
this._xscale = slot3Scale;
this._yscale = slot3Scale;
this._x = slot3X;
this._y = slot3Y;
delete this.onEnterFrame;
return;
}
this._xscale = this._xscale - 1;
this._yscale = this._yscale - 1;
this._x = this._x + 3;
this._y = this._y - 2;
}
;
}
if (currentPanel._x == slot1X)
{
currentPanel.onEnterFrame = function ()
{
if (this._xscale - 1 <= slot2Scale)
{
this._xscale = slot2Scale;
this._yscale = slot2Scale;
this._x = slot2X;
this._y = slot2Y;
delete (this.onEnterFrame);
return;
}
this._xscale = this._xscale - 1;
this._yscale = this._yscale - 1;
this._x = this._x + 3;
this._y = this._y - 2;
}
;
}
++i;
}
}
;
stopFlash = function ()
{
if (xmlSwf[topPanel] != undefined)
{
var targetPanel = eval("panel" + topPanel);
targetPanel.empty.gotoAndStop(1);
}
}
;
checkForFlash = function ()
{
if (xmlSwf[topPanel] != undefined)
{
var targetPanel = eval("panel" + topPanel);
targetPanel.empty.gotoAndPlay(1);
}
}
;
checkForVideo = function ()
{
if (xmlVideo[topPanel] != undefined)
{
videoplayer.theVideo.attachVideo(ns);
var __reg1 = resourcePath + xmlVideo[topPanel];
var __reg2 = undefined;
ns.onMetaData = function (obj)
{
duration = obj.duration;
}
;
var bufferFill = 1;
ns.onStatus = function (info)
{
if (info.code == "NetStream.Buffer.Full")
{
if (bufferFill == 1)
{
ns.pause(true);
ns.seek(0);
playSwitch = false;
btnPreviewPlay._visible = true;
videoplayer.bufferClip._visible = false;
clearInterval(bufferInterval);
videoplayer.controls.buttons.gotoAndPlay("active");
++bufferFill;
}
}
info.code != "NetStream.Play.Start";
if (info.code == "NetStream.Buffer.Empty")
{
bufferClip._visible = true;
}
if (info.code == "NetStream.Play.Stop")
{
ns.pause(true);
ns.seek(0);
playSwitch = false;
}
}
;
ns.play(__reg1);
var playSwitch = true;
var loadEstimate;
var ratio;
var percentIsLoaded;
var newBuffer;
}
}
;
}
}
;
var nc = new NetConnection();
nc.connect(null);
var ns = new NetStream(nc);
ns.setBufferTime(10);
var autoplay = "false";
var bufferInterval = setInterval(determineBuffer, 100);
var amountLoaded;
var duration;
var current;
var statusCheckInterval = setInterval(statusCheck, 100);
var videoInterval = setInterval(videoStatus, 100);
panel1.btnPreviewPlay.onRelease = panel2.btnPreviewPlay.onRelease = panel3.btnPreviewPlay.onRelease = panel4.btnPreviewPlay.onRelease = panel5.btnPreviewPlay.onRelease = function ()
{
clearInterval(autoAdvanceInterval);
videoplayer._y = 0;
videoplayer.onEnterFrame = function ()
{
if (this._alpha + 7 >= 100)
{
this._alpha = 100;
delete this.onEnterFrame;
ns.pause(false);
playSwitch = true;
videoplayer.controls.buttons.playPause.gotoAndStop("playing");
prev_btn.enabled = false;
next_btn.enabled = false;
more_btn.enabled = false;
return;
}
this._alpha = this._alpha + 7;
}
;
}
;
videoplayer.controls.buttons.playPause.onRelease = function ()
{
if (playSwitch == true)
{
ns.pause(true);
playSwitch = false;
videoplayer.controls.buttons.playPause.thePauseButton._visible = false;
return;
}
ns.pause(false);
playSwitch = true;
videoplayer.controls.buttons.playPause.thePauseButton._visible = true;
}
;
videoplayer.controls.buttons.playPause.onRollOver = function ()
{
if (playSwitch == true)
{
videoplayer.controls.buttons.playPause.button_pause_rolled._alpha = 100;
return;
}
videoplayer.controls.buttons.playPause.button_play_rolled._alpha = 100;
}
;
videoplayer.controls.buttons.playPause.onRollOut = function ()
{
videoplayer.controls.buttons.playPause.button_pause_rolled._alpha = 0;
videoplayer.controls.buttons.playPause.button_play_rolled._alpha = 0;
}
;
var scrubInterval;
videoplayer.controls.loader.scrub.onRollOver = function ()
{
videoplayer.controls.loader.scrub.hilight.gotoAndStop("over");
}
;
videoplayer.controls.loader.scrub.onRollOut = function ()
{
videoplayer.controls.loader.scrub.hilight.gotoAndStop("out");
}
;
videoplayer.controls.loader.scrub.onPress = function ()
{
videoplayer.controls.loader.scrub.hilight.gotoAndStop("press");
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit, 10);
this.startDrag(false, 0, this._y, 350, this._y);
}
;
videoplayer.controls.loader.scrub.onRelease = videoplayer.controls.loader.scrub.onReleaseOutside = function ()
{
videoplayer.controls.loader.scrub.hilight.gotoAndStop("out");
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus, 100);
this.stopDrag();
}
;
videoplayer.createEmptyMovieClip("flv_mc", this.getNextHighestDepth());
videoplayer.flv_mc.attachAudio(ns);
var audio_sound = new Sound(videoplayer.flv_mc);
var volumeSwitch = true;
var newVolume = 90;
audio_sound.setVolume(90);
videoplayer.controls.volumeSlider.sliderBar.onPress = function ()
{
this.startDrag(false, 0, this._y, 60, this._y);
volumeInterval = setInterval(setVolume, 100);
}
;
videoplayer.controls.volumeSlider.sliderBar.onRelease = videoplayer.controls.volumeSlider.sliderBar.onReleaseOutside = function ()
{
clearInterval(volumeInterval);
this.stopDrag();
}
;
var autoAdvanceInterval = setInterval(autoAdvance, 10000);
Any help is greatly appreciated no matter how small, i’m not sure where to begin!!