2015년 1월 3일 토요일

Change BG Color every 2 seconds with Timer and For Blocks

Im trying to change the BG color every 2 seconds with the Timer and/or For Each block but Im having trouble. I need this functionality for a couple different functions in my app.

Right now, I have a list of 3 colors: Red, Green, Blue. I have a clock enabled

Clock.Timer
   For Each 'item' in Color List
      set Button.TextColor= 'item'

But it seems to only show the last item of the list (color Blue) as the ButtonTextColor. Any help?



you could do it with an if else statement in the Clock.Timer event

if color = red
then set color to green
else if color = green
then set color to blue
else set color to red


댓글 없음:

댓글 쓰기