If else i dont get it

Hi and hello.
Here is my tricky problem.
I have 5 boxes red_1, green_2, blue_3, black_4 and yellow_5.
All boxes lined up, when i move blue_3 20 pixels to the y position, green_2 and black_4 should move 10 pixels to the y position.
When i move blue_3 back to 0 all others should move back.
So every time i move one of these Boxes the neighbors should move too.
Sounds easy but seems to be really hard.
Thanks for any tip.

It's not simple. Say you have an expression that calculates a box's y offset based on where its neighbors are positioned. How do you move that box somewhere other than where the expression puts it?
I think you would need to control things with an external control of some sort. If only one box at a time can move, you could select that box with a slider and the expression on that box would say "I'm selected, I need to move 20 px". The neighbor's expressions would say, "My neighbor is selected, I need to move 10 px". Something like that. It depends a lot on how you are planning on animating things.
Dan

Similar Messages

  • Socket.setSoTimeOut() i dont get it

    setSoTimeout
    public void setSoTimeout(int timeout)
    throws SocketExceptionEnable/disable SO_TIMEOUT with the specified timeout, in milliseconds. With this option set to a non-zero timeout, a read() call on the InputStream associated with this Socket will block for only this amount of time. If the timeout expires, a java.net.SocketTimeoutException is raised, though the Socket is still valid. The option must be enabled prior to entering the blocking operation to have effect. The timeout must be > 0. A timeout of zero is interpreted as an infinite timeout.
    i dont get what it means when it says block? stop? And when it says it must be vailid prior to entering the block operation where abouts is that?
    Thanks

    Some Socket methods are designed to read a known number of bytes from an input stream. If those methods read less than the specified number of bytes, they will "block", which means that Socket is incapable of performing any other task until the read method completes. This can tie up system resources by keeping connections open, and might not be something desired. To avoid this, you would set the Socket's timeout value, and after the specified interval, if the Socket is still "blocked", it will timeout. When it times out, it throws an exception, but does not close the Socket or perform any Socket-related shutdown routines; it has not been "stopped". In order to shut down the Socket, you would have to write code to catch the appropriate exception, and explicitly close the Socket in that catch block. The explanation of the Socket's behavior is intended to let you know that the timeout process that happens when you set a timeout value greater than 0 is not designed to perform any resource deallocation or Socket close actions - that responsibility is left up to the programmer to handle or delegate as they see fit.
    So basically, a Socket, when attempting to read from an input stream, will not be able to do anything else until that read completes - it "blocks" waiting for the read to complete. If the read does not complete, a method is needed to free up resources that may be associated with that Socket after a certain amount of time has passed (maybe the code is being run in an environment where system thread or connectivity resources are at a premium). By setting a timeout value on a Socket you can achieve this goal, but the responsibility for stopping or closing the Socket so that the appropriate resources are released lies with the programmer using the Socket.
    Hope this isn't too incomprehensible; I recommend looking at Sun's tutorials and documentation related to Sockets for somewhat clearer explanations and code examples.
    -dSn

  • When i open iPhoto i dont get a menu on the LHS of the screen and there is a continual spinning "wheel" in the middle of the screen. This has been like this since I bought my iMac

    when i open iPhoto on my iMac i dont get a menu on the LHS of the screen and there is a continual spinning "wheel" in the middle of the screen and it does nothing else.

    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Does that work?

  • I bought a cd and downloaded it to my itunes account. I want to burn it to keep one in my car but I dont get that option. how can i burn it from my itunes account?

    I bought a cd and downloaded it to my itunes account.  I want to burn one to keep in my car, but dont get that option. how can i burn it from my itunes account?

    Hello lindsey0315,
    I read your post, and I have linked to an article that will instruct you on how to create CDs with iTunes:
    iTunes 11 for Windows: Create your own CDs and DVDs
    http://support.apple.com/kb/PH12348
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • I have been trying to upload more music to my iphone 3gs but whenever i try to even click on the artist or name buttons in itune they dont get highlighted or anything all i can do is play music from my phone through itunes ...

    i have been trying to upload more music to my iphone 3gs but whenever i try to even click on the artist or name buttons in itunes they dont get highlighted or anything all i can do is play music from my phone through itunes ... if you know of anything i have done wrong plz tell me how to fix (besides restore)

    Success!! There truly is a light at the end of the tunnel. Apple support really did come through and I am successfully back into my account. Ready to purchase more music. I followed the instructions, with patience I thought I lost, submitted my problem, someone emailed me back within two days and all is now perfect. Thanks again Apple.
    To all the frustrated users out there, don't lose hope!!!

  • Since the last update for my Iphone 4s i dont get text messages when connected to wifi. my wife is getting them. Imessage is switched off on both phones.

    since the 6. version update. of my Iphone 4s My wife was getting my text messages. I found the problem was caused by Imessage when connected to Wifi. I deactivated Imessage on both phones to solve the problem. I now have updated my Iphone to 6.1.1 and i dont get text messages anymore. I have Imessage deactivated on my phone but my wife is getting my text messages again. my wifes phone was not updated to 6.1.1 because the last update lost all her contacts from her phone and we had to but them back in one by one from the outlook list. Her contact are listed in outlook on a seperate list to mine but we can only get my contacts download to her phone. We use the same laptop to sysc phones.
    My Iphone does not download photos to My Pictures anymore. I have to copy them across to a folder. I cant find where it backs them up to.
    I have lost all confidence in Apple now as i was forced to update to 6.1.1 because of 3G reception issues and not reciving calls and now back to spending several hours trying to fix my phone to recieve a basic text message.

    Are you and your wife sharing apple id?
    If you are that is the reason why she is seeing your imessage.
    On both phone go to settings - message - send&receive - make sure the cell is the default.
    You will have to uncheck or remove the apple id.

  • I changed my Apple ID but my iTunes hasn't updated so I can't access it...do I need to reset all devices to factory settings? or how else do I get the iTunes to link to Apple ID?

    I updated my Apple ID primary email address without having switched off 'Find my....' on all devices. A 2 hour very helpful call with Apple Support solved ny Apple ID and ICloud. Later, I tried to update apps but my iTunes account is still on the old ID and I can't access that email/password anymore. I can't get a support appointment for 48 hours but need to update travel apps soon!
    Do I need to reset to factory settings on all devices (5!) and start again...or how else can i get iTunes to link to my Apple ID now?
    Any help appreciated!

    Thanks, David. But that was the first thing I tried. For some reason, when I try to change my Apple ID back to my old email address, I get the message that that Apple ID is already in use and so I cannot use it! I have tried requesting a password reset using my old Apple ID email, but I've waited and waited and nothing has come to my old email address. This is sooooooo frustrating!

  • When I receive photo attachment with yahoo(firefix 3.6.3) and I try to open it after clicking download I dont get a choice to open - only to save the photo (doesnt happen with safari but i vastly prefer firefox) - how can i simply open the photo

    using firefox 3.6.3 - generally love the program - when I open an email with a photo attachment (I use mac and yahoo) I click on download the photo and I'm asked to save file -i dont get the option to simply oprn the attahment - i dont want to save - simply open (if I uses safari to double check the problem with same email I do have the choice to open) - do i have some setting wrong - I love firefox but his is really annoying Thanks for your help
    == always happens

    using firefox 3.6.3 - generally love the program - when I open an email with a photo attachment (I use mac and yahoo) I click on download the photo and I'm asked to save file -i dont get the option to simply oprn the attahment - i dont want to save - simply open (if I uses safari to double check the problem with same email I do have the choice to open) - do i have some setting wrong - I love firefox but his is really annoying Thanks for your help
    == always happens

  • How to get reading list in my all my devices and computer (window 7). i have installed ios 6 on iphone and icloud control panel on both PC's (home and office) but i dont get updated reading list on all my devices.

    how to get reading list in my all my devices and computer (window 7). i have installed ios 6 on iphone and icloud control panel on both PC's (home and office) but i dont get updated reading list on all my devices.

    Hi bluegrandpanash,
    Thanks for visiting Apple Support Communities.
    If you backed up your iPhone to iCloud before updating the software, first try the steps under "Restore from an iCloud backup" in this article to recover your data:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Best Regards,
    Jeremy

  • I can't connect to the itunes store. I have the latest version of itunes on my windows 7 computer. I can connect to itunes from my ipad and ipod but no my windows computer. i dont get any error message, the bar at the top just says accessing itunes.

    I can't connect to the itunes store. I have the latest version of itunes on my windows 7 computer. I can connect to itunes from my ipad and ipod but no my windows computer. i dont get any error message, the bar at the top just says accessing itunes

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • HT204291 I have a MBP 13-inch, Mid 2010 and have just upgraded to mountain lion and am trying to connect it to my apple tv however i dont get the air play icon on my mac i have followed all the advise on support anyone able to help??

    I have a MBP 13-inch, Mid 2010 and have just upgraded to mountain lion and am trying to connect it to my apple tv however i dont get the air play icon on my mac i have followed all the advise on support anyone able to help??

    stevie, a third party app called airparrot will give you the pretty much the same as mirroring and forks on Macs too old to mirror.

  • I just bought an Apple TV and i have a bose sounddock with a mini jack in the back and and optical cord with a mini adapter on it (so optical cord going into the Apple TV and the mini adapter on the other end going into my bose dock but i dont get sound??

    I just bought an Apple TV and i have a bose sounddock with a mini jack in the back and and optical cord with a mini adapter on it (so optical cord going into the Apple TV and the mini adapter on the other end going into my bose dock but i dont get sound?

    Not all the sound docks accept both analogue and optical on the auxillary input - I don't think the portable ones does but may be wrong - check the user manual.
    As I said earlier all the mini optical (min Toslink) adapter does it make the optical connector fit a smaller socket, it does not convert digital audio to analogue for an analogue only auxillary input.
    AC

  • MY iPhone 4 after  being updated to iOS7 will not download or update any apps. When i press the button on my device to download a new app the loading wheel appears then in a few seconds disappears. I dont get a terms and conditions screen or anything.

    MY iPhone 4 after  being updated to iOS7 will not download or update any apps. When i press the button on my device to download a new app the loading wheel appears then in a few seconds disappears. I dont get a terms and conditions screen or anything.

    Ive tried using wifi and 3G seperately. Ive tried restarting the phone. Ive tried restoring it from a backup but none of these have worked yet.

  • I lost the disc.....anywhere else i can get the software from?

    hey i need to re install my nano's software onto my computer but i lost the disc....is there newhere else i could get it from?
    thanks

    Yeah, iTunes.com for iTunes, and iPod Updater for the iPod's software.

  • Why does everyone else seem to get 180 days and several warning messages before THEIR accounts are deleted??

    I got a text message this morning informing me that my vzw pix account had been permanently deleted due to 60 days of inactivity. So I searched online to see if there was some way to get my pictures back, since I had very little room to store them on my crap phone I deleted them once they were uploaded. I come to find out that no, there is no way to get them back and also it seems that everyone else in the whole world had 180 days and more than one text message an entire month before their account was deleted. This is ridiculous and I would have preferred that Verizon not offer any storage at all if they just delete everything you save with only one warning that you can easily forget about in a month. I also want to know why everyone else seems to get 180 days of inactivity and I get 60, and why they get multiple messages warning them when I got one.

        Hello arlahalvorsen,
    I know pictures have great value. I'm sorry to hear your pictures were deleted. As you already know once the pictures have been deleted there is no way to retrieve them. The inactive period for "Free" Multimedia and Messaging accounts has been reduced from 180- to 60-calendar days. Previously, a customer would be sent messages at day 150, 170, and 180 letting them know that their account is inactive and subject to termination at day 180 of inactivity. Now customers receive messages at day 30, 50, and 60-calendar days of inactivity. Thank you.
    Tominque B.
    Please follow us on Twitter @VZWSupport   

Maybe you are looking for

  • LSO: Business Event Appraisal

    Hi, We have already implemented LSO.Now we are planning to configure Appraisal for a Business Event. Please do share any docs related to the configuration Thanks in advance. Regards, Deb

  • STILL LOOKING FOR A SOLUTION

    This is my second try  at finding a solution. First though  an apology to fruhulda who  responded to my question this morning. Sorry I did not reply, but I was unable to find a way to start another message and have been unable to reload that page now

  • Incoming Payment Template

    Hi to All, I have imported all A/p invoice through DTW but now want to import all incoming payment against A/P Invoice ,there are numbers of template which template should be imports and which column shoud be fill for payment on individual invoice ?

  • Procure item for inventory in Shopping cart as  Order as Direct Material

    Hello Experts, When i procure a an item for inventory click u201COrder as Direct Materialu201D and then the system would not ask for an account assignment, 1.) where i can do this setting 2.) the actual problem am facing is "SC is created but PO goes

  • New InfoSouce for an InfoCube

    Hi experts, Would it be advisable not to use the autogenerated InfoSource for an InfoCube (name = 8xxxx), create a new InfoSource (name = Zxxxxx) and attach the InfoCube DataSource there? I am planning to create a new InfoSource for an InfoCube and a