How to control animation with touch

Hello! I need some help with controlling animations with touch. I am building a fake app and need to 'unlock' an iphone (slide an arrow along a track and then have it fade into another page). I have been using http://forums.adobe.com/message/4865693 that thread. The prototype link listed there is similar to waht I need to recreate, but I think I need an 'on touch' actino instead of a mousemove one.
http://assets.ordienetworks.com.s3.amazonaws.com/the_occasional/checkerPro/checkerPro.html
That is a link to the Edge file I have been working on, using the info in the thread above. It is broken at the moment, and I am terrible with javascript and have no idea how to move forward. I have figured that I'll need an 'on touch' action instead of the mouseover one, but I'm not sure how to build it.
If there is a working example of this on a different thread that I've missed I'd love a link as well!!
Thank you!!

Hi, akall-
There are a number of touch events that you can use to accomplish what you want.  You can try using the touchmove event instead of the mousemove event, and stick your code in there.
Hope that helps,
-Elaine

Similar Messages

  • Which is the best tool for PRC animation? and how to control it with javascript?

    Hi I created animations through Deep Exploration. But I want to know how to create PRC animation with tools and how to control it? I already tried with tetra4D but the javascript can control only u3d format. I have no idea to control prc animation. Please let me know.
    Thanks and Regards
    Chenet0005 @ Chenthil Kumar

    PRC files don't support embedded animations.
    You can still control the mesh directly with  3D JavaScript (e.g. by using rotateInPlace and a time event handler) but you can't import a timeline as you can with U3D.

  • Controlling Timeline With Touch

    Hi! I use edge animate in adobe dps. I searched to control the timeline with touch (or scroll) in the forum. Even some solutions were discussed, i didnt find the perfect one. It could open so many possibilities like slideshows, parallax, diagonal textscroll etc.
    I would like to build a wide animation and control the timeline by scrup/swipe with my finger.
    I found something which works, but it seems the directions doesnt work in adobe edge animate anymore. Does anyone know how to resolve this problem? Demofiles would be awesome.
    Here is the solution i found, which doesnt work in the latest edge.
    http://codehandyman.blogspot.de/2011/12/adobe-edge-animation-controlled-by.html
    And here is the result. Works on ipads in indesign dps:
    http://www.northeastmagic.com/adobeEdge/scrollbar_scrubber/test7.html
    thanks,
    Klaus

    Hi Jerry, in my opinion the best for magazines right now is to swipe left and right to the article and down to see the full article. For that I want to decide if it's snapping to single pages vertically, or smooth scroll etc. Im my case I wanted to have a smooth scroll parallax version which I can build in adobe edge (it's possible to do with stellar.js - most of the other parallax html script doesnt work on ios). But it's s so easy to do in adobe edge animate! I also want to build full pages in adobe edge, since there are more ways to animate things (even it's a little button). But then I have the same problem. I dont get off the page if it's made in adobe edge and shown full screen in adobe dps. I got some other html scripts which are full screen, but are able to swipe to the next page.
    For example I searched weeks for a good slider. But most of them have the same problem. An example: I have an article vertically with a few pages in adobe dps. On the 3rd i want a full screen slider. I can swipe left/right, but cant go down or up anymore. But finally i found a solution which is so perfect for adobe dps.
    http://www.idangero.us/sliders/swiper/
    So many options and the abillity to get off the fullscreen page! but you need to know a bit html/css. I am not a coder at all, but enough to change some sizes etc.
    Have a look on swiper. It's awesome!
    Here is one feature they mentioned that's the problem with my above adobe edge animation:
    Scroll prevention
    Swiper will prevent vertical scroll when you touch it in "horizontal" mode, and horizontal scroll in "vertical" mode"
    That's why I think it has to be possilbe to make the adobe edge full screen animation with scroll acts the same. If its vertical, i want to swipe left/right to get off the page.
    Hope this wasn't to complicated.

  • How to control HP8350B with HP83592A and HP8757A

    I want to control HP8350B with plug in HP83592A and HP8757A by NI GPIB,using Labview language and print out HP8757A screen chart to printer, but when I sent command to HP8757A according to HP8350B manual ,such as "PT19",the instrument has no response,could andbody has experience on it and tell me how to do?

    "[email protected]" wrote in
    news:506500000008000000296D0000-1031838699000@exch​ange.ni.com:
    > I want to control HP8350B with plug in HP83592A and HP8757A by NI
    > GPIB,using Labview language and print out HP8757A screen chart to
    > printer, but when I sent command to HP8757A according to HP8350B
    > manual ,such as "PT19",the instrument has no response,could andbody
    > has experience on it and tell me how to do?
    After you send "PT19" to the 8757, usually at address 16.
    Send the commands you want to go to the 8350 to address 17.
    To terminate the passthru mode, send any command to address of the 16.
    Ex:
    To Address 16: PT19;
    To Address 17: FA 8 GZ;FB 16 GZ;PL 0 DM;
    To Address 16: C1 IA;

  • How to synchronize animation with time?

    I want to synchronize animation with time, but I can't determine the current time, because the return value of the System.currentTimeMillis() method is updated only every 10 milliseconds.
    The following example demonstrates it:
    import java.applet.Applet;
    import java.awt.Graphics;
    class TimeStep extends Applet
      long minimalStep=1000L;
      long lastTime=System.currentTimeMillis();
      public void paint(Graphics g)
        g.drawString("Minimal timestep: "+minimalStep,5,30);
        for (int i=25;i-->0;)
          while (true)
             long newTime=System.currentTimeMillis();
             long step=newTime-lastTime;
             if (step>0L)
                 if (step<minimalStep)
                    minimalStep=step;
                 lastTime=newTime;
                 break;
        repaint();
    }It causes flickers by most framerates:
    import java.applet.Applet;
    import java.awt.Graphics;
    class SynchronizedAnimation extends Applet
      static final int FRAME_RATE=90;     // 100 works, 90 flickers
      static final int STEP=5;
      static final int WIDTH=640;
      static final int HEIGHT=20;
      static final long FRAME_TIME=1000L/FRAME_RATE;
      int lastPosition,newPosition;
      long lastTime=System.currentTimeMillis();
      public void paint(Graphics g)
        long waitedTime=lastTime+FRAME_TIME;
        while (waitedTime-System.currentTimeMillis()>0L);
        lastTime=waitedTime;
        newPosition=(lastPosition+STEP)%WIDTH;
        g.drawLine(newPosition,0,newPosition,HEIGHT);
        if (lastPosition!=newPosition)
            g.setColor(getBackground());
            g.drawLine(lastPosition,0,lastPosition,HEIGHT);
            lastPosition=newPosition;
        repaint(0L);
      public void update(Graphics g)
        paint(g);

    On windows 9x its even worse. The timer is only updated every 50/60 milliseconds.
    Instead you could do something like keep the time when the animation starts, and then everytime you want to paint, check how much time has gone since then and calculate where the animation has gone to at this point.
    Even if you can only update every 50 ms, it gives you 20 frames. I don't think its that bad.

  • How to control scrubbing with the keyboard?

    The headline is already the question: I would like to use the keyboad to fast forwad in songs. In the 'itunes a-z' there is only an info how to do this with the mouse. Arrow Keys do not seem to work for this, they only switch to the next or previos song, or album. Ah, I am using utine s10.5.2.11 with WIndows 7.
    Any idea?
    Thanks, Alex

    Here are a few more to try:
    setxkbmap
    xkbset is the one I currently use, you can find at https://aur.archlinux.org/packages/xkbset/
    keynav might also be worth a look. I haven't tried it though. It can be found in the AUR also.

  • Controlling animation with the movement of a mouse

    I know there are ways to control videos and swfs with the actions of a mouse in Flash Catalyst. But how can you set it so that the swf animation will go back and replay from the beginning once the mouse moves anywhere on the trigger? My animation plays once on rollover (which still does not suffice) but then stays on the last frame when I try to trigger it once more. Any Ideas?

    I'm actually curious about an answer to this question as well. I have rollover slidelets that will expand a tab when activated, but once the rollover has been completed, and a users mouse leaves the rollover area, it does not return to the original state, but instead the tab remains expanded. Is there any way to return an object to its original state once the mouse leaves the rollover area?

  • How to play Animation with site loading in background to reveal website?

    So I know there are pre loaders and you can make that with edge... But they are so small and just a little circle moving around or something... I more mean a full page pre-loader then I guess...
    I have created an animation of a M with marquee lights going around and slowly zooming in... Then I have the M fade out and I have a black solid layer move up and another black solid layer move down to reveal the blank stage below...
    What I want to happen is maybe with some java script but to have the solids move out of the way to reveal my site bellow... Anyone know how to accomplish this?
    Thanks so much! I think being able to do things like this in native html and css and java will be huge for giving websites a "Font Door" or Opening Title like we have in movies... Thanks so much!

    first I recommend that you use mouseenter and mouseleave instead.
    second: if you have a symbol that has let's say one animation you can do
    on mouse enter
    sym.getSymbol('symbolname').play();
    on mouseleave:
    sym.getSymbol('symbolname').playReverse();
    you may have to add
    sym.getComposition().getStage().getSymbol('symbolname').play();
    sym.getComposition().getStage().getSymbol('symbolname').playReverse();
    or you can put the event in stage/compositionreday
    sym.getSymbol('symbolname').mouseenter(function(){
    sym.getSymbol('symbolname').play();
    sym.getSymbol('symbolname').mouseleave(function(){
    sym.getSymbol('symbolname').play();

  • How to control display with X-Y Axis interval

    Is there a graceful way to control the display of X, Y Axis in SVG chart with line mode?
    When more records retrieved, it is hard to read from the X axis.
    How does Axes settings work?
    Thanks,
    Daniel

    Is there a graceful way to control the display of X, Y Axis in SVG chart with line mode?
    When more records retrieved, it is hard to read from the X axis.
    How does Axes settings work?
    Thanks,
    Daniel

  • How to control timleline with mouse x coordinates

    Hi,
    Does anyone know a good tutorial on how to create a movie with a sequence of pictures and controlling the timeline frames with mouse x-coordinates?
    Regards,
    MH

    basiclly,these swfs didn't work in mailtimeline movies.some of them were created by  flash3D .
    the point is some functions what created mouseX & DisplayMovies mapping like this
    function mouseMoveH(e){
              displayrender()
    function mapping(){
         return  fun(mouseX)
    function displayrender(){
        showFrame(mapping)

  • How to control DIO with VC++

    Dear master.
    This is  south korea. Sorry I'm poor english.
    I saw example file. but I can't found bit control (Just found byte control)
    My project is  Z-stage control with step motor.
    check sensor(limit)
    then If true generate pulse CW (for Step motor P3.7)
            if false generate pulse CCW (for step motor P3.6)
    now I can understand read data(8bit) and check one bit...
    but I can't code write data(1 bit) for step motor
    How can I do this...
    Please help me...

    hi
    i'm no pro yet, but i think you can use the following method
    CNiDAQmxDigitalSingleChannelWriter :: WriteSingleSampleSingleLine( bool autoStart, bool data)
    to send a single boolean sample to a single line ( as the name of the method tells you
    hope this helps
    regard, markus
    Message Edited by QuickNick on 07-04-2005 09:38 AM

  • How to control Mac with a iPhone without WiFi

    i use this app with full screen shared control
    Mocha VNC Lite
    it just doesn't work whenever I leave the nearby WIFI network.

    Your observation is correct, MochaVNC is for local network only
    See Teamviewer for remote control across the internet
    http://www.teamviewer.com/en/index.aspx

  • Control animation with keyboard

    http://java.sun.com/products/java-media/2D/samples/suite/Image/DukeAnim-pi.html
    Is there anyway that one could control the movement of something like this (the walking thing) with wasd or the arrows???
    Thomas

    duplicate post:
    http://forum.java.sun.com/thread.jspa?threadID=616859&tstart=0

  • How to control brightness with slider

    i would like to know how can i make a slider on xcode control the brightness. where should i put the coding ? view controller.m or .h ?

    The N95 should unlock the keypad automatically when you open the slider (or the lens protector for that matter). The sensor would appear to be working since the keypad is locked when you close the slider, so it's probably a software issue. I'd start by uninstalling ShutUp beta, which is installed according to your signature.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • How to control time with great precision

    Hello everybody.I know Timer could control time.But it uses thread.sleep(),isn't it.That means it is not guaranteed.So,does anybody know some approach to control time precisely?
    thanks in advance!

    Hello everybody.I know Timer could control time.But it
    uses thread.sleep(),isn't it.That means it is not
    guaranteed.What do you mean by "not guaranteed". How can you expect a non-realtime multitasking OS that uses virtual memory (i suppose you are using a system like windows or linux) to guarantee anything? Some systems are better in this regard, but in addition to this you aslo have the garbage collection. Of course there might be ways to implement soemthing more precise in Java , but without a special VM on a special OS there is no guarantee that it will really work imho.

Maybe you are looking for