Sebastian,
OpenLaszlo is built for applications which typically want to increase
the size of the canvas, rather than stretching the contents, so that is
the default. Looking at the code, I can see that it is testing a
global, so if you compile the lzx file with a URL like:
text.lzx?canvasscale=true then it will scale the contents of the canvas,
which is, I think, what you were looking for.
Sarah
Sebastian Wagner wrote:
hi,
I need to scale the size of an SWF, with a *normal* swf (FLash IDE) it works:
http://appserver.laszlo-forum .de/lps-latest/laszlo_forum /showscalesolo.html
with a Laszlo SWF it doesn't work:
http://appserver.laszlo-forum .de/lps-latest/laszlo_forum /showscale.html
Thats why the Tags in the embed/object Tags are completely ignored (from my
point of view):
http://svn.openlaszlo.org /openlaszlo/trunk/WEB-INF/lps
/lfc/views/LaszloCanvas.as
The lines:
Stage.align = global.canvassalign
!= null ? global.canvassalign : "LT";
Stage.scaleMode = global.canvasscale != null ? global.canvasscale : "noScale";
Cause if you write in Canvas:
<handler name="oninit">
Stage.scaleMode="scale";
Stage.align="TL"
</handler>
then you can scale the Laszlo-SWF (also if you just use the normal way with the
embed.js)
http://appserver.laszlo-forum .de/lps-latest/laszlo_forum /please_scaledo.lzx
I
would consider to remove that from the LaszloCanvas.as cause .. i think
no matter what you set there the object/embed tag is always overwritten
by that, or you think about a new attribute and ignore it if it is not
set so that you are able to overwrite it later with the embed/object
tag.
regards