Can I make a button respond to Touch while using Gestures?
Hi, I've recently discovered I'm unable to use Touch Points and Gestures at the same time on mobile apps.
I would rather use Gestures so I'm wondering if anyone can help with making buttons respond to the user when they are touched.
Here's what I'm trying to do but the buttons are not changing alpha values:
mainMenu.menuPres.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
mainMenu.menuPres.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
function mouseDownHandler(event:TouchEvent):void {
TweenLite.to(mainMenu.menuPres, .2, {alpha:.5});
}
function mouseUpHandler(event:TouchEvent):void {
TweenLite.to(mainMenu.menuPres, .2, {alpha:1});
}
Is there another way I can do this or can this method be refined?
Thanks
