Search

Archive for the 'ActionScript' Category

iPhone development in Flash CS5 Beta (link dump)

Posted by Nate Chatellier on February 5th, 2010

It took some digging for me to find all of the resources available on the subject so far, so I thought I’d share what I found:
Designing Flash Applications for iPhone, Arno Gourdol (MAX, 2009)
Source to 4 Flash iPhone apps, Ted Patrick
Building iPhone Applications with Flash CS5, Mike Chambers (FITC Edmonton, 2009)
Flash CS5 multi-touch (with source [...]

Resizing a Parent Sprite Without Resizing the Child Sprite

Posted by Nate Chatellier on March 26th, 2009

A co-worker approached me with a problem today. He wanted to resize a parent Sprite (or MovieClip, DisplayObject, etc) without resizing the child Sprite. So, in a nutshell, here's how you do it:
PLAIN TEXT
ACTIONSCRIPT:

_mcParent._mcChild.scaleX = 1 / _mcParent.scaleX;

_mcParent._mcChild.scaleY = 1 / _mcParent.scaleY;

_mcParent._mcChild.x = _nChildStartX / _mcParent.scaleX;

_mcParent._mcChild.y = _nChildStartY / _mcParent.scaleY;

And here's a simple demo [...]

Flashplayer and AIR Benchmark Test app

Posted by Nate Chatellier on August 19th, 2008

I'm currently using the Flashplayer in more of an embedded system configuration. We're evaluating multiple hardware configurations to decide what hardware to use and we're also evaluating multiple version of the Flashplayer to decide which Flashplayer to use. So I made a quick open source test app to help with this evaluation. It allows you [...]

Should Adobe follow the new ECMAScript 3.1 standard?

Posted by Nate Chatellier on August 15th, 2008

For background, read:

Standards, ECMAScript and representing the past
ActionScript 3 and ECMAScript 4
Ru Roh! Adobe Screwed By EcmaScript Standards Agreement
How will ECMAScript “Harmony” affect ActionScript 3?

Keith Peters just posed a good question, Why Standards?. On the one hand, standards are undeniably good, assuming that the point of a "standard" is that many adhere to it. It's [...]

We’re Hiring: ActionScript 3 Engineer

Posted by Nate Chatellier on March 26th, 2008

Well, we're basically always hiring (so apply even if this ad goes away), but given that the OSFlash Job Board just had a relaunch, we thought we'd try our luck at using it.
Here's the contents of the job posting:
ActionScript 3 Engineer
DigiDeal Corporation, Spokane Valley, WA
Deal yourself a winning hand! Join DigiDeal and [...]

Adobe MAKE SOME NOISE

Posted by Nate Chatellier on March 18th, 2008

I was also having problems with the SOUND_COMPLETE event. I discovered Andre Michelle's post petition about it and promptly added my name to the list. There have been multiple other people posting about the problem also. Unfortunately, the only response that I could find from Adobe was by Brent Baker on a bug report for [...]

Automatic Flash X,Y Wireframe Preview

Posted by Nate Chatellier on March 14th, 2008

At the company I work for we use Functional Specification documents for any new Flash game that we make. Before any of the developers start any coding, the design team puts together a simple frame by frame Flash file to make it easy to see what things will look like in the various states of [...]

mouseEnabled and mouseChildren Affect CPU Load

Posted by Nate Chatellier on March 11th, 2008

I was reading a post from Keith Peters today and noticed a comment made by Ryan Taylor mentioning that mouseEnabled and mouseChildren affect the CPU load. I had to know if this was true or not so I promptly created an experiment app. The app randomly creates 700 parent sprites and 700 nested children sprites. [...]

Particle System, v0.1

Posted by Nate Chatellier on November 9th, 2007

I have seen many particle systems released on many different blogs. I've always thought that they were pretty cool and I've thought multiple times about making one myself, but decided not to for the single reason that I didn't want to be just the next guy to jump on the bandwagon of things that have [...]

FotB ‘07, Astro (Flash Player 10), & Diesel (Flash CS4)

Posted by Nate Chatellier on November 7th, 2007

In-spite of some personal international traveling hiccups, Flash on the Beach 2007 was an incredible conference! I learned something new or was greatly inspired at nearly every session that I attended. I’ll be covering the specifics of these sessions in greater detail in a series of future posts. However, the Adobe keynote done [...]

Organizing your AS and FLA Files in Large Development Environments

Posted by Nate Chatellier on June 13th, 2007

I lead an ever-growing team of Flash developers at a company called DigiDeal. We create electronic poker tables that go in casinos. Our goal is to pump out new games as often as possible. Since most casino games are just a variation of some "base level" game (such as Poker, Blackjack, Baccarat, etc), inheritance and [...]

Bitmap and Sprite Conversion in ActionScript 3

Posted by Nate Chatellier on June 8th, 2007

I got tired of writing the Bitmap and Sprite Conversion code in AS3 multiple times and finally decided I'd write a small utility that would easily do this for me.
Usage:
Let's say you have some some Sprite on the stage called _mcSprite that you want to become a bitmap, then you would do the following:
PLAIN TEXT
Actionscript:

var [...]

FlashCS3 Class Path Oddities

Posted by Nate Chatellier on June 2nd, 2007

I just spent the last 30 minutes wanting to pull an Office Space on my computer. It all boiled down to odd behavior related to setting the class path in Flash CS3. Allow me to save you from a similar frustration:
Let's say I have an .fla located in "com.natejc.display.utils". Since I'll be using other classes [...]

FlashDevelop 3 Beta review

Posted by Nate Chatellier on June 1st, 2007

On Tuesday (May 22, 2007), Mika Palmu, Philippe Elsass, and Nick Farina made an alpha release of the next installment of my favorite ActionScript editor, FlashDevelop. Somehow, I missed that they released the beta last night!
I tip my hat to the guys that made it. Considering it's a free editor, it's pretty darn good. I [...]