Recently I've found Spinner_v3.fla created by the member Nig 13 and I've changed it to the purpose of the new math game I'm creating... Since I've done the rotation within onEnterFrame function - the spinner itself is the event handler - I have no idea how to detect the chosen number: meaning on which number is the spinner stopped after each rotation - in other words: which part of the spinner is under the pointer...
I thought to create a separate mc for each slice of the spinner (inside spinner) and somehow to "read" above which slice of the spinner (number) is the pointer after each rotation ...??? But I don't have the slightest idea how to achieve that...
I really really hope that someone will be able to help me and thank you very much in advance!
P.S. I previously posted this question in the "Newbies & General flash questions" category by accident ... Sorry for the inconvenience!
To dawsonk:
Thank you million times!!!!!!! I did it rather primitive - I've checked manually which rotation interval will result with a certain number... Although I understand mathematical aspect of your solution, but I'm not that skillful with AS nor that much familiar with ?: operator, so I would appreciate if you could spend a few more minutes and explain a little bit the procedure behind the part of your code regarding reading the "num" variable... Thanks in advance!