A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: #MP3 suck`s a LOT !!! ??????? Help

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Posts
    7

    #MP3 suck`s a LOT !!! ??????? Help

    the thing is that:

    i have made a simple flash site and made some music to load during stream-time with sound.loadSound object. The mp3`s are located in /mp3 sub-directory of the site root. root/mp3.....

    when this loads localy (on my computer) everything go ok! and I can start the sound with sound.start(), and onLoad objects.

    But when I put this sucked thing on the server side (win2000) the sounds won`t to load and play ??????????????????????????????????
    and the sound object remains empty ?


    it`s possible that the source of problem is not specifying the port and the type of streaming in the loadSound object ? but why this thing work localy without this ????

    LOCAL THING (THAT WORK)

    track_1=new Sound();
    track_1.loadSound("mp3/first_sample.mp3);
    track_1.onLoad=function(){....................etc.


    SERVER THING (THAT SUCK`S)

    track_1=new Sound();
    track_1.loadSound("www.mysite.com/mp3/first_sample.mp3");
    track_1.onLoad=function (){................



    the platform is (XP) and Flash is MX...

    if someone know the solution let me know, thank you











  2. #2
    Lifesaver Lightwave Network's Avatar
    Join Date
    Sep 2002
    Location
    Denver, CO, USA
    Posts
    649
    Last edited by Lightwave Network; 11-06-2002 at 03:11 AM.


    ... gimme just one more line of code to ease the pain.

    http://www.ln.tv
    http://www.davevillano.com
    http://www.premierloftsdenver.com
    http://www.backyard.cc -- coming soon!


  3. #3
    Member
    Join Date
    Nov 2001
    Posts
    96
    Hi Cybercow

    Dunno about W2K servers, but on my remote (apache) server, I`d never try and use absolute addressing, always relative. Personally, I don`t see any reason that your first code shouldn`t work on your remote server. Have you tried relative addressing? If so, I`ll get my coat

    Cheers

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Although MM says the parameter is optional, you should allways add this to your your soundObject's definition:

    track_1=new Sound(this);
    track_1.loadSound("http://www.mysite.com/mp3/first_sample.mp3");
    track_1.onLoad=function (){................

    You can also check this:

    http://www.kennybellew.com

    Everything you ever wanted to know about sound but were afraid to ask!

  5. #5
    Junior Member
    Join Date
    Oct 2002
    Posts
    7

    NOTHING !!!

    i tried to use this pointer and many variations of relative and absolute paths (also in same dir) but realy nothing happeens......


    the sound.loadSound (); don`t load anything - I put here simple dynamic text field and a control variable that loads var=sound.getBytesLoaded(); and it always says zero (0)!

    I yust don`t know what to do...

  6. #6
    Junior Member
    Join Date
    Oct 2002
    Posts
    7

    LOOK HERE

    Hi oldnewbie (2.part)>>>

    i visited the link you mentioned here and in the section

    How to Load an External MP3 Dynamically as a Sound Object -the first flash expample NOT WORK !!! I have the same case !!!

    I press the loadsound button but nothing`s load !!! when I press on the play button nothing play`s !


    I have the lastest Flash player and working on IE6 and XP where is the catch ?????????????????????????????????????????????????? ?

  7. #7
    Lifesaver Lightwave Network's Avatar
    Join Date
    Sep 2002
    Location
    Denver, CO, USA
    Posts
    649
    Okay, I'm going to ask a couple of questions I would have used back in the tech support days....forgive me if I seem like some kind of smarta$$...


    1: Do you have a sound card?

    2: Do you have speakers?

    3: Is the volume turned up?

    4: You're not deaf, right?


    You might want to try creating a simple sound "test" file. Create a new movie, and insert the following scripts:


    Code:
    mySound = new Sound()
    mySound.loadSound("myMP3.mp3")
    mySound.onLoad = function () {
      mySound.start(0, 100)
    }
    save the movie, put it in a temporary folder, and put any old MP3 in that folder--make sure to rename it to "myMP3.mp3"

    If that doesn't work, then something is definetely wrong--you should contact Macromedia.


    ... gimme just one more line of code to ease the pain.

    http://www.ln.tv
    http://www.davevillano.com
    http://www.premierloftsdenver.com
    http://www.backyard.cc -- coming soon!


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