[Laszlo-dev] Adding canvas resizing

Andrew Wooldridge triptych at gmail.com
Fri Oct 8 10:39:53 PDT 2004


One thing you could do right now without alot of work is create the
application within a laszlo window (even if you dont do this, you
might use this to test your resizing code).

Here's an example:

http://www.laszlosystems.com/lps/laszlo-in-ten-minutes/

click on "constraints" then "constraints basics"


Or better yet:

http://www.laszlosystems.com/lps-2.2/docs/reference/lz-window.html

So the idea might be create the flash window as big as you need, then
use a window inside flash to make your resizable application.

Just my 2cents.




On Fri, 08 Oct 2004 16:37:47 +0100, Simon Collins <simon at squarepark.com> wrote:
> Howdy,
> 
> Firstly, thanks on open sourcing such a great product.
> 
> We have been looking to see if we could use LPS for a new website. The
> only thing that is holding us back is that currently there is no support
> (as far as I can tell) for having the canvas size change dymanically
> when the Flash stage size changes. We really need that functionality
> because we want to have a full window application that resizes it's
> content properly.
> 
> To do this would require implementing a handler in the generated SWF for
> Flash's Stage.onresize event (first available in Flash player 6), and
> also I would suspect modifying the Canvas class to have width and height
> attributes that are proper properties so that they fire change events
> causing any view constraints to be updated. I noticed that this is
> marked as a TODO in Canvas.java but I'm not sure how high a priority it
> is for you.
> 
> If noone's working on this for the near future I'd like to have a go
> implementing it as I'd really like to use LPS for our site. Am I
> underestimating the work that's involved? Is the bundled version of
> JGenerator the MX one that handles the SWF version 6 format? Are there
> any other issues that might make it trickier than I'm suggesting?
> 
> Also is there a reason why the compiler still targets Flash 5?
> 
> Any thoughts would be much appreciated.
> 
> Thanks,
> 
> Simon
> 
> -----------------------------
> Simon Collins
> Director
> 
> SquarePark
> Mob:   07905 245517
> Email: simon at squarepark.com
> Web:   http://squarepark.com
> 
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>


More information about the Laszlo-dev mailing list