Quantcast
Channel: THOMAS.DEULING.ORG » SWF10
Viewing all articles
Browse latest Browse all 7

Use ActionScript 3 libraries within OpenLaszlo

$
0
0

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>

Viewing all articles
Browse latest Browse all 7

Trending Articles