Calling the Flash 10 beta player 3D API from a Laszlo app
The beta Flash 10 compiler and player from Adobe support some new 3D graphics APIs.
I tried downloading the new flex compiler, and adding support to the swf9 kernel for the three dimensional rotation attribtutes, rotationX, rotationY, and rotationZ.
After adding these attributes to LzView, an app can be written which, for example, animates the rotation of a view about the X axis:
this.animate('rotationX', 360, 2000, true);
Compiling to Flash 10 does not seem to require any special changes to the Laszlo compiler, just an update to the Flex SDK compiler. The support looks somewhat preliminary now, because I had to set the rotationX var of the sprite by saying "this['rotationX']", as the flex compiler did not recognize sprite.rotationX yet.
This is an example of a swf9 test case, with rotation about X and Y added:
|
|
Thanks to Raju Bitter for making a quicktime movie of this, so you don't need the Flash 10 player to see it!









May 19th, 2008 at 2:01 am
Nice work, Henry. It will be exciting to see what kind of UIs we can build with this functionality in OL.
May 19th, 2008 at 12:01 pm
I remember what I asked Raju on the train going back to Amsterdam from XB offices(OL European Meeting ‘07): “Do you think it will ever be possible to create 3D enabled applications in Laszlo?”. This post gives me a very interesting answer
October 2nd, 2008 at 5:03 pm
I am using open laszlo 4.1.1 and would like to perform rotation around x axis. How can i do the same? Rotation about the x axis doesn’t works for me.
October 3rd, 2008 at 3:36 am
That’s because Henry probably went into the LFC (Laszlo Foundation Classes), made some changes and re-compiled the OL server. So not an easy thing to do unless you set up an environment for compiling the OpenLaszlo server according to the descriptions in the Wiki:
http://wiki.openlaszlo.org/SubversionBuildInstructions
Henry, do you have the code somewhere, and does it still work with the current trunk?