Flash movememt

Out of context: Reply #6

  • Started
  • Last post
  • 11 Responses
  • unfittoprint0

    What you want to do is make those imagesmovieclips inside another MC, that will be targeted with the slide movement ocurs.

    inside the MC you should have a loop that will checkif the image[s] have passed the _x [or _y] limit. If so, it will delete them and attach them to the end again.

    //inside slideMC
    numberImg = 3;
    slack = 50;
    limit=0

    //in the library name image1,
    // image2, image3, etc...

    checkImg = function(objCount){
    lastObj = (lastObj ==undefined) ? this["image"+objCount] : lastObj;
    if (_parent._x+this["image"+i]._x+t... ) {
    this["image"+i]._x = lastBG._x+lastBG._width;
    lastBG = this["image"+i];
    i = (i{objCount) ? ++i : 1;
    }
    }

    startChk = function(objCount){
    i=1;
    clearInterval(checkLoop):
    checkLoop=setInterval(this,"chec... ", 30, objCount);
    }

    //start putting images
    //from the library
    for(i=1; i{=numberImg; i++){
    this.attachmovie("image"+i; "image"+i; i);
    this["image"+i]._x = this["image"+(i-1)]._x + this["image"+(i-1)]._width + slack
    };

    startChk(numberImg);

View thread