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

How to enable the close button from the popup once the audio from the popup is completed

Community Beginner ,
Jan 20, 2023 Jan 20, 2023

Copy link to clipboard

Copied

Hello Madam/Sir,

Good Morning/Good Evening,

 

There is a issue with my project, please find the explanation below:

Explanation:

1) There are 4 buttons on the main slide, and the 4 buttons have 4 pop ups with 4 close buttons on the same main slide.

2) These 4 popups have audio's inside them.

3) Once the audio's from the 1st popup is done playing then only the close button from the 1st popup should activated to close the popup. Till then it should be disabled. It is the same for the remaining 3 popups.

4) When all the popup audio's are finished playing next button should be enabled.

 

Is there a way to write a advanced action for this case?

Views

1.0K

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

correct answers 2 Correct answers

Community Expert , Jan 23, 2023 Jan 23, 2023

Sorry, will not write out a full solution, would take me too long since I'll need to create an example project.

Here some tips:

  1.  The buttons for the popups appear staggered on the Timeline (my guess), probably because it is synched with the description in the slide audio. Know that a button is active when it appears. You could have a non-active shape representing the button and cover it with an active shape which has a timeline starting after the end of the slide audio to avoid having to juggle
...

Votes

Translate

Translate
Community Expert , Jan 23, 2023 Jan 23, 2023

Lot of the objects are not even in a fluid box. Please switch to a non-responsive project.

It looks like the popups are in the same location, so my recommendation to replace them by a multistate object and ONE close button is reinforced that that knowledge. You can have a multistate object with an empty Normal state (Opacity and Stroke set to 0), and the content text in a state. The action to open such a popup would be reduced at:

   Change state of.... to

   Play audio
   Delay next actions by .

...

Votes

Translate

Translate
Community Expert ,
Jan 20, 2023 Jan 20, 2023

Copy link to clipboard

Copied

Sure that is possible but I would first like to know:

  • How do you create the popups: are they states in a multistate object or are they individual objects?
  • How do you open a popup?
  • Do you use the same close button for all the popups or do you have an instance of that button for each popup?
  • Is it possible for the learner to open the same popup multiple times? That is important for the action to be used showing the Next button when all popups have at least opened once and audio has played fully for them.
  • If a learner opens a popup for the second (or later) time, is it still compulsory to listen to the full audio clip?
  • What is in the popup besides the clos button: image, text....? 
  • If you use an instance of the button for each popup, did you group that button with the popup?
  • Can you post a screenshot of the Timeline?

Votes

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 Beginner ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

Please find the explanation below: 

1) Mam, the popups are individual objects made from smartshapes.

2) Popups are opened by clicking the individual buttons. Eg. When button 01 is clicked popup 01 will open. I guess this is wat you were asking.

3) Each popups have different close buttons. Eg. Popup01 will have close 01 button, popup02 will have close 02 buttons. Popup03 for close 03, popup04 for close 04.

5) Yes, it is possible for the learner to open the popup multiple times, but the next button should only be activated when all the popups are finished playing.

6) Mam the learner should not listen to the audios of the popups when the learner revisits for the second time. And the close button should be activated for the second time for all the visited popups.

7) Inside the popups there are texts with audio's.

8) Mam I dint group the popup and the close button as this is a responsive project. 

9) Screenshot of the timeline

 

Votes

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 ,
Jan 23, 2023 Jan 23, 2023

Copy link to clipboard

Copied

Moreover you also have slide audio!  What needs to happen when slide audio is playing and the learner clicks a button which would start object audio? This is becoming a very complicated question, especially since you are probably on a Fluid Boxes (not a Breakpoint views) responsive project.

You don't want to force the learner to repeat the forced view on a second visit, but what about the slide audio? Do they need to listen to that audio before seeing the Next button?

 

I really fear to try to offer you help, because I also would need to see the full set up of the Fluid Boxes.  

Here are some links that could explain my 'fear':

https://blog.lilybiri.com/play-audio-once-on-first-visit

https://blog.lilybiri.com/combining-slide-audio-and-play-audio

https://blog.lilybiri.com/force-first-slide-view-micro-navigation

 

Votes

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 Beginner ,
Jan 23, 2023 Jan 23, 2023

Copy link to clipboard

Copied

Hello Mam,

Good Morning/Good Evening,

 

1) No problem Mam, this is a test project I'll switch from a responsive project to a static project.
2) The first time the learner has to listen to the slide audio completely, then only the learner should be able to hear the slide audios.
3) On revisit, the learner can directly stop the slide audio and click the popups and the learner doesn't need to hear the slide audios as well as the 4 popup audios completely.
5) The learner can directly close the popup without hearing the full audio, the close button should be enabled on the second revisit.
4) Mam, I hope that I am not confusing you.
5) Whatever you suggest I'll follow that.

 

Thank you, Mam, Being a busy professional you are putting a lot of effort to solve our problems.

Votes

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 Beginner ,
Jan 23, 2023 Jan 23, 2023

Copy link to clipboard

Copied

Correction in point slide, it was a typing mistake.

2) The first time the learner has to listen to the slide audio completely, then only the learner should be able to hear the popup audios.

Votes

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 Beginner ,
Jan 23, 2023 Jan 23, 2023

Copy link to clipboard

Copied

Pls, ignore the above point.

Correction on the second point, again it was a typing mistake.

2) The first time the learner has to listen to the slide audio completely, then only the learner should be able to hear the popup audios.

Votes

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 ,
Jan 23, 2023 Jan 23, 2023

Copy link to clipboard

Copied

Sorry, will not write out a full solution, would take me too long since I'll need to create an example project.

Here some tips:

  1.  The buttons for the popups appear staggered on the Timeline (my guess), probably because it is synched with the description in the slide audio. Know that a button is active when it appears. You could have a non-active shape representing the button and cover it with an active shape which has a timeline starting after the end of the slide audio to avoid having to juggle with Disable/Enable.
  2. None of the buttons I see have a pausing point, you would need at least one pausing point or the play head will just go to the next slide after reaching the last frame. I don't see the Next button pausing point neither, but you cannot count on that pause because it probably will be hidden in output.
  3. Where are the Close buttons in the Timeline? I suspect that Timeline screenshot was not complete. Same with the popups? If those popups can appear in the same location, I would use a multistate object having all the popups and ONE close button. That will simplify your advanced or better shared actions a lot.

Votes

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 Beginner ,
Jan 23, 2023 Jan 23, 2023

Copy link to clipboard

Copied

This is the screenshot mam

Dexter2012_0-1674474532585.pngDexter2012_1-1674474553929.png

 

Votes

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 ,
Jan 23, 2023 Jan 23, 2023

Copy link to clipboard

Copied

Lot of the objects are not even in a fluid box. Please switch to a non-responsive project.

It looks like the popups are in the same location, so my recommendation to replace them by a multistate object and ONE close button is reinforced that that knowledge. You can have a multistate object with an empty Normal state (Opacity and Stroke set to 0), and the content text in a state. The action to open such a popup would be reduced at:

   Change state of.... to

   Play audio
   Delay next actions by ...    which is the duration of the audio clip
    Assign v_x with 1           (you'll need a user variable for each button)

   Show button             close button, will now always have same ID

This can easily be converted to a shared action as well. To prevent the later appearance of the Close button 

 

Votes

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 Beginner ,
Jan 23, 2023 Jan 23, 2023

Copy link to clipboard

Copied

Sure Mam will change it to a non-responsive project. Thank you for your suggestion.

Votes

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 Beginner ,
Jan 28, 2023 Jan 28, 2023

Copy link to clipboard

Copied

Good Evening/Good Afternoon Mam,

I hope that I have followed what you have suggested. Please correct me if I am wrong.

Votes

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 Beginner ,
Jan 28, 2023 Jan 28, 2023

Copy link to clipboard

Copied

I achieved the result.

Votes

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 ,
Jan 28, 2023 Jan 28, 2023

Copy link to clipboard

Copied

Great news! Can you mark the answers which helped you to success as being correct, please?

Votes

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 Beginner ,
Jan 28, 2023 Jan 28, 2023

Copy link to clipboard

Copied

Thank you mam for your great support! All the credit goes to you.

Votes

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 ,
Jan 28, 2023 Jan 28, 2023

Copy link to clipboard

Copied

You're welcome! May I explain why I asked to mark one or more answers as being correct? It is for the sake of other users finding this thread, and looking for a solution. You marked my last comment as being correct, but that will not be so helpful for other users, right? I took out that mark, please try to find an (more than one is also possible if they are supplementary) answer that is meaningful to other users. Thanks!

Votes

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 Beginner ,
Jan 28, 2023 Jan 28, 2023

Copy link to clipboard

Copied

LATEST

Done. Earlier the wrong thread was clicked as the correct answer. I have selected two options as correct answers. 

Votes

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
Resources
Help resources