Ad

StarlingでTouchPhaseEditでHoverはあるけどOutがないので検知する方法

exampleObject.addEventListener(TouchEvent.TOUCH, onTouchHandler);
private function onTouchHandler(e:TouchEvent):void 
{
	if (e.interactsWith(e.target as DisplayObject)) {
		trace("hover!");
	}else {
		trace("out!");
	}
}

参考: http://forum.starling-framework.org/topic/detecting-mouse-out


Front page   Unfreeze Diff Backup Copy Rename ReloadPrint View   New Page Page list Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom) Powered by xpWiki
Counter: 949, today: 1, yesterday: 0
Princeps date: 2015-05-21 (Thu) 16:16:51
Last-modified: 2015-05-21 (Thu) 16:20:27 (JST) (1524d) by njf
広告

ログイン

ユーザー名:


パスワード:





パスワード紛失


NJF