randomNumber == timeline label
hello everybody,
i'm having other question.
i have movieclip slotmachine roll changing it's dice dots. http://delah.nl/diceslotmachinetest.swf
i labeled keyframes amount of dots on it. when pressing start there random number created , after 2 seconds playing has stop on label equal random number.
i hope there simple line of code fix last part. like:
function stoproll(event:timerevent):void{
if (randomnumber == roll_mc./*label?*/){
roll_mc.stop();
}
how can make happen?
thanks in advance
instead of labels, use frame numbers , have random number generated using like...
randomnum = math.ceil(math.random()*numberofframes);
More discussions in ActionScript 3
adobe
Comments
Post a Comment