Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    multiple actions for layers

    Had an idea while asleep. Is it possible to slide a layer to one point, stop, then slide it to another point and so on...?

  • #2
    Regular Coder
    Join Date
    Oct 2003
    Location
    on a ship
    Posts
    574
    Thanks
    1
    Thanked 6 Times in 5 Posts

    the answer is.............

    Yes! you can do that!

    would you like to know how?

    I'm sure you do.......

    first off you gatta know the exact coordinates you want the layer to move to.
    once you know that the rest is easy.

    create a setTimeout to repeat itself until conditions are met (like getting to a specified coordinate). once there have the function check to see where it is at and depending on the new coordinates proceed to the next set of coordinates.

  • #3
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Thanks, brandon "uber-newcomer" H

    you're a beautiful human being. gonna go test her out right now.

  • #4
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Had an idea while asleep. Is it possible to slide a layer to one point, stop, then slide it to another point and so on...?
    But this is in fact exactly the basic principle of the sliding. Move to one point than move to another using a setTimeout() method... What is so intricate?
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •