1 Reply Latest reply on Oct 13, 2009 7:02 AM by Closeminded_pj

    Need help with data grid...

    Closeminded_pj Level 1

      I have setup a profile card which displays information about individuals by pulling data from an XML database.

       

      I have multiple text fields and couple movie clips that display images but i need a datagrid to display stats for each individual.

       

      The stat information is set as attributes on a array of XML nodes each node is a year.

       

       

      Example XML

       

      <hockey>

           <profile>

                <name>Wayne Gretzky</name>

                <image>pic1</image>

                <dob>Jan 26, 1961</dob>

                <position>Centre</position>

                <height>6'0"</height>

                <weight>185lbs</weight>

                <history>"important information"</history>

                <medal_record>

                          <medal standing ="Silver" Event =" 1981 Canada Cup" sport="Ice Hockey"/>

                          <medal standing ="Gold" Event =" 1984 Canada Cup" sport="Ice Hockey"/>

                          <medal standing ="Gold" Event =" 1987 Canada Cup" sport="Ice Hockey"/>

                          <medal standing ="Gold" Event =" 1991 Canada Cup" sport="Ice Hockey"/>

                          <medal standing ="Silver" Event =" 1996 World Cup of Hockey" sport="Ice Hockey"/>

                </medal_record>

           </profile>

           <profile>

                <name>Wayne Gretzky2</name>

                <image>pic2</image>

                <dob>Jan 26, 1962</dob>

                <position>Right Wing</position>

                <height>6'1"</height>

                <weight>205lbs</weight>

                <history>"important information"</history>

                <medal_record>

                          <medal standing ="Gold" Event =" 1981 Canada Cup" sport="Ice Hockey"/>

                          <medal standing ="Bronze" Event =" 1984 Canada Cup" sport="Ice Hockey"/>

                          <medal standing ="Silver" Event =" 1987 Canada Cup" sport="Ice Hockey"/>

                          <medal standing ="Silver" Event =" 1991 Canada Cup" sport="Ice Hockey"/>

                          <medal standing ="Gold" Event =" 1996 World Cup of Hockey" sport="Ice Hockey"/>

                </medal_record>

           </profile>

      </hockey>

       

      The red information is what i need to get displayed by the Data Grid for each profile.

      StandingEventSport
      Gold1981 Canada CupIce Hockey
      Bronze1984 Canada CupIce Hockey

       

       

      The swf has buttons to cycle through the profiles which loads the new information from the XML.

       

      If you have a good understanding of how the dataGRIDs work please let me know if you can help as this is the last problem holding me from finishing this.

       

      Thanks in advance.