Skip navigation
Currently Being Moderated

Button with 2 functions

Aug 15, 2012 9:14 AM

HI there

 

I have a button which triggers different object states. They are basically a series of "+"buttons that show more info. When one is pressed, it naturally closes any other open info box and shows its own.


the added fucntion we need is if the button is tapped a second time (while it's state is active), it needs to then hide it's state so no states are showing.

 

is this possiblE?

 

thanks!
Steve

 
Replies
  • Bob Bringhurst
    3,433 posts
    May 29, 2007
    Currently Being Moderated
    Aug 15, 2012 10:25 AM   in reply to SteveLunny

    Yes, you can do this by copying each button to the MSO state in the same place as the original button and pointing that copied button to the invisible state. When the state is selected, the copied button then pops on top of the parent button. Here are the basic steps:

     

    1. Create your MSO with three states: Base, State B, and State C.

    2. Create two buttons next to the MSO. One points jumps to State B, the other points to State C.

    3. In the Object States panel, select State B. Select the first button, copy it, and paste in place. With the pasted button still selected, Shift-click to select the MSO, and then click the Add button (not the New button) to add the button to State B. Then edit the button to jump to the Base state.

    4. Do the same thing with the other button.

    5. Test.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points