for(var i:int = 0; i<tagsArray.length;i++)
{
var tempTag:MovieClip = tagsArray[i] as MovieClip;
tempTag.addEventListener(MouseEvent.CLICK,
function(e:MouseEvent):void{
myRedict(e);
}
);
function myRedict(e:MouseEvent):void
{
var myUrl:URLRequest=new URLRequest("myUrl.aspx?tagName="+tempTag.tagname.text);
navigateToURL(myUrl,"_self");
}
}
为什么给tempTag添加监听事件后总是得到的最后一条记录,怎么解决?