A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: music in flash

  1. #1
    Senior Member
    Join Date
    Jan 2004
    Posts
    461

    music in flash

    hey every1,

    my music works fine in the .fla file, but when i embed the .swf on the internet the music doesn't work (and yes my speakers are on...lol)
    you can go to www.geocities.com/reshamrd , i have made that intro and there is background music in it, but it doesn't work for some reason, does any1 noe why???

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    SoundObject? Attached sound? Streaming? What?

  3. #3
    Senior Member
    Join Date
    Jan 2004
    Posts
    461
    i am not sure what you are asking. but i downloaded the song from a cd and then used real one player to convert it into .wav and then i put it into flash. does that help?

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Nope! Doesn't tell me HOW you ...put it into flash.

  5. #5
    Senior Member
    Join Date
    Jan 2004
    Posts
    461
    does this help.....



    // initiate sound
    music = new Sound();
    music.attachSound("backsound");
    music.start(0, 999999);


    // set the volume of the sound to zero
    music.setVolume(0);



    thats the script it automatically insterted, i don't noe wat it means...
    Last edited by baliebd7; 01-29-2004 at 11:40 PM.

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    That's using a soundObject, if ever someone else asks!

    Is the volume ever set to something other than 0 afterwards?
    If not, try changing it to...
    // set the volume of the sound to zero
    music.setVolume(100);

    To see if it makes a difference.

    And might as well add this to the soundObject's definition...

    // initiate sound
    music = new Sound(this);
    music.attachSound("backsound");
    music.start(0, 999999);

  7. #7
    Senior Member
    Join Date
    Jan 2004
    Posts
    461
    THANKS ALOT!!!!!!

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    I did something?

  9. #9
    Senior Member
    Join Date
    Jan 2004
    Posts
    461
    last question, how do i make it stream, my music is making my .swf lag even though i have a preloader that works fine. Can i reduce the quality of the music?

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