actor.TouchSignal().Connect( &OnPressed );
~~~
-*/
-
-## JavaScript {#java-script-support}
-
-~~~{.js}
-var actor = new dali.Actor();
-actor.parentOrigin = dali.CENTER;
-actor.anchorPoint = dali.CENTER;
-dali.stage.add( actor );
-...
-function onPressed( actor, touch )
-{
- var animOptions = { alpha: "bounce", delay: 0, duration: 15 };
- var anim = new dali.Animation();
- anim.animateTo( actor, "position", [ 200, -100, 0 ], animOptions );
- anim.play();
- return true; // consume the touch event
-}
-...
-actor.connect( "touch", onPressed );
-
-~~~
-
## JSON {#json-support}
~~~{.json}
}
]
}
-~~~
\ No newline at end of file
+~~~