Created
March 27, 2015 10:55
-
-
Save jamieshepherd/e46bb1102a37f2091a58 to your computer and use it in GitHub Desktop.
Loop music Flash AS2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Background music | |
this.createEmptyMovieClip("m",_root.getNextHighestDepth()); | |
audioVolume = 50; | |
backgroundMusic = new Sound(m); | |
backgroundMusic.attachSound("background-music"); | |
backgroundMusic.setVolume(audioVolume); | |
backgroundMusic.start(0,0); | |
backgroundMusic.onSoundComplete = function() { this.start(); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment