Skip to main content
August 10, 2009
Question

Determine Object Visibility from Advanced Action Script (Captivate 4)

  • August 10, 2009
  • 1 reply
  • 2195 views

I have some images in my Captivate 4 project that I want to determine their visibility from an Advaced Action script. Is this possible? I know how to turn the visibility of an object on/off via the visible checkbox on the Properties>Options tab. The conditional statements in Advanced Actions only work with variables and not object names.

I have 5 images that I need to show the 5th only if ALL the other 4 are visible. The slide starts with all 5 images NOT visible. Based on certian user actions, an image is made visible until four images become visible on the slide. So far, so good, and everything is working as expected. Now I want to show the 5th image after the 4th images becomes visible but I cannot find a way to do so.

Any help will be appreciated.

Isaac

    This topic has been closed for replies.

    1 reply

    Captiv8r
    Legend
    August 10, 2009

    Hi there

    It's kludgy, but my initial thought is to suggest that perhaps you declare variables to store the state of each image. Configure all of them with an initial value indicating the object is hidden. Then as you reveal each object, you also configure the associated variable to indicate the status. Then you could take action based on the variables.

    Ticklish to be sure!

    Cheers... Rick

    Helpful and Handy Links

    Captivate Wish Form/Bug Reporting Form

    Adobe Certified Captivate Training

    SorcerStone Blog

    Captivate eBooks

    August 10, 2009

    Thanks for your response but I tried that and it did not work.

    My process:

    I created four variables (image01 to image04) for the first four images and

    set all their initial values to zero. Then after making an image visible, I

    assigned the value 1 to the corresponding variable. In my Advanced Action

    script I selected the following:

    If image01 = 1 AND image02 = 1 AND image03 = 1 and image04 = 1

    begin

    Show image05

    end

    ...

    Where image05 is the name of the 5th image.

    The 5th image does not show.

    Isaac

    Participating Frequently
    August 11, 2009

    Hi,

    A few queries:

    1. How do you make the images visible or invisible? You have click boxes for this purpose?

    2. The images are made visible in order? Or does the test-taker have the liberty to make any image visible as he wishes?

    3. What object have a you associated the above mentioned script with?

    Thanks