Skip to main content
Inspiring
September 5, 2015
Question

Call Single Actions from AS3 Widget

  • September 5, 2015
  • 1 reply
  • 402 views

Hello,

I'm new to captivate and I have a (simple?) question.

I want to open the TOC from my AS3 Widget and in general call Single custom actions I defined inside of captivate from my AS3 widget.

Is there a way to do that?

Thank you,

Jocelyn

This topic has been closed for replies.

1 reply

Lilybiri
Legend
September 5, 2015

Which widget? The system variable that you need is cpCmndShowTOC, a boolean. Beware: it is only functional for TOC in Overlay.

Ocelyn_JAuthor
Inspiring
September 5, 2015

Hello Lilybiri, thank you for your fast reply.

I'm creating my custom as3 widget a simple menu to control my animation (rewind, play/pause, mute sound...)

The only 2 problem I have is to open the TOC and open a glossary.

I tried to implement cpCmndShowTOC but it's not working, is it correct to do it that way :

movieHandle.getMovieProps().variablesHandle.cpCmndShowTOC = 1; ?

I am not sure if my TOC is in Overlay or not, (there is a small arrow on the top left that open the TOC)

Is there a way to remove this small arrow?

Where can I find all the system variable list?

Thank you again for your help!

Lilybiri
Legend
September 5, 2015

I never do that with JS or AS (not bothering about it anymore, JS is more foolproof because works for both SWF and HTML output) , but always with shared actions, because they are much easier. Sorry, cannot help you. Shared actions for a toggle TOC button would be:

Toggle cpCmndShowPlaybar

For the Glossary, I use my shared action ToggleVisib with a user variable that is also a  boolean

   IF v_visib is equal to 0

       Show Glossary

       Toggle v_visib

  ELSE

       Hide Glossary

       Toggle v_visib

Sorry, forgot link to my blog post about system variables:

System variables in Captivate 8 - Captivate blog

You have TOC in overlay, you can replace the expand/collapse icon buttons by your own images.