Return to Starling Playback Library
How do I dispatch a TouchPhase.ENDED Event
2 posts
• Page 1 of 1
How do I dispatch a TouchPhase.ENDED Event
I'm having a little trouble understanding how to dispatch an event and wondered if anyone can shed some light on this for me?
I'm using a touch event to drag an object. My goal is to have the object released (no longer dragged) when it's x position is < 500.
I've tried using the following code but that doesn't seem to have any effect.
dispatchEventWith(starling.events.TouchPhase.ENDED, true);
I'm using a touch event to drag an object. My goal is to have the object released (no longer dragged) when it's x position is < 500.
I've tried using the following code but that doesn't seem to have any effect.
dispatchEventWith(starling.events.TouchPhase.ENDED, true);
-
Emma Watson - Posts: 1
- Joined: March 14th, 2018, 11:35 pm
Re: How do I dispatch a TouchPhase.ENDED Event
Hi,
GAF supports only 2 types of events:
more information you can get following by this link:
https://gafmedia.com/documentation/converter/limitations
Thanks.
GAF supports only 2 types of events:
- Code: Select all
this.dispatchEvent(new Event("EvenName", false, false));
this.dispatchEvent(new DataEvent("EventName", false, false, "Your custom data here"));
more information you can get following by this link:
https://gafmedia.com/documentation/converter/limitations
Thanks.
-
Alexey Finkilshtein - Posts: 429
- Joined: May 21st, 2014, 6:53 am
2 posts
• Page 1 of 1
Return to Starling Playback Library
Who is online
Users browsing this forum: No registered users and 2 guests