Flash Help

  • Started
  • Last post
  • 2 Responses
  • FUZCO

    I am trying to create a very simple site, but need help or some sort of tutorial. I want to load movies using two empty movie clip. stacking images as they load. View this to see what I am talking about: http://www.fuzco.com/flashtest/

    it breaks after the third one. And I know my code sucks. Anyone know of where to research how to build this right.

    Thanks in advance.

  • Mick0

    Can't think of any tutorials specific to your needs. Just make sure you're using swapdepths for your MCs, or even duplicate an empty movieclip container each time you load a new pic.

  • 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...