Sound.loadSoundAvailabilityFlash Player 6. UsagemySound.loadSound("url",
isStreaming)Parametersurl The location on a server of an MP3 sound file.
isStreaming A Boolean value that indicates whether the sound is a streaming
or event sound. ReturnsNothing. DescriptionMethod; loads an MP3 file into an
instance of the Sound object. You can use the isSteaming parameter to
indicate whether the sound is an event or a streaming sound. Event sounds
are completely loaded before they play. They are managed by the ActionScript
Sound object and respond to all methods and properties of this object.
Streaming sounds play while they are downloading. Playback begins when
sufficient data has been received to start the decompressor. As with event
sounds, streaming sounds exist only in virtual memory, they are not
downloaded to the hard drive. ExampleThe following example loads an event
sound: s.loadSound( "
http://serverpath:port/mp3filename", false);The
following example loads a streaming sound: loadSound(
"
http://serverpath:port/mp3filename", true);Start Flash og tryk "F1"
RTFM ;)
Go´ fornøjelse :)
Michael
--
"For a moment, nothing happened. Then, after a second or so, nothing
continued to happen."
- Hitchhikers guide to the galaxy.
"smaug" <nabsus(a)skalmod.dk> skrev i en meddelelse
news:42061771$0$13740$ba624c82@nntp03.dk.telia.net...
> Hej
> Jeg forsøger at lave en slags jukebox til en bandside -
> bandets egne numre skal kunne vælges og afspilles osv.
> Da jeg ikke har prøvet det før, vil jeg gerne vide,
> om man på samme måde som i et html okument har sine mp3 filer i roden og
så
> henviser/linker til dem med en botton,
> eller om man trækker mp3 ´erne ind på det lag hvor knapperne er og laver
et
> play-script på knappen
> Evt link til en tutorial ville være skønt
>
> vh
> Smaug
>
>