Chapter 31 Example 1
♥0 |
Line 16 |
Modified 2010-02-04 20:01:40 |
MIT License
archived:2017-03-20 03:52:58
ActionScript3 source code
/**
* Copyright actionscriptbible ( http://wonderfl.net/user/actionscriptbible )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/jUOG
*/
package {
import flash.display.Sprite;
import flash.media.Sound;
import flash.media.SoundLoaderContext;
import flash.net.URLRequest;
public class ch31ex1 extends Sprite {
public function ch31ex1() {
//The Four Seasons: Winter [performance & recording in the public domain]
//composed by Antonio Vivaldi, performed by the US Air Force Band
var winterSong:Sound = new Sound();
winterSong.load(
new URLRequest("http://actionscriptbible.com/files/winter.mp3"),
new SoundLoaderContext(1000, true)
);
winterSong.play();
}
}
}