开发者

AS3 DoubleClick question

Has anyone got movieclip with nested clips to have a doubleclick = true; property w开发者_运维技巧orking. The only way I could get it to work was by setting mouseChildren to false which I need to be true!! Any leads/ideas would be welcomed!

J


You can try setting doubleClickEnabled to true, if you haven't already done so.


You could try filtering the click event by checking the target name. I guess you need the clicks for different functions so in each function you can decide to what target ( movie clip ) you want the function to react.

function clickHandler (event:MouseEvent ):void
{
  if( event.target.name == theMovieClipINeed.name )
     fire();
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜