Skip to main content
Inspiring
November 18, 2016
Answered

Track rollovers?

  • November 18, 2016
  • 1 reply
  • 397 views

Hi,

I am a beginner in Captivate but have a fair amount of Flash scripting experience.  Looking for advice on this question -

What would be the best way to track whether the user has rolled over every rollover I have on the slide?  I want to execute an action only after this is the case.

I'm using Object>Rollover Caption to create the rollovers.

Thanks in advance!

Eric

    This topic has been closed for replies.
    Correct answer Lilybiri

    Rollover images and captions have no 'events'. However the Rollover slidelet has a rollover and a click event. You could use that event to track. I am talking about events that can trigger advanced/shared actions. Since you are talking about rollovers I suspect you are publishing to SWF, because they are not 'supported' for HTML5 output.

    InfoSemantics has an Eventhandler widget for SWF output (and a CpExtra widget for HTML output) that allows you to use a lot more events. Those widgets are not included with CP, not free but more than worthwhile the cost.

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Legend
    November 18, 2016

    Rollover images and captions have no 'events'. However the Rollover slidelet has a rollover and a click event. You could use that event to track. I am talking about events that can trigger advanced/shared actions. Since you are talking about rollovers I suspect you are publishing to SWF, because they are not 'supported' for HTML5 output.

    InfoSemantics has an Eventhandler widget for SWF output (and a CpExtra widget for HTML output) that allows you to use a lot more events. Those widgets are not included with CP, not free but more than worthwhile the cost.

    Inspiring
    November 18, 2016

    Thanks so much for your input(!)  What would be the most painless way to use clicking on the object rather than rollover?

    Just use "Show" actions?  It gets a bit tedious, was wondering if there was a shortcut.

    Lilybiri
    Legend
    November 18, 2016

    I definitely recommend to replace rollovers by clicks to be sure that HTML output works on any device.  Since multistates in CP9 I'm using states a lot more than Show/Hide actions. Reason is that you can have them reset to the normal state when returning to the slide, whereas if you use Show, you have to be sure to use the On Enter action of a slide to hide them in any case. Show/Hide can have its advantages as well. One example: if you want to use it to show one object out of a group of objects, and want to hide all other objects in the group that could have been made visible, you only need two command (I mostly use a shared action in that case):

        Hide Group

        Show Object_x

    No unique answer to your question, all depends on the situation. Keep in mind the possiblities of grouping and shared actions, or as an alternative multistates. There are plenty of examples on my blog.