Hi Ron, That seems very re-assuring. The problem I am having really is that I find it very difficult to find out more about using XML in Flash on a more advanced but still small scale level. I can parse attributes, and nodes, but most examples deal with 1-2 attributes, that can be easily be pushed into a small one dimensional array, or node level depths of 1 or 2.
I am developing a course with 20 odd modules, and e3ach one has 5 or so sections with content in it, and I am packing the module titles into one XML so this can be changed globally for all sections (which works fine), but I am having a difficult time creating a proper structure for the content XML, that holds the section content links (PDFs, audio files, etc) What I got at the moment roughly looks like this: <?xml version="1.0" encoding="utf-8"?> <audio> <unit id="1"> <lesson id="1"> <activity id="1"> <title>whatever</title> <duration>01:02</duration> <url>audio/unit1/audiofile.mp3</url> </activity> <activity id="2"> <title>whatever</title> <duration>01:02</duration> <url>audio/unit1/audiofile.mp3</url> </activity> ... etc. </lesson> <lesson id="2"> <activity id="1"> <title>whatever</title> <duration>01:02</duration> <url>audio/unit1/audiofile.mp3</url> </activity> <activity id="2"> <title>whatever</title> <duration>01:02</duration> <url>audio/unit1/audiofile.mp3</url> </activity> </lesson> etc. ... </unit1> <unit 2> etc. ... My plan was to read this into a multidimensional array, and then refer to it throughout the 'life' of the section (i.e. as long as the swf of the audio section is in memory, and the user looking at it. I am not sure if that all makes sense, but do you have any ideas on how to make this most effective? Am I barking up the wrong idea with the multi-dim array idea? Is this not how you would do it? [that's the bit I can not find much info about ....] Thanks, Nik On 7/3/07, Ron Wheeler <[EMAIL PROTECTED]> wrote:
I do not think that you are even close to any maximum. There are many applications much bigger than this floating about. What tools do you have for validating XML? We have found that XMLSpy is a really useful tool if you are doing anything serious with XML. It has lots of different applications that make XML simpler. If you are doing serious Flash with XML, your project should be in Eclipse which also has excellent tools for editing and validating XML and can interface to XMLSpy. We have never run into any problems with the Flash runtime and XML since FlashPlayer 6. It seems very solid and capable of handling lots of nodes. I hope that this helps. Ron nik crosina wrote: > Hi, > > Is there a limit on the nodes that can be parsed with in an XML file? > I am transferring an XML file that is 4 levels deep and at the moment > 500 odd lines long (not even half what it will be) into a > multidimensional array and when ui trace the array, this fizzels out > not half way through. > > The XML seems well formed though as I don't get any errors in any > validation tool (from dreamweaver to online sites). > > Thanks! > > Nik > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- Nik C _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com