Hi,

Used your snippet and it works for me. 

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens David Saunders
Verzonden: dinsdag 4 juli 2006 5:37
Aan: [email protected]
Onderwerp: [Flashcoders] Problems with IE starting a sound stream.

I tried loading the flash player from several version of IE, the sound never
starts. I can play the flash on the same computer in firefox or standalone.

But the problem is not that it not geting the data, but not startign to play
the stream.. I use the following code.

<-- code snip -->

this.createTextField("message_txt", this.getNextHighestDepth(),
10,10,300,22)
this.createTextField("status_txt", this.getNextHighestDepth(), 10, 50, 300,
40); status_txt.autoSize = true; status_txt.multiline = true;
status_txt.border = true;


_soundbuftime=3;

var globalsound = new Sound();
globalsound.loadSound("http://ss1.gotdns.org:8000/test",true);
globalsound.start(true);

var my_interval:Number;
my_interval = setInterval(checkProgress, 100, globalsound); function
checkProgress(the_sound:Sound):Void {
   var pct:Number = Math.round
(the_sound.getBytesLoaded()/the_sound.getBytesTotal()*100);
   var pos:Number = Math.round(the_sound.position/the_sound.duration*100);
   status_txt.text = the_sound.getBytesLoaded()+" of
"+the_sound.getBytesTotal()+" bytes ("+pct+"%)"+newline;
   status_txt.text += the_sound.position+" of "+the_sound.duration+"
milliseconds ("+pos+"%)"+newline;
}

stop();

<--- End code snip -->

The getBytesTotal and duration incresases, the getBtytesloaded and position
stay at 0.. My obsevation says the flash is geting the mp3 stream, yet never
starting to play it?



I am a newbie at codeing flash and useing this project to learn what i can
:)
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to