Skip to main content
July 26, 2012
Question

advanced actions and object names

  • July 26, 2012
  • 1 reply
  • 491 views

CP5.5.

I've read this blog post and succesfully implemented the part that starts with words "Skipping first step of the two step process and showing captions and/or offer audio feedback".

So, on the slide, I have captions capOK and capBad and also I created two advanced actions:

a_OK shows capOK and hides capBad

a_Bad shows capBad and hides capOK

It's working on one quiz question slide. After creating another quiz question (by duplicating), it stopped working. Of course, because now the captions are named differently. But it won't let me name the captions capOK and capBad, because "they are already in use". So, in order to repeat this mechanism on the new slide, I have to create another pair of advanced actions, and so on, as many actions as question slides? Or is there a workaround to reuse the same actions?

This topic has been closed for replies.

1 reply

Lilybiri
Legend
July 26, 2012

Hello,

You are pointing to my blog, maybe it was not clear but I have emphasized already many times the big issue with advanced actions is the fact that each object has a unique ID, and you cannot use a variable to store the ID and use it in an action.


So you have two possibilities:

  • If the captions have a different text on each slide, only way is to create an advanced action for each slide by duplication and editing to point to the correct ID (labeling carefully can make this easier)
  • If the captions are the same: set them to display for the rest of the project, that way they keep one ID, but you'll have to hide/show them perhaps more; you can hide all of them when entering a slide

Lilybiri

July 26, 2012

Thanks, the "display for the rest of the project" idea saved my day (or at least a few hours..). I am hiding them in onEnter action in subsequent slides, so far so good.