I was able to get this action-script info out of the snake game :
Quote:
// Action script...
// [Action in Frame 1]
ifFrameLoaded(45)
{
gotoAndStop(4);
} // End of ifFrameLoad
// [Action in Frame 3]
gotoAndPlay(1);
// [Action in Frame 4]
score = 0;
stop();
// [Action in Frame 37]
Snake._visible = false;
score = 0;
tail = 1;
head = 3;
xv = 0;
yv = 1;
x = 160;
y = 100;
eaten = true;
extend = false;
makeMove = false;
// [Action in Frame 38]
x = x + 10 * xv;
y = y + 10 * yv;
head++;
duplicateMovieClip("Snake", head, 16384 + head);
setProperty(head, _x, x);
setProperty(head, _y, y);
if (eval("s_" + x + "_" + y) || x < 20 || x > 300 || y < 20 || y > 290)
{
gotoAndStop(43);
} // end if
eval("s_" + x + "_" + y) = true;
if (extend)
{
extend = false;
score = score + level;
}
else
{
eval("s_" + tail._x + "_" + tail._y) = false;
removeMovieClip(tail);
tail++;
} // end if
if (Food._x == x && Food._y == y)
{
eaten = true;
extend = true;
} // end if
if (eaten)
{
Sound.gotoAndPlay(2);
eaten = false;
tellTarget("Food")
{
_x = 10 * (random(28) + 2)
_y = 10 * (random(27) + 2)
} // end of tellTarget
} // end if
makeMove = false;
// [Action in Frame 39]
if (level == 3)
{
gotoAndPlay(38);
} // end if
// [Action in Frame 40]
if (level == 2)
{
gotoAndPlay(38);
} // end if
// [Action in Frame 41]
gotoAndPlay(38);
// [Action in Frame 43]
for (temp = head; tail < temp + 1; temp--)
{
setProperty(temp, _alpha, 33);
} // end of for
vpaver = "100B";
snakescore = score;
action = "gameover";
game = gamename;
score_loc = location + "/proarcade.php";
getURL(score_loc, "_self", "POST");
// [Action in Frame 44]
rank = 0;
Input._visible = false;
scoresURL = "snakescores.txt";
loadMovie(scoresURL, "Scores");
stop();
// [Action in Frame 45]
if (level == 3)
{
l = "p";
}
else if (level == 2)
{
l = "w";
}
else
{
l = "s";
} // end if
for (i = 1; i < 11; i++)
{
if (Scores["s" + l + i] < score)
{
rank = i;
i = 11;
} // end if
} // end of for
if (rank)
{
for (i = 9; i >= rank; i--)
{
Scores["s" + l + Number(i + 1)] = Scores["s" + l + i];
Scores["n" + l + Number(i + 1)] = Scores["n" + l + i];
} // end of for
Scores["s" + l + rank] = score;
Scores["n" + l + rank] = "";
tellTarget("Input")
{
_y = 20 * _root.rank + 59.500000
_x = 100 * _root.level - 45.500000
_visible = true
} // end of tellTarget
HS.gotoAndStop(3);
}
else
{
HS.gotoAndStop(2);
} // end if
stop();
|
now , being a flash rookie - is this enough info to be able to start adding our own games because I really want to add flash casino games in there , I've posted that all over these forums with no luck.