0 Replies Latest reply on May 28, 2009 6:50 PM by lmcrun19

    Making a XMLList


      I have this code that streams an MP3. The code works well. I would like to stream a list of mp3's. I assume I can do it through an XMLList. I'm a newbie at flex so if anyone knows how I could go about doing this, I would be grateful.


      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
                  import flash.media.Sound;
                  import flash.media.SoundLoaderContext;
                  import flash.net.URLRequest;
                  private function PlaySound():void {
                      var s:Sound = new Sound();
                      var req:URLRequest = new URLRequest("http://www.englishlogic.com/mp3player/assets/Grazin in the Grass.mp3");
                      var context:SoundLoaderContext = new SoundLoaderContext(4000, true);
                      s.load(req, context);
          <mx:Panel width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
              <mx:Button label="play" click="PlaySound()"/>