아싸 또 질문 들어갑니다. (사운드 관련^^)

bgSound = new Sound();
bgSound.setVolume(30);mySound = new Sound();
mySound.setVolume(100);effectSound = new Sound();
effectSound.setVolume(70);trace(bgSound.getVolume()) ;
trace(mySound.getVolume()) ;
trace(effectSound.getVolume()) ;

결과값

70

70

70

원래나왔어야할 결과값

30

70

100

바로 이겁니다.

이렇게 3개의 사운드를 생성하고..

다른 소리를 나게 할려고 하니..

볼륨이 모두 똑같아지네요.. 이럼 안되는데..

누구 아시는분 해결책좀요.. ^^

댓글 1

  • 이루리 2025.10.03

    new Sound(MovieClip)
    요런 식으로 각각 다른 무비클립에 대해 sound instance를 만들어주고 해보세용.

프로그램 개발일반 다른 글

목록