Using Expressions to stop and start movement of solid layers

I have two solid layers ( a red square and a blue square). The position of the red square is [129,239] and the blue square is to the right of the red square with a position [301, 240].  I would like the blue square to move to the right for 2 seconds, 1 second after I start the timeline.  When the blue square stops moving I would like this to trigger the red square to move to the right for 2 seconds.  I would like to perform this using all expressions code without creating keyframes on the timeline and I'm having trouble.  Please help!
Thanks

You didn't say how far you want the solids to move in 2 seconds so this example assumes 100 pixels to the right.
Red position:
dist = 100;
startPos = [129,239];
linear(time,3,5,startPos,startPos+[dist,0])
Blue postion:
dist = 100;
startPos = [301,240];
linear(time,1,3,startPos,startPos+[dist,0])
Dan

Similar Messages

  • How to stop and start only the process of Oracle Application Express?

    I'd like to know how to stop the process of Oracle Application Express on my server installed oracle express package.
    After installed Oracle Express edition, not only oracle database server processes but also Oracle Application Express, such as http server, is started automatically...
    I hope to stop and start Application Express on demand but is this feature enabled?

    Oracle Apex is an API, if that helps you understand / visualize. You do not start Apex process nor stop it.
    When an Apex session starts it starts calling the API.
    You can however start / stop the listener. It may be OHS, ApexListener and the J2EE container running it, OC4J or any other "server" that you are using.
    The built-in EPG is something like an API again, you cannot start / stop it but you can disable/enable it with DBMS_XDB.SETHTTPPORT API.
    Regards,

  • Apple TV problem- Netflix message not availabale at present etc.  On Itunes playing a movie the sound stops and starts how can the downloading hurry up.  On the computer all OK.

    Netflix keeps posting not available- have restarted it as directed but still a problem.  Itunes movies dont download fast enough and stop and start. On the Imac computer no problem with sound or viewing.

    What is your current connection using speedtest.net
    I would check for interference using istumbler
    Make sure DNS is set correctly on ATV (settings - general - network - configure DNS - automatic)

  • Firefox4 on ubuntu, after awhile when I click on bookmarks and then move the cursor down to a bookmark, the list of bookmarks disappears. A stop and start of firefox4 fixes the problem but what is the long term fix?

    I upgraded to 4 and I noticed that after 4 has been up for an hour or so I click on the bookmarks. I see my list of bookmarks below but when I move the cursor down to select one, the list disappears.
    The only way I have found to fix this is to stop and start 4. I can then move the cursor down to select a bookmark. This problem has not occurred in previous versions.
    ps.. no '''''delicious''''' installed

    No, I see the three areas at the bottom of the Bookmark area that you refer to, but that also highlights an issue.  When I want to save a story to my Reading List and click on Share then "Add to Reading List" then go back to look at what is stored in the Reading List, my recently-saved item is not there.
    I looked thru the History tab and the Reading List tab and have been in the Bookmark tab.  But even when I Save a Bookmark, that newly-saved Bookmark does not show up in the Bookmark area.
    But then again, the next day (and actually just in the last half-hour) all of the functionality came back.  When I look at the Bookmarks, suddenly, again, all of the Bookmarks that are on my Safari browser on my iMac are now there, and I can now Save a Bookmark.
    It keeps coming in and out and that is what is driving me a little nuts.
    Thanks.

  • I have a Macbook pro mid 2011 and just bought the Apple TV. While watching program or movie from any of the apps such as Watch ABC, the program keeps stopping and starting constantly.

    I have a Macbook pro mid 2011 and just bought the Apple TV. While watching program or movie from any of the apps such as Watch ABC, the program keeps stopping and starting constantly.

    That would indicate a network issue.
    Reboot ATV and router
    Make sure DNS is set to auto
    Ensure router is up to date, if on wifi try ethernet
    Go to istumbler.net to get a report of the network, look for signal strength and noise

  • HT203177 I had to get a new hard drive in my 27 in IMac. I used time machine to get everything back on my computer. I just turn on time machine and its says it's preparing over 800,000 items to back-up, it never back-up, it stop and starts the process ove

    I had to get a new hard drive in my 27 in IMac. I used time machine to get everything back on my computer. I just turn on time machine and its says it's preparing over 800,000 items to back-up, it never back-up, it stop and starts the process over again.

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then repair the backup/TM drive.

  • Create Stop and Start Table item using HTMLDB_ITEM - APEX 2.2.0

    Hi, all,
    I guess the subject says it all. How can I create a Stop and Start Table item using HTMLDB_ITEM? I think I can just output "< /table >< table>", but I'd like to use the built-in function if there is one, in case the way tables are rendered were to change, or in case my thinking is wrong, which is always possible ; - )
    Thanks, for this and for all of your help!

    Don, there is no function provided for this.
    Scott

  • Why does the video stop and start using airplay on Mountain Lion?

    Why does the picture stop and start using airplay on Mountain Lion? I'm playing a film from a website and uising airplay to iTV. The sound is fine, but the picture stops and starts. Any ideas?

    Why does the picture stop and start using airplay on Mountain Lion? I'm playing a film from a website and uising airplay to iTV. The sound is fine, but the picture stops and starts. Any ideas?

  • When I watch youtube videos, it always stop and start. Very  annoying. Any good apps that we can use.

    YouTube videos always stop and start . Is there an apps that we can download to stabilize the video.

    Are you trying to watch YouTube from a web browser on iPad or from the YouTube app?
    Should be running fine from the YouTube app on the iPad unless you have a slow connection.
    Our family uses DSL (4-5 Mbps) and we stream video both with iPads, computers and TV with,mostly, no issues like buffering or data degradation/pixellation. It all depends on how much traffic there is on the Internet at any one specific time.
    Heavy Internet traffic on different days at different hours of the day, from your ISP, can also be a factor in slowing down your Internet connection.

  • Stops and starts in video streaming from iphone to tv using apple tv and airplay.Both devices have latest software and are capable.

    When try to stream content (specifically, videos from Acorn.com) to my TV through my apple TV from my iphone 5,The video  freezes, stops and starts continually, even though it is playing smoothly on the screen of my iphone.  both iphone, Apple TV  are capable models and have latest software updates.
    What's wrong here?

    Not necessarily, but right now you don't have a stable network and there are a lot of factors that can compromise that. I didn't say ethernet was the only option, again you can get a report of your network to see the status.  Would have to change things in order to strengthen the wifi signal (i.e. router location, channel,placement of ATV etc). I am running on wireless without issue, same as most users, and if you took it to a controlled environment (like Apple) you would see similar results.

  • How to stop and start MDBs to listen for JMS messages

    Hello! This might be more of an architecture question rather than a technical questing, but I post it here, in the lack of a better place...
    For several years I have been using Webster and Webster MQ to send messages back and forth to clients. The architecture for the middleware platform has been designed around the functionality of ListenerPorts. Listenerports is a Webster functionality that let you "stop" and start to listen to JMS messages for a given MDB either by admin console, or by JMX.
    The arhitecture we used was something like this :
    1.Client sends a persistent message to a queue. (order)
    2. An MDB pics up the order message, calls a SessionBean that "fronts" the IIOP back end system.
    This is quite "out of the box" architecture, but we used the Listenerports to solve a stability problem for our back end system.
    The backEnd system was quite unstable, so the EJB threw an exception (typically because of timeout or connection refused) back to the MDB.
    The Listenerport was "defined" to handle 3 errors before stopping, so the MDB resent the message twice before the listenerport automatically stopped. The nice thing about this feature was that the client could continue to send orders, and was not bothered when the back end system was down.
    When the backEnd system was up and running, we could start the listenerport and it was all back to normal state. We even had a start script that checked the state of the listenerport every 30 minute, and started it automatically if it was stopped, making the admin task of starting the MDB unnecessary..
    Now.. Why am I telling this story..
    I would like to know how this could be done using "clean" J2EE technologies..That is..Not using any technology that is not portable..
    I`m playing with glassfish at home, and it struck me that there is nothing in the J2EE spec that defines the functionality described above ? Am i missing something ?
    I Do not want to stop My application because the back end system is down? That is the only way (i know of) that i can "stop" to listen for messages..
    I can put all the messages on an error queue when the backbend system is down, but that would lead to more code just to handle the error messages. Maybe the easiest way to solve this is to "move" (programmatically) all messages from the error queue over to the "standard" queue every XX minute, but somehow that sounds "wrong"
    Can anyone give me some advice to how this problem situation should be solved ? I`m interested in the solution both from an architectural perspective and from a more technical perspective..
    Best regards
    Hans-Jacob Melby

    Breakpoints, whether normal or conditional, are just meant for debugging of your code.  I had the sense from your question that the pausing you want to do is a part of normal operation of your code.  I would NOT recommend using a breakpoint for that situation.  It would bring up the block diagram showing the breakpoint when it occurs.  A user besides the programmer would not know what to do in that case.
     Yes, both the inner and outer loops would have shift registers.
    Putting a case structure with a small while loop inside the "Pausing Case" is doable.  It just depends on what you are doing or waiting for while the program operation is "paused".

  • Stop and Start play from iPod - fine from HD library

    I use an iMac G5/2ghz/1.5G at my office. I installed upgrades this morning for both iTunes and Tiger, and now, when I connect my iPod to play through iTunes, I get the stop and start stutter play.
    I ripped files off the iPod and put them into the hard drive library, and those play fine, but anything that's playing through the iPod is stuttered.
    FYI - it's a third gen 20G iPod, connected via Firewire, with v2.3 software.
    This Mac is authorized to play everything on my iPod, and it was all working fine before the upgrade - so, any ideas?
    (Please help - I can't stand listening to local radio with commercials, and the bandwidth police will close in on my for listening to streaming...)
    Thanks.

    The first thing to check would be your internet download speed, you can do this atwww.speedtest.net.
    HD movies require a recommended speed of 6 Mbps, while SD movies require a recommended speed of 2.5 Mbps.

  • Why does iMovie project jerk and stop and start in preview?

    I have been making iMovies with iMovieHD for years using photos with the Ken Burns effect.
    Recently after a movie project gets more than a few minutes long with typical audio and transitions, I no longer can preview it without it jerking and stopping and starting.
    Obviously this does not allow me to see what I am doing, how the music matches or doesn't match my photos.
    I have tried emptying the iMovie trash and emptying my finder trash, no change.
    I have made sure there is plenty of hard disk space on my internal drive, where iMovie and the movie file is located.
    Any ideas?

    Hi
    a. Emptying the trash - something I alway avoid - no matter why.
    b. Plenty of free space on internal (start-up) hard disk ? > 25Gb after
    project is captured and edited ?
    c. Deleted iMovie pref file ?
    d. Known trouble maker: Lot's of audio clips. eg > 50 gives a stuttering result
    Mix down audio to one audio clip.
    e. What kind of original material. 12-bit audio or recording in LP-mode (90min
    on a 60min tape) GIVES problems + audio sync troubles.
    f. .mpg4, .avi, .wmv and other ailient file formats also is problematic.
    g. movie stored on an external USB/USB2 hard disk - often troublemaker.
    I use FireWire AND ONLY: Mac OS Extended formatted -
    UNIX/DOS/FAT32/Mac OS Exchande DOESN'T WORK
    Yours Bengt W

  • Videos stopping and starting every three to five seconds

    I am having problems downloading videos from U Tube and msn. I can't even download videos from the Apple Site. The videos from U Tube stop and start every 3 to 5 seconds. They resume after 3 to 5 seconds. I have downloaded the latest version of QuickTime. I have gone into preferences-advanced and changed the transport setup to custom; set transport protocol to http and post to 80. I have also clicked on the streaming tab; set the speed to one lower than the ISP connection and move th enable instant on slider 2-3 bars from the left. What else can I try?

    There is currently no official version of MSN Messenger for Mac that supports video, unfortunately-- you might try aMSN instead, but I haven't used it myself so can't comment on the video support:
    http://www.amsn-project.net/
    However, the built-in camera works fine for me on Skype (and Yahoo last time I tried, which was a while ago), which suggests something else might be wrong somewhere...

  • WHENEVER i SURF THE WEB AND PLAY ITUNES MUSIC, THE ITUNES MUSIC STICKS AND SKIPS AND STOPS AND STARTS. i HAVE BRAODBAND COnNECTION AND AN ADEQUATE MODEM

    WHENEVER i SURF THE WEB AND PLAY ITUNES MUSIC, THE ITUNES MUSIC STICKS AND SKIPS AND STOPS AND STARTS. i HAVE BRAODBAND COnNECTION AND AN ADEQUATE MODEM

    I am experiencing the same problem, not being able to access internet at the same time as streaming iTunes music through an Airport Express.
    Our configuration consists ot; an iMac G5 and an AirPort Express connected to a cable modem.
    This problem first occurred using iTunes 7.0, now updated to iTunes 7.0.1, along with OS X 10.4.8
    I have followed the Apple troubleshooting guide - without success to this point. The internet can be accessed (although slower than usual). However when the AX is set, using the AirPort Admin Utility to provide an AX provided IP address to the computer, the internet disappears, but iTunes can play over the network via the AX station.
    I am suspecting a damaged preference file, or something of that nature, but am not sure what file(s) to be searching for.
    Any help here would be appreciated.
    thanx

Maybe you are looking for