Problem with parsing data from xml

Hi Everyone,

I’m trying to make a banner whic the user can edit his [COLOR=#000000]Preferences in a xml file. My xml file looks like below.

[/COLOR]


<billBoard>
        <items>
            <item>
                <imageUrl>images/plaatje_1.jpg</imageUrl>
                <imageShowTime>5</imageShowTime>
                <imageClickLink>http://www.google.nl</imageClickLink>
                <imageClickLinkTarget>_blank</imageClickLinkTarget>
                <animatiePosition>top</animatiePosition>
                <animatieEffectType>Cubic</animatieEffectType>
                <textboxen>
                    <textbox>
                        <textFontSize>14</textFontSize>
                        <textFontColor>0xFFFFFF</textFontColor>
                        <textBgColor>0xFF0000</textBgColor>
                        <textBgOpicity>0.8</textBgOpicity>
                        <textPadding>10</textPadding>
                        <textAnimationDirection>left</textAnimationDirection>
                        <textAnimatieTime>2</textAnimatieTime>
                        <textAnimatieDelay>0.07</textAnimatieDelay>
                        <textXposition>200</textXposition>
                        <textYposition>300</textYposition>
                        <text>hier komt de tekst</text>
                    </textbox>
                    
                    <textbox>
                        <textFontSize>18</textFontSize>
                        <textFontColor>#FF0080</textFontColor>
                        <textBgColor>0xFF0000</textBgColor>
                        <textBgOpicity>0.6</textBgOpicity>
                        <textPadding>12</textPadding>
                        <textAnimationDirection>right</textAnimationDirection>
                        <textAnimatieTime>3</textAnimatieTime>
                        <textAnimatieDelay>0.07</textAnimatieDelay>
                        <textXposition>200</textXposition>
                        <textYposition>300</textYposition>
                        <text>hier komt de tekst 2 van item 1</text>
                    </textbox>

each item in the banner may contain more texts. when i’m looping trough the items i do that as follow:

_billboardData_array = new Array();
            
            for (var i:int = 0; i < xml.billBoard.items.item.length(); i++) {
                //hold the data of the billboardItems
                
                var billBoardData:Array = new Array();
                
                billBoardData['billBoardID'] = i;
                billBoardData['imageUrl'] = xml.billBoard.items.item.imageUrl*;
                billBoardData['imageShowTime'] = xml.billBoard.items.item.imageShowTime*;
                billBoardData['imageClickLink'] = xml.billBoard.items.item.imageClickLink*;
                billBoardData['imageClickLinkTarget'] = xml.billBoard.items.item.imageClickLinkTarget*;
                billBoardData['animatiePosition'] = xml.billBoard.items.item.animatiePosition*;
                
                
                
                for (var j:int = 0; j < xml.billBoard.items.item.textboxen.textbox.length(); j++) {
                    
                    
                }
                
                _billboardData_array* = billBoardData;

the goal is that i can parse the item associated with textboxes.

as you can see i’l try my best but i kinda stuck on the second forloop.

I hope someone can help me out with this.

tnx