8 Replies Latest reply on Dec 10, 2011 9:51 AM by pcwhizkid



      Is there an easy way to create an mp3 player in flash catalyst?

        • 1. Re: Audio
          Peter Flynn (Adobe) Adobe Employee

          The easiest way to do this is to convert the MP3 into an FLV video file that contains only audio.  (You can do this using Adobe Media Encoder, which is included with Flash Catalyst CS5).  Then:


          1. Import the FLV into Catalyst
          2. In the Properties panel, change the "Video controls" setting to "None"
          3. Create your own stylized play/pause/stop controls (converting your artwork into clickable buttons)
          4. Use the Interactions panel to make your stylized controls play/pause/stop the video player (and hence the audio stream)
          5. You can also build controls for mute or volume level -- create an interaction that plays an Action Sequence, then create a "Set Property" action targeted on the video player to set its "Muted" or "Volume" properties.


          Hope that helps!


          - Peter

          1 person found this helpful
          • 2. Re: Audio
            SMAKDIGITAL Level 1

            Peter Peter....


            Thanks for getting back to me. Started to wonder if anyone cared...lol


            I will try this and see if I can make it work with your suggestion.


            If I could. I have another question if you could be so kind.


            This website http://www.a-rrajani.com/index.htm all though kinda cheezy. Has a very simple flash image thing that I could do in flash. It wuold take me a little bit to do cause I'm rusty on my flash but just wondering if there is a simple way to accomplish this in FC?




            • 3. Re: Audio
              Peter Flynn (Adobe) Adobe Employee



              It's easy to create an effect in Catalyst where an image slides onto the stage.  The website you're looking at is a little trickier -- the images don't move, but are "uncropped" gradually to reveal the whole image.  This is doable using masks, with a combination of Catalyst + Illustrator:


              1. Start with the image in Illustrator (you can "import" an image into an AI document via File > Place)
              2. Draw a tall skinny rectangle covering the leftmost part of the image (and let it stick out a bit off the top & bottom)
              3. Select both the rectangle and image and choose Object > Clipping Mask > Make
              4. Save this to an .ai file and import it into Catalyst
              5. Duplicate the state (or share the .ai artwork into a second state)
              6. In the other state, select Modify > Edit in Adobe Illustrator
              7. Select just the rectangle and resize it so it now reveals the entire image
                (This can be a little finnicky -- it's best if you select it using the Layers panel, and make sure that only the rectangle is selected, not the image also or the group enclosing them both.  Then drag the top edge of the rectangle's selection border to make sure that you don't accidentally select the whole group when you start your drag.  There may be an easier way to do this but I am not that big of an AI whiz )
              8. Click Done to return to Catalyst
              9. You'll notice that the Timelines panel now shows a Resize effect for the mask changing size between the two states.  You can smooth this transition or otherwise adjust it as desired.


              Hope that helps -- good luck with your design!


              - Peter

              • 4. Re: Audio

                fantastic response thanks

                • 5. Re: Audio
                  Peter Flynn (Adobe) Adobe Employee

                  No problem, glad to help!


                  - Peter

                  • 6. Re: Audio
                    Elder Marx Level 1

                    Peter! Thank you very much for the answer.

                    • 7. Re: Audio
                      symbolized_bar_code Level 2

                      Hi and thanks for the tips on this, it worked perfectly. I was able to make a quick easy audio player. Any idea if there is a way to make something that can play multiple songs with with one control? I can just duplicate my buttons but that leaves the problem of multiple sound files playing at once. This doable in catalyst?

                      • 8. Re: Audio

                        Is it possible to create a scrubber?


                        I don't mind having to open up the project in flash builder but I don't know any Flex/mxml code.





                        p.s I use cs5