Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-05-2004, 01:59 PM   #1
Join Date: Feb 2003
Location: UK
Posts: 48
Default XML and Tree component question

I am working on an online project management system and I would ideally like to use XML and the Tree component as it would simplify things imensly for me.

What I ideally want to do is to grab XML from my server bit by bit - getting the whole thing at one time would just be monsterous. The server side bit is working nicely - Flash queries the server and it returns all the children from a specified node.

I need to know how I can add these into an existing XML object in flash.

For example, I have this XML structure in flash:

<node label="projects">
  <node label="placeholder" isBranch="true" />
and this XML structure loaded in from the server:
<node label="project1">
  <node label="placeholder1" isBranch="true" />
<node label="project2">
  <node label="placeholder2" isBranch="true" />
What I want is to replace the first place holder with all of the second XML structure.

I hope this makes some kinda sense. This is my first foray into XML so I apologise for any glaring mistakes.

Any help would be greatly appreciated.

BenB is offline   Reply With Quote
Old 02-06-2004, 02:56 AM   #2
Join Date: Feb 2003
Location: UK
Posts: 48

Sorry, I forgot to mention this is using Flash MX 2004 Pro.

I know I can add child nodes to an existing structure using:

but I would ideally like to add bigger chunks rather than individual children.
BenB is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 08:16 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.