Today i tried to integrate an ActionScript 3 within OpenLaszlo.
In detail i needed a JPEGEncoder that is integrated in the ActionScript 3 Library from Mike Chambers.
You can download the library here:
https://github.com/mikechambers/as3corelib
The integration is very easy. First of all navigate into your lps root folder, and create a folder named ‘flexlib’. Then download the ActionScript 3 Library and place the as3corelib.swc in it.
That’s all.
Now you are able to integrate as sample the JPGEncoder Library:
<?xml version="1.0" encoding="UTF-8" ?>
<canvas width="100%" height="100%">
<switch>
<unless property="$as3">
<handler name="oninit">
<![CDATA[
Debug.error("ActionScript 3 required");
]]>
</handler>
</unless>
<otherwise>
<passthrough>
import com.adobe.images.JPGEncoder;
</passthrough>
...
</otherwise>
</switch>
</canvas>