17
Jun

Scrolling long lists in Flex app on iPad

The same iPad app made with Flex and AIR 2.7. The first list contains 480 items, the second one 280 items. Scrolling looks smooth. Not as smooth as native one, but looks good.

Tags: , , , ,

16
Jun

Video of Flex app running on iPad

Just captured this video of sample AIR Flex application I posted long time ago.

As you see it runs MUCH better. Scrolling is smooth, transitions are OK. It’s not as fast as native iOS applications but looks like finally you can make more complex iPad apps using Flex than a simple scrolling list.

Adobe did great job with AIR 2.7!

Tags: , , , , ,

16
Jun

Flex with AIR 2.7 on iPad

If you publish Flex application to iPad with AIR 2.7 make sure that you set renderMode=cpu. Sample twitter flex app (using 4.5.1 SDK) from my earlier post runs pretty good on my iPad 1.

It’s time to try and build something more complex.

Update: here’s the post with video.

Tags: , , ,

21
May

Include only needed classes using asdoc

If you use asdoc and want to include specific packages only, for example get rid of open-source library classes you are using, you can write the following ANT script (taken from this post):

<?xml version="1.0" encoding="UTF-8"?>
<project name="Labstr" default="asdoc" basedir=".">

<!-- File with PC specific properties -->
	<property file="local.properties" />

	<target name="asdoc">
<!-- Put docs into folder named docs in project root -->
		<delete dir="${basedir}/docs"/>
		<mkdir dir="${basedir}/docs"/>

<!-- Get a list of files you don't want to be included in the docs, i.e. all the files except the ones you need. -->
		<fileset id="sources" dir="${basedir}/src">
		 	<exclude name="**/your/package/name/**"/>
		</fileset>

<!-- Convert file names to fully qualified class names. -->
         	<pathconvert property="classes" pathsep=" " refid="sources">
<!-- ChainedMapper executes its child mappers in sequence. -->
        	 	<chainedmapper>
<!-- Basic OR mapper for windows and mac slashes. Removes full path part we don't need. -->
        		 	<mapper>
	        	 		<globmapper from="${basedir}\src\*" to="*" />
	        	 		<globmapper from="${basedir}/src/*" to="*" />
        		 	</mapper>
<!-- Converts file path to class name. -->
        		 	<mapper type="package" from="*.as" to="*" />
        	 	</chainedmapper>
         	</pathconvert>

<!-- Executes asdoc. -->
		<exec executable="${ASDOC}" dir="${basedir}">
			<arg line="-source-path ${basedir}/src
					   -doc-sources ${basedir}/src
					   -exclude-classes ${classes}
					   -output docs"/>
		</exec>
	</target>

</project>

My local.properties content is the following:

FLEX_HOME=e:/work/4.5.0
ASDOC=${FLEX_HOME}/bin/asdoc.exe

Tags: ,

20
May

Plasma pong

Finally I finished the video from FlashGAMM 2011 Moscow where we exhibited our multi-touch table with Fluid Pong game based on MSA Fluid library. The game was developed using Scala and Processing and was a major success at the conference.

Multi-touch Fluid Pong from InteractiveLab on Vimeo.

What’s more, it is open source and is availabale at GitHub.

Tags: , , , , , , ,

15
May

Slides from FlashGAMM 2011 Moscow

Here’s the PDF with slides from my talk at FlashGAMM 2011 Moscow about Flash, NUI, Multi-touch and Kinect. Also check out the post with links and references.

Tags: , , , ,

12
May

FlashGAMM 2011

Flash += `multi-touch` | kinect;
Reference post for my talk at FlashGAMM 2011 in Moscow.

PDF slides will be available soon.

Huge thanks to Vadim Smakhtin and Anton Skiter.

05
May

/tuio/3ASCur – parsing OSC/TUIO in AS3

Meet yet another AS3 OSC/TUIO parser! We have just released it open-source.
Sources can be found on GitHub — https://github.com/InteractiveLab/tuio.3ASCur

Tags: , ,

02
May

NativeWindowInitOptions.owner

Note to self. When you get this error,

ReferenceError: Error #1056: Cannot create property owner on flash.display.NativeWindowInitOptions.

add <swf-version>11</swf-version> into air-config.xml.

Tags: , , , ,