Button Logic (or State Order)
Oct 10, 2012
By
Ryan Martin
Trying to work something out in my head with button's and sounds.
What's the order of importance or criteria when moving along in button states?
1) Normal
2) Press = Down
3) Selected
Say you have a button with just these 3 states, it's always going to be that order of state change after a button press? ... 1. Normal, *click of a mouse*, 2. Down, 3. Selected
When does visited come into the picture?
Help me. This WILL keep me up tonight
Ryan
8 Replies
Visited only comes into the picture when you're "visiting" something e.g. going to another slide or layer I assume?...
Hmm.
A follow-up question...
David Fair, Articulate Customer Support Engineer, did an excellent screenr on "How to add a sound effect to a button click"
Said screenr: https://player.vimeo.com/video/145576587
Now, as David points out, there's a bit of a work around needed when buttons are using the same sound. You have to import the "click sound" for each button using it.
BUT, what if you're attaching your sound to the "Down" state. You're going to use the Trigger: Other Events, State. Then choose "Any of" "Is:" "Down" ...
... or "Selected"
If you're as confused as I am by explanation ... here's a picture:
I'm obviously playing 1 media with 3 buttons here. Should this technique be avoided, should it fall within David Fair's Screenr rule?
If you know the answer, please share, and help me sleep at night.
Hey Ryan - I dont think I entirely follow your question.
A "click" doesn't register until the mouse button is released. Here's an example where I use both your "Play media when any of states are down" and a trigger for each button that plays sound 2 when clicked. Using two different sound effects, you can hear the the difference between "on click" and "state is down".
Demo with 2 different button sounds using "down" and "click" triggers
But I still don't know if that's what you're asking about.
That's exactly what I was trying to wrap my head around, but my problem was "what IS the 'release' state" - User clicks IS it. Your example solves part one of my question. Booyah!
My second part concerns David Fair's Screenr - @ 1:58 of it.
In your example, it doesn't look like you're importing the same sound multiple times. Fair is saying that multiple actions (triggers) tied to that one sound file "might lead to unexpected results".
Is Fair's concern a known Storyline issue, and more importantly, an issue for your example (which I plan to blatantly steal of course)?
Cheers David! Thanks! Cartoon-squeak-pop puts a smile on my face.
Hehe, those are fun sounds. Forget what the experts tell you about sound effects... they're fun!
I'll ping David in the morning, but I think his reason for not using the same sound was in part due to his use of "when media completes":
I think I figured out David Fair's reasoning behind the multiple imports...
David Anderson's example will only get you so far, until you add a "Jump to Slide X" or "Show Layer Z" to each button. If buttons have "navigation" triggers after Play Media ... the Play media won't fire ... it'll jump to the slide or layer too quickly.
Fair's advice: Have the navigation triggers ("Jump to Slide" or "Show Layer") after media completes ... but here's the problem, IF you have 3 buttons, you CAN'T have them all jump to different places when their SHARED media completes. So. You import that media 3 times, with 3 different names, so 3 three different buttons can go to 3 different places when their individual media completes.
It's all coming together now! Bwahahaha... bed time.
David, thanks for the Screenr; I was writing the above I guess while you posted it ...
The folIowing illustrates my assumption ...
Glad you got what you needed, Ryan. I dont use the "When media completes" trigger much, so that's a little different workflow than what I'm used to. But David's recommendation makes sense for that use case.
Have a good night
This discussion is closed. You can start a new discussion or contact Articulate Support.