• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 7. Moving and Changing Movie Clips > Task: Fading Movie Clip

Task: Fading Movie Clip

If you can set a movie clip's transparency value, it follows that you can gradually change that value to make it appear as if the movie clip is fading away. Here's how to do it:

1.
Start with a new Flash movie.

2.
Create a simple movie clip. Any simple shape will do.

3.
Attach the following movie clip script:

onClipEvent(enterFrame) {
    if (this._alpha > 0) {
        this._alpha -= 5;
    }
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint