Forum Discussion

MichaelRice-a6e's avatar
MichaelRice-a6e
Community Member
14 years ago

Using states to create select and deselect

How do I set my triggers to make an object appear selected when clicked once and normal when clicked again?

Cant seem to get it to work

22 Replies

  • Thanks,

    I do have one last little question.

    As you may have surmized, I am using variable staements to show, on a single slide, a list of selections that are made over a couple of slides.

    Select the rectangle on slide 5 and it shows up in a list  of all choices possible on slide 7 as one of your choices. (using selected state with a glow)

    I have set a trigger on the "results" slide that says the following:

    Action: Change state of

    On Object: rectangle

    To stat: Selected

    When: Timeline starts

    Object: 2,3 Results Slide

    On Condition: Variable 1 = = Equal to False

    And that is where my question lies - does it matter if I set the object as the slide or the rectangle?  

    ie: Object: rectangle or Object: 2,3 Results Slide

    It seems to work both ways.

  • JamieMorgan's avatar
    JamieMorgan
    Community Member

    You'd want the object to be when you want the trigger to fire. Having it occur at the start of the rectangle or the start of the slide may be 2 different things in some cases. Granted, if the rectangle comes on at the start of the slide, then they both will function in the same manner. However, if the rectangle doesn't come on the slide until 3 or 4 seconds in - then the trigger won't fire until that time as that would be the start of the rectangle.

    If I'm wanting triggers to fire when a slide first loads, then I always will use the timeline starts for the slide itself.

  • Phil,

    The funny thing is, it's based off of an example Arlyn did back in the beta.  And after I had spent an hour "figuring out" how to do it using Arlyn's example, I discovered a file from last summer where I had "figured out" the exact same thing.  Ugghh...

    Mike

  • I have "programmed" in selected state a couple of times and then had that DOH moment when you realise it is already there

  • You could convert the page to freeform and set the object as a part of a pick one or pick many freeform question, without correct or incorrect answers. That will allow you to select and deselect any object.

  • A solution that stands the test of time! Toggle variable worked perfectly for me today; thanks Mike Enders!