Skip to main content
Inspiring
January 25, 2016
Answered

Custom play/pause button breaking drag and drop? Captivate 9

  • January 25, 2016
  • 1 reply
  • 510 views

Hello,

I am working on a responsive project and everything was going fine.

But after I created a custom play/pause button, the drag and drop exercise stopped working. The draggable objects show up but they can´t be dragged/cursor doesn´t change.

The play button advanced action simply checks whether the project is in pause (changing the image on the play button) or else (changing the button to another state and continuing the project).

How could this advanced action break the drag and drop?

Thanks for any help!

    This topic has been closed for replies.
    Correct answer Lilybiri

    Thanks again.

    I already used it for the "toggleCC" and "ToggleTOC" button I needed to make. They work perfectly.

    Unfortunately I cannot translate that knowledge to using a variable that I set myself.

    If I introduce a new variable is the default value always 0?

    So that would mean that by v_visible = 0 the "object 1" is not being shown and equivalent to being hidden.

    Executing the action should be a. assigning the value of 1 and b. showing "object 1".

    But how do I toggle?
    Should the action at the same time check whether the v_visible value is 1?

    And then hide "object 1" in that case? Does that go into "else" or into another condition?

    Stupid questions I know but even looking at Lynda.com and manual cannot kickstart my feeble brain.

    Am I missing something?


    A user variables has to be created. You can give it a default value of 0 on creation. For the rest, you just use it the same way as you used the other toggle buttons. For a user variable it is you who decides which values it can have, you cannot define it to be a Boolean, but if you use the Toggle command, it will automatically change the value to 1 if it was 0, or to 0 if it was 1.

    You have Preview of the conditional action (Toggler) in that article.

    Most books and (certainly) the Lynda tutorials are rather limited, sorry to tell so.

    1 reply

    RodWard
    Community Expert
    Community Expert
    January 25, 2016

    I'm not yet convinced that this button IS causing the issue.  But just in case it is, the easy way to test if it's the culprit is to drag the button off into the scrap area outside the stage of any of the viewports and republish to see if the drag and drop now works without the button present.

    Inspiring
    January 25, 2016

    Will try that!

    And also copy/paste the DaD slide into a new project to check.

    Then I will report back.