Discover & Rate New Music Check out ChartVote. Promote the music you like.

Flash Player 9.0.115.0 Sound Position Bug

I recently upgraded to flash player 9.0.115.0 and I’ve found that when “pausing” an mp3 and storing the song’s position when it was paused and then restarting the song with the position that was stored causes the song to play about 1.5 seconds ahead of where I stopped the song at? This was working fine with the previous version of flash. Anyone else experiencing this?

This bug manifests itself everywhere the new player version(9.0.115.0) is used including the Flash CS3 IDE, Internet Explorer and Firefox. I’ve done a quick search of the flash forums, but I have not seen anyone else with this issue.

I don’t think this is a browser issue since this bug is even reproduced in the actuall flash CS3 IDE. I believe this is an issue with the flash player itself.

Flash Video Player in ActionScript 3

You can find a flash video player on almost any website these days, the market is white hot for it. The past few months I have been porting my knowledge from Actionscript 2 to 3.

There are 2 ways to play an FLV file in flash either with a FLVPlayback component or VIA a Video object streamed and controlled with NetConnect and NetStream. I prefer the later because I like to have more "control" over things, but this is a personal preference.

CODE

ACTIONSCRIPT:
  1. var nc:NetConnection = new NetConnection();
  2.  
  3. nc.connect(null);
  4.  
  5. var ns:NetStream = new NetStream(nc);
  6.  
  7. var vid:Video = new Video(320, 240);
  8. this.addChild(vid);
  9.  
  10. vid.attachNetStream(ns);
  11.  
  12. ns.play("http://www.mydomain.com/mymovie.flv");
  13.  
  14. ns.addEventListener(NetStatusEvent.NET_STATUS, netstat);
  15.  
  16. function netstat(stats:NetStatusEvent) {
  17.       trace(stats.info.code);
  18. }
  19.  
  20.  
  21. var netClient:Object = new Object();
  22. netClient.onMetaData = function(meta:Object) {
  23.  
  24.     trace(meta.duration);
  25.  
  26. };
  27.  
  28. ns.client = netClient;

RSS Feed



Recommended Sites