4 Replies Latest reply on Apr 18, 2013 5:34 AM by Envirographics

    Can Alpha value change between two Keyframes ?

    Envirographics Newcomer


      Flash CS5.

      I have a MovieClip Spatter set to Alpha 21% in one keyframe and a few secs later along its layer on the timeline another KF with it set to 1%

      I run movie and it stays at 21% until it gets to the second KF when it suddenly becomes 1%

      I right click between the two KFs and choose Classic Tween, still no difference.

      Undo that and try for a Motion Tween, ok the con to symbols prompt. still no joy.

      Try for Classic Tween again with...

      I see a Blending option so alter that to Alpha for both MCs at the KFs,. no better,


      How do I get the alpha value to change continually and progressivly from 21% to 1% across lets say 3 secs, so that after 1 sec its 14% then after two secs its 7% etc.


      The MC itself is a 5 frame duration, each frame is a KF with whiteSpatter on a transparent base as a .png the size of which gets larger with each KF. So a growing spatter effect.


      I need to fade this over a period of say 3 secs in my scene1 movie. I am successful in moving it at a steady single alpha value 21% across my scene, but I need the alpha to change during the move to become 1%.



        • 1. Re: Can Alpha value change between two Keyframes ?
          Ned Murphy Legend

          If it is a movieclip symbol (or a graphic symbol) you can tween the alpha value between keyframes using a motion tween.  I would use a classic tween because I have not used the newer one.  If this is not working for you then chances are you are not setting things up correctly.

          1 person found this helpful
          • 2. Re: Can Alpha value change between two Keyframes ?
            Envirographics Newcomer


            I have just tried some experiments.

            1) Create a white box for 1st KF, make it an MC, create a second KF  3 secs later, make this one alpha 1% then make 1st KF's MC alpha 100%. Create a classic tween by right clicking between the two, scrub the timeline slider and hey presto fade of alpha :-)

            2) Ditto but this time use one of the white spatter png's instead of the white box, scrub and bingo png fades.


            Now lets look at my MC that I am wishing to fade from 21% to 1%.

            Double click it in the Lib and we see it is 5 frames long, each is a KF and each KF has a different png file allocated to it (drag drop from lib to MC stage). Each png is white pixels in a spatter pattern sitting on a transparent base. Each png is a larger spatter than the last, thats 5 separate png files with unique names created in photoshop. So the spatter gets larger as the MovieClip plays, it plays spatter1.png then  next frame spatter2.png then spatter3.png etc, very quickly in fact and it loops (no stop command), I could have gone 1 2 3 4 5 4 3 2 so the growth developed then shrank but it looks ok for my purposes with 1 2 3 4 5 as its so fast.


            It is one of those png's that was used in experiment 2. It worked there, so alpha applied to png works.


            When we have five of them in the MC that we are fading, or trying to, we have failure.



            ...update...sussed it !

            I had placed the MC in 1st KF, copy pasted it in place and moved it upwards to get two of them sitting parallel, then created the next KF 3 secs later, made the first two in 1st KF 21%, made the last two 1%, classic tweened and got failure.

            Now trying only 1 per Classic Tween and using two layers, one for the lower, the other for the upper, it works.


            Lesson learnt, you cannot have two MC's on one layer if tweening in this way. Its got to be one MC tween per layer.



            • 3. Re: Can Alpha value change between two Keyframes ?
              Ned Murphy Legend

              When tweening on the timeline you can only have one object involved and that object has to be the same object from the first to the last keyframe.

              • 4. Re: Can Alpha value change between two Keyframes ?
                Envirographics Newcomer

                Yup :-)

                lesson learnt.


                Shape tweening you can have different shapes objects but Classic Tweening the same MC.