as2.0中如何复制多个影片剪辑然后加载xml,要往里面放照片
发布网友
发布时间:2024-10-24 01:54
我来回答
共1个回答
热心网友
时间:2024-10-25 22:17
var folder:String = "thumbnails/";
var total:Number;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
total = nodes.length;
for( var i=0; i < total; i++)
{
var t = mc.duplicateMovieClip("tn"+i, i);
mc.inner.loadMovie( folder + nodes[i].attributes.filename );
}
xml.load( folder + "flashmo_thumbnails.xml");