A Flash Developer Resource Site

Results 1 to 15 of 15

Thread: Load Sound working locally but not in browser

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9

    Load Sound working locally but not in browser

    I have a site that loads a movie with a music player in it. The file works fine when I test it in flash but when I play it in explorer it loads all 15 tracks one on top of the other.

    I'm using quite a few variables to get this to work and I have a feeling that they are somehow getting screwed up by the browser. Is there a way I can see the variables in the browser the way I can in the test movie function or the debugger?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You could add a dynamic textfield for testing purposes, and display whatever variable. When you're done, delete it or move it off-stage. Could be usefull again!

  3. #3
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9
    I tried that and again when I test locally the variables are there but when I drag it to explorer they don't appear

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Well... Do you at least have a link?

    Hard to say what might be happening on your little info!

  5. #5
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9
    Yup

    but turn down your volume it a little scary!

    http://www.disco30.com/test/

    click on the tracks button in the top right corner and pick a song.
    It's really being weird. There are two dynamic text boxes to the left of each song button that when tested locally show the position and duration of the external mp3 that should be playing. But even the default text i have typed in doesn't appear.

    Most of the code in my player is based around the position and duration values of each sound file.

    I'm assuming that those are getting screwed up so my code is going to %#$@

    I really appreciate the help... Tell me if there is anything else you need.

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Using soundObject on this? Have you seperately named each soundObject?

  7. #7
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9
    I have an array at the begining of the file which holds the name and location of all my sound files.

    Using that array I generate the menu by duplicating a movie clip of my button.

    The problem is i want the file to recognize that the song clip is finished and move to the next one so I am using the duration and position values in a loop that constantly check if the two values are equal. when they are it is supposed to return the button to it's off state and play the next song in the list. But for some reason in explorer it is either not finding the duration and position info that it needs or for some reason it is reading those two values as equal right away and starting the next song on top of the first one.

    I'm really stumped by this... It took me three days to get this to work but I was only testing in flash and not in the browser. I finally got it to work perfectly in flash and when I drop it onto the browser it does that!


  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Well, if you upload your .fla(s) to your server and provide a link to download them from there, I can have a look at it(them) tonight... But no promises, I could get this going in 10 minutes! I haven't really worked with sound players!

  9. #9
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9
    I think I may be on to something. I'm going to give myself an hour with this to see if what i think it is pans out.

    If not I will post another thread and upload the files then.

    Thank you sooooooo much!!!!

    If I fiigure it out I will get back to you

    THX

  10. #10
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Have you visited http://www.kennybellew.com BTW?

  11. #11
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9
    His tutorial on sound objects right here on flash kit is how I learned to use them.

    Working for a music company it has come in VERY handy

  12. #12
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9
    I GOT IT TO WORK!!!!!!!!

    For a split second when my MP3 was loading it was reading the position and duration as equal... So I put a delay at the beginning of my loop to check for the end of the track and now everything is fine and dandy.

    Thx so much for your input. It made me look at the problem from a different angle.

  13. #13
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Didn't update your test site though did you?

  14. #14
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9
    gimme a minute

  15. #15
    Junior Member
    Join Date
    Mar 2003
    Location
    Montreal
    Posts
    9
    Done!

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