Fou-Lu
01-19-2008, 07:45 AM
Ok, so I hope this is the right place to post this kind of topic, I figured either here or XML and its only kinda like XML directly.
Anyway, as you may know I'm mainly a PHP developer. So, I'm looking for a similar method to how PHP handles included pages. That is, the included page in PHP also takes any output into the current scope of the application.
I have a... what is it called... a changing panel... thing (if this isn't clear I'll look it up to see what its called), that I place different components on depending on the link that is selected (more accurately a button but that shouldn't matter). I'm hoping to separate the code on each of these panels into a mxml or as class of their own, but I don't know if they can be easily included back in (not like the import exactly). Hopefully someone knows if this can be done.
As well, the next one is relating to trees, specifically to how the data should be formed prior to the input. I'm dealing with a hierarchical data structure which I will be extracting from a database. Though XML makes the most sense for the structure type, each of these are objects, so I don't think I can jam them easily into an XML structure (especially if I retrieve them from PHP or ASP). So I'm thinking a Graph is the best option for this type of structure (especially since some things may appear later in the tree under different parents). Does FLEX have a built in Graph object, or should I just make my own? If I make my own, how do I define it as iterable so that it can be used in a tree?
Any help would be greatly appreciated!
Anyway, as you may know I'm mainly a PHP developer. So, I'm looking for a similar method to how PHP handles included pages. That is, the included page in PHP also takes any output into the current scope of the application.
I have a... what is it called... a changing panel... thing (if this isn't clear I'll look it up to see what its called), that I place different components on depending on the link that is selected (more accurately a button but that shouldn't matter). I'm hoping to separate the code on each of these panels into a mxml or as class of their own, but I don't know if they can be easily included back in (not like the import exactly). Hopefully someone knows if this can be done.
As well, the next one is relating to trees, specifically to how the data should be formed prior to the input. I'm dealing with a hierarchical data structure which I will be extracting from a database. Though XML makes the most sense for the structure type, each of these are objects, so I don't think I can jam them easily into an XML structure (especially if I retrieve them from PHP or ASP). So I'm thinking a Graph is the best option for this type of structure (especially since some things may appear later in the tree under different parents). Does FLEX have a built in Graph object, or should I just make my own? If I make my own, how do I define it as iterable so that it can be used in a tree?
Any help would be greatly appreciated!