江城骨科医院评价:怎么MC的onRelease不起作用,请高手帮帮我看看,谢谢!

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/13 19:51:18
fscommand("allowscale", "false");
stop();
var pixGroup:XML = new XML();
pixGroup.onLoad = handle;
pixGroup.load("link_image.xml");
pixGroup.ignoreWhite = true;
function handle(success) {
if (success) {
var pixAmount:Number = 0;
while (pixGroup.firstChild.childNodes[pixAmount] != undefined) {
pixAmount++;
}
var picURL:String;
var i:Number = 1;
var j:Number = 0;
var x:Number = 5;
var y:Number = 5;
total = pixAmount;
while (i<=pixAmount) {
duplicateMovieClip("pixShow", "pixShow"+i, i);
setProperty("pixShow"+i, _x, x);
setProperty("pixShow"+i, _y, y);
x = x+97;
if (i%8 == 0) {
y = y+40;
x = 5;
}
i++;
}
while (j<=pixAmount) {
adslink = pixGroup.firstChild.childNodes[j].childNodes[0].firstChild.nodeValue;
urllink = pixGroup.firstChild.childNodes[j].childNodes[2].firstChild.nodeValue;
ads = eval(("pixShow"+j));
ads.loadMovie(adslink);
ads.onRelease = function() {
getURL(urllink,"_blank");
};
j++;
}
} else {
stop();
trace("载入错误!");
}
}
ads.onRelease = function() {
getURL(urllink,"_blank");
};
主要是这里的onRelease没起作用?

因为MC(影片剪辑)不支持onRelease,所以就无法起作用