Hi, new here and to As3 in general. I’m very new to flash but i am learning fairly quickly. I understand about arrays etc but i’ve promised my boys i’d try and make a Yugioh game for them. I know there are some already out but i want to make a few changes to the original. The problem i cant get past is the array names. Most card games you use 2 types, rank and suit. With Yugioh you use about 10 such as name, type, attack, defense etc.
With all of this in mind i searched through Google and found 2 ways to do this, an xml file which i haven’t any idea how to use but the most promising seemed to be to make a card definition class which got used by the card class that stored just the card name. In essence the card def class for say a card named dragon held all of its values while the card class held all the different card names. This way i could deal out say 6 card names from the card class and each card would be able to call the value from that cards def. Of course knowing what to do and knowing how to program it is 2 seperate things. Can anyone tell me of a way this could work please and bear in mind i have been trying to learn flash for a couple of weeks only.