The setup is 2 frames,
first frame there's a menu and 1 type of background music
second frame there's a different menu and another type of background music
Placing the background music is easy, the problem is, after I've made the transition from frame 1 to frame 2 via a button the remaining of frame 1's music overlaps into frame 2's music (until it's over) is there a way to kill frame 1's music before gotoAndStop(1)
?
the 2 sound files are in the library named 'bgmusic1' and 'bgmusic2'.
thanks ahead!
经过彻底搜索之后,答案是为库中的每个声音实例创建一个链接,并使用createjs.Sound.Play("linkageName',0,0,0,1);
播放它们createjs.Sound.Play("linkageName',0,0,0,1);
<-这也会使它们同时循环,然后使用createjs.Sound.Stop();
在播放新实例之前,我希望它们停止。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.