Archive for the ‘ActionScript’ Category

Spinning Preloader - An All-Time Classic in Pure AS3

Saturday, May 10th, 2008

Update (December 11th, 2008): The source code is available for download now. The zip archive also includes a FlashDevelop project file. Get it here.

This tutorial may serve as a beginner exercise in AS3 coding. But before starting, let’s take a quick look at what we will be creating:

The spinning preloader animation is an all-time classic. Our implementation will be highly configurable. You will be able to set the number, size, color and fade-out duration of the rectangular segments, as well as the radius and the spinning speed.
(more…)

Creating a SWC Component in FlashDevelop

Wednesday, May 7th, 2008

In the past, if you wanted to create a SWC library from your ActionScript classes you either had to use FlexBuilder or the Flash IDE. After Adobe open-sourced the Flex SDK you were also able to use the command line tool compc.exe at no extra cost. But if you don’t like to mess around with command line tools you have another option now. A developer from Sydney released a SWC export plugin for the popular open-source ActionScript development environment FlashDevelop. The plugin is based on compc.exe but it hides all the ugly details from you.

This tutorial will guide you through the steps of creating a simple ActionScript component and compilling it into a SWC file.
(more…)