hi all,
I got a flash file which reads xml data and based on total data I need to duplicate movie clips and show them horizontally. Till now i have read the data and displayed it but dont have idea how to display them horizontally. Can someone help me please ?
i = 0;
level = 100;
//total xml node count
totalNodes = _root.total - 1;
trace(totalNodes);
// display the first one
_root.mc_contentHolder.mc_content.heading.text = _root.xmlImeTitle*;
_root.mc_contentHolder.mc_content.desc.htmlText = _root.xmlImeDesc*;
for (var i:Number = 1; i <= totalNodes; i++) {
duplicateMovieClip (mc_content, "newcontent" + i, i);
var newClip:String= "newcontent" + i;
trace (newClip);
newClip._x = 328;
}
I have done this till now, it duplicates the movie clip but when i want it to change its x coordinate it shows error
Error Symbol=mc_contentHolder, layer=Action, frame=1, Line 20: There is no property with the name ‘x’.
newClip.x = 328;
Total ActionScript Errors: 1, Reported Errors: 1