Are you just asking about the fade?
You could do it one of three ways:
1) Timeline tween. Manually change the alpha value of a movieclip clip and create a motion tween.
2) Use Flash's native Tween class. Not the most robust of classes but gets the job done is a simple alpha tween is all you are after. The syntax can be a little complicated though. Tutorial.
3) Use other public classes such as mcTween, Tweener and/or Fuse.
The easiest syntax is Tweener. The easiest to follow (because of the documentation) is mcTween.
In mcTween, you would do the following. Assuming that your image that you are fading has an instance name of image_mc:
Code:
image_mc.alphaTo(0, 2, "linear")
This code linearly (i.e. at the same speed) fades something to 0% transparency over 2 seconds. If you want to fade back in to 100% alpha (i.e. opaque), you just replace the 0 with 100.
Easy enough, right? If you're going to use mcTween, it needs to be installed. Check the website for instructions. In fact all the classes (except Flash's tween) class need to be installed and manually included in each flash file (instructions are in docs and tutorials that I linked to).
Now, if you were talking about that entire thing --- with dynamically loading images etc... that's a different can of worms.
Bookmarks