Sliders & Images
H Baric
hbaric at gmail.com
Wed Aug 6 05:27:39 EDT 2008
Hi and thanks Randy and Eric!
Now Randy, your script here makes perfect sense to me as a beginner! Eric's
not so, but I want it to, so these two scripts I shall take away and learn
from!
:)
Cheers,
Heather
----- Original Message -----
From: "Eric Chatonet" <eric.chatonet at sosmartsoftware.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Tuesday, August 05, 2008 11:42 PM
Subject: Re: Sliders & Images
Bonjour Randy,
I could not resist...
You could save your time using a more modular code :-)
on scrollbarDrag pValue
SetValue pValue --
end scrollbarDrag
-------------------------
on SetValue pValue
set the label of button "Show and Say Answer" to item pValue of
"Show and Say Answer,Multiple Choice Game,Matching New Time,Add
Subtract New Time"
end SetValue
-------------------------
on mouseUp
do "InitGame" & the thumbposition of me
end mouseUp
-------------------------
on InitGame1
-- hide and show stuff here
end InitGame1
-------------------------
on InitGame2
etc.
In addition, mouseRelease generally means that the user does not want
the action to occur then you might want to suppress it...
Hope it will give you some ideas ;-)
Le 5 août 08 à 15:25, Randy Hengst a écrit :
> Hi Heather,
>
> I just woke up and saw this thread and it looks like you've
> received plenty of good advice already. I'm a relative rookie at
> all this, but thought I'd share an example that might give you some
> ideas.
>
> I used a slider in program to help students practice telling time
> -- the slider is used to select the game. The slider values were
> set from 1 to 4. The movement of the slider changed the label of a
> button that denoted the game to be selected. Then on the mouseUp
> the game settings were put into place.
>
> take care,
> randy hengst
>
> on scrollbarDrag newValue
> switch newValue
> case "1"
> set the label of button "Show and Say Answer" to "Show and Say
> Answer"
> break
> case "2"
> set the label of button "Show and Say Answer" to "Multiple
> Choice Game"
> break
> case "3"
> set the label of button "Show and Say Answer" to "Matching New
> Time"
> break
> case "4"
> set the label of button "Show and Say Answer" to "Add Subtract
> New Time"
> break
> end switch
> end scrollbarDrag
>
> on mouseUp
> switch the thumbposition of me
> case "1"
> set the label of button "Show and Say Answer" to "Show and Say
> Answer"
> lock screen
> -- hide and show stuff here
> unlock screen
> break
> case "2"
> set the label of button "Show and Say Answer" to "Multiple
> Choice Game"
> lock screen
> -- hide and show stuff here
> unlock screen
> break
> case "3"
> set the label of button "Show and Say Answer" to "Matching New
> Time"
> lock screen
> -- hide and show stuff here
> unlock screen
> break
> case "4"
> set the label of button "Show and Say Answer" to "Add Subtract
> New Time"
> lock screen
> -- hide and show stuff here
> unlock screen
> break
> end switch
> end mouseUp
>
> on mouseRelease
> mouseUp
> end mouseRelease
Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list