A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: is every sound loaded in Flash Player 6 or 7 streamed?

  1. #1
    Older Member jankratochvil's Avatar
    Join Date
    Nov 2001
    Location
    CZECH
    Posts
    977

    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.

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    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);

  3. #3
    Older Member jankratochvil's Avatar
    Join Date
    Nov 2001
    Location
    CZECH
    Posts
    977

    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.

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Think you should check this fabulous soundObject tutorial... It describes all of this stuff...

    http://www.kennybellew.com/tutorial/

  5. #5
    Older Member jankratochvil's Avatar
    Join Date
    Nov 2001
    Location
    CZECH
    Posts
    977
    Great thanks


    Originally posted by oldnewbie
    Think you should check this fabulous soundObject tutorial... It describes all of this stuff...

    http://www.kennybellew.com/tutorial/
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center