A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: SWF of short sounds

  1. #1
    Generous Newbie
    Join Date
    Apr 2002
    Location
    London, UK
    Posts
    147

    SWF of short sounds

    I want to create a single "sound effects" SWF which contains a bunch of clicks, dings, etc. Most of these sounds will be 1/2 second or less in length. I would expect to have 15 - 25 short sounds in the SWF

    I would then load the SWF at runtime, and all of my other SWFs could call the sound-effect SWF to produce clicks, etc.

    What's the best way to set this up?


    Note: When I put a bunch of aif's in a FLA's library, then compiled, the resulting SWF was too small to actually have any of those sounds in it !!!
    Regards, William Donelson
    Explore the Taj Mahal, India - online VR tour - http://www.taj-mahal.net

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    1) you could add linkage IDs for each of these sounds and create a sound object on the root timeline for each sound.

    2) you could put each sound in its own movie clip.

  3. #3
    Generous Newbie
    Join Date
    Apr 2002
    Location
    London, UK
    Posts
    147
    Quote Originally Posted by hp3
    1) you could add linkage IDs for each of these sounds and create a sound object on the root timeline for each sound.
    So, for 20 sounds I would need 20 "layers" with each sound starting in frame 1,

    OR

    20 sounds sequentially in one layer, starting at different frame numbers, with some sort of array containing the sound name and start frame?

    OR

    Something else?

    ( I read the Sound FAQ but didn't see/understand anything relevant to my problem )
    Regards, William Donelson
    Explore the Taj Mahal, India - online VR tour - http://www.taj-mahal.net

  4. #4
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    my suggestion was to use either sound objects or movie clips. From your response I will assume you are not familiar with these concepts.

    Generally, for best interactive sound performance I would suggest that you put the sound in a container, either a sound object or a movie clip. You could also put each sound in a frame across the main timeline, but using gotoAndPlay() to jump across frames adds latency to sound playback. You will get better response time from playing a sound in a container like a sound object or movie clip.

    For more information on how to use sound objects I suggest you read Remixology #1 and 2
    http://www.sonify.org/home/feature/r...ogy/index.html

    For more information on how to use a movie clip as a sound container:
    http://www.sonify.org/tutorials/flas...nner/timeline/

  5. #5
    Generous Newbie
    Join Date
    Apr 2002
    Location
    London, UK
    Posts
    147
    Quote Originally Posted by hp3
    For more information on how to use sound objects I suggest you read Remixology #1 and 2
    http://www.sonify.org/home/feature/r...ogy/index.html
    Okay, I read those, but they have at least one error for Flash 7...

    And is there a way to set the Linkage ID for all 20 sounds to be the same as the sound name, in one go? Or do I have to set their linkages all one----at-----a------time ?
    Last edited by Donelson; 07-27-2006 at 12:19 PM.
    Regards, William Donelson
    Explore the Taj Mahal, India - online VR tour - http://www.taj-mahal.net

  6. #6
    Generous Newbie
    Join Date
    Apr 2002
    Location
    London, UK
    Posts
    147
    I am now able to use JSFL to set all the linkageIDs and Export flags. Neat!
    Regards, William Donelson
    Explore the Taj Mahal, India - online VR tour - http://www.taj-mahal.net

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