Flash & XML HELP!

Out of context: Reply #3

  • Started
  • Last post
  • 9 Responses
  • miracola0

    I know about setInterval(), but I just don't know how to write the code for it. I mean, I'm not too familiar with actionscript. I am trying to piece together stuff I've found here and there, but noone seems to have combined all the things I'm looking for.

    HERE IS THE CODE I HAVE SO FAR:

    slides_xml = new XML();
    slides_xml.onLoad = startSlideShow;
    slides_xml.load("slides.xml");
    slides_xml.ignoreWhite = true;
    slidesMC._alpha=0;
    mypic=1;

    _root.onEnterFrame = function()

    {
    if (slidesMC._alpha 10 && fadeOut)
    {
    slidesMC._alpha -= 10;
    }

    if (slidesMC._alpha < 100 && fadeIn && !fadeOut)
    {
    slidesMC._alpha += 10;
    }
    else
    {
    fadeIn=false;
    }
    }

    next.onPress = function() {
    if (mypic = 12)
    {
    mypic=1;
    }
    }

    prev.onPress = function() {
    if (mypic > 1 && !fadeIn && !fadeOut)
    {
    fadeOut = true;
    mypic--;
    }
    if (mypic == 1 && !fadeIn && !fadeOut)
    {
    fadeOut=true;
    mypic=12;
    }
    }

    autoplay.onPress=function() {
    setInterval(intervalID);
    showTimer = delay*3000;
    intervalID = setInterval(autoAdvance, showTimer); }

    function autoAdvance() {
    if (mypic 12)
    mypic=1;
    }

    Do you also need to see what the XML text looks like? It has image info and text info.

View thread