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;
精彩评论