Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Flash: Alpha Tweening

    Flash is really ticking me off right now. Something this simple should NOT be this difficult.

    Anyway... All I want to do is fade my freakin' rectangle (converted to movie clip [also tried graphic symbol]) from 1% opaque to 99% (or 0 1o 100%, whatever works)

    What I do is this:

    - Make rectangle.
    - Convert to symbol
    - Insert keyframe on end
    - Create motion tween
    - Adjust alpha on frame 1
    - Adjust alpha on frame 2
    - Cry because it doesn't work

    Any ideas?

    Thanks a million for any help.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You need to create a keyframe (F6 if I recall correctly) which is at least 5 frames imo away from the start stage, e.g. if you were at fram 75, you'd create the end keyframe at 80. All you need to do is make sure that you have space between the tween start and end points.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #3
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've done that.


    I can get the tween to "show up" as purple and whatnot with the arrow, but when I change alpha on each "end" of the tween, it doesn't change... If I set alpha to 100% on frame 1, and 1% on frame 50 (last keyframe), frame 1 will now be 1% too.

    Using MX, by the way.

  • #4
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Figured it out.

    How to do it:

    - Create your shape (mines a rectangle...) and DON'T CONVERT IT.
    - Make a keyframe (at least 5 frames away from the shape's first instance, apparently)
    - Click anywhere in the middle, and set the tween mode to "shape" (not motion...)
    - Change the alpha on the FILL property of each end (Flash has the stroke selected by default, and I didn't notice this until this morning...) and play the animation. It'll fade from the first alpha to the other.

    Hooray.

  • #5
    New Coder
    Join Date
    Jun 2002
    Location
    Texas,United States of America
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up This is the way

    ok,
    This is watu should do!
    1. Create or draw u'r rectangle
    2. Select it, press F8, then select it as graphic and name the file as something
    3. Insert your new KEYFRAME at any distance.
    4. Then you shuold able to see u'r Rectangle in u'r 1st frame and in your new Keyframe.
    5.Now, select u'r rectangle in u'r first frame, rigth click on it, do u'r alpha thing...
    6. Again, select u'r other rectangle in u'r distant frame [keyframe], right click , apply some Alpha thing.
    7. Now click on your first frame in the movie, right click, apply the motion tween. Now your animation must be working.


  •  

    Posting Permissions

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