[Laszlo-dev] Adding canvas resizing

Simon Collins simon at squarepark.com
Fri Oct 8 08:37:47 PDT 2004


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



More information about the Laszlo-dev mailing list