PDA

View Full Version : embedding laslo for lps 3.x


ch_bowen
03-22-2005, 03:26 PM
Hello,

I am trying to move our application to use lps 3.x and everything seems to work fine except now, the application doesn't scale and it is a fixed size at the top left hand corner of my browser window. Is there any reason for this or am I missing anything in moving to 3.x?

I am using a servlet that uses a Velocity template to take any request parameters to generate my html wrapper. Here is the code:

<html>
<body>
<!-- data="lzx/raconteur.lzx?lzt=swf&debug=$debug&_group=$group&_profile=$profile" width="700" height="700" -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="lzx/raconteur.lzx?lzt=swf&debug=$debug&_group=$group&_profile=$profile"/>
<param name="quality" value="high"/>
<param name="scale" value="exactfit"/>
<embed src="lzx/raconteur.lzx?lzt=swf&debug=$debug&_group=$group&_profile=$profile&_section=$section&_subsection=$subsection" scale='exactfit' width="100%" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>



<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="lzx/proxy.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width='0' height='0'>
<param name="movie" value="lzx/proxy.swf"/>
<param name="quality" value="high"/>
<embed src="lzx/proxy.swf" quality="high" width='0' height='0' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>

</body>
</html>

ch_bowen
03-22-2005, 04:21 PM
that my views are using resources (other .swfs) as art assets. These art assets use to scale when using an html wrapper with lps 2.2. Now it appears that the view itself will scale, but not the art asset that is uses.

Hopefully, I'm missing something here. But if I'm not, what is the use of using a .swf file as an art asset if it will not scale with the view. Or a better question, why does this work in version 2.2 and not in version 3.02b.

Thanks in advance for the help.

Chris

hqm
03-22-2005, 08:15 PM
As I understand it, there is a simplified HTML wrapper you can get via the "lzt=html-object" query arg on an lzx app. Try that and see if that wrapper works better than the default one.

ch_bowen
03-23-2005, 04:47 AM
Using the other way of wrapping it didn't help either. I do have the canvas width and height set to 100% as well.

Isn't that going to be a problem if art assets (other .swf files) do not scale in future versions of laszlo? Is there an attribute on a view that tells its resource to scale the width/height of a view if it is larger than the resource itself?

hqm
03-23-2005, 04:57 AM
Do you have the 3.0b2 release, I remember something was fixed in that with respect to the canvas / browser size.

ch_bowen
03-23-2005, 04:59 AM
No I'm not. I'll try that now and let you know how it goes. Thanks for the prompt response. We have a client waiting for this delivery of our application at the end of next week.

Chris

ch_bowen
03-23-2005, 05:53 AM
I've switched to using lps 3.0b2 and it still doesn't scale properly. We are using resources (other .swfs) for a few of the views. The views seem to scale (if I give them a bgcolor I can seem them scale the width of the browser). But the .swf files that are attached to the views do not scale at all in 3.x. Shouldn't they be able to scale? If we are using graphic designers to make our laszlo application look 'pretty', then I would assume that any assets that we import and use should/would scale as well.

Any other suggestions?

Thanks

hqm
03-23-2005, 07:11 AM
There's a "stretches='both'" option to views, that is supposed to scale the resource to fit. Have you tried that?