-
Older Member
is every sound loaded in Flash Player 6 or 7 streamed?
Hi, i try to do some with sound.
I want test loading of mp3 e.g. background music.
Basic q.
Is every sound loaded as streamed?
Or can i specify it with AS?
Thanks.
I like all FLASH fans, but my girl can't stand them.
-------------------------------------------
I am still learning
Sorry for my stupid questions (sometimes) and bad English.
-
Nope... You can load an event sound or a streaming one...
Sound.loadSound
Availability
Flash Player 6.
Usage
mySound.loadSound("url", isStreaming)
Parameters
url 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.
Returns
Nothing.
Description
Method; 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.
Example
The 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);
-
Older Member
re: preloader for streaming sound
thanks for answ.
can be used preloader for streaming sound
i saw e.g. voice mesages on some sites e.g. www.derekfranklin.com
is nice to see how many of the sound was played and what is left.
is difficult to do those preloader for streaming sound?
Thanks
I like all FLASH fans, but my girl can't stand them.
-------------------------------------------
I am still learning
Sorry for my stupid questions (sometimes) and bad English.
-
Think you should check this fabulous soundObject tutorial... It describes all of this stuff...
http://www.kennybellew.com/tutorial/
-
Older Member
Great thanks
I like all FLASH fans, but my girl can't stand them.
-------------------------------------------
I am still learning
Sorry for my stupid questions (sometimes) and bad English.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|