Multi-touch Recorder/Player

I have an ArrayCollection that contains x and y values for the path of an object.( a "recording" of each step in the path generated by touchpoints during touchMove of an object). In short, I need a multi-touch recorder/playback.  I have the "recording" working and saving to the database.  Now, I need to animate the playback.  I want the user to be able to hit a play button and see all the objects animate along their previously recorded paths.
How do I do this?  Do I use motionpath/keyframes?  If so, how do I generate the motionpath and keyframes dynamically from the ArrayCollection?
The only examples I see about keyframes/motionpath are static hardcoded keyframes in mxml.  In my case, there can be many keyframes along the path and the number will vary.  And the number of objects in the ArrayCollection will vary as well.  (users touches screen with 4 fingers at same time and moves them).  My initial thought is looping through the ArrayCollection, create the keyframes, then play the animation.  But I don't know how to write the AS3 and there may be a better way?
Any recommendations?
Thanks,
Don
Don Kerr
Manager, Space City Adobe User Group
http://www.spacecityaug.com

With help from Claudia and Chet, I think I'm getting close.  But, I get this error
Error: Property x is not a property or a style on object X105292: TypeError: Error #1006: value is not a function..at spark.effects.supportClasses::AnimateInstance/setupStyleMapEntry()[E:\dev\hero_private_be ta\frameworks\projects\spark\src\spark\effects\supportClasses\AnimateInstance.as:1097]
when running this animatePlay function.  I've verified that my target does have a x property. All of the target Xs and Os are on the screen in the correct locations with the correct x,y initial locations.  I'm guessing it has something to do with the looping, but I don't know what is causing this error?
In the code below touchTargetsDP is an ArrayCollection that stores the saved targets (all the Xs and Os on the screen before the play starts). I loop through each target to populate the keyframes for each target in the inner loop. The keyframes for each target are stored in touchPathDP. All the keyframes and motion paths appear to be populating just fine, but when the the animation starts to play, I get the error.
In theory, there should be instances of motionpaths/keyframes for each target, and each instance of animate should play for each target until all the Xs and Os targets move to their final x,y location.
This is using Hero in Flex Mobile project.
Anyone see anything in this code that might cause the error?  It is really hard to debug since the error is inside the spark AnimateInstance.as.
Thanks,
Don
private function animatePlay():void {
//setup motionpath for each X or O target element on screen
for(var t:int;t < touchTargetsDP.length;t++){
var xmp:MotionPath = new MotionPath();
xmp.property = 'x';
xmp.keyframes = new Vector.<Keyframe>;
var ymp:MotionPath = new MotionPath();
ymp.property = 'y';
ymp.keyframes = new Vector.<Keyframe>;
//temp test time value counter
var timeCounter:Number = 0;
//add keyframes assigned to current target element only
for(var i:int;i < touchPathDP.length;i++){
if(touchPathDP[i].touchTargetID == touchTargetsDP[t].touchTargetID){
timeCounter = timeCounter + 1;
var xk:Keyframe = new Keyframe();
xk.time = timeCounter;
xk.value = touchPathDP[i].x;
xmp.keyframes.push(xk);
var yk:Keyframe = new Keyframe();
yk.time = timeCounter;
yk.value = touchPathDP[i].y;
ymp.keyframes.push(yk);
//play animation for each target element
var a:Animate = new Animate();
a.target = touchTargetsDP[t].touchTargetID;
a.motionPaths = new Vector.<MotionPath>;
a.motionPaths.push(xmp);
a.motionPaths.push(ymp);
a.play();
//finished animating the movement of all Xs and Os in the play

Similar Messages

  • IPhone and multi-touch

    I assume everyone has been following the iPhone announcement
    today:
    http://www.engadget.com/2007/01/09/live-from-macworld-2007-steve-jobs-keynote/
    I also am assuming that since it runs OS X, we can download
    Flash 8 & 9
    desktops apps (and even created standalone). Correct?
    But what we really need is to be able to tap into the
    multi-touch interface:
    1. stretching and zooming photography
    2. zooming and exploring maps
    3. getting all one's fingers into intereractive paint and
    draw tools, etc.
    I used a multi-touch at SIGGRAPH Boston 2006
    http://cs.nyu.edu/~jhan/ftirtouch/
    ) and it is very very cool.
    Is Adobe partnering with Apple to produce special fscommands
    for a iPhone
    centric version of Flash?
    [I have a huge load of apps and ideas, as well as a startup
    company if Adobe
    will pursue this!]
    Dr. Yechezkal Gutfreund - Adobe ACE for Mobile Devices

    Mark, right on.
    It would be a logical platform for Flash given some of its
    core
    philosophy in its design. However, the details about OSX and
    Safari
    support are still far too vague as you point out below.
    It wouldn't surprise me in the least, if they modified "OSX"
    to "OSX
    Mobile" as they move closer to deployment ... but, perhaps
    all they need
    is a kernel to technically call it "OSX"? Not sure.
    Speaking of which ... I think we are forgetting too, how
    stable Symbian
    and other mobile device centric OSes and platforms are. How
    long have
    they been working at "OSX for the iPhone", one year? perhaps
    two? Looks
    impressive in the demo ... but it's only a demo. How much was
    "off the
    cuff" and not stagged, we have no way of knowing ...
    My point being, a SBOD ("spinning ball of death") on a mobile
    device
    might equate to a death sentence (well, for a first time user
    iPhone
    experiences), *even* with all the great UI and features
    they've added.
    Here's hoping they do some exhaustive device and field
    testing before
    rollout later this year ... in order to limi the amount of
    software
    and/or firmware updates they have to do later on (we've seen
    that on the
    initial IPods to be sure) ...
    All in all, I'm hopeful, given Apple's track record with
    previous
    desktop versions of OSX and delivering stable releases (well
    more
    reliable and complete than say, Microsoft), they'll have
    something worth
    putting on the iPhone come end of year. Time will tell.
    -sj
    mark.y wrote:
    > _xmouse1, _ymouse1, _xmouse2, _ymouse2, ... It will have
    to happen someday!
    >
    > I don't think much is clear yet regarding Flash on
    iPhone. iPhone OS X may not
    > be the same as Mac OS X (e.g., Windows Mobile). iPhone
    Safari may not be the
    > same as Mac Safari (e.g., Nokia Safari). But it looks
    like a sweeeet platform
    > for interactive Flash!
    >

  • Multi-Touch Trackpad in Windows 7 Pro x64

    Macbook Pro Unibody
    OSX 10.5.8 (Leopard)
    Windows 7 Professional 64-bit
    Bootcamp 2.1
    Trackpad Update 1.1
    Just upgraded my Boot Camp partition from Win XP x32 to Win 7 x64. Or rather, I did a clean install, not an upgrade. I'm running all of the above listed stuff. Muti-Touch isn't working on the tack pad, so I don't have RMB functionality and I'm really missing two finger scrolling.
    Also, looking in the Boot Camp Control Panel, I don't appear to have any trackpad options, even after installing the trackpad update. I just tried installing it again, and I get a message saying that it won't update my drivers for the tackpad because what I'm trying to install isn't better than what I already have. That's all well and good, but the pad still isn't working with multi-touch.
    Any helpful suggestions are appreciated. Thanks in advance.

    I didn't do anything proactive to get it to work, just the things I mentioned above. Installed Boot Camp 2.1, installed the Trackpad 1.1 update, uninstalled Boot Camp 2.1, Installed Boot Camp 3.0. Side scrolling just started working.
    The only thing that's a tad finicky is multi-touch RMB. It works, more or less, but, for example, if I RMB on a bookmark in Firefox to access it's properties (let's say I want to rename it), I have to hold my two fingers down in the click position as as I move the cursor into the conext menu. Otherwise it will launch the bookmarked page. So you can't just two-finger-click on something to evoke a context menu, let go, then use one finger to navigate to the option you want, which is how I would expect it to work.
    Message was edited by: dustinbrown

  • I have a record player hooked up through the audio port.  The input volume is registering high, but there is no output anywhere.  Help?

    I have a record player hooked up to a preamp which is hooked up through the audio port.The sound settings are set to have the audio port be "input".  The input volume is registering high with fluxuations in the sound settings, but there is no output anywhere.  Do I need some sort of third party application or widget to hear the record i'm playing through the speakers that are hooked up to my computer?

    keithstopher,
    You may want to check into a USB interface, as I believe you have a Mac with the single audio port, which can be used as input OR output.
    You may want to check into something like the following, there are may out there, see what fits your needs best.
    http://www.amazon.com/Behringer-UFO202-BEHRINGER-U-PHONO/dp/B002GHBYZ0/ref=pd_cp _MI_2
    Hope this helps

  • Multi-track recording question

    Multi-track recording question
    Hey, just need some help on multi tracking using audition, hope this is the right forum?
    Wanted to know if anyone has a clue about assigning inputs from an audio interface to separate tracks on a recording program (ie: Adobe audition)
    I record live with my band alot, and have every amp and the kit mic'd up, but how do i make it so that each microphone is recording to a different track on the PC?
    My interface is an M audio fast track ultra, if that is of any use.
    Any advice appreciated! Thanks!

    FreeCT wrote:
    Wanted to know if anyone has a clue about assigning inputs from an audio interface to separate tracks on a recording program (ie: Adobe audition). I record live with my band alot, and have every amp and the kit mic'd up, but how do i make it so that each microphone is recording to a different track on the PC?
    In Audition, assuming that you can see all of the inputs available in the Hardware Setup, you find the right-facing arrow (input assign) on each track in MV's Main view, and you click on the box it's pointing to, go to Mono, and select the input you want for that particular track. The mono ones say [01M], [02M], etc. If you want to record a stereo track, then select the Stereo option where the inputs are paired and say [01S] et seq. This would have input 1 as left, input 2 as right.
    If you can't see all of the inputs available, try selecting the ASIO driver in Hardware Setup...

  • Multi-touch display is not functioning as normal

    multi-touch display is not functioning as normal on the right half of the screen....

    Hi James,
    Thx for the quick reply...
    I have already tried most of these troubleshooting steps but no go....
    Also, when you tap or use only the right half of the screen, the touch display is inconsistent and makes a wierd sound [ like a hollow tub or something ] and it's not a cosmetic issue...
    ----Apple store / Authorized Service Center is still working on this ongoing issue with no results and still not confirming for the iphone replacement...Thnx..

  • Multi touch screen fix

    Multi touch screen needs calibrated on iPhone 4S.  Anyone know how this is done. 

    No such thing as calibrating your display.  If restoring your phone as a NEW device (not using backup at all) doesn't resolve your issue, you'll need to take your phone in to Apple for evaluation.

  • Keyboard and Multi-Touch trackpad may become unresponsive on MacBook Pro (Retina, 15-inch, Late 2013)

    Folks,
    I have exacly same sympton described here on my 5 day old 15 inc macbook pro.
    http://support.apple.com/kb/TS5296
    MacBook Pro (Retina, 13-inch, Late 2013): Keyboard and Multi-Touch trackpad may become unresponsive
    Has anone tried to apply this patch on 15 inc ?
    Kind Regards,
    Neroshige

    The patch is only for MBP late 2013 13 inch. 15 inch is not able to install this patch
    I'm facing this problem intermittently.
    When my keyboard & trackpad went unresponsive, I plug in my USB keyboard and the keyboard & trackpad went back normal.
    I search the web and somebody highlight it may due to connector to keyboard/trackpad appear to be curled.
    Not sure is hardware problem or software bug...

  • When do we get 32 Bit Multi touch Drivers? (Windows 7)

    Computer: HP TX2z
    Operating system: Windows 7 Home
    I am a little frustrated that over six weeks after the release of the 64 Bit drivers for our multi touch screens there is still nothing available for us 32 bit users. All I see is comments that they will be released "soon". 
    I was using the RC of Windows 7 and the Beta N-trig drivers and they worked perfectly together.  It was a really fantastic machine to use - with smooth scrolling within web pages and zooming.  On the weekend I bought and upgraded to Windows 7 Home and I have been left with a very bitter taste in my mouth.  There are no longer any N-trig drivers to support windows 7 - not even beta. 
    I am currently running the Vista drivers in compatability mode.  These drivers do not work with most programs - meaning that while I can pinch to zoom in photos, I can scroll in IE8. 
    When should we expect drivers?

    I used a moblitymodder to fix this problem and installed the 10.6 ATI catalist. That fix it. plus I got alot better graphics and performance for my games.

  • W510 Multi Touch Display Driver NOT installing properly on a fresh Windows 7 Professional Image.

    Hello everyone, this is my first post here and I will make it as short as possible. First, thanks in advance for taking the time to read this and helping me out in any way possible.
    I have a fairly new W510 machine with a crucial 256GB SSD in it. My SSD crapped out (luckily I had a back up) crucial sent me a new one and I just imaged the new drive a couple of days ago with my backup (The backup is made from the original Lenovo install). However during the imaging some Windows components were damaged for some reason (perhaps due to the previous drive crapping out). The only fix was to go ahead and use the retail windows 7 Pro DVD to "repair" the windows installation by clicking the "upgrade" button after inserting the disk. --As Microsoft suggested this to fix an existing win 7 installation. After I did that EVERYTHING worked flawlessly! I was really happy with the machine, it booted in 30 seconds and what not. However, the multi touch driver for my W510 screen will not stick ... no matter how many times I install it, as soon as I "log out" of the machine, the driver rolls back to a normal pointing device and multi touch is disabled and my on-screen keyboard vanishes. It is the weirdest thing I've ever seen. Here is exactly what I'm doing.
    1 - Log into my Admin user account
    2 - Install this: http://support.lenovo.com/en_US/detail.page?LegacyDocID=MIGR-74908
    3 - Multi Touch works great!
    4 - Logoff or Lock machine or put it to sleep.
    5 - Log back in my admin user account
    6 - Touch screen works but all multi touch features are now disabled (As in no pan/scroll no pinch to zoom no nothing) the touch screen simply works as a simple mouse (point and click).
    7 - Install the driver again (mentioned in step 2) --Again everything works great.
    8 - Repeated 3 to 7 ... Forever …
    I tried completely removing the driver and re-installing it from scratch, I tried getting the raw ISD-V4 (W510's screen driver) directly from Wacom (works too) but again the minute I Logoff or lock that machine, the driver just rolls back or goes back to a normal pointing device. It is really weird that this is happening. The touch screen always worked well and I never had any problems with it. Also in device manager nothing has changed, it seems that everything is in good shape there.
    My W510 specs:
    - Intel Core i7 Extreme X920
    - 16.0 GB DDR3 RAM (G-Skill)
    - 256 GB Crucial M4 SSD
    - No GOBI 2000 Card.
    - Intel WiMax Installed and Enabled.
    - CD-ROM Drive in UltraBay
    - Cam / Fingerprint Reader / Color Sensor / Smartcard Reader / Expansion all installed
    - Windows 7 Professional SP1
    It seems that Windows is somehow defaulting to a different "driver" that is over-riding the multi-touch driver I download and install when I log off. Do I need to install the driver outside my user account? Or is there a method to erase the default drivers or something? I am trying to avoid re-imaging this machine from scratch using the provided Lenovo Windows Partition. I just have too much development software on it, some of which will take me forever to re-install and re-configure.
    Any help is appreciated.
    Thanks!
    Al.
    Solved!
    Go to Solution.

    Hi
    Please update  the monitor driver
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS015012
    Hope This Helps
    Cheers!!!

  • How many Multi-Touch points can an iPhone/iPod touch have at the same time?

    How many Multi-Touch points can an iPhone/iPod touch/iPad have at the same time?
    I am curious as IIRC (but forgot where the article is on the Internet),
    if a touch surface is wanted to be able to detect more than 1 touch point at the same time,
    then that touch surface needs adding 1 more conductive(?) layer.
    (e.g. 2 points -> 2 layers, and so on)
    So I wonder how many these layers are on the iPhone / iPod touch / iPad or even the trackpad on every MacBook (Pro).
    (correct me if I'm wrong)
    Just curious, thanks in advance!

    I believe it can only support 2. This article explains how the touch screen works but doesn't explicitly say how many points is supports.
    http://electronics.howstuffworks.com/iphone1.htm

  • How to - enable - multi touch - in windows 7 ultimate - for my G560 touchpad

         I and my friend have the lenovo G560 laptops. I am running windows 7 ultimate and my friend is running ubuntu 11.04 OS in our laptops.
    In Ubuntu: The multi touch is enabled by default for the laptop touch-pad. For vertical scrolling, we can use two fingers to navigate.
    In Windows 7 Ultimate: I don't know how to enable this multi-touch feature.
    Your help is very much appreciated.
    Thanks in advance.

    control panel > hardware and sound > mouse > mouse properties > device settings > settings ( if you have synaptic mouse )
    if you don't synaptic, check the mouse properties to enable/disable the features you'd like to.

  • IOS 8.0.2 problem with 5-finger multi touch

    I use an iPad 2, and since i updated it to 8.0.2 the multi touch task (like closing an app or switching between apps) doesnt work most of the time.
    And native keyboard works poorly too.
    Am i the only one having these issues?

    Hello doggerelgus,
    The article linked below details a numbrer of troubleshooting steps that can help resolve issues with apps on your iPhone.
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/TS1702
    Cheers,
    Allen

  • Photoshop CC 2014 Multi touch pinching, panning and rotating working, but no tapping!

    Hi,
    I have installed today PS CC 2014, the Adobe team done a great job, multi touch is great, big buttons is great on my Vaio 13, and all is nice.
    But guess what, I can't click (Single regular tap) with touch, I only can do it with a mouse or pen.
    Now, I'm happy to hear the news and went ahead and ordered a 23 inch touchscreen from Acer, that touch screen doesn't support pen input, so I would love to have my single touch tap enabled on it.
    Any ideas what to do about single touch tap, or dragging the brush to draw?

    I'm just curios if there's the option available now or not yet.
    I'm not sure what's the benefits behind multi touch without being able to do a single touch or tap.
    Not all tablets or touchscreens do actually have a pen.

  • Recording from Record Player

    I was recording music from Record Player to LP; lost sound, reinstalled Drivers, still nothing, Please Help!

    Hi,
    How do you connect them ? What is "from Record Player" and what is "to LP" ? To help us answer question quicker, please read this:
       http://h30434.www3.hp.com/t5/First-Time-Here-Learn-How-to/Welcome-Get-started-here/td-p/699035
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for