A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: [RESOLVED] Simple sound problem

  1. #1
    Ivor1 ivor1's Avatar
    Join Date
    Aug 2006
    Location
    Dundee, Scotland
    Posts
    478

    resolved [RESOLVED] Simple sound problem

    I want to have music playing the same track as the user navigates through the site; but whenever I go from frame to frame, the music starts afresh so that there are simultaneous versions of the same track playing.
    I have had to take the music off the attached fla due to the file size. Can anyone help me, please?
    Last edited by ivor1; 12-28-2008 at 02:08 PM.

  2. #2
    Ivor1 ivor1's Avatar
    Join Date
    Aug 2006
    Location
    Dundee, Scotland
    Posts
    478
    Ok, so I took off the multiple instances of the music button and only have one now. When I cllick forward from frame to frame, all works well, but as soon as I click back from ,say, frame three to one, another instance of the music starts up- so the problem, though narrowed down, remains. Can anyone help- I'm sure it's something simple?

  3. #3
    PlayerForever adi4x's Avatar
    Join Date
    Feb 2005
    Posts
    753
    Some tips

    - make a preloader on frame 1 ... you might have some problems later if you dont do that (like incomplete loading)
    After you check everything is loaded
    gotoAndPlay(10)
    (this means music starts only once)

    - place the startup music on frame 10 (lets say)
    gotoAndStop(11)

    - 1st chapter is on frame 11
    - 2nd on frame 12
    ....
    Card Games - play many card games free
    Free Games many free online games

  4. #4
    Ivor1 ivor1's Avatar
    Join Date
    Aug 2006
    Location
    Dundee, Scotland
    Posts
    478
    Okay, thanks for replying, but I'm still a bit confused. I have attached a version with a preloader but I'm still in the dark over the proper actions?
    Last edited by ivor1; 12-28-2008 at 02:08 PM.

  5. #5
    PlayerForever adi4x's Avatar
    Join Date
    Feb 2005
    Posts
    753
    I don't like the format you have. its a mess (too many layers, repeated code etc).

    I prefer to write the code directly on objects. Here is a very simple format for what you have with only 2 layers
    Over - here you place the content only once and will appear on all levels
    Content - unique content

    http://www.ucanplay.com/ivor.fla
    If you have more questions please explain better. I did not understand all you asked (english is not my first language)
    Card Games - play many card games free
    Free Games many free online games

  6. #6
    Ivor1 ivor1's Avatar
    Join Date
    Aug 2006
    Location
    Dundee, Scotland
    Posts
    478
    Thanks for taking a look. I cannot open your fla- I get the "unexpected file format" error message. I am using F8.
    My problem was whenever I navigate back from frame to frame- e.g. from assist to services, the music starts afresh so that more than one instance of the music track plays. I need to navigate with only one music instance playing at a time.

  7. #7
    PlayerForever adi4x's Avatar
    Join Date
    Feb 2005
    Posts
    753
    i updated the file..also now is saved flash 8 not cs3
    http://www.ucanplay.com/ivor2.fla
    Card Games - play many card games free
    Free Games many free online games

  8. #8
    Ivor1 ivor1's Avatar
    Join Date
    Aug 2006
    Location
    Dundee, Scotland
    Posts
    478
    Thanks for that.

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