-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
42 lines (28 loc) · 1.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Works with the latest version of TweenLite.
Useage 1:
instead of using:
import com.reintroducing.sound.SoundManager;
import flash.utils.getDefinitionByName;
var manageSound:SoundManager=SoundManager.getInstance();
manageSound.addLibrarySound(getDefinitionByName("loop"), "loop");
manageSound.playSound("loop", 1, 0, 999);
just do this:
import com.reintroducing.sound.SoundManager;
var manageSound:SoundManager=SoundManager.getInstance();
manageSound.addSound("loop");
manageSound.playSound("loop", 1, 0, 999);
addMultiplesSounds functionality
package
{
public class Sounds
{
static public const LOOP_SOUND = "LoopSound";
static public const CLICK_SOUND01 = "ClickSound01";
static public const CLICK_SOUND02 = "ClickSound02";
}
}
import com.reintroducing.sound.SoundManager;
var manageSound:SoundManager=SoundManager.getInstance();
manageSound.addMultiplesSounds([Sounds.LOOP_SOUND, Sounds.CLICK_SOUND01, Sounds.CLICK_SOUND02]);
manageSound.playSound(Sounds.LOOP_SOUND, 1, 0, 999);
manageSound.playSound(Sounds.CLICK_SOUND01);