20 Replies Latest reply: Nov 5, 2011 1:40 PM by Comp. 792 RSS

    4 Simple Flash Questions that Are Stumping Me!

    Comp. 792 Community Member

      What is the Frame Rate for Web Animations

      Q1. I am making an animation which will be played on the web. What is the default frame rate (fps) of Flash CS5? And what is the frame rate of for web?

       

      Q2. My animation needs to be 30 seconds long. So at 15 fps that would mean I need to use 600 frames in Flash?

       

      How Do I Mask everything so all I see is the Content on the Stage?

      I have a wide image that extends past my movies stage size so when I preview my movie the image is visible. How do I mask out anything that extends past my movies window size? I believe I can create a layer named "mask" and place it above all other layers, but I forget how to make the mask. Any help is appreciated.

       

      How to Fade a Graphic

      I have a graphic element (some type) and I want it to fade from 0% to 100%. In older versions of Flash I could just select the symbol and then set it's alpha value to 0%, move a few keyframes and then set the alpha to 100%. Voila! but now it doesn't seem to work that way. How can I do this in CS5?

        • 1. Re: 4 Simple Flash Questions that Are Stumping Me!
          Ned Murphy CommunityMVP

          1. I believe the default frame rate for Flash CS5 is 24 FPS, though I cannot be sure.  In earlier versions it is 12, and I don't know when it changed, assuming it did.  24 should be sufficient for the web, but it really boils down to your needs for a given design.  I would stick with 24 in most cases, others might have other preferences.

           

          2. Even if FPS was a valid way to set the time of an animation (it is ballpark at best), your calculation would be off.  30 seconds x 15 FPS won't equal 600 frames (more like 450).

           

          3. Pretty much what you just described is one way to do it.  To create a mask you draw a rectangle as big as your stage and place it on a layer above everything else.  If everything else is scattered around layers of the timeline, then you would be beter off just right clicking the name area of the mask layer and choosing the "Mask" option.  Then you need to drag each layer below it up into its masking (just press down and nudge up one layer at a time).  If the rest of the content is contained within a movieclip, then you could programatically assign the mask to the movieclip using mcName.mask = maskMCName; (AS3)

           

          4. When you go to set the tween using the approach you described you are used to, right click the starting frame and select Create Classic Tween.

          • 2. Re: 4 Simple Flash Questions that Are Stumping Me!
            Comp. 792 Community Member

            Ned, thank you very much. Those answers helped a lot.   I have two more questions if you don't mind.

             

            2. Even if FPS was a valid way to set the time of an animation (it is ballpark at best), your calculation would be off.  30 seconds x 15 FPS won't equal 600 frames (more like 450).

            Duh, 600 frames. No wonder I didn't do so well in math. So my flash animation needs to be exactly 30 seconds long. In 3D applications you just multiply the frame rate (15 fps for example) by the number of seconds you want your movie so: 15 fps x 30 = 450 frames. Do you know of there's there some place in Flash that tells you the length in seconds of your animation?

             

             

            How Do I Save an Animated Character to Use in A Different Flash File?

            I animated a simple hockey player character, but the character is in a separate flash file and I need to make the character skate around a rink.

             

            Question 1: Can I just save the character as a movie clip and then import the movie clip into the other file and animate the movie clip or is there a better way?

            I currently have all of my symbols on the stage with the bones.

             

            Question 2: How do I turn the animated character into a "Movie Clip" so I can use it ina naother Flash file?

            • 3. Re: 4 Simple Flash Questions that Are Stumping Me!
              McbainGames11 Community Member

              Another way to do alpha is that make a tween of say 20 frames, goto 20th frame and type MC.alpha = 0;

               

              To turn something into a movieclip simple select over the things you want to be a movieclip then right-click and select 'Convert to Symbol' in the dropdown menu that will come up.

              A box will come up and you will choose your settings, in your case the settings you would do is make the type : MovieClip, give the MovieClip a name and leave the rest of the settings then click OK!

               

              The know the number of frames per second is easy, its 24 so count 24 frames and thats basically 1 second Common Logic.

              • 4. Re: 4 Simple Flash Questions that Are Stumping Me!
                Ned Murphy CommunityMVP

                1 You can create your character as a movieclip and copy/paste that movieclip from one file to another.

                 

                2. One way to create a movieclip is to copy all the frame of the animation's timeline (select them all, right click the selection, choose Copy Frames), then create a new movieclip symbol (Insert -> New Symbol...etc) right click on its only keyframe and choose Paste Frames.  That will put all the layers and frames you copied into the movieclip.

                 

                The only way to come close to being certain about the timing of your animation is to use code to keep track of the time, something like getTimer()..  The frame rate that a file plays at is not a reliable means of dictating the time it takes due to a variety of factors which include the amount of content you are trying to process and performance limits of the user's machine.

                • 5. Re: 4 Simple Flash Questions that Are Stumping Me!
                  McbainGames11 Community Member

                  Ned, it says 24 fps which means there is 24 frames per second so each 24 frames is 1 second.

                   

                  Date: Fri, 4 Nov 2011 05:35:16 -0600

                  From: forums@adobe.com

                  To: mcbain97@hotmail.com

                  Subject: 4 Simple Flash Questions that Are Stumping Me!

                   

                   

                   

                   

                   

                   

                        

                             

                             

                             

                      Re: 4 Simple Flash Questions that Are Stumping Me!

                   

                   

                      created by Ned Murphy in Flash Pro - General - View the full discussion

                   

                   

                   

                  1 You can create your character as a movieclip and copy/paste that movieclip from one file to another. 2. One way to create a movieclip is to copy all the frame of the animation's timeline (select them all, right click the selection, choose Copy Frames), then create a new movieclip symbol (Insert -> New Symbol...etc) right click on its only keyframe and chhose Paste Frames.  THat will put all the layers and frames you copied into the movieclip The only way to come close to being certain about the timing of you animation is to use code to keep track of the time, something like getTimer()..  The frame rate that a file plays at is not a reliable means of dictating the time it takes due to a variety of factors which include the amount of content you are trying to process and performance limits of the user's machine.

                   

                   

                       Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4007420#4007420

                       To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4007420#4007420. In the Actions box on the right, click the Stop Email Notifications link.

                        

                       Start a new discussion in Flash Pro - General by email or at Adobe Forums

                    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

                  • 6. Re: 4 Simple Flash Questions that Are Stumping Me!
                    Ned Murphy CommunityMVP

                    The FPS value means nothing when it comes to reality.  Using FPS to define the time it takes an animtion to run is not at all accurate.  And the OP is using 15 FPS, not 24, so your mention of 24 is irrelevant to his discussion.

                    • 7. Re: 4 Simple Flash Questions that Are Stumping Me!
                      Comp. 792 Community Member

                      2. One way to create a movieclip is to copy all the frame of the animation's timeline (select them all, right click the selection, choose Copy Frames), then create a new movieclip symbol (Insert -> New Symbol...etc) right click on its only keyframe and choose Paste Frames.  That will put all the layers and frames you copied into the movieclip.

                       

                      The only way to come close to being certain about the timing of your animation is to use code to keep track of the time, something like getTimer()..  The frame rate that a file plays at is not a reliable means of dictating the time it takes due to a variety of factors which include the amount of content you are trying to process and performance limits of the user's machine.

                      Thanks McBain Games 11 and Ned. A big problem and now I don't know what happened. I followed the instructions above and when the MC was made I just copied the MC and then opened the other scene and pasted it in. I then closed the animated scharacter but when I reopened it my animation was lost. I mean my character's animation is Gone!!. This is so frustrating.

                       

                      Anyways, I will rebuild the animation now and then I have a question because when I follwed the above steps and copied the MC into the other flash scene the character wasn't animating so I don't know what's up there. Hopefully good news on the horizon.

                       

                      Ok, an update. I double-clicked on the character's MC to expand it and it turns out the character is still animated, but when I click the "back" arrow to go into the MC the character isn't animated. So I have my animated character but when I make it into a MC it is no longer animated. I followed the steps above, but is there another  step I am missing?

                      • 8. Re: 4 Simple Flash Questions that Are Stumping Me!
                        Comp. 792 Community Member

                        To turn something into a movieclip simple select over the things you want to be a movieclip then right-click and select 'Convert to Symbol' in the dropdown menu that will come up.

                        A box will come up and you will choose your settings, in your case the settings you would do is make the type : MovieClip, give the MovieClip a name and leave the rest of the settings then click OK!

                        McBainGames11, when I did this it converted it to a Movie Clip alright but the movie clip lost it's animation. It is no longer animated!!

                        • 9. Re: 4 Simple Flash Questions that Are Stumping Me!
                          Ned Murphy CommunityMVP

                          If you open the MovieClip symbol you created and you see all of its animation frames, the MovieClip is an animation, but you will only see it animate when you run the file.  Otherwise, if you are looking at it in the timeline it occupies, you will only see its first frame.

                          • 10. Re: 4 Simple Flash Questions that Are Stumping Me!
                            Ned Murphy CommunityMVP

                            His instructions will not work for creating a movieclip out of your timeline.  It will only copy the objects you selected into a single frame inside a symbol.

                            • 11. Re: 4 Simple Flash Questions that Are Stumping Me!
                              Comp. 792 Community Member

                                 

                              If you open the MovieClip symbol you created and you see all of its animation frames, the MovieClip is an animation, but you will only see it animate when you run the file.  Otherwise, if you are looking at it in the timeline it occupies, you will only see its first frame.

                              Ned, I actually followed your instructions first. I can play the animated file and I see it animated, but when I turn it into a MC it is not animated. To test it I then copied the MC from the Library and pasted it into a new layer in the other flash file. I then played the animation and did a publish preview and the mc was not animated. Is there a step missing because I followed your steps twice and the new MC is not animated. I will try it again though just to be sure.

                              • 12. Re: 4 Simple Flash Questions that Are Stumping Me!
                                Peter Celuch Community Member

                                Take a look at this thread, I believe it's the same issue you're describing: http://forums.adobe.com/message/3996725#3996725#3996725.

                                The only way you can not see your MovieClip animate in runtime is to put a stop(); action on its first frame.

                                 

                                You said you you "turned it into a MC" ... in library or on the stage? Because you can change your symbol in the library to MovieClip (from Graphic symbol, let's say) and from now on, every instance of the symbol on the Stage you create will be a MovieClip. But the instances you already had on the Stage get not transformed into MovieClips for you. Check the instance on the Stage if it's really a MovieClip (select it and take a look at Properties panel).

                                • 13. Re: 4 Simple Flash Questions that Are Stumping Me!
                                  Ned Murphy CommunityMVP

                                  Make sure you created it as a MovieClip symbol and not a Graphic symbol

                                  • 14. Re: 4 Simple Flash Questions that Are Stumping Me!
                                    Comp. 792 Community Member

                                    Yes thanks Ned, the animated character was made as a MC. I just left the Symbols as Movie Clips and my character is animated but the animation is not visible unless I preview the animation but that works fine for my situation.

                                     

                                    Is it true that if I  select the parts of my character (the Symbols) and change them from "movie clip" too graphic" then save the whole thing as a Movie Clip, then import the MC into another flash file that I will be able to see the character animated in the flash file without previewing it?

                                     

                                     

                                     

                                     

                                    I really appreciate your patience as I need to get this done for about Tuesday and I couldn't have done it without all of you . Thanks so much. I still have a lot of elements to add like "Snow" (which I am not sure how I am going to do) and some other stuff but I feel at least this might get done now. If anyone knows how to add snow I have seen some different methods and would like to know what suggestions you may have.

                                    • 15. Re: 4 Simple Flash Questions that Are Stumping Me!
                                      Peter Celuch Community Member

                                      Is it true that if I  select the parts of my character (the Symbols) and change them from "movie clip" too graphic" then save the whole thing as a Movie Clip, then import the MC into another flash file that I will be able to see the character animated in the flash file without previewing it?

                                       

                                      Take a look at this thread. If you wrap your graphics in MovieClip and then insert the MovieClip in some parent MovieClip, when scrubbing parent timeline you won't see the animation. You need to wrap them in Graphic symbol.

                                      • 16. Re: 4 Simple Flash Questions that Are Stumping Me!
                                        Peter Celuch Community Member

                                        If anyone knows how to add snow I have seen some different methods and would like to know what suggestions you may have.

                                        There are many ways to do it, I find it easiest to animate one flake in timeline (animating in timeline is easier than with script - what you see is what you get) and make it a MovieClip, then place and move flakes with the script (placing great number on stage and random positioning is easier with script than by hand in timeline).

                                         

                                        I created a samle for you: http://dev.flashlabs.eu/examples/snow/

                                        You can download the source here: http://dev.flashlabs.eu/examples/snow/source.zip

                                        • 17. Re: 4 Simple Flash Questions that Are Stumping Me!
                                          Comp. 792 Community Member

                                          Peter, thanks so much for the snow example. that would be perfect for my scene. I am new to Flash so I don't understand how to use your snow in my scene. I already have a background so I don't need that layer I guess.

                                           

                                          I created a new layer in my scene and named it "Actions" I then selected "layer 2" in your file and opened the "actions" panel and copied the code from the action. i then opened the layer named "actions" in my file and selected the first keyframe. I then opened the actions panel and pasted your code in there.

                                           

                                          That's as far as I understand. Can you please explain the rest. Was there a tutorial you used for this?

                                          • 18. Re: 4 Simple Flash Questions that Are Stumping Me!
                                            Peter Celuch Community Member

                                            Allright, I modified the example a bit so you can really easily use it: http://dev.flashlabs.eu/examples/easy-snow/

                                            You can download the source here: http://dev.flashlabs.eu/examples/easy-snow/source.zip

                                             

                                            As you can see, there are 4 instances of snow on the Stage in this example. All different sizes. No actionscript required, just drag and resize.

                                             

                                            To use it in your project you have to:

                                            1) Drag Snow folder from example's library to your library

                                            2) Drag symbol Snow/snow to stage and size it as you please.

                                            3) If you want to change the number of flakes inside it, just

                                                 a) Assign name to the symbol instance on the Stage, let's say mySnow

                                                 b) Add frame script to the instance's parent timeline: mySnow.maxFlakes = 500; // type any number you'd like

                                            • 19. Re: 4 Simple Flash Questions that Are Stumping Me!
                                              Peter Celuch Community Member

                                              Can you please explain the rest. Was there a tutorial you used for this?

                                               

                                              Sorry, no tutorial. I just made it..

                                              I believe now there's no explaining necessary. You just place the snow symbol on the stage and you're good to go

                                              • 20. Re: 4 Simple Flash Questions that Are Stumping Me!
                                                Comp. 792 Community Member

                                                Peter, you are brilliant!. Thanks so much for this. It will help a lot.