A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: stream background music over multiple scenes???

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    23

    stream background music over multiple scenes???

    ive got background music i need in sync with my animation, so i have it set to "stream".. i also have about 16 scenes in my movie, and for some reason the music stops after the 1st scene! someone help!


  2. #2
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    Hi,

    I think the best bet would be to have a separate music clip and load it separately on a level above....using the LoadMovie action.

    But perhaps there may be another better way.

    Cheerio
    RanTen
    Unrepentant Rebel & Boat Rocker
    http://ranten.celltrix.com

  3. #3
    Junior Member
    Join Date
    Jul 2002
    Posts
    23
    hey, im sorry i dont know a ton about flash, im not sure what you mean about loading it on a separate level above

  4. #4
    Italy Novik2000's Avatar
    Join Date
    Jun 2001
    Posts
    360
    he ment that u need to create another flash movie that all what it do is play music...

    then in ur original (16?! scenes movie) u need to call
    Code:
    loadMovie(soundMovie,...)
    // put "2" at Level parameter (for example)
    at ur first frame of ur first scene.

    that will load ur sound movie on other level (on the original movie) and u could hear the music at all ur 16 (?!?) scenes...



  5. #5
    Junior Member
    Join Date
    Jul 2002
    Posts
    23
    is that gonna mess up my preloader? will my preloader still preload the mp3 even though its in a separate movie?


    p.s. i have 16 scenes because everytime the background image changed in my cartoon I created a new scene. It was easier to manage that way, rather than shuffling through thousands of frames to find a scene.

  6. #6
    Italy Novik2000's Avatar
    Join Date
    Jun 2001
    Posts
    360
    i think that if u load it in seperate movie u dont really need preloader for ur mp3, bcuz the main movie will start running and the seperate movie will start making noise (the music ) after it will load -> it won't interfer one another.

  7. #7
    Junior Member
    Join Date
    Jul 2002
    Posts
    23
    but i need my background music to start playing at a specific time so it syncs with certain parts of the movie, if it just starts playing when it loaded it might start like 10 seconds into the movie :-/

  8. #8
    Italy Novik2000's Avatar
    Join Date
    Jun 2001
    Posts
    360
    yep... ur right. u'll need to make interaction between the 2 movies to make them sync.

  9. #9
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    I just got to ask, why did you make 16 scenes? If this is some sort of linear thing, it should all be in one scene. I mean, you got 16,000 frames to play with, it all ought to fit. It's hard enough trying to sync a sound on a single timeline. Your never going to sync anything across scenes.

    The reason is, for flash to sync sound with frames, the sound has to be set to Stream, AND it has to be stretched out on the same timeline as the animation it's sync'd to. You can't do that across scenes.

  10. #10
    Junior Member
    Join Date
    Jul 2002
    Posts
    23
    sounds complicated. i guess i might as well just start copying and pasting my scenes onto one scene

  11. #11
    Junior Member
    Join Date
    Jul 2002
    Posts
    23
    Originally posted by iaskwhy
    I just got to ask, why did you make 16 scenes? If this is some sort of linear thing, it should all be in one scene. I mean, you got 16,000 frames to play with, it all ought to fit. It's hard enough trying to sync a sound on a single timeline. Your never going to sync anything across scenes.

    The reason is, for flash to sync sound with frames, the sound has to be set to Stream, AND it has to be stretched out on the same timeline as the animation it's sync'd to. You can't do that across scenes.

    i have 16 scenes because everytime the background image changed in my cartoon I created a new scene. It was easier to manage that way, rather than shuffling through thousands of frames to find a scene.

  12. #12
    Italy Novik2000's Avatar
    Join Date
    Jun 2001
    Posts
    360
    u can label a frame (each background changing frame) and it would be much easier for ya.
    Code:
    goToAndPlay(<%name of the label...%>);

  13. #13
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    How many frames total in your movie?

    I know it get's tough when you go over 3000 frames. I did an intro once that had 4700. I still get headaches.

    But it's the only way, unless you want to break up the sound. Which isn't a bad idea, if you read FAQ #19 here.

    Also read FAQ #10.

    Also bookmark the whole thread, after you read it.

  14. #14
    Junior Member
    Join Date
    Jul 2002
    Posts
    23
    thanks for those who helped me! heres my cartoon if you wanna watch it

    http://www.mykearmstrong.com/timetravel.htm

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