you know what - i reckon youre coming at this from the wrong direction - so - from the top level, youre wanting a content managed area of the web site? can you feed in somthing like this? :
Code:
<archive>
<article>
<title>Archived article 1</title>
<content>Some content text</content>
</article>
<article>
<title>Archived article 2</title>
<content>Some content text</content>
</article>
</article>
use the code i gave you on http://board.flashkit.com/board/showthread.php?t=759950 as a basis, from here you could parse it like this -
create an archive movie clip that loads the archive xml file - its parse element function should look like this -
Code:
this.ParseElement = function(node)
{
switch(node.nodeName) {
case "article":
this.attachMovie("archive_nav", "archive_nav"+this.getNextHighestDepth(), this.getNextHighestDepth(), {_x: this.X, _y:this.Y, node: node});
this.Y+= this.Yoff;
break;
}
}
create an archive_nav movieclip in the same way that i created the gig movieclip in the example, the above parse element function passes a reference to the whole archive xml node to the archive_nav clip. so you need to get the archive_nav movieclip to parse its own node. its parse element function should look like this -
Code:
this.ParseElement = function(node)
{
switch(node.nodeName) {
case "title":
this._title = node.firstChild;
break;
case "content":
this._content = node.firstChild;
break;
}
}
then give it onPress event -
Code:
this.onPress = function(){
_root.title = this._title; // _root.title being a textbox on the root with a var set to title.
_root.content = this._content; // _root.content being a textbox on the root with a var set to content.
}
hope that makes sense!? these are pretty hardcore concepts - it took me ages to get my head round them properly. youve just got to sit n think about it about it for a while, do some experiments and try and prove things incrementally... this is how i would do it anyway - let me know how you get on.