Handling rotationX and rotationY attributes was done very simply. It just
involved adding methods to the swf9 kernel LzSprite class,
like this
function setRotationX(val) {
this['rotationX'] = val;
}
And then adding a setter to LzView
(in trunk, the code for setters looks a little different than previous
releases)
function $lzc$set_rotationX(v) { this.setRotationX(v); }
And I just copied the code from setRotation. It might make sense to merge
them into a single
setRotation(v,axis) method, to avoid code duplication, and call it with
setRotation(v, 'x'), or (v, 'y'), etc
I then downloaded the recommended nightly build of the flex compiler beta
release according to the instructions on the adobe web site,
and configured it to default to Flash 10 output.
Note that our swf9 compiles seem to tickle a bug in the released Flex
compiler, which causes embedded fonts to
crash the app. If you build the flex compiler from adobe's trunk subversion
repository though, that bug has been
fixed.
On Tue, May 20, 2008 at 7:43 PM, Jimm Knopf <[EMAIL PROTECTED]>
wrote:
> Hi Henry,
>
> Hey, cool work. Maybe you can give us a detailed description (e.g. source
> code and dev environment set up instructions for experienced users). You do
> not need the new flash 10 features to integrate 3D in openlaszlo. I checked
> some laszlo kernel source code and found out that it's very easy to add 3D
> support to laszlo components in swf9 environments. The 3D technology itself
> is very simple. A good example of a lightwight implementation can be found
> at http://five3d.mathieu-badimon.com/ and is based an flash 9's shape
> rendering features (most of that is backward compatible to older versions
> with workarounds). Integration in openlaszlo just means, that you have to
> modify the code of a "view" (modify rendering methods and add attributes
> there like you did). Then laszlo would be able to presend 3D components in
> flash runtimes. DHTML is more tricky. 3D support is possible there in a
> restricted way.
>
> thanks for your great demonstration, Jimm
>
> --
> Sent using goWebtop from Laszlo Systems.
> Try it yourself : http://www.gowebtop.com
>
>
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]