Handling rotationX and rotationY attributes was done very simply. It just involved adding methods to the swf9 kernel LzSprite class,<br>like this<br><br>function setRotationX(val) {<br>&nbsp;this[&#39;rotationX&#39;] = val;<br>
}<br><br><br>And then adding a setter to LzView <br><br>(in trunk, the code for setters looks a little different than previous releases)<br><br>function $lzc$set_rotationX(v) { this.setRotationX(v); }<br><br>And I just copied the code from setRotation. It might make sense to merge them into a single<br>
setRotation(v,axis) method, to avoid code duplication, and call it with setRotation(v, &#39;x&#39;), or (v, &#39;y&#39;), etc<br><br>I then downloaded the recommended nightly build of the&nbsp; flex compiler beta release according to the instructions on the adobe web site,<br>
and configured it to default to Flash 10 output. <br><br>Note that our swf9 compiles seem to tickle a bug in the released Flex compiler, which causes embedded fonts to <br>crash the app. If you build the flex compiler from adobe&#39;s trunk subversion repository though, that bug has been<br>
fixed. <br><br><br><br><br><br><div class="gmail_quote">On Tue, May 20, 2008 at 7:43 PM, Jimm Knopf &lt;<a href="mailto:jimmknopf@laszlomail.com">jimmknopf@laszlomail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Henry,<br>
<br>
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&#39;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 <a href="http://five3d.mathieu-badimon.com/" target="_blank">http://five3d.mathieu-badimon.com/</a> 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.<br>

<br>
thanks for your great demonstration, Jimm<br><font color="#888888">
<br>
-- <br>
Sent using goWebtop from Laszlo Systems.<br>
Try it yourself : <a href="http://www.gowebtop.com" target="_blank">http://www.gowebtop.com</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br>