Skip to main content
Inspiring
December 18, 2024
Question

Is it possible to preLoad a sound clip before any button is clicked on the stage?

  • December 18, 2024
  • 2 replies
  • 445 views

Hi guys, searched but haven't found a definitive answer to this. I have a rather long dialogue in my project. The movie starts when the user clicks the play button. The first dialog will not load properly but the rest seems to run Ok after that. I would be happy just to load that first dialogue clip if possible Before the button is pressed. Is this possible?

    This topic has been closed for replies.

    2 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    December 18, 2024

    Hi.

     

    If your sound is in the library and it has a linkage assigned to it, Animate will set it the be preloaded automatically.

     

    How are you playing your sounds?

     

    Please let us know.

     

    Regards,

    JC

    Inspiring
    December 20, 2024

    My dialogue sounds are directly on the timeline for this project and they start playing when a button is pressed. If I press the button and wait 10 sec or whatever and then re-press, the sounds play fine, otherwise the first dialogue stutters

    kglad
    Community Expert
    Community Expert
    December 18, 2024

    you can ~anything, but in html5, you can't play anything audible without user interaction.

    Inspiring
    December 18, 2024

    Thanks again, sorry not sure what "~anything" means?
    I know I can't play sounds before a click, but can I preload sounds before a click? Even just the first dialogue clip would be enough to get it going smoothly I think. After the first sound clip it runs smoothly..

    kglad
    Community Expert
    Community Expert
    December 18, 2024

    yes, you can start (and even complete) a sound (or sounds) without user interaction.