Hi Kerry.  I have found the easiest way to using streaming SWA over the net
is to first use Insert -> Media Element -> Shockwave Audio.  I link this to
a "dummy" file and then dynamically change this cast member attributes
(URL), as opposed to creating a new SWA object from scratch.  This allows
you to use the preloadBuffer member "dummy" operation after you have set the
URL.
ex.
swaFile = "http://www.lobo.net/~bryantek/mp3/167a1.mp3"
member( "dummy" ).url = swaFile
preloadBuffer member "dummy"
Then on your play button you would have something like this.

if member( "dummy" ).state < 9 then    --- state, not status
  -- no error has occurred
  play member "dummy"
end if

Please note this all off the top of my head, but I hope this helps.

Ryan

-----Original Message-----
From: Kerry Thompson <[EMAIL PROTECTED]>

>I've hit a wall.
>
>I'm trying to stream an MP3 off our Web site in Shockwave. Everything works
>fine locally, but I can't get the file to stream from the Web.
>
>I have this in my initialization (a frame script):
>
>   swaFile = "http://www.lobo.net/~bryantek/mp3/167a1.mp3"
>   gSoundObj = new(#swa)
>   gSoundObj.url = swaFile
>   stop(gSoundObj)
>
>Then my play button has this script:
>
>   if (sound(1).status=4 or sound(1).status=0) then
>       play(gSoundObj)
>   end if
>
>In the debugger, the status is 0, but it doesn't play. Preload time is set
>to 5.
>
>The cast member is being created, with the right URL. Double-clicking the
>cast member, then clicking Play also doesn't work. Yet, everything works if
>the sound file is local.



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to