feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
914 stars 386 forks source link

Button touch down and touch up events? #1708

Closed CrazyFlasher closed 6 years ago

CrazyFlasher commented 6 years ago

Is it possible to listen Button down and up events without extending it? Also without listening TouchEvent and checking touch phase?

joshtynjala commented 6 years ago

You can listen for the standard TouchEvent.TOUCH that all Starling display objects dispatch.

You could also listen for FeathersEventType.STATE_CHANGE and check the value of currentState.

CrazyFlasher commented 6 years ago

I see that states are deprecated. image Ok. Then I'll check touch phase. Thanks

CrazyFlasher commented 6 years ago

Oh. Sorry. I missed ButtonState