flash actionscript help

Out of context: Reply #1

  • Started
  • Last post
  • 2 Responses
  • unfittoprint0

    make an MC. make another MC with a square [same dims as the img] sliding from -img height to 0. make a stop function within this MC. and another stop at the end of the anim.

    use the sliding MC to mask the MC where you'lll load the img.

    in the stage, name your 2 MC's [MC and maskM] and use an onEnterFrame to check the loading status.

    MC.load("image.jpg");

    MC.onEnterFrame = function(){
    if (this.getBytesLoaded()==this.get... && this.getBytesTotal() >10){
    this._parent.maskMC.play();
    delete this.onEnterFrame;
    }
    };

View thread