我试图在我的flash文件中创建一个对象,仅在屏幕上显示某个对象时才响应键盘。但是,使用我当前的代码(如下),如果按住某个键,它将允许您完成整个程序。我想让它在每次物体进入屏幕时重新按下键。 (程序在as2中)。谢谢!
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/afuser/Desktop/wonchan/mean/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
答案 0 :(得分:0)
您可以使用简单的select distinct ug.*
from table_x x
join usergroups ug on x.userId = ug.userId
where x.ip_address in (
select x.ip_address
from table_x x
join usergroups ug on x.userId = ug.userId
group by ip_address
having count(distinct groupId) > 1)
语句来验证您的对象是否存在:
if
希望可以提供帮助。