A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Dynamic Volume, 2 Simultaneous Clips

  1. #1
    Learn more, know less.
    Join Date
    Jul 2004
    Posts
    169

    Dynamic Volume, 2 Simultaneous Clips

    I have two clips and I want them to play simulatneously, but only one to be audible at once.

    I also want quickly cross fade them on a button click.

    What I have tried so far is to attach them both to the main timeline on Frame 1, and have one start at volume = 100 and the other at volume = 0.

    Each will individually work alone, so I know the linkage and whatnot is ok, but when both are added only one will play and their initialization codes are the same.

    I have been unable to get a crossfade to work at all.

    Can somebody throw me a bone on this one, I don't work with audio enough to troubleshoot this problem by myself.

    Thanks.

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    you need to break this problem down into two parts. If you have little experience with sound, give yourself some time with the cross fade especially, because it is something that some people have difficulty with.

    1) get volume control over two sounds.
    2) how to dynamically fade one sound.

    each sound object needs to be associated with its own movie clip.

    sound1 = new Sound(target path to mc 1)
    sound2 = new Sound(target path to mc2)

    review the Common Sound Problems FAQ for ideas on controlling fade out. You can apply this to more than one sound at a time.

  3. #3
    Learn more, know less.
    Join Date
    Jul 2004
    Posts
    169
    I just had them attached to the _root timeline...that is probably my issue. Thanks.

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