Quite some time ago I wrote an article for the FWA about internship programs... If you haven't read it yet, go check it out...

Related Link:
http://www.thefwa.com/?app=articles&id=123



The following post is part of firstborn's mentorship program. For more information and a full table of contents, check out the mentorship main post.

Reading an XML
download: 005_xmlExample.zip

This example teaches you how to load and read from an XML file.


Custom Events
download: 007_customEvents.zip

This example shows you how to extend Events, to create your own custom Events that can pass along important data to the listener. Have a look at the code and you'll see why that makes the developer's life a hell of a lot easier.



The following post is part of firstborn's mentorship program. For more information and a full table of contents, check out the mentorship main post.

Stage Demo
download: 001_stageDemo.zip

Many of firstborn's websites take up 100% of the browser-window's height and width, and then center the website in the middle. This little script shows how to achieve that.


Font Demo (embedded in main swf)
download: 002_fontDemoInternal.zip

This example demonstrates how to embed a font into the library of a flash file and then create dynamic text fields, using that font. While this practice is easy and sufficient to help you understand the basic principles of creating dynamic textfields in flash, it is not optimal, because you would usually try to load fonts after the application has started, to avoid a too heavy initial load.


loading external Fonts
download: 006_externalFont.zip

The next step of Font handling: loading external fonts. While the method in this example still isn't the most advanced, it is a lot more professional than the one you learned before. Pay attention to the timeline in the font.fla, because it contains important code, that registers the fonts so you can use them in your main Flash application...


Button Class Example
download: 004_buttonExample.zip

A basic button class example, with rollover and rollout states. When you create a new instance of the button class, you can set the text of that button and the button size adapts automatically to it. This example also shows you the basic usage of the Tweening Engine "Tweener".




About:
As part of firstborn's internship program each trainee is assigned/can choose a mentor out of firstborn's team, to help him strengthen the skills in a certain area. The mentor program is an intense 1on1 training, which consists out of a mix of exercises, tutorials and work on real projects under the lead of the mentor. This category of my blog here is a steadily growing collection of useful resources and little exercises for those who picked me as their Actionscript mentor.

Code Examples:
- Stage Size/Resize, Font loading and a Button Class
- Loading XML and creating custom Events


Exercises:


Ressources

* I'll update this post regularly, for it to serve as a table of content for this blog-category...