PDA

View Full Version : UIComponent setters


kalisky
12-01-2008, 11:09 AM
Hi,

I have a Canvas, that has some other UIComponents inside. I use an animation to resize it, and calculate each step of the animation myself and upon each step of the animation, I set the width and height of each UIComponent on the canvas, and its x and y.

As I noticed these actions take a lot of time (I saw many events were fired by the setters: width, height, x, y), I was wondering if there's a better way of doing so, and will the resize effect be more efficient.

Thanks.

berras007
12-22-2008, 06:39 AM
1st create a 2nd state from your old state then on the newly created state you can do specifying your objects and dont forget to give ID for your new state so that you can call it on mouse event ;),

then create a transition you can use either sequence or parallel movement