Posted by: pierrot | on April 3, 2014
Posted in | 3 Comments » Tags: Michael Hewett
< ![CDATA[
Are you using LLX?
If so you can use this script. Run it from the tap event (or double tap) of the container.
var ev = LL.getEvent();
var cont = ev.getContainer();
var x = Math.floor(ev.getTouchX()/cont.getWidth())*cont.getWidth();
var y = Math.floor(ev.getTouchY()/cont.getHeight())*cont.getHeight();
cont.setPosition(x,y,1,true);
]]>
Yes I use LLX
Thanks a lot, I will try it
🙂
Thanks TrianguloY
Script is working well, exactly what I needed 🙂
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
< ![CDATA[
Are you using LLX?
If so you can use this script. Run it from the tap event (or double tap) of the container.
var ev = LL.getEvent();
var cont = ev.getContainer();
var x = Math.floor(ev.getTouchX()/cont.getWidth())*cont.getWidth();
var y = Math.floor(ev.getTouchY()/cont.getHeight())*cont.getHeight();
cont.setPosition(x,y,1,true);
]]>
< ![CDATA[
Yes I use LLX
Thanks a lot, I will try it
🙂
]]>
< ![CDATA[
Thanks TrianguloY
Script is working well, exactly what I needed 🙂
]]>