Announcement

Collapse
No announcement yet.

Flash Help...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flash Help...

    I'm in a crunch and need a small .swf file that launches an external mp3 file on a Mac that's been renamed to "Menu1.dav" then shuts itself (the .swf file) down leaving the mp3 file playing in their default player. The .swf file would be in the same directory. I would need it to call upon Menu1.dav as an mp3 file since I've renamed the file extension from mp3 to dav (to hide it from the user). I want the .swf file to be isolated from the Menu1.dav file and just have it "stream" the file as an mp3. Can anyone help? I'm using Swish and it doesn't support streaming audio. Not from a website and not from the same directory. I had previously planned on doing this via an m3u playlist file, but all of this is for Macs and I just found out that Mac mp3 players don't widely support m3u lists yet. This should be a useful tool for a lot of people. Thanks in advance!



    Protocol
    "White-colla-AMS-gangsta."

  • #2
    Re: Flash Help...

    You can load an MP3 into a .swf at runtime even with a modified file extension but it won't launch in default player.

    You can use the fscommand exec to execute a file but again it will not launch in the default player is you use a modified file extension. However it seems you can use the fscommand exec to launch a VB handler (or even a seperate small AMS .exe) which will do what you want, i.e. here is an excerpt from the Flash Help file under the fscommand "exec" section:

    Usage 4: In Visual Basic, Visual C++, and other programs that can host ActiveX controls, fscommand sends a VB event with two strings that can be handled in the environment's programming language. For more information, use the keywords Flash method to search the Flash Support Center.

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: Flash Help...

      BTW I jusr re-read your post. Not sure why you even have the default player mentioned or involved. You can stream the MP3 straight from your .swf, this is the best, easiest way. If you want to do that I can create a small .swf file for you which does that no probs...

      I just need to know if it should autoplay and if it should loop or only play once...

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment


      • #4
        Re: Flash Help...

        Actually, that would be great Corey. This is all intended for the Mac side of the ROM, otherwise the m3u file would have been fine.

        One of these days, I'm just going to have to bite the bullet and get on Flash. I wasn't aware that you could use Flash itself as a player. The song mentioned above would only need to play once. If there was a way to add a simple stop, pause and play button that popped up it's be great, but may not be neccessary. The reason I say that is that like you said earlier: this is only for Mac users and I consider it a bonus for them so they can play it on their systems and not have to go find a Windows machine. As for auto-running, it doesn't need to. This will be in a sub-folder launched by a hyperlink and used to play an mp3. A very simple use, but one that's hard to accomplish on a Mac while still having the file renamed from the .mp3 to the .dav.

        By making the ROM primarily for Windows users, I've hit 90% of the market. By adding the Mac component, I've hit another 5%. Some of the html in my band-aid is only coded for IE however, so there's an estimated 5% out there who still won't be able to access this ROM. But I've done just about everything I can short of giving them a new computer. Thanks for your help! The CD's going to press tonight which is very quick, so if it's too fast of a turn-around, it's ok. Thanks again!




        Protocol



        "White-colla-AMS-gangsta."

        Comment


        • #5
          Re: Flash Help...

          OK here you go. .swf and .fla (pop it open and have a boo)

          http://www.indigorose.com/temp_web/loader.zip

          1. Unzip.
          2. Add an mp3 named "Menu1.dav" to the folder where you unzip.
          3. run .swf.

          Also, if you want to use it in AMS, it will fire the following fscommand onSoundCOmplete (when the mp3 ends)

          fscommand ("done", "true");

          Corey Milner
          Creative Director, Indigo Rose Software

          Comment


          • #6
            Re: Flash Help...

            Thanks again, Corey!


            Protocol
            "White-colla-AMS-gangsta."

            Comment


            • #7
              Re: Flash Help...

              Corey, not only did the file work perfectly, the images were great too. I encourage everyone to check it out. Great job!


              Protocol
              "White-colla-AMS-gangsta."

              Comment


              • #8
                Re: Flash Help...

                Not a problem, thanks to Flash that stuff took only a few minutes to build. Those buttons are from the built in library which ships with Flash...

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment

                Working...
                X