package { import flash.media.*; import flash.net.*; import flash.display.*; import flash.events.*; import com.everydayflash.equalizer.*; import com.everydayflash.equalizer.color.*; public class Main extends Sprite{ public function Main() { var s:Sound = new Sound(new URLRequest("track.mp3")); s.play(0, 100, new SoundTransform(1, 0)); var es:EqualizerSettings = new EqualizerSettings(); es.numOfBars = 128; es.height = 64; es.barSize = 3; es.vgrid = true; es.hgrid = 3; es.colorManager = new SolidBarColor(0xffff4444); es.effect = EqualizerSettings.FX_REFLECTION; var e:Equalizer = new Equalizer(); e.update(es); e.x = 100; e.y = 100; addChild(e); addEventListener(Event.ENTER_FRAME, e.render); } } }
package { import flash.media.*; import flash.net.*; import flash.display.*; import flash.events.*; import com.everydayflash.equalizer.*; import com.everydayflash.equalizer.color.*; public class Main extends Sprite{ public function Main() { var req:URLRequest = new URLRequest("http://twilightradio.ru:8000/radio2"); var context:SoundLoaderContext = new SoundLoaderContext(3000, true); var potok:Sound = new Sound(); var chanal:SoundChannel = new SoundChannel(); potok.load(req,context); chanal=potok.play(); var es:EqualizerSettings = new EqualizerSettings(); es.numOfBars = 128; es.height = 64; es.barSize = 3; es.vgrid = true; es.hgrid = 3; es.colorManager = new SolidBarColor(0xffff4444); es.effect = EqualizerSettings.FX_REFLECTION; var e:Equalizer = new Equalizer(); e.update(es); e.x = 100; e.y = 100; addChild(e); addEventListener(Event.ENTER_FRAME, e.render); } } }
SoundLoaderContext(3000, true);