Skip to main content
Participant
October 30, 2014
Question

flash.media.Sound won't play from position: 0 with specific data url

  • October 30, 2014
  • 0 replies
  • 219 views

I couldn't access the Flash Bug reporting website so I will post this here.

I am using flash.media.Sound class to start mp3 playback and this particular file does not work if the startPosition = 0. If I set startPosition to 1, it works.

var url:String = "https://www.dropbox.com/s/osret7iqo0kvcp6/troubleFile.mp3?dl=1";

private var mp3Context:SoundLoaderContext = new SoundLoaderContext(3000, false);

private var mp3Sound:Sound = new Sound();

private var mp3Request:URLRequest = new URLRequest(url);

mp3Sound.load(mp3Request, mp3Context);


Doesn't work:

mp3Sound.play(0);

Works:

mp3Sound.play(1);

Can you please debug this file on your flash.media.Sound?

This topic has been closed for replies.