PDA

View Full Version : Sudoku button


sugata_bhar
09-13-2005, 05:12 AM
Please help

I have to create a button such that on mouseclick the number starts from 1 and counts till 9 and then counts back.It should be a movieclip if possible

Thanks

sugata_bhar
09-13-2005, 05:16 AM
Please help

I have to create a button such that on mouseclick the number starts from 1 and counts till 9 and then counts from 1 again.It should be a movieclip if possible.

Thanks

sugata_bhar
09-13-2005, 05:20 AM
Please help

I have to create a button such that on mouseclick the number starts from 1 and counts till 9 and then again start counting from 1.It should be a movieclip if possible

i.e 1,2,3,4,5,6,7,8,9 and then 1,2...... and so on

thanks

Morg
09-13-2005, 07:55 AM
What is a Sudoko button....?

Morg
09-13-2005, 07:56 AM
Try looking into setInterval in your help file...

sorry, but I am not going to build this for you. Guide you, that I can do. :)

Sunny13
09-13-2005, 09:46 AM
try this...:)var Main = this;
Btn.onRelease = function() {
Main.count = 0;
Id = setInterval(Loop, 100);
};
function Loop() {
Main.count++;
trace(Main.count);
if (Main.count == 9) {
Main.count = 0;
}
}

CMU
09-13-2005, 10:40 AM
What are you actually trying to achieve? Your description doesn't sound very close to a game of Sudoku to me (except both are comprised of the numbers 1..9).

To just make something count from 1 to 9 then back to 1 again, try somthing like this (untested):


var count = 0;
myClip.onRelease = function () {
count = (count + 1) % 8;
trace(count + 1);
}