Results 1 to 2 of 2

Thread: slow fading?

  1. #1
    Join Date
    Nov 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default slow fading?

    how do i make something exactly like this?
    http://www.davidsmithco.com/SplashScroll.swf

    notice the slow fade?

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •