That Cult Game, part 7
Down With Flash; Long Live the New Flash…
Gah, can’t stand it. I’ve been trying to make an interface with OpenLaszlo which is great and has a lot of promise, but the thing I need most is dynamic creation of objects.
Let’s say I want to create a field of 10 x 10 objects, 50 pixels each. I’d create a row of 10 (horizontal) and then another column of 10 (vertical). Viola, 100 objects. Each object needs to be able to be referenced externally, so the program can tell box row four, column 3 to turn blue (green, purple, shimmer… whatever).
That I can do. Relatively easy.
However, if I want rows and columns to be configurable say 6×12 one game, then 12×20 the next - well, that isn’t easy because it would require dynamic building of objects.
For example (pseudocode):
for (i=0; i < [ConfigurableNumber]; i++)
{
objId = "MyObj_" . i.toString(); // create a unique name reference
this.object[] = new object(objId); // create a new object that has a unique reference
}
Looks simple enough? Apparently, it’s not.
So, now, I’m looking at Adobe Flex, because all the cool kids are doing it. More importantly, I’ll have to pay for it.
*Grump* *Grump* *Grump*
Also, through out my PHP code, refactored it to be SIMPLE. Or simpler. Either way, it is and is running very cool. Need to implement a java servlet tho. Also, I’ve finalized on a name, and I’m seeking a graphic artist to implement the look and feel artwork.
Once artwork is cut, then I’ll announce the name. Clever people will know how to find out what the name is tho.


