Skip to main content
Known Participant
February 20, 2013
Question

Set variable equial to button name that was clicked

  • February 20, 2013
  • 1 reply
  • 1121 views

I know how to do this in Flash, but don't see a way to do it in captivate? When one of 26 buttons are clicked, I need to set a varaiable with the button name. Then jump to a page that has 26 grahics hiden. On enter I need to unhide the one named the same as the button.

This topic has been closed for replies.

1 reply

Legend
February 20, 2013

Setting a variable equal to the name of a button is not possible without Flash.  You would think that something that simple would be possible (and it should be), but it's not.  You can use a smart shape as a button and use a variable to give a caption/name to the "button", but you still end up creating 26 different variables and I'm assuming that's what you're trying to avoid.  Try using a smart shape as a button and using a variable for it's caption/name.  You can then use that variable in an action to show/hide your graphics.

Known Participant
February 20, 2013

Yep. I've done this in flash. One button script that would take the button name and do something different depending on button clicked. I'm using caption for buttons. Guess I'll just have to write 26 scripts. I have it working that way for 2 buttons. But now I can figure out why when I leave the page the onexit script isn't hidding the graphics?

Wish I could have done this thing in Flash, but they want quizes with results going back to an instructor.

Lilybiri
Legend
February 20, 2013

Sighing... another one of my feature requests for advanced actions that has never been fulfilled....