Quote:
Originally Posted by darrenleong
hi.. Erm.. i have a problem with my project. When i click the start button right, it will run randomly among the 60 circles and den come to a stop at the random selected circles. i need a script. and i have no knowledge about flash at all.. Hope to hear ur reply asap. thanks
the game is my example of my project..
|
(in AS2)
this is easy by creating a function to find a number.
1. Create your start button.
2. in my method, I'd create a 60 frames mc with each frame having one circle of the 60 highlighted, or, if you want the other circles to disappear, a 61 frames mc, with first frame having all circles and other frames having only one of the circles.
3. in root,
ActionScript Code:
start.onPress = function(){
var circleNum:Number = math.floor * (math.random * (61-1))
_root.circle.gotoAndStop(circleNum)