Android 如何使用acclerometer擦除线条?
我需要一个简短的代码来删除Android设备上画的线。这是生成我的行的代码:Android 如何使用acclerometer擦除线条?,android,actionscript-3,accelerometer,Android,Actionscript 3,Accelerometer,我需要一个简短的代码来删除Android设备上画的线。这是生成我的行的代码: this.graphics.lineTo(event.stageX, event.stageY); 我似乎无法获得正确的代码,以便通过加速度计检测到的移动擦除这条线。我想像“蚀刻草图”一样摇动它来擦除线条 有人能帮我吗。这对我来说是全新的。试试: this.graphics.clear(); 这将删除此.graphics创建的所有内容(这可能是您想要的)。尝试: this.graphics.clear(); 这将
this.graphics.lineTo(event.stageX, event.stageY);
我似乎无法获得正确的代码,以便通过加速度计检测到的移动擦除这条线。我想像“蚀刻草图”一样摇动它来擦除线条
有人能帮我吗。这对我来说是全新的。试试:
this.graphics.clear();
这将删除此.graphics创建的所有内容(这可能是您想要的)。尝试:
this.graphics.clear();
这将删除由This.graphics创建的所有内容(这大概是您想要的)