<menu_xml>

<menu n="n info text" tf="tf info text">
<name>Belgian Waffles</name>
</menu>

</menu_xml>

On Wed, Nov 26, 2008 at 4:20 PM, coker todd <[EMAIL PROTECTED]> wrote:

> Can someone shed some light on what my XML doc would look like if this is
> what I am parsing in:
>
> function menuXML(){
> this.createTextField("tf",this.getNextHighestDepth(),100,100,100,100);
> this.createEmptyMovieClip("mainMenu",this.getNextHighestDepth());
> xmlLength = menu_xml.firstChild.childNodes.length;
> trace(menu_xml.firstChild.childNodes.length);
> xml = menu_xml.firstChild.childNodes;
> yPos=0;
>
> for(i=0;i<xmlLength;i++){
>
> mainMenu.createEmptyMovieClip(xml[i].attributes.n,mainMenu.getNextHighestDepth());
> mainMenu[xml[i].attributes.n].createTextField(xml[i].attributes.tf
> ,this.getNextHighestDepth(),0,yPos,50,15);
> mainMenu[xml[i].attributes.n][xml[i].attributes.tf].html = true;
> mainMenu[xml[i].attributes.n][xml[i].attributes.tf].htmlText =
> xml[i].attributes.n;
> mainMenu[xml[i].attributes.n]._y = yPos;
> yPos+=10;
>
> mainMenu[xml[i].attributes.n].onRelease = function(){
> pl = xml[i].attributes.dl;
> funcSite(pl);
> }
> }//end for
> }//end function menuXML
>
> ---------------
> Here is my XML structure, where did I go wrong?
>
> <?xml version="1.0"?>
>
> <menu_xml>
>
> <menu>
> <name>Belgian Waffles</name>
> </menu>
>
> </menu_xml>
>
>
>
> Much Thanks.
>
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
--Joel Stransky
stranskydesign.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to