Flash Help

Out of context: Reply #2

  • Started
  • Last post
  • 2 Responses
  • unfittoprint0

    why not just one clip to hold the images?

    this.createEmptyMovieClip("image...

    imageCount=1

    leftButton.onPress(){
    --imageCount;
    image.loadMovie("image"+imageCou...
    //optional
    this.attachMovie("loader","loade...
    }

    rightButton.onPress(){
    ++imageCount;
    image.loadMovie("image"+imageCou...

    //optional
    this.attachMovie("loader","loade...
    }

    //I included in the button actions the loader that will delete itself after all the bytes are loaded

    Loader actions:
    loadLoop= setInterval(function(){
    bar._x=_parent.image.getBytesLoa...
    if(_parent.image.getBytesLoaded... && _parent.image.getBytesTotal > 20){
    this.removeMovieClip()
    }
    },30)

    stop();

    //good luck...

View thread