hello !
i need some advise on a Human Resource application i’m developing :
I have an xml file containing categories of competences (“metacompetences”) each of which contains a number of competences (“competences”).
The flash UI will allow users to update the xml-loaded values, and save it back in the mySQL database.
What i want is to have an mc for all competences contained in the xml file, this mc allowing to assign a value to the xml attribute “value” of each competence.
Since it’s my first tryout with xml i’m not really at ease working with it.
Anyway, i figure out i need to store the loaded values inside flash, so i need to create variables holding the xml values i need.
I think using multidimensional arrays would be the right way to store the data in flash. Am i correct ?
But i can’t seem to conceptualize that correctly.
Please have a look at the xml sample as well as the attached zip file with all sources:
<normProfile normTypeId="1" authorId="2" normTypeName="Developer" normName="web designer" companyId="2" companyName="pixeline">
<metaCompetence metaCompetenceId="1" metaCompetenceName="IT development" metaCompetenceDescription="Compétences nécessaires pour développer" value="">
<competence competenceId="1" competenceName="Connaissances PHP" miniValue="Dumb and dumber" maxValue="Expert" value="" />
<competence competenceId="2" competenceName="Connaissances HTML" miniValue="Null" maxValue="Expert" value="" />
<competence competenceId="3" competenceName="Connaissances CSS" miniValue="Null" maxValue="Expert" value="" />
</metaCompetence>
<metaCompetence metaCompetenceId="2" metaCompetenceName="Marketing skills" metaCompetenceDescription="Competences nécessaires pour Vendre son travail" value="">
<competence competenceId="12" competenceName="Présentation" miniValue="Dumb and dumber" maxValue="Expert" value="" />
<competence competenceId="23" competenceName="Communication orale" miniValue="Null" maxValue="Expert" value="" />
<competence competenceId="34" competenceName="Communication écrite" miniValue="Null" maxValue="Expert" value="" />
<competence competenceId="13" competenceName="Connaissance Anglais" miniValue="Null" maxValue="Expert" value="" />
<competence competenceId="15" competenceName="Connaissance du néérlandais" miniValue="Null" maxValue="Expert" value="" />
</metaCompetence>
</normProfile>
in the sample file i used an attachMovie to do that, but it 's not correct, since i remove it when switching to another group of competences, hence reset.