PDA

View Full Version : CS3 · Project Logic



FNfG
March 26th, 2009, 01:27 PM
Trying to keep this succinct:

I would like to ask you if you believe I am going about this the most efficient way.

I need to display my content in groups of 9 (3 rows, 3 columns). The content is listed in an XML doc.

I load my XML and then (here's where I would like your thoughts):

1. I will create a loop to assign an int. for each XML sibling (the content that will be displayed).

2. I will create an empty MC for each int.

3. Display each int.'s corresponding content into the MCs.

4. Display each MC on the stage.

** displaying my MCs on the stage in 3 rows and 3 columns is also confusing me... but this is another thread for later.

thank you in advance if you are able to help guide me with my project logic...

energy
March 26th, 2009, 03:59 PM
Not sure what is your confusion. Is calculating x, y values to display them as 3*3 confusing you?

And also i think you should go with arrays to contain data for the MCs if you need them access later anywhere in your program besides just displaying them, like dynamically adding listeners etc.

FNfG
March 26th, 2009, 04:03 PM
Not sure what is your confusion. Is calculating x, y values to display them as 3*3 confusing you?

And also i think you should go with arrays to contain data for the MCs if you need them access later anywhere in your program besides just displaying them, like dynamically adding listeners etc.

I have decided to go with the use of arrays...for reasons you just described.

I was just having a "jo-jo the idiot boy" moment.... all is well now.

Thank you.