A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: loading sound outside of the pre-loader?

  1. #1
    Always Learning Off Top's Avatar
    Join Date
    Apr 2002
    Location
    New Orleans, LA
    Posts
    176

    loading sound outside of the pre-loader?

    Hi folks,

    Still using Swish 2.0, is there a way to load music to a swf AFTER the movie is played, but only have the preloader load the movie?

    For example, let's say a movie has an intro and then a main page. The intro is 300k, and you want the main page to have some music in the background... you set the preloader to load the movie, but you don't want it to wait until the main page's music is loaded before the intro starts. How would one pull that off?
    "Twenty years from now you'll be more disappointed by the things you didn't do than by the ones you did."
    - Mark Twain

  2. #2
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    When an audio track is loaded into swish
    it is the first thing that is loaded before a scene.


    If your audio is to be loaded in another scene then you
    can go to the audio properties and define at scene.

    The wise thing would simply be to load the audio into
    another swf and load that one into a sprite or level
    After the preloader section is done.
    Thusly loading sound when loading the loaded movie.

    Frets

  3. #3
    Always Learning Off Top's Avatar
    Join Date
    Apr 2002
    Location
    New Orleans, LA
    Posts
    176
    but won't that add to the time it takes to finish preloading?

  4. #4
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    No
    A loaded movie is an external movie.

    If you place the external swf after
    the preloader. it won't affect the
    preloader or the loading of content
    in the parent movie.

  5. #5
    Always Learning Off Top's Avatar
    Join Date
    Apr 2002
    Location
    New Orleans, LA
    Posts
    176
    so the external swf will only be loaded when it's triggered in the movie, correct?

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