• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Cómo validar una variable a un botón

Explorer ,
Nov 01, 2021 Nov 01, 2021

Copy link to clipboard

Copied

Cómo validar una variable a un botón para que muestre una imagen o texto y reproduzca un audio y al mismo tiempo indique que ya se escucho el audio.

Views

51

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2021 Nov 01, 2021

Copy link to clipboard

Copied

I don't understand your question really well, and that is not due to the language.

You cannot "attach" a variable to a button, but you can use the Success event (when clicked) of the button to trigger an action. To show a text and play an audio, you don't even need an advanced action. Create a multistate object, keep the Normal state seemingly empty by adding a shape with no fill (Alpha=0) and no stroke. Add a custom state 'State 1'to that object in which you display the text in the shape and add audio. To the button you attach the action:

  Change State  ....           and indicate the multistate object and the added state with text and audio

 

If indeed you also want to track if that button has already been clicked and the audio has been played you will need an advanced (or shared) action and a tracking variable. You will need a two-decision action, I will label the variable v_1. Add a third state to your multistate object in which you add the message 'Audio has already been played', and label that state 'State 2' :

First decision 'Always'

    Increment v_1

Second decision (conditional) 'CheckIt'

    IF v_1 is greater than 1

        Change State                where you go to State 2

    ELSE

        Change State                 where you go to State 1

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 01, 2021 Nov 01, 2021

Copy link to clipboard

Copied

excellent I will try, thank you very much, Lilybiri

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 02, 2021 Nov 02, 2021

Copy link to clipboard

Copied

LATEST

Hope it works, let me know!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines