| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
oh dear me™
|
Hiya, this might be a bit much, but I'm looking for some advice on structuring info with xml for flash. I'm putting together a photography site with several pre-defined categories that have dynamic sub categories. These sub categories load in a selection of images with information, thumbs etc. Sorry if it's a bit vague, I'm trying to get my head around using objects or arrays to present a fair amount of info. Does it look like I'm heading in the right direction? ![]() Category XML Code:
Photos XML Code:
Shazaam!
|
|
|
|
|
|
#2 (permalink) |
|
By the power of greyskull
Join Date: Sep 2006
Location: Canada
Posts: 39
|
Looks good to me. When it comes down to stuff like this it's really just a matter of preference and what the application is intended for. if it were me, I might simplify the photos.xml by using tag attributes similar to what you did with the categories.xml... ex: Code:
By adding a "thumb" attribute to the image tag, we effectively eliminate the need for a thumbnail tag. And by adding the "title" attribute to the item tag we eliminate yet another tag. Doing this makes the title more easily accessible (higher in the stack) should you need to access it before looping through sub items. Again it's merely a matter of preference |
|
![]() |