Skip to main content
Participant
May 29, 2017
Question

做的拖动程序在2017里显示不正常,2015里正常

  • May 29, 2017
  • 2 replies
  • 153 views

做的拖动程序在2017里拖动的时候总是和鼠标指正不同步,adobe animateCC 2015里可以正常拖动

    This topic has been closed for replies.

    2 replies

    Inspiring
    May 31, 2017

    try to use globalToLocal, ex:

    var a = this.globalToLocal(stage.mouseX, stage.mouseY);

    cursor.x = a.x;

    cursor.y = a.y;

    kglad
    Community Expert
    Community Expert
    May 29, 2017

    it's not clear what you're describing.