A must-read for learning ActionScript 3.0
I just stumbled across a great article by Josh Tynjala on the Yahoo! Flash Developer Center. Josh writes about the new features of ActionScript 3.0, focusing on working with the Display List, changes to root and parent, and encapsulation. I’m sure this article has been around for some time, but if you are just getting into AS3 and have not yet seen this article, then I highly recommend you read it.
http://developer.yahoo.com/flash/articles/display-list.html
The Yahoo! Flash Developer Center also has some great open-source components available for download. I am playing around with the Charts and I am very impressed. These seem like a great and free alternative to FusionCharts, which at this time are not available for ActionScript 3.0.
Here are some examples of the Yahoo! ASTRA Charts:
http://developer.yahoo.com/flash/astra-flash/charts/examples.html
Alright, before in Actionscript 2.0, I knew most of the stuff, but only really used 4 things:
1. Variables to determine almost everything.
2. if(Key.isDown(Key.LEFT)){
3. on(release){
4. if(this.hitTest(_root.MYUP)){
But now, I can’t seem to get #2 and 3 to work. How do I do those, in the shortest form possible to make my job easier? Thx.
(in 3.0)
Fraser.. your like Will Smith in “I AM LEGEND” but better.
@ Mark
You would use an addEventLister() I beleive like so:
aButton.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(e:MouseEvent):void {
trace(“Event ” + e);
}
I’m just starting to learn ActionScript and that’s how you do it I think.
Good luck…
Mikey