Skip to main content
Inspiring
Dec 18, 2024 2:00 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    7 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    Dec 18, 2024 12:10 PM UTC

    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

    Translate
    Inspiring
    Dec 20, 2024 12:07 PM UTC

    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

    Translate
    kglad
    Community Expert
    Community Expert
    Dec 18, 2024 2:04 AM UTC

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

    Translate
    Inspiring
    Dec 18, 2024 2:32 AM UTC

    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..

    Translate
    kglad
    Community Expert
    Community Expert
    Dec 18, 2024 3:26 AM UTC

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

    Translate