help with flushevents on ios or best suggestions
Posted: Sat Oct 29, 2011 10:17 am
hi,
I am working on an ipad app right now. At the beginning, the instructional direction will be given. I don't want the users to touch the button to move to the next card during the direction.
Here is what I have done:
The script of the card:
The script of the button:
With this code, the button did not work during the direction. However, if I clicked the button during the direction, after the sound is done, it automatically went to card 7.
I searched the forum, and tried what Klaus suggested in a similar situation:
set a nonmouseclicks first
on the card
However, the same problem happened. I also tried disable/ enable the button, but still cannot solve the problem.
Can anyone here help me?
Thank you.
Kev
I am working on an ipad app right now. At the beginning, the instructional direction will be given. I don't want the users to touch the button to move to the next card during the direction.
Here is what I have done:
The script of the card:
Code: Select all
on opencard
play (specialfolderpath("engine") & "/start.aiff")
wait until the sound is done
put flushEvents("mouseUp") into temp
end opencard
Code: Select all
on mouseup
go to card 7
put flushEvents("mouseUp") into temp
end mouseup
I searched the forum, and tried what Klaus suggested in a similar situation:
set a nonmouseclicks first
on the card
Code: Select all
on opencard
insert script of btn "nonmouseclicks" of cd 3 into front
play (specialfolderpath("engine") & "/start.aiff")
wait until the sound is done
remove script of btn "nonmouseclicks" of cd 3 from front
end opencard
Can anyone here help me?
Thank you.
Kev