My question is how can i add chances to the random selected disks in Actionscript3.0. SO if the player presses the disks button he/she gets 30% chance to roll disk7 and 40% on disk6. How can i pull this trough.
disks.addEventListener(MouseEvent.MOUSE_DOWN, hitDisk);
function hitDisk(event:MouseEvent):void{
disks.gotoAndStop(Math.ceil(Math.random()*7));
}
Disks[movieclip] > haves 7 keyframes with disks inside of it. The final frame is the special disk. Every disk haves a instance name. Disks[movieclip] > (frame1)diskOne, (frame2)diskTwo, (frame3)diskThree.....and so on.
(disks are just like dices but round shaped)
Some help would be nice!!! Thanks!!!