Flashandmath - flashandmath.com - News from flashandmath.com
General Information:
Latest News:
AS3 Events Properties: target, currentTarget, eventPhase, localX, localY 20 Mar 2012 | 03:00 am
We examine properties: target, currentTarget, localX, localY, eventPhase and reveal some surprising results. We provide a simple utility that displays those properties for MouseEvent.CLICK. If the int...
Mobile AIR: Loading an External SWF as a Scrollable Help File 12 Mar 2012 | 02:00 pm
Our goals are to bundle help files with a mobile app so they can easily be accessed without Internet connection, will not be trying on the memory, and will scroll smoothly. Our help files contain text...
Behavior of a Loaded SWF File versus Behavior of a MovieClip 23 Feb 2012 | 05:00 pm
You load an external SWF file at runtime using Loader.load() method. You extract the file via Loader.content, cast it to MovieClip, and store in a MovieClip variable. You add a listener to mouse click...
Display Web Content within AIR Mobile App - StageWebView Tutorial 7 Feb 2012 | 08:00 am
There is a couple of ways to display web pages in your AIR mobile app: the navigateToURL method and the AS3 StageWebView class. We discuss both, but focus on StageWebView as it displays web content wi...
Drawing Display Objects into Bitmaps with BitmapData.draw() Method - AS3 How-To 9 Jan 2012 | 04:00 pm
In many circumstances you may want to draw a DisplayObject into a Bitmap. For example, to take an image 'snapshot' of a Sprite. The important BitmapData.draw method became even more important in devel...
BitmapData.draw or cacheAsBitmapMatrix or Vector Content - AIR Mobile Experiments 20 Dec 2011 | 06:00 pm
Suppose you want to zoom and pan a MovieClip with static but otherwise complex vector content. From the point of view of performance - memory and frame rate - is it better to leave it in the vector fo...
Zooming on an Arbitary Point and Panning with Gestures - AIR Mobile Tutorial 12 Dec 2011 | 01:00 pm
We examine two important AS3 gesture events: GESTURE_ZOOM and GESTURE_PAN. We show how to use the AS3 MatrixTransformer class to zoom around any point in an image other than the registration point. We...
Loading Images from and Saving Images to Camera Roll - AIR Mobile Tutorial 21 Nov 2011 | 12:00 pm
We discuss loading images from the Camera Roll on your phone into an app and saving images of the screen or a part of the screen to the Camera Roll. Many new AS3 classes specific to AIR on mobile come...
Perlin Lines - A Beautiful Art Effect in AS3 Flash 23 Aug 2011 | 02:00 am
We present two versions of Flash art which is based on a simple principle: allowing lines to be traced out on a Bitmap with changing directions determined by an invisible Perlin noise BitmapData. The ...
Why Do Tweens Stop Unexpectedly? - AS3 Flash Tutorial 20 Aug 2011 | 06:00 am
Most often Tweens quit unexpectedly due to AS3 garbage collection. Unlike instances of the Timer class, Tweens might be eligible for garbage collection even if they are running. We show how to avoid t...