PDA

View Full Version : animation on container



hmischel@diligentsystems.com
2016-05-25, 08:51
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.
1329

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.
1330

If I set the maincontainer.left = maincontainer.left-250. I get the desired affect. All three containers shift (slide) to the left.
Like so.
1331

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

barrymavin
2016-05-25, 09:03
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.