11 Replies Latest reply: Aug 19, 2014 12:40 PM by uniquescreennamelol RSS

    Toggle Play/Pause buttons with smartshape

    Cbreem Community Member

      Hi,

       

      I have a presentation with three slides.

      On the first slide I create two smartshapes: one as Play button, one as Pause button.

      They are placed on top of each other with the option Display for the rest of the project.

      Play is hidden when Pause is shown and vice-versa.

       

      That works on all slides.

       

      BUT as soon as I tick 'Place object on top', then the functionality only works on the first slide. I can no longer click the shapes on the second or third slide.

      Is that a known bug or am I missing something?

       

       

      Thanks,

      Christophe

       

      Pause.png

      Play.png

        • 1. Re: Toggle Play/Pause buttons with smartshape
          Cbreem Community Member

          By the way, when I don't put the shapes on top of each other, then it works.

          • 2. Re: Toggle Play/Pause buttons with smartshape
            Lilybiri CommunityMVP

            I'm Lieve. First question: can you tell me the exact version you are using? Look in Help; About Captivate.

            • 3. Re: Toggle Play/Pause buttons with smartshape
              Cbreem Community Member

              Hi Lieve,

               

              It's captivate 7.0.1.

              • 4. Re: Toggle Play/Pause buttons with smartshape
                Lilybiri CommunityMVP

                Busy checking, I know there is something tricky about Play/Pause in 7 (sighing, not all my blog posts are valid for all versions, too much changes) and once found a solution but didn't blog it. I will try to figure it out, believed you couldn't solve it with two shape buttons each triggering a standard action, but you needed one shape button that triggers a conditional action and switching images. Can you be a bit patient, have a lot on my plate today?

                 

                Lieve

                • 5. Re: Toggle Play/Pause buttons with smartshape
                  Cbreem Community Member

                  Hi Lieve,

                   

                  thank you for checking. This is not urgent, because in my specific case I was able to solve it by not using the 'place object on top' option. (I merged the other images into the background of the masterslide, so my buttons are no longer hidden. However, this will not always be possible.) I would like to find a solution for future projects though.

                   

                  I didn't know you could change the image conditionally, that might be a solution. I will also check this possibility.

                   

                  Christophe

                  • 6. Re: Toggle Play/Pause buttons with smartshape
                    RodWard CommunityMVP

                    If you go with a conditional action executed by a single button, you can also make the text in the button a user variable and use the conditional action to change the text from Play to Pause and vice versa.

                    • 7. Re: Toggle Play/Pause buttons with smartshape
                      John Denner Community Member

                      I know this thread is a bit old but I found that hiding only changes the visibility but the button still works. Just like disable turns the interactivity off but has the shape still visible. So I use hide and disable or show and enable to completely turn a button off and on. By doing this you can stack buttons.

                       

                      So next time try:

                      Hide        btnPauze

                      Disable   btnPauze

                      Show      btnPlay

                      Enable    btnPlay

                       

                      and do the reverse for the other script.

                      • 8. Re: Toggle Play/Pause buttons with smartshape
                        Lilybiri CommunityMVP

                        Sorry, a hidden interactive object is disabled.  Don't confuse people.

                        • 9. Re: Toggle Play/Pause buttons with smartshape
                          John Denner Community Member

                          Thank you for consistently telling me I'm wrong. I appreciate your in depth knowledge but could do without the short remarks on me being incorrect. I may have been a little unclear so I do apologize for that but I was answering the question in the context of her problem and not all interactive objects. Sorry about that.

                           

                          I have found over and over again that hidden interavtive objects set to display for the rest of the project and checked as always on top, behave badly on slides further down the module unless you disable them. Even though the button is not visible and 10 slides away I will still get a click sound (if turned on of course. don't want to confuse people), unwanted behavior (exact same as behavior as Cbreem), but strangely no hand cursor over the hidden object itself (yes I have it checked). And if I have a button below the problem button (because the problem button is set to always on top) you cannot click on it or get any type of rollover effect because the hidden button gets in the way. However, if I hide and disable the button then everything works great.

                           

                          Maybe this is a bug like Cbreem alluded to but I've found that hiding an object doesn't always disable it. I wish it did.

                           

                          In this screenshot I've highlighted where the hidden button is located. It's "covering" a corner of 4 other buttons. You should be able to see a rollover effect where the hand cursor is but the hidden object is preventing the button from working. I could click on this spot all day and the button below will never fire.

                           

                          7-3-2014 3-06-10 PM.png

                           

                          I sincerely apologize if I confused anybody but I wanted to share this workflow and hopefully help out another person facing the frustrating behavior. Hide and Disable.

                          • 10. Re: Toggle Play/Pause buttons with smartshape
                            ureymills00 Community Member


                            Did you ever get a response?

                            • 11. Re: Toggle Play/Pause buttons with smartshape
                              uniquescreennamelol Community Member

                              I used a conditional action to toggle play/pause with a smartshape.

                              Two images (img_Play and img_Pause) are layered on each other.

                              img_Play is NOT visible in output while img_Pause IS visible (set this in the image's properties).

                              Transparent smartshape is layered on top of both images and executes an Advanced Action: pausePlay.

                              pausePlay is a conditional action that follows this layout:

                               

                              IF

                              Perform action if: ANY OF THE CONDITIONS ARE TRUE

                                cpCmndResume is equal to 1

                                cpCmndPause is equal to 0

                               

                              Actions

                                Assign cpCmndResume with 0

                                Assign cpCmndPause with 1

                                Stop triggered Audio

                                Show img_Play

                                Hide img_Pause

                               

                              ELSE

                                Assign cpCmndResume with 1

                                Assign cpCmndPause with 0

                                Stop triggered Audio

                                Show img_Pause

                                Hide img_Play

                               

                              What this doesn't do well with: When a slide is already paused, clicking this button to 'pause' would make the project play. Hasn't caused a real issue yet, but it is a shortcoming.

                              I hope that helps and that I'm not missing any details.