03 Mar 2010 at 20:43
Michael Ryan
Actionscript
No Comment
One of the first things that amateur Actionscripters bang their head against when learning AS3 is the usage of Events. Particularly, click events. This is because in AS2 you can get a lot of web-like functionality (read: hyperlinks) with throw-away code such as this…
1
2
3
my_clip.onMouseDown = function() {
getURL("some URL");
}
This is easy [...]
05 Aug 2009 at 00:09
Michael Ryan
Actionscript
7 Comments
There are a handful of articles floating around on the net that discuss how to tackle the lack of _root in AS3. The bulk of these articles suggest using a dynamic global class as such:
1
2
3
4
public class Globals
{
public static var values:Object = {}
}
This approach is fine for small projects. It allows [...]
28 Jul 2009 at 18:23
Michael Ryan
Actionscript
No Comment
This is one of the goofier warnings in Actionscript 3. If you are writing a lot of modular code or nesting base-classed library symbols, you are probably seeing this and pulling your hair out. Fortunately, it is easy to fix. Below is how to fix it in CS3, it should be very similar for CS4, [...]
22 Jul 2009 at 20:31
Michael Ryan
Actionscript
No Comment
A common roadblock that Flash designers run up against when using Actionscript is attempting to assign event handlers in an iterative manner. Most often it is a problem when dealing with some sort of associative array. For example, if I have 5 MovieClips in an array, and I have 5 string values in a separate [...]
06 Jun 2009 at 22:34
Michael Ryan
Actionscript
No Comment
This is a problem I ran into frequently when I started getting into higher end Actionscript 3 programming. The asynchronous event model of AS3 is not particularly compatible with the sort of pristine coding standards one might be used to if coming from a background in .NET or some similar language where data requests and [...]