0 Replies Latest reply on Jun 24, 2008 9:05 AM by chieffan

    need help with mediaDisplay component

    chieffan Level 1
      I am working on a project that requires the mediaDisplay component for Flash player 6. The initial playing works fine but when I get onComplete I want to be able to click a button and pay a different audio. The new audio wont' play.

      The code is:

      var listenerObject:Object = new Object();
      listenerObject.complete = function(eventObj:Object) {
      enable()
      };
      myMedia.addEventListener("complete",listenerObject);
      myMedia.setMedia("narrator.mp3","MP3");
      myMedia.autoPlay = true;
      myMedia.associateController(myController);

      The on my button release function I have

      myMedia.setMedia("buttonaudio.mp3","MP3");
      myMedia.autoPlay = true;
      myMedia.play;

      I have traced the path and it shows the correct path but no audio plays. Please any help is appreciated.