Action Script 2.0 [dien20xx@gmail.com]
recently with the release of the game Blackhack + 5 days without checking the mail
enough to reach the figure of 151 post
unimaginable: P. Apparently the game was very popular, and even many
offered to contribute their bit to the other levels.
good talk about it below. Miguel Felix
BlackHat user tells me that as it would be possible to store in the PC
records of the players.
To create an application that counts the clicks and then create a position
ordered them.
I hope this is what you ask, you also control. Fla to he routed
------------------------- Frame
---------------------------- 1
/ * stops the movie in the first frame * /
stop ();
Continue button
/ * check if the free text input is undefined or has a value
vac & # 237, or * /
on (release) {
if (nom == undefined or nom == "") {
ent.play ();} else {
nextFrame ();}
} Frame 2
/ * is given the initial value ckt and creates the role of increased click * /
ckt = 0;
_root.onMouseUp = function () {
ckt + +;}
;
Bot & # 243; n Continue
/ * Go to the next frame * /
on (release) {
nextFrame ();}
/ * 3rd picture frame * / Frame 3
/ * if first opened, the polyethylene neediest families, sha.data.recz
will be undefined, so, if so, load the default values \u200b\u200brec
array * /
SharedObject.getLocal sha = ("records");
if ( sha.data.recz == undefined) {
rec = [["ipconfig", 12], ["DarkX", 12332], ["telnet", 112],
["atelier", 6] , ["X", 3]];
} else {/ * have already been saved in the array rec take sha.data.recz
value (value stored on the PC) * / rec = sha
. data.recz;
} / * we add a new array with the results of the user * /
rec.push ([nom, ckt]);
/ * function is called Save the modified contents of the array rec * /
sd ();
/ * I have to admit that I got like 30 minutes watching to
the ordering of the array, I had never done with nested arrays
, if anyone has a better way I do get * /
for (i = 0; i \u0026lt;rec.length; i + +) {j = i
;
while (j \u0026lt;rec.length)
{if (rec [i] [1] \u0026lt;rec [j] [1])
{zero = rec [i] [0];
rec [i] [0] = rec [j] [0];
rec [j] [0] = zero;
zero = rec [i] [1] ;
rec [i] [1] = rec [j] [1];
rec [j] [1] = zero;}
+ + j;}
} / * create a loop to fill dynamic text values \u200b\u200bstored
recently ordered * /
for (i = 0; i \u0026lt;5; i + +) {
this ["ck" + (i +1)] = rec [i] [1];
this ["no" + (i +1)] = rec [i] [0];}
/ * write the value according to the pc rec * / sd
function () {
SharedObject.getLocal sha = ("records");
sha.data.recz = rec;}
Botó
n Continue
/ * to go to the first frame, and everything is repeated * /
on (release) {gotoAndStop
(1);
} / * when you close and reopen the movie then you will & # 225; No recent
records, of course has to be on the same PC from which you opened it, and all the more
touch is connected to a database php,
soon speak of that.
Nothing if there is any doubt I would be willing to answer everything
between my chances * /