From 9da0886afcdc120e6b0dab847664e3612118db66 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Sat, 15 Nov 2008 02:51:04 +0000 Subject: [PATCH] Dammit! Id3 tags are not working at all. I'm checking the crossdomain.xml. Grr! Removed debugging. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@707 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flash/media/Mp3AudioPlayer.as | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/as/com/threerings/flash/media/Mp3AudioPlayer.as b/src/as/com/threerings/flash/media/Mp3AudioPlayer.as index 49b3337d..2c743402 100644 --- a/src/as/com/threerings/flash/media/Mp3AudioPlayer.as +++ b/src/as/com/threerings/flash/media/Mp3AudioPlayer.as @@ -13,6 +13,7 @@ import flash.events.TimerEvent; import flash.media.Sound; import flash.media.SoundChannel; +import flash.media.SoundLoaderContext; import flash.media.SoundTransform; import flash.net.URLRequest; @@ -27,7 +28,6 @@ public class Mp3AudioPlayer extends EventDispatcher { public function Mp3AudioPlayer (loop :Boolean = false) { - trace(".............. v3"); _loop = loop; _positionChecker = new Timer(25); @@ -45,7 +45,7 @@ public class Mp3AudioPlayer extends EventDispatcher _sound.addEventListener(Event.ID3, handleId3); // TODO _sound.addEventListener(IOErrorEvent.IO_ERROR, handleError); _sound.addEventListener(Event.COMPLETE, handleSoundComplete); - _sound.load(new URLRequest(url)); + _sound.load(new URLRequest(url), new SoundLoaderContext(1000, true)); play(); } @@ -177,7 +177,7 @@ public class Mp3AudioPlayer extends EventDispatcher protected function handleId3 (event :Event) :void { - trace("got ID3: Duration is now : " + _sound.length); + trace("Got ID3"); } /**