A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: MP3 & MPG Help Needed!!

  1. #1
    |animation|queen|
    Join Date
    Aug 2003
    Location
    Funkytown
    Posts
    73

    MP3 & MPG Help Needed!!

    My client has some sound clips (MP3s) and a video clip (an MPG file) that they want to include on their site.

    They don't want to embed it into the flash file, they want a button you click on and the video or sound is downloaded and played by the appropriate player...

    I can't get it to work... I'm not sure what AS I should be using. I tried:

    on (release) {
    getURL ("media/clip1.mp3", "_blank");
    }


    But I can't get it to work...

    Any help?

    P.S. I'm still using Flash 5...

  2. #2
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Try using _self, and use the complete path to the mp3. It should work the way you have it, but I have found that unless the sound file is in the root directory, sometimes they won't load. I think using _self will force the default player to launch. Using blank it's like telling it to open in a new browser.

    getURL ("http://www.mysite.com/media/clip1.mp3", "_self");

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center