It is better to keep them invisible when they aren't used. I haven't 
done extensive testing of this, but I wouldn't bank on the Flash runtime 
optimizing whether it draws off-screen elements.

Whether or not you use a constraint won't matter if the dependencies of 
the constraint don't change.  Although if I am animating an element off 
the screen, I wouldn't typically use a constraint for positioning also. 
I think the tabslider is a good example of this. (Elements don't get 
pushed off-screen, but it is the same concept.)

Sarah


On Fri, Jun 16, 2006 at  1:56 AM, Mark Engelberg wrote:

> I've noticed that one of the Laszlo user interface conventions is to
> slide dialogs on and off the screen.
>
> Is it better to create and destroy these dynamically, or just keep
> them around throughout the lifetime of the program?  If they are
> static, is it more efficient to keep them invisible until needed, or
> just use constraints to keep them off the edge of the canvas?  (I'm
> thinking it's probably more efficient to keep them in a fixed location
> and invisible).
>
> Does anyone have a good example they want to share of this sort of 
> thing?
>
> Thanks,
>
> Mark
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to