开发者

DOUBLE_CLICK dont work in actionscript3

I have

MyMovie.addEventListener(MouseEvent.CLICK, goClick)
function goCl开发者_JAVA技巧ick(e:MouseEvent):void
{
trace("Trololo");
}

It's work.

Why don't work?

MyMovie.addEventListener(MouseEvent.DOUBLE_CLICK, goDouble)
function goDouble(e:MouseEvent):void
{
trace("Trololo");
}


You have to set doubleClickEnabled to true.

MyMovie.doubleClickEnabled = true;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜