fade btw keyframes

Out of context: Reply #1

  • Started
  • Last post
  • 1 Response
  • visualplane_0

    This can be done creating a function adjusting the alpha properties of a movieclip, and the timing can be adjusted using setInterval.

    First set the alpha to zero with the following code:

    _root.mcBox._alpha = 0;

    mcBox is the instance name of your image.

    Then use this code to create the fade onto the movieclip:

    function fade():Void {
    _root.mcBox._alpha +=10;
    }

    Then set the timing with setInterval here, and adjust the speed where the 50 is. It's in milliseconds:
    var nInertiaInterval:Number = setInterval(fade,50);

    So again, place all of the code per each of the frame.

View thread