IV는 ... 같은 ActionScript로하여 addEventListener 이벤트를 통해 인수를 전달하는addEventListener를 통해 명령문을 전달하는 방법은 무엇입니까?
target.addEventListener("pComp", rakeSoil(target));
을 시도하고 있지만, 나는 오류를 얻을.
IV는 Google에 시도하지하지만 운 :
{
var target:EventDispatcher = ...;
Function rakeSoil = function (e:Event):void
{
// handle target
}
target.addEventListener("pComp", rakeSoil);
}
rakeSoil는 최고 수준의 기능입니다 (: 당신이 당신이 원하는 방법 :
또는 능력이 있다면 rakeSoil이 이벤트를 가져온 다음 currentTarget을 가져 오는 대신 currentTarget에 액세스 할 수 있습니다. –