New skills
Over this summer vacation I added new skills to my portfolio. Check it out! If any of it interests you, check my About page.
Papervision3D

Papervision3D is an open source 3D engine for the Flash platform. It is written and maintained by a small core team, and contributed to by its ever-growing community.
Core team
* Carlos Ulloa
* John Grden
* Ralph Hauwert
* Tim Knip
Contributors
* Patrick Pietens
* Ron Valstar
http://blog.papervision3d.org/
Adobe AIR

The new Adobe® AIR™ runtime lets developers build rich applications that deploy to the desktop. AIR applications run across operating systems and are easily delivered using a single installer file. With Adobe AIR, developers can use their existing skills in Flash to build highly engaging, visually rich applications that combine the power of local resources and data with the reach of the web.
Adobe AIR offers an exciting new way to engage customers with innovative, branded applications, without requiring changes to existing technology, people, or processes.
From shopping on eBay to managing music, Adobe AIR means applications that are easier, more powerful, and more fun to use.
http://www.adobe.com/products/air/
Flash components
Flash component is collection of ActionScript classes and Flash FLA file making one graphic component simple to use and reuse. It allows developers to simply drag&drop component to their project, add parameters and they are done with it. It also allows live preview of changing dimensions and changing skins to the component. The beauty is that component is reliable separated from rest of the project.
AntiAliasing dynamic TextField
Problem
Problem comes up when you dynamically add TextField with special font to your movie. You can create empty dynamic TextField on stage and embed fonts in it. Then you have global access to that font from TextFields through your classes. But by default you have No Bitmap antialiasing turned on. So your font looks distorted.
Solution
Assuming you embedded fonts which you will use, to fix this problem there is class AntiAliasType. TextField contains property antiAliasType which you will need to set.
var format:TextFormat = new TextFormat( "Calibri" );
textField.text = "Some text.";
textField.embedFonts = true;
textField.antiAliasType = AntiAliasType.ADVANCED;
textField.setTextFormat( format );
Don't forget importing:
import flash.text.AntiAliasType;
Basic XML checking…
Lots of unexpected errors can come from mistyping XML. So you have wrong data, and you load it to your program and of course it will work wrong.
You can be sure to check your loaded data before doing anything. Also be sure to cast your data when assigning it to variable. In example:
//Sample XML var xml:XML = <node attribute="1">Node text</node>; //Assign node text to txt variable var txt:String = null; if ( "node" in xml ) { txt = String( xml.node ); } else { trace( "Node doesn't exist!" ); } //Assign node attribute to num variable var num:uint = 0; if ( "@attribute" in xml ) { num = uint( xml.@attribute ); } else { trace( "Attribute doesn't exist!" ); }
Second language: AS 3.0
This is not a standard post, but it's so awesome I had to put it up. Everyone should have a chance to learn to speak ActionScript, and Doug Winnie made sure you can do it.
So if you're new, enjoy it:
ActionScript 1:1 with Doug Winnie