summoning unfit...

Out of context: Reply #11

  • Started
  • Last post
  • 13 Responses
  • unfittoprint0

    I'm goin' out so I don't have to check the code [anyway, I woudn't do it that way].
    Check the following steps [these work and with less code]. You can add 'eye candy' after...

    #0
    images= new Array("pic1.jpg","pic2.jpg","pic...

    #1: Alpha Fade + interval
    changeAlpha = function(targetA){
    movieA=image1._alpha
    movieA += (targetA-movieA)/2
    image1._alpha=movieA
    image2._alpha=100-image1.
    _alpha;
    }

    fade = function (targetalpha) {
    clearInterval(alphaLoop);
    alphaLoop = setInterval(this, "changeAlpha", 30, targetalpha);
    };

    #2 loader + interval +
    create a loader function(targetIMG) that checks wich holder to be used [using a count 1/2 variable), then checking wich image from the array will be loaded..
    Then create an interval function to check if the targetHolder's getByteloaded=getBytesTotal and use a delay function like the one below... [don't forget to clear the interval when it's over]:

    delay = function () {
    delayLoop = setInterval(function () { clearInterval(delayLoop);(count == 1) ? loadImage(image2) : loadImage(image1);}, 10000);
    };

    create the the empty movieclips and the just start the whole thing by:

    imageLoad("image1");

    good luck... [and don't use onEnterFrames...]

View thread