Flex Inc.

RSS

Toast and Document Launcher ANE - Flash CS6 Update

I’ve updated both the Toast and Document Launcher native extension to include a Flash CS6 example.

Calculator Launcher - An Air Native Extension for Android

Apr 9

Toast - An Air Native Extension for Android

Apr 3

Doc Launcher - An Air Native Extension for Android

My Luna Base Set skin theme is now available on ActiveDen. Get the sourcecode >here<

My Luna Base Set skin theme is now available on ActiveDen. Get the sourcecode >here<

Ant Task for Adobe Native Extensions

I’ve written a simple ant task for automating ANE generation (which is quite long and boring). The example generates an Android extension and is quite self-explanatory.

<?xml version=”1.0” encoding=”UTF-8”?>

<project name=”ExampleTask” basedir=”.” default=”ane”>

<!— android —>

<property name=”android.workspace.dir” value=”/Users/imac/Documents/workspace_android” />

<property name=”androidproject.dir” value=”${android.workspace.dir}/ExampleANE” />

<property name=”androidproject.src.dir” value=”${androidproject.dir}/src” />

<property name=”androidproject.classes.dir” value=”${androidproject.dir}/bin/classes” />

<property name=”jar.file” value=”${androidproject.dir}/ExampleANE.jar” />

<!— flash builder —>

<property name=”flashbuilder.workspace.dir” value=”/Users/imac/Documents/Adobe Flash Builder 4.6” />

<property name=”library.projectname” value=”ANEExampleLibrary” />

<property name=”main.projectname” value=”ExampleProject” />

<property name=”library.dir” value=”${flashbuilder.workspace.dir}/${library.projectname}” />

<property name=”library.src.dir” value=”${library.dir}/src” />

<property name=”library.bin.dir” value=”${library.dir}/bin” />

<property name=”library.bin.file” value=”${library.bin.dir}/${library.projectname}.swc” />

<property name=”mainproject.dir” value=”${flashbuilder.workspace.dir}/${main.projectname}” />

<!— adt —>

<property name=”adt.dir” value=”/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/lib/” />

<property name=”adt.jar” value=”${adt.dir}/adt.jar” />

<property name=”ane.dir” value=”${flashbuilder.workspace.dir}/${main.projectname}/nativeExtensions/android” />

<property name=”ane.file” value=”${ane.dir}/AppLauncher.ane” />

<target name=”clean” description=”deletes generated files”>

<delete file=”${jar.file}” failonerror=”false” />

</target>

<target name=”jar” description=”JARs the android project” depends=”clean”>

<echo>${androidproject.dir}/bin/classes</echo>

<jar destfile=”${jar.file}” basedir=”${androidproject.classes.dir}”

includes=”*/** ${androidproject.dir}/AndroidManifest.xml ${androidproject.dir}/library.swf”>

</jar>

</target>

<target name=”swflibrary” description=”Unzips the flash library swc file so library.swf is available and copies it to the android library”

depends=”jar”>

<unzip src=”${library.bin.file}” dest=”${library.bin.dir}”/>

<copy file=”${library.bin.dir}/library.swf” tofile=”${androidproject.dir}/library.swf” overwrite=”true” />

<delete file=”${library.bin.dir}/library.swf” />

<delete file=”${library.bin.dir}/catalog.xml” />

</target>

<target name=”ane” depends=”swflibrary”>

<java jar=”${adt.jar}” fork=”true” failonerror=”true”>

<arg value=”-package”/>

<arg value=”-storetype”/>

<arg value=”pkcs12”/>

<arg value=”-storepass”/>

<arg value=”p1pp0”/>

<arg value=”-keystore”/>

<arg value=”${library.dir}/cert.p12”/>

<arg value=”-target”/>

<arg value=”ane”/>

<arg value=”${ane.file}”/>

<arg value=”${library.src.dir}/extension.xml”/>

<arg value=”-swc”/>

<arg value=”${library.bin.file}”/>

<arg value=”-platform”/>

<arg value=”Android-ARM”/>

<arg value=”-C”/>

<arg value=”${androidproject.dir}”/>

<arg value=”.”/>

</java>

</target>

</project>

Feb 7
My Flex 3 files and applications are now bundled and sold at a discounted price. get them on ActiveDen.

My Flex 3 files and applications are now bundled and sold at a discounted price. get them on ActiveDen.

I&#8217;m opensourcing some of my Flex components on Google Code.

I’m opensourcing some of my Flex components on Google Code.

Get involved in the Spoon Project

More info >here<.

Nov 4
Plastique TagCloud component for Flex. Sourcecode available &gt;here&lt;.

Plastique TagCloud component for Flex. Sourcecode available >here<.