forked from: Simple mp3 loop

by makc3d forked from Simple mp3 loop (diff: 40)
♥1 | Line 16 | Modified 2010-12-28 05:08:35 | GPLv3 License
play

ActionScript3 source code

/**
 * Copyright makc3d ( http://wonderfl.net/user/makc3d )
 * GNU General Public License, v3 ( http://www.gnu.org/licenses/quick-guide-gplv3.html )
 * Downloaded from: http://wonderfl.net/c/pzKv
 */

// forked from noobius's Simple mp3 loop
package {
    import com.actionscriptbible.Example;
    import flash.media.Sound;
    import flash.net.URLRequest;
    public class FlashTest extends Example {
        public function FlashTest () {
            trace ("You can't get rid of teh gap.");
            trace ("You just CAN'T.");
            trace ("Get over it.");
            trace ("It's part of mp3 format, called ISO padding.");
            trace ("The best you can do is incorporate the gap in melody itself.");

            var mp3:String = "http://0xffffff.ru/flash/exp/as3/musical/wonderingpixelsdance/06.mp3";
            (new Sound (new URLRequest (mp3))).play (0, int.MAX_VALUE);
        }
    }
}