1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    1
    Vote Rating
    0
    vash82 is on a distinguished road

      0  

    Default Touch Gestures

    Touch Gestures


    Hey,

    I want to create very simple interactive iPhone mockups (mostly screen transitions and animating elements) using Sencha Animator for our developers. Is it possible to use touch gestures, I know there are libraries such as hammer.js that does exactly what I need but how to implement this in Sencha Animator I'm not sure. An example project would be great.

    Thanks

  2. #2
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    9
    arnebech will become famous soon enough

      0  

    Default


    Sorry, we don't have any example projects in this area yet. I think your best bet might be to include your library using the Includes->External JS option in the Project tab. Then I would initialize and set up your library it in the Actions->Start (also in the project tab).

    If you are using Hammer.js, something like this might work out for you as the start action (this assumes you have an element in a scene, with a ID of "box" (given under Properties->General->ID) for any object.

    Code:
    var hammerBox = new Hammer(controller.getElementById('box'));
    hammerBox.onswipe = function (event) {
        controller.goToNextScene();
    };

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar