I have an xml file that contains names and properties of movie clips in my flash file. what data type do I use if I would like to load the name of the instance from the xml file so I can change the properties on the flash movie.
<mc>
<clip alpha="0" x="100" y = "25">mc_test1</clip>
<clip alpha="50" x="200" y ="25">mc_test2</clip>
<clip alpha="100" x ="300" y = "25">mc_test3</clip>
</mc>
Actionscript
.
.
.
for (var i:int = 0;i <xmlList.length();i++)
{
mc = new String(); //WHAT SHOULD THIS DATATYPE BE?
mc = xmlList;
mc.alpha = int(xmlList.attribute("alpha"));
}
Any suggestions would be appreciated... thx!
<mc>
<clip alpha="0" x="100" y = "25">mc_test1</clip>
<clip alpha="50" x="200" y ="25">mc_test2</clip>
<clip alpha="100" x ="300" y = "25">mc_test3</clip>
</mc>
Actionscript
.
.
.
for (var i:int = 0;i <xmlList.length();i++)
{
mc = new String(); //WHAT SHOULD THIS DATATYPE BE?
mc = xmlList;
mc.alpha = int(xmlList.attribute("alpha"));
}
Any suggestions would be appreciated... thx!