Return to Starling Playback Library

How do I dispatch a TouchPhase.ENDED Event

Questions related to Starling playback library should be asked here.

How do I dispatch a TouchPhase.ENDED Event

Postby Emma Watson » March 14th, 2018, 11:42 pm

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);
User avatar
Emma Watson
 
Posts: 1
Joined: March 14th, 2018, 11:35 pm

Re: How do I dispatch a TouchPhase.ENDED Event

Postby Alexey Finkilshtein » March 15th, 2018, 2:37 am

Hi,

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.
User avatar
Alexey Finkilshtein
 
Posts: 411
Joined: May 21st, 2014, 6:53 am

Return to Starling Playback Library

Who is online

Users browsing this forum: No registered users and 1 guest