0 Replies Latest reply on Jan 25, 2007 7:48 AM by homerlex

    MediaPlayback - what is wrong with this code?

      Flash 8 Pro.

      Documenation on using the MediaPlayback component is a bit limited. But from what I read I expect the following code to play my mp3 but it doesn't.

      var player:mx.controls.MediaPlayback
      player.mediaType = "MP3";
      player.contentPath = "test.mp3"

      If I drag a MediaPlayer object on the stage and set the params the mp3 plays fine. I'd like to get it working by instantiating my own object.

      Any help is greatly appreciated.