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.
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!
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.
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
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: FlashGamm, GitHub, MSA FLuid, multitouch, Open Source, Pong, Processing, Scala
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.
Continue Reading | No Comments
Tags: FlashGamm, Kinect, multi-touch, NUI, PDF
FlashGAMM 2011
Flash += `multi-touch` | kinect;
Reference post for my talk at FlashGAMM 2011 in Moscow.
PDF slides will be available soon.
- Interactive Lab, at Twitter, at Vimeo
- Natural User Interface (Wikipedia)
- Brave NUI World book
- Great article about multi-touch from Strukt
- Alex Hohulin’s presentation about Kinect (in Russian)
- Community Core Vision – widely used TUIO tracker
- TUIO Software – TUIO trackers, bridges, frameworks, etc.
- tuio-as3 – open-source AS3 multi-touch framework
- GestureWorks – AS3 multi-touch framework
- 42fingers multi-touch framework from Interactive Lab (not released yet)
- Lee Brimelow post about Flash gestures and MultiDraggable class
- Open Exhibits – multi-touch components for museums based on GestureWorks
- Gestouch multi-touch framework
- TuioPad for iOS
- TuioDroid for Android
- Tongseng – TUIO wrapper for Mac OS
- OpenNI
- NITE – PrimeSense middleware for skeleton and gesture recognition compatible with OpenNI
- OpenKinect
- AS3OpenNI – AS3 wrapper for OpenNI and NITE
- as3kinect – AS3 wrapper for libfeenect
Huge thanks to Vadim Smakhtin and Anton Skiter.
/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
Continue Reading | No Comments
Tags: Open Source, OSC, TUIO
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.
Continue Reading | No Comments
Tags: 11, AIR 2.6, NativeWindowInitOptions, owner, swf-version
