Sliders & Images

Randy Hengst iowahengst at mac.com
Tue Aug 5 09:25:09 EDT 2008


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



More information about the use-livecode mailing list