Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何使用acclerometer擦除线条?_Android_Actionscript 3_Accelerometer - Fatal编程技术网

Android 如何使用acclerometer擦除线条?

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(); 这将

我需要一个简短的代码来删除Android设备上画的线。这是生成我的行的代码:

this.graphics.lineTo(event.stageX, event.stageY);
我似乎无法获得正确的代码,以便通过加速度计检测到的移动擦除这条线。我想像“蚀刻草图”一样摇动它来擦除线条

有人能帮我吗。这对我来说是全新的。

试试:

this.graphics.clear();
这将删除此.graphics创建的所有内容(这可能是您想要的)。

尝试:

this.graphics.clear();
这将删除由This.graphics创建的所有内容(这大概是您想要的)