dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: stop sound and mc position in external swf..help!!

  1. #1
    Member
    Join Date
    Mar 2001
    Posts
    73

    I have a background music loop playing with an on/off button to operate it. The mc for it has 3 stages:-
    start/on/off - which is all loaded from an external file. This all works fine, but the problem lies with another button that plays a steaming sound track to a large animation, I have it set to stop all sounds - which is fine, but the on/off button (if playing when stopped)is left in the wrong state - the "on" position.
    This is serious, because it is now giving out the wrong information, plus it causes problems when clicked on again - like duplicate music loops.

    Anyway, I was wandering if you could advise me on how I can tell the b/g music loop to not only stop, but go to a particular position within it's mc (which is external).

  2. #2
    Challenge the Conventional
    Join Date
    Jun 2000
    Posts
    775
    you have two options ...

    first is to target you MC in the external .swf when you click on the button to stop the streaming sound track.

    ie.

    on(release) {
    stopAllSounds();
    _leveln.gotoAndStop("stop label");
    }

    your other option is to use the soundObject and use the click of the button to stop only the streaming sound track and leave the background sound loop playing.

    hope this helps. If you need some more info on using the soundObject, just shout.

    P

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