Results 1 to 2 of 2

Thread: animation on container

  1. #1

    animation on container

    Hi,

    I am trying something interesting - but it may not be possible at the moment.
    I have a container which houses three containers.
    maintcontainer{container1,container2,container3}
    Look like so.
    Name:  slidecont1.jpg
Views: 1192
Size:  78.5 KB

    In the ready event (also tried in resize) I increase the size of the main container by 3.
    Leaving me a single visible container.
    Like so.
    Name:  slidecont2.jpg
Views: 1262
Size:  69.9 KB

    If I set the maincontainer.left = maincontainer.left-250. I get the desired affect. All three containers shift (slide) to the left.
    Like so.
    Name:  slidecont3.jpg
Views: 1294
Size:  70.0 KB

    However, If I try to do the same thing using maincontainer.animate(), the screen flickers and then all the containers are returned to their original positions.

    In this type of case, am I better off using a timer, or am I missing something simple?

    Thanks.

    Herb

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,360
    Blog Entries
    22
    Hi Herb

    no, animate should handle that. Can you package up a .lpk example and attach to a ticket then I will take a look and see what's going on.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us