Buttons/Rollovers
If you are wanting the button or switch to actually show the highlight state or up position on click, you can use my custom “On Click Member Change” behavior to do this task. I was very surprised to see that this simple behavior was not a built-in behavior for director, but I guess it borders on being a little more advanced as it requires a global list to be used for the storing of the button’s current condition.
For this interaction to work, you must also use my “Multiple Global List for Member Change” behavior in your cast. It does not need to be in the score, just in the cast. You need to also make sure it is set to be a movie script. More detail as to why this script is required is in the comments of the behavior itself. I have also added a graphic to fade in and out to show it can call out other actions as would be its intent. The bulb is using my "On Click Graphic Fade-In-Out" behavior to do this task. The bulb itself has 3 behaviors as well:
__________________________________________________________
This interaction is good when you are just wanting to select choices in a correct order and you do not want to spend a whole lot of development time to create an “assemble in correct order activity".
The choices are designated by selecting a button or switch, which in turn records the chosen order to a global list. When scoring the exercise, you need only to query the list for whether or not things are in the correct order.
Just like the "on-off to verify a choice" example, this action also requires the use of my “On Click Member Change” behavior to turn choices on and off.
In the example, the list that is scoring the condition is being shown in a text box so that you can see actually see the selections take place “behind the Curtin”. For you newbies, this is a good way to see how director's lists actually work.
The action of displaying your list in the project is a feature of my "Display List Contents In Field" authoring behavior which you might want to add to your collection as well (see authoring behaviors). I have chosen to categorize it as an authoring behavior as you would probably only use this during authoring to help you see what is happening.
Alternately, you could use director’s message window to do the same, but you would have to manually type in “put glist(something)” every time you wanted to see the contents of your global list. This behavior will make things a little easier I think.
When using this behavior, you must also have the “Multiple Global List for Member Change” in your cast to help out with those button on-off states. This behavior like others uses my "Display # Of Tries In Field" behavior for well...the obvious
__________________________________________________________
In addition to just displaying the graphic on rollover, I have chosen to fade one in on rollover as well. No film loops or animation was used. just simple Drag N Drop behaviors.
This
action uses my "Fade in-out on Rollover" behavior.
It will
also require director's Fade In/Out behavior plus my modified "Fade
Out Only" behavior for the roll-off action. How
quick it fades in can also be adjusted.