This content has been marked as final. Show 4 replies
Eddy, chill out man.
How can you say, "I hate XML," and really even try to learn Flex? Flex is based on XML, MXML is XML, any services you call (HTTP or WEB) are XML. I think it's time for change and time you picked up XML. It's actually very, very simple.
You don't have to learn AS3 from the ground up. There are a lot of similarities between AS2 and AS3.
You just need to write a simple function which goes through the array and converts it to xml. While I could program that for you, I think you could probably figure it out yourself.
But why even bother? Using an XMLList is just as easy. Behold:
<node label="Mail Box">
<node label="Product Management"/>
XML is composed of parents and children. You can do much more with XML than you can with plain old arrays, plus, when's the last time you saw a 10-tiered multi-dimensional array? It's not possible to do something like that without XML.
Over and out - Taka.
Yes I agree with you , XML is much better then Array , but some people , for example like me , like to work with array ! For 4 years, I never used XML, and I just don’t like it, all I trying to do is add a data to tree component with out using XML and there is no results? Working all day with flex, searching for help, examples and there is nothing helpful …before it was very easy to add data to tree component with AS2 without XML but I don’t know how to do this with AS3. Only I know that Adobe force me to use XML to put data in tree component , is there a way to ignore XML and control directly tree component or not ? in AS2 we have this functions like addTreeNodeAt or setIsBranch and many more that help us work with tree component but now it’s not there any more , well we can use ITreeDataDescriptor function but how ?! Well if I have to use XML to control data in tree component , I will use but still I want to ignore XML if it possible !
go to http://livedocs.macromedia.com/flex/2/langref/ and look up the ITreeDataDescriptor. I think you can add it by doing ITreeDataDescriptor.addChildAt(). All the methods and params are listed there.
thanxs sloan2b , but there is no exemaples ! what the hell is ITreeDataDescriptor i dont know , it's seems somthing new !