I have built a really basic way to determine what slide to show depending on an nsTime var. It works, but is way over bloated. I keep thinking of just one function to do the test, but think the whole else/if statement needs to be there for it to work.
So for the most code awesome wranglers here, what would you do? (knowing I don't know classes, etc.). I would love to do something completely different like cue points but all the videos are done and I have a day to keep my job 8^(
Lastly, I am very thankful for all of the help recently. My hope is to return the favor after learning more.
function updateSlide()
{
if (nsTime >= xmlData.slideTime1 && nsTime < xmlData.slideTime2)
{
showSlide(xmlData.slidePath1);
}
else if (nsTime >= xmlData.slideTime2 && nsTime < xmlData.slideTime3)
{
showSlide(xmlData.slidePath2);
}
else if (nsTime >= xmlData.slideTime3 && nsTime < xmlData.slideTime4)
{
showSlide(xmlData.slidePath3);
}
else
{
trace("No Slide Update Found!!! ...");
}
}