Flash Gallery

Out of context: Reply #6

  • Started
  • Last post
  • 6 Responses
  • kinetic0

    loader code inside a movieclip on frame 2

    loaded = Math.round(_parent.newholder.get... / 1024);
    total = Math.round(_parent.newholder.get... / 1024);
    percent = Math.round(loaded / total * 100);

    loadBar._width = loadBarHousing._width * (percent / 100);

    frame 1 is stop and frame 3 is:

    if (percent == 100){
    gotoAndPlay(4);
    } else {
    gotoAndPlay(2);
    }

    your img loading code:

    MovieClip.prototype.loadImg = function(jpeg,x,y) {
    this.createEmptyMovieClip("newho...
    this.newholder._x = 158;
    this.newholder._y = 100;
    loadMovie(jpeg,newholder);
    imgLoader.gotoAndPlay (2);
    }

    imgLoader is the clip that houses the loader code

    quick and dirty

View thread