Steve,
since this is my first time on this forum, I thought I had up loaded the file when it ask me to.
I just like to say that some times as we are trying to learn we seek an easy and fast solution to our own problems. We are anxious to get the movie running and it’s easier to ask than spend time experimenting with flash. There are two very important tools that is a must for the beginner Flash person: patience and persistence. After being persistent I was able to get the movie rolling.
Whether it is the right way or the easiest I don’t know, I let you be the judge.
The first file will be the original, the next file is an edit of the FLA.
Scene 1
Layer 2
frame 1
Layer 1
frame 1
actions for frame 1
stop ();
title
(empty), (display1)
(empty), (display2)
(empty), (display3)
(empty), (display4)
(empty), (display5)
(empty), (display6)
button
actions for button
on (press, release) {
gotoAndPlay (2);
}
fjohn106@costarica.net, (Times New Roman, 16 pts)
url
selections
frame 2, (Shuffle)
actions for frame 2
i = 1;
numcells = 49;
while (Number(i)<=Number(numCells)) {
set (“cell” add i, i);
i = Number(i)+1;
}
i = 1;
while (Number(i)<=Number(numCells)) {
set (“random” add i, random(1000));
i = Number(i)+1;
}
lo = 1;
up = numCells;
while (Number(up)>Number(lo)) {
i = lo;
j = lo;
while (Number(i)<Number(up)) {
if (get(“random” add i) > get(“random” add (i+1))) {
temp = get(“random” add i);
set (“random” add i, get(“random” add (i+1)));
set (“random” add (i+1), temp);
temp = get(“cell” add i);
set (“cell” add i, get(“cell” add (i+1)));
set (“cell” add (i+1), temp);
j = i;
}
i = Number(i)+1;
}
up = j;
i = up;
while (Number(i)>Number(lo)) {
if (get(“random” add i) < get(“random” add (i-1))) {
temp = get(“random” add i);
set (“random” add i, get(“random” add (i-1)));
set (“random” add (i-1), temp);
temp = get(“cell” add i);
set (“cell” add i, get(“cell” add (i-1)));
set (“cell” add (i-1), temp);
j = i;
}
i = i-1;
}
lo = j;
}
display1 = get(“cell1”);
display2 = get(“cell2”);
display3 = get(“cell3”);
display4 = get(“cell4”);
display5 = get(“cell5”);
display6 = get(“cell6”);
stop ();
title
(empty), (display1)
(empty), (display2)
(empty), (display3)
(empty), (display4)
(empty), (display5)
(empty), (display6)
fjohn106@costarica.net, (Times New Roman, 16 pts)
url
actions for url
on (press, release) {
getURL (“http://www.costaricaescorts.com/index.htm”);
}
selections
button
actions for button
on (press, release) {
gotoAndPlay (2);
}
Symbol Definition(s)
title
Layer 1
frame 1
Lotto Picker 6/49, (Times New Roman, 28 pts)
button
Layer 1
Up
url
Layer 1
frame 1
http://www.costaricaescorts.com, (Times New Roman, 12 pts)
selections
Layer 1
frame 1
Click here for selections, (TextField7), (Times New Roman, 18 pts)
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
And here’s what I did
I counldn’t figure how to send the number to the text box.
Got it
and Got this “how to” from this forum
button
frame 1
Push Button Green
actions for Push Button Green
on (release) {
bb=Math.floor (Math.random() * (45 - 1))+1; ;
}
Push Button Yellow
actions for Push Button Yellow
on (release) {
gotoAndPlay (2);
}
Bonus Ball, (Times New Roman, 16 pts)