That almost works; the sprite is coming up with zero width and height,
and I'm not sure where it's being created right now. But the canvas resizing
callback works, I can do

<canvas width="100%" height="80%">
  <text bgcolor="white" x="${canvas.width / 2}" y="${canvas.height /2
}">Hello Hello!</text>
</canvas>


and when I drag the player window bigger, the text stays centered as I
resize the swf window in the  fdb player.

Something is not fully initing the canvas; the bgcolor does not get set yet.
I'll poke at this tomorrow some.




On Fri, Apr 11, 2008 at 3:29 PM, Max Carlson <[EMAIL PROTECTED]> wrote:

> Change 20080411-maxcarlson-L by [EMAIL PROTECTED] on 2008-04-11 12:22:41
> PDT
>    in /Users/maxcarlson/openlaszlo/trunk-clean
>    for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Fix canvas to work in swf7/8/dhtml and compile for swf9
>
> New Features:
>
> Bugs Fixed:
>
> Technical Reviewer: hminsky
> QA Reviewer: ptw
> Doc Reviewer: (pending)
>
> Documentation:
>
> Release Notes:
>
> Details:  Add test to LzNode constructor to skip processing of LzCanvas.
>  This makes the canvas work properly for swf7 and 8 and _should_ make things
> work in swf9.  All other changes are based on Henry's 20080409-hqm-6 change.
>
>
> Tests: Smoke, amazon, lzpix, calendar work in swf7/8/dhtml.
> http://localhost:8080/trunk-clean/test/swf9/hello-spin.lzx?lzr=swf9 doesn't
> show anything yet :(.
>
> Files:
> M      WEB-INF/lps/lfc/kernel/swf9/LzScreenKernel.as
> M      WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
> M      WEB-INF/lps/lfc/kernel/swf9/Library.lzs
> M      WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
> M      WEB-INF/lps/lfc/kernel/Library.lzs
> M      WEB-INF/lps/lfc/services/LzInstantiator.lzs
> M      WEB-INF/lps/lfc/core/LzNode.lzs
> M      WEB-INF/lps/lfc/core/dummyclasses.js
> M      WEB-INF/lps/lfc/views/LaszloCanvas.lzs
> M      WEB-INF/lps/lfc/views/Library.lzs
>
> Changeset:
> http://svn.openlaszlo.org/openlaszlo/patches/20080411-maxcarlson-L.tar
>



-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to