BluesmanUK
Programmer
Hi all,
Im a Flash developer, just starting to try out OOP actionscript development and like most beginners am more stuck on how to structure and design my program.
My problem is this: my app uses several different xml files as data sources (eg configuration xml, content xml, layout xml etc) Currently i have several classes loading and processing their own xml data, and its beginning to get very messy as xml paths are passed to constructors, and the similar xml loading/processing code is repeated across several classes etc.
I wondered what a better approach would be - I thought of having a separate generic "xml loader" class to do it all, but the problem is that for each xml file, the data needs to be processed and stored differently.
Any ideas would be appreciated!
cheers,
James
Im a Flash developer, just starting to try out OOP actionscript development and like most beginners am more stuck on how to structure and design my program.
My problem is this: my app uses several different xml files as data sources (eg configuration xml, content xml, layout xml etc) Currently i have several classes loading and processing their own xml data, and its beginning to get very messy as xml paths are passed to constructors, and the similar xml loading/processing code is repeated across several classes etc.
I wondered what a better approach would be - I thought of having a separate generic "xml loader" class to do it all, but the problem is that for each xml file, the data needs to be processed and stored differently.
Any ideas would be appreciated!
cheers,
James