作者:羽靜幻雲_100 | 来源:互联网 | 2023-05-18 06:36
Ivepreloadedimagesfromxmlintoanarraynamedarr.ButImhavingproblemswithloadClipandge
I've preloaded images from xml into an array named arr. But I'm having problems with loadClip and getting the string from the array. So it doesn't load the image in the box.
我已经将xml中的图像预加载到名为arr的数组中。但我遇到loadClip问题并从数组中获取字符串。因此它不会在框中加载图像。
Example:
arr[0] = "images/photo1.jpg";
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip(arr[0], box_mc.loader_mc);
Any thoughts on how to work around this?
有关如何解决这个问题的任何想法?
1 个解决方案