I wrote this to demonstrate the observer design pattern. There is one object (window) which dispatches an event when the "shake" button is clicked. All shape objects listen to the window object for a "shake" event. When an object hears a "shake" event it will check to see if it meets the credentials and if it does then it will "shake".

Note: In order to get this example to work you'll have to visit the actual fiddle:

January 20, 2018
You'll need Flash Player 10.1+ to this this example.

I recently looked for an IOS scrollbar for iPhone and iPad written in AS3 to implement with an AIR to IOS project and wasn't able to find one so I decided I would try to make it my self. I'll tell you this much - IOS scrolling is more complex than you might think at first glance.

It's not a perfect re-make, but it's comperable. The classes needed to compile the source are in the jacksonkr as3 kit on github. In case you're a minimizer, you'll only need com.jacksonkr.ui.IOSScroll* (2 files)

When using this on a mobile device you'll get the best performance when using a GPU mode and content that is either a bitmap or cached as a bitmap.

This IOS scrollbar for Actionscript was made using Flash CS5.5 and saved as a CS5 document. The source has been attached to this post.


I hear that it's confusing to download everything you need so I added a zip called which works out of the box. If you're like me and just like to grab-files-and-go then just download the

January 16, 2012

I started on a class called TouchPull and I wanted a graphical example of it so put one together yesterday. This class gives you access to pull direction, distance and a make-shift velocity. All the files to make this example work on your own multitouch (AIR friendly) device are attached (other than provision + dev cert). Make note that TouchEvents do not work with the mouse. So you won't be able to test this on your machine unless you have a TouchEvent friendly device attached.

To compile the example you will need the following:

  • Flash CS 5.5 or higher
  • AIR overlay of 3.1 or higher
  • Apple Developer account with valid developer certificate and valid mobile provisioning license

Also note, You'll find a public static const inside of

I modified this example to only work on your computer with a mouse meaning a multitouch device will only allow you to use one finger. This example will easily convert to listening for touches, but then a mouse will no longer work. The code for TouchEvents is still in the project, it's just commented out.

January 10, 2012
Syndicate content