trace( "maybe this will work…" );

‘Flash’ Posts

Runtime Shared Library Tutorial (Flash CS4)

Design vs Development Cartoon

Runtime shared libraries enable ActionScript programmers to separate the design and development aspects of their project. The designer can work on the graphics in the shared library, while the programmer codes the functionality elsewhere. This can be useful for small projects, but it is essential for larger projects that can become unwieldy if your assets are not properly organized. This tutorial will walk you through setting up a runtime shared library and loading it into a simple project. Read more »

January 16th, 2010 at 9:05 pm

Posted in Flash

Scaling and Aligning Display Objects with ActionScript

Align and Scale Mode Image

In Flash, you can manipulate your SWF’s alignment and scale mode using the native ‘stage.scaleMode’ and ‘stage.align’ properties, but what happens when you need to align/scale individual display objects in your movie? ActionScript doesn’t provide any built-in functionality for that, so I created a few custom layout classes to handle aligning and scaling arbitrary display objects. I present these to you here, in hopes that it will save you some time writing your own layout utilities, or at least provide a starting point for your custom applications. Read more »

December 19th, 2009 at 7:26 pm

Posted in Flash

Flinteroids: An Advanced Flint Tutorial

Flinteroids

The Flint Particle System has a vast assortment of built-in behaviors. Most of the time, you can accomplish your desired effect with these behaviors, but if you want to build something truly unique, you’re going to have to create your own customized behaviors. This tutorial will guide you through the process of creating custom Action/Initializer classes, using InitializerGroups to create different types of particles with a single Emitter, interacting with particles through keyboard input, and leveraging the advanced features of the Flint Particle System. Read more »

December 18th, 2009 at 7:37 pm

A Visual Introduction to the Flint Particle System

flint particles
The Flint Particle System is a particle system library for ActionScript3.0. It contains over 40 particle ‘actions’ that you can combine to achieve almost every effect you would ever want in a Flash-based particle system. However, with so many built-in behaviors, delving into the Flint library can be a daunting task, even for an experienced programmer.

This visual reference guide will introduce 25 of the most commonly used Flint 2D actions with a brief description and an animated example. Hopefully, this will help you find the exact effect you are looking for, without having to actually code all of the particle behaviors on your own. This guide assumes that you already have a basic understanding of the Flint framework. A tutorial for basic usage can be found on the Flint Particles website. Read more »

December 11th, 2009 at 11:57 pm

How to Create a SWC Library from Your AS3 Code

Problem: Create a SWC library from your existing AS3 code. A SWC library is a pre-compiled file of classes and (optionally) graphical assets. They are useful for creating themes (see Creating Themes), distributing an application without distributing its source code, or for creating a compressed copy of your code library. As an example, the Flare library ships with a pre-compiled SWC that contains the entire library in one SWC file. If you’re worried about efficiency, compiling against a SWC library works exactly the same as compiling from source: only classes that you actually use are included in your final SWF. If you have a reusable code base that you want to compile into a single file, SWC’s are for you.

Solution: Flex Ant tasks. Read more »

December 8th, 2009 at 3:33 pm

Posted in Flash