Email: ylwong@wfu.edu
The relationships between objects are simply defined in a text file, like this:
connections=ME,AZ
ME,BD
ME,CF
BN,ER
SE,WE
AZ,UI
AM,AB
CD,ER
BN,FM
YL,ME
CD,AB
ER,BF
BF,ME
RF,AM
BF,ME
ME,ER
UI,BN
CD,CW
AB,RF
BN,FM
BF,AM
YL,BN
WE,SE
UI,ER
AM,FM
AB,SE
AZ,ME
AB,BF
ER,AZ
AM,AZ
Each line in the text file defines a pair, separated by a comma. My program reads in the file, assigns each node with random 3d coordinates, compute the projected x and y on stage, and places each of them on stage. The one with the most connections is placed in the center of the whole cluster. Rotation around the y-axis and z-sorting of the node are constantly applied. Lines connecting the nodes are drawn using ActionScript drawing API. I also added in the mouse event such that you can drag the node to alter its coordinates.
The relationships between objects are simply defined in a text file, like this:
connections=7,9,14,45,49
18,47,51,53,55
50,17,57,35,4
13,54,41,37,27
36,7,26,8,19
14,10,40,51,30
29,8,37,38,5
22,54,52,14,59
37,52,22,36,17
26,35,48,47,6
Each line in the text file defines a lottery drawing. My program reads in the file, and places all the possible numbers on stage. The numbers in the same drawing are connected with lines. Lines connecting the nodes are drawn using ActionScript drawing API. I also added in the mouse event such that you can drag the node to alter its coordinates. In addition, mouse down on the number will show only the numbers that have been in the same drawing with that number. The latest 4 drawings are shown in red; others are in black. FUN, uh?!