Drag an object side to side with limits

Hi,
I have a very specific need for a project  am working on.
I need the used to be able to drag 3 layers, with a single touch, a set distance either direction on the x-axis.
Ultimately I would like to have the 3 layers move at slightly different rates to create a parrallax effect.
I figure the best way to do this would be to target the top layer for the dragging. Then code the other layers to move relative to the top layer's movement;
something of the nature of  -
if (layer1) moves in the x+ direction, then (layer2) moves (layer1 x -10) and (layer3) moves (layer2 x -10). And the reverse for x-.
Does that make sense?
Coming from animation rather than coding, I am finding it hard to get started with this one. I've picked up a lot very quickly so far but I can't seem to find anything anywhere to build off of.
Thanks for your help,
Justin

Hi,
I have a very specific need for a project  am working on.
I need the used to be able to drag 3 layers, with a single touch, a set distance either direction on the x-axis.
Ultimately I would like to have the 3 layers move at slightly different rates to create a parrallax effect.
I figure the best way to do this would be to target the top layer for the dragging. Then code the other layers to move relative to the top layer's movement;
something of the nature of  -
if (layer1) moves in the x+ direction, then (layer2) moves (layer1 x -10) and (layer3) moves (layer2 x -10). And the reverse for x-.
Does that make sense?
Coming from animation rather than coding, I am finding it hard to get started with this one. I've picked up a lot very quickly so far but I can't seem to find anything anywhere to build off of.
Thanks for your help,
Justin

Similar Messages

  • Why cannot execute DB operation at client side with dynamic proxy?

    I want to execute a DB operation at client side with dynamic proxy. that is bypass EJBs to execute DB operation. And there is a data source in weblogic server, and I get an EJB instance using dynamic proxy, get connection using this instance, then invoke executeQuery method. But it is failed, and throw exception when execute "conn.setAutoCommit(false)" as below:
    <Caused by: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [java.rmi.UnmarshalException: Could not unmarshal method ID; nested exception is:
    java.rmi.UnmarshalException: Method not found: 'newArrayDataResultSet(Loracle.sql.ARRAY;JILjava.util.Map;)']
    at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_813_WLStub.setAutoCommit(Unknown Source)
    at weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_813_WLStub.setAutoCommit(Unknown Source)>
    but it is no exception and run well using EJB, who can tell me why? if it is a weblogic limitation? and my version of WLS is 8.1 sp3

    Hi,
    Do you create the connection object on the server and pass it over to the client, we do not allow passing the connection object over the wire.

  • Can i install CR XII R2 side-by-side with Crystal 2008?

    Hi,
    I am using Crystal XII R2 SP2 in a Vista Business Workstation. I'm using this specific version because i need to develop reports used in a ERP app that uses this version as a reporting engine.
    Can i install Crystal 2008 side-by-side with XII R2 SP2?
    TIA,
    Carlos Crespo

    Yes, you can install Crystal Reports 2008 side by side with Crystal Reports XI Release 2. This is supported by Business Objects.
    Cheers,
    Fritz

  • How to configure Click-to-Run version of Outlook 2013 to run side-by-side with Outlook 2007 or Outlook 2010

    Hi, I am administering a cutover from Office Pro 2010 to Office Pro 2013 via our Office 365 E3 licenses. Before I start migrating mailboxes from our Exchange 2003 server to Exchange Online, I want to have our staff install Office Pro 2013 including Outlook
    2013 so they can have time to review it before we switch to the Exchange Online server in a couple of days. I know Outlook 2013 is not compatible with our Exchange 2003 server but I was hoping to be able to setup Outlook 2013 to connect to my Office 365 email
    address while keeping my msi installed version of Outlook 2010 for my Exchange 2003 email address.
    I am trying to test the capability of Outlook 2013 running side-by-side with my Outlook 2010 program. I have the "Click-to-Run" version installed on my Windows 7 64-bit machine however when I try to open Outlook 2013, I get an error message: "Another
    version of Outlook is currently running. Close it and try again."
    In reading in TechNet and other sources, it clearly states that both programs can run simultaneously which is what I need to do
    but obviously something is not configured correctly.
    Can you please help me get this configuration running or let me know if it is in fact not possible?
    Thanks!
    Frank

    Yes, it should be able to install side by side.
    The versions of Office that you install must be the same edition. For example, both installations of Office are the 32-bit edition.
    When you get the error
    "Another version of Outlook is currently running. Close it and try again.", go to task manager and end all existing
    outlook process.
    If the issue persists, do a repair for your Office suites in Control panel>Program and features>Office>Change>Repair
    Thanks,
    Tyor Wang
    Forum Support
    Come back and mark the replies as answers if they help and unmark them
    if they provide no help.
    If you have any feedback on our support, please click
    here

  • My iphone 4s screen turned freaked out before my eyes, changing all different colours, now it is blue and black along the right side with horizontal lines, and is flickering. I DIDN'T DROP IT.

    I was just sitting on the couch scrolling through facebook, I closed out of that and went to open safari, when it spazzed out, for a few mintutes it looked like LSD vision, it was all different colours and flickering the whole time. I turned it off and on again, and plugged it into my computer and now the right side is nearly completely blue, and bleeds to the left side with horizontal lines, and it is still flickering. I just finished paying the **** thing off. I thought I'd get another year out of it. I have taken exemplary care of it and it hasn't left the case since the day I bought it. I haven't dropped it, there was no warning for the screen to start doing this. So my question is, is there an easy fix (I am about to restore and update it, and I already played around with the screen brightness), and if not, am I going to have to pay for the screen to be replaced, because I don't have that kind money.

    Probably sounded funnier in your head.

  • How to view one photo with one XMP based adjustment side by side with another  XMP version?

    Hi,
    I was wondering if there is a simple way of quickly and easily comparing side by side the same photo that may have different adjustments made to it.
    I do some freelance work where in one job I receive up to 800 images to edit.  After my work is complete I send the XMP files back to my boss.  He may or may not further tweak them for correctness.  He then sends these files to the client.
    I want to compare the original XMP files I sent against the final XMP files that the client receives to see what changes were made.  My boss can't remember exactly which files he tweaked so I wanted to do that visually.
    Is there an easy way to do this in Bridge? Can I quickly switch the adjustments from one set of XMPs to the other, or better yet, view the same image side by side with different adjustments applied to them?
    Thanks!
    ZLeung1980

    Is there an easy way to do this in Bridge? Can I quickly switch the
    adjustments from one set of XMPs to the other, or better yet, view the same
    image side by side with different adjustments applied to them?
    As far as I know you can't see different versions of the same file in
    Bridge, I think you can do so in Aperture ;-0
    The easiest way I can think of is to have two sets of files by duplicating
    the current series you have tweaked. The duplicates have copy in the
    filename but will stay in the correct order when having file name selected.
    The duplicates stay as you have them tweaked, the originals will be modified
    with new XMP as you get them back.
    Choose sort by modification date to select the files with modified xmp data
    and color  label those. Again choose all the content with sort for filename
    and you can easily see the color labels next to the original duplicates.
    Select both one modified and one original and view them next to each other
    in the preview window.
    Maybe others have a better method?

  • XI messages status "Message scheduled on outbound side" with Green flag

    Dear,
              On My XI system , i have too old messages and i want to clear those.
              In moni messages status is "Message scheduled on outbound side" with Green flag .
             When i am trying to cancel these messages i am getting a popup saying
              "Cannot cancel message because of it's status"
              And there is no queue entries for these messsage on smq1 or smq2 (perhaps deleted by someone)
              I just want to cancel these messages, please tell me if there is any way .
    Thanks in Advance,
    Sandeep

    Dear Sunil,
                    Thanks, these meesages are neither active nor used anywhere,
                    Problem is somebody has manually deleted entries for these messages from SMQ1 and SMQ2.
    Regards,
    Sandeep

  • Sql 2008 r2 cluster side by side with sql 2012 cluster on Windows 2008 R2

    We have a SQL 2008R2 active/passive SQL cluster running on Windows 2008 R2 cluster.
    I would like to add a SQL 2012 clustered instance to the same Winows 2008 R2 cluster.
    Are there any issues involved having a SQL 2008 R2 clustered instance running side by side with a SQL 2012 instance in same Windows 2008 R2 cluster?
    Are there any pitfalls/"gotchas" to watch for with SQL 2012 cluster install?
    Thank you so much!

    Hello,
    Two instances, one SQL Server 2008 and the other SQL Server 2012, side-by-side, is fully supported.
    I would like to recommend you to assign a different port (not port 1433) to the non-default instance
    to avoid an IP address conflict between both instances.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Getting SID with a given service name or host

    Hi.
    I am curious if there is a way or command line to get SID with a given service name or host. I have a service name, but I don't know how to get SID. I know that I can parse the tnsnames.ora file to get it, but if possible, I want to use the more official and safe way.
    I'd appreciated if somebody knows it.

    caesarkim wrote:
    Is there a way to take care of it as one command something like this?
    sqlplus username/password@localhost "SELECT NAME FROM V$DATABASE@SERVICE_NAME"
    Thanks.Make a text file, dbname.sql, that contains lines below
    spool sid_name.txt
    SELECT NAME FROM V$DATABASE@SERVICE_NAME;
    spool off
    exit
    then invoke it like below
    sqlplus username/password@localhost @dbname.sql

  • I have a Time Capsule on which I back up 2 MacBooks and on my wife's machine she keeps having Airport Utility popping up all the time with a yellow button flashing on the left and a Red button on the right side with a "1" in the middle of it.

    I have a Time Capsule on which I back up 2 MacBooks and on my wife's machine she keeps having Airport Utility popping up all the time with a yellow button flashing on the left and a Red button on the right side with a "1" in the middle of it. Can any one tell me what is wrong. I read where when the yellow light was flashing there was a problem, but I am a novice at this and have no idea where to turn. It seems to be backing up on a regular basis.

    On the Mac......
    Open up Macintosh HD > Applicatons > Utilities > AirPort Utility
    Click on the Time Capsule icon, then click Edit in the small window that appears
    Click the Network tab at the top of the next window
    Change the setting for Router Mode from the current DHCP and NAT to read Off (Bridge Mode), then click Update at the lower right of the window, and wait a full minute for the Time Capsule to restart to a green light.
    Then.....very important
    Power off the Time Capsule and your Arris modem/router for a few minutes
    Start up the Arris first, and let it run a few minutes by itself
    Start up the Time Capsule next the same way
    Your network will now be correct, and your printing capabilities will improve.
    If Time Machine backups do not occur now, post back and we will tackle that next.

  • I can't drag any object with trackpad or mouse. Please Help

    Since yesterday, like a bolt out of the blue, mouse and trackpad stop working properly, in the sense that I cannot drag any object in my desktop or in any application neither with the mouse, neither with the tackpad. Moreover, when I lunch Mercury I get a massage stating that some Java routine cannot be opened and Azureus refuse to start. My computer use last version of leopard and all the updates available, last java upgrade included. Everything else seems to work properly. Any idea of what colud be wrong and what can I do ti solve this irritating issue? Thanks.

    I can't think where else to look for this gremlin...
    How well backed up are you and do you have a clone of your system prior to the drag & drop problem? If you do, I'd erase your internal and copy over the good clone. Or, restore from a previous date from Time Machine.
    If not, you ought to run off a SuperDuper clone now. (SD is free for cloning) Then, do an archive & install. After you have everything you need back, delete the volume with clone since it is corrupt and run a good clone from your trouble free system
    -mj

  • Issues installing full version of 5 side by side with 4?

    To avoid potential issues, I'd like to install the full version of Captivate 5 side by side with Captivate 4,
    This allows me to avoid upgrading existing courses written in 4, when changes need to be made.
    New courses will be created in 5.
    Are there any issues getting both to work side by side?
    In other programs, I've encoutered errors when different versions of the same program are installed
    due to shared code or interactions with other progs.  One or the other suffers. Will I encounter similiar issues?
    ( I'm aware that once a captivate file is in 5 format, it can't be openned in 4.)
    Thanks for your reply
    -Joan

    Hi Joan,
    I have both Captivate 4 and Captivate 5 installed on my laptop(XP SP3) and they both seem to work without any issues. So i would say go ahead ....
    Manish
    blogs.adobe.com/captivate

  • HT1222 I have a new MacBook Pro and running Windows 7 on that side with Parallels.  My Windows side keeps locking up.  Help

    I have a new MacBook Pro and running Windows 7 on that side with Parallels.  My Windows side keeps locking up.  Help

    You should be able to get the CS3 programs installed and running on the new pc since CS3 is spec-ed for Windows 7 Service Pack 1.  Downloading the programs does not require a serial number.  You can find them here:  Download CS3 products  but you will need the serial number to activate the programs.  You might be able to find that thru your Adobe account online.
    You will not be able to install the CS5 Mac version on a PC and you won't be able to trade it to a PC version either due to it being an older version.  Trades are allowed only for the latest version (CS6)

  • What kind of hardware is required on client side with OWB 10gR2?

    Hi,
    What kind of hardware are you using, on client side, with OWb 10gr2?
    Currently I'm using a PC having a Pentium 4 1.7Ghz with 1.5 GB Ram but it's extreamly slow.

    Hi
    For Windows, ensure that the machine has a minimum of 850 MB disk space, 768 MB available memory, and 1GB of page file size, TMP, or swap space.
    For Linux, ensure that the machine has a minimum of 1100 MB disk space, 768 MB available memory, and 1GB of page file size, TMP, or swap space.
    Are you running an anti-virus? If so, try stopping it and run OWB. This is due to the anti-virus action and OWB being a java based tool...
    Regards,
    Marcos

  • My USB drives have "Disk Repair" issues, with "limited functionality."

    The only way I can transfer files between my PowerMac G4 with OS X v10.5.2 and my PowerMac 5500/225 with OS 8.6 is with Iomega Zip drives. My 100 MB disks work perfectly in OS 8.6 but they seem to get corrupted when I open them on the G4. I've had this problem with other USB drives on the G4, including an external USB hard drive and my USB SD card reader. Things will seem to work fine transferring files but then I'll get the following message:
    *+Disk Repair+*
    +The disk "disk" was not repairable by this computer. It is being made available to you with limited functionality. You must back up your data and reformat the disk as soon as possible.+
    Then I drag the files over with the Zip drive until everything blows up and I have to reformat the disk. I'm scared what might happen with the SD cards, if that will have any effect on the camera or if the disk will stop working entirely. The external hard drive was the first to blow up but we didn't know that this was going to be a trend so we had returned that to Best Buy. It had worked beautifully under OS X v.10.3.
    Does anyone have any ideas on what is going on here and how to fix it? I do not have vast sums to upgrade hardware and software nor do I even really want to. I'm quite fond of the old Power Mac 5500 and OS 8.6.
    Any suggestions are greatly appreciated!

    Have you tried backing up again by manually running a Time Machine backup? Unfortunately, if your backup is corrupted I don't know of a way to fix it except to start over.

Maybe you are looking for