Create a Mac Dock Style Menu with AS3

In this tutorial I’ll show you how to create a menu like Apple’s Dock using AS3 classes. We will create a single .as file that will perform all the magic, extending it to add new features. Final Result Preview First, let’s take a look at what we’ll be creating. Roll your mouse over the icons to see how they move and scale.

Direct Link

Read the rest of this entry »

Create An Old-School MP3 Player in Flash CS4

[If you’d like to download the files used in this tutorial to practice these techniques, visit www.layersmagazine.com and navigate to the Magazine section . All files are for personal use only.] Create an old-school MP3 player out of thin air Ever since the release of Adobe AIR, Flash designers and developers have been able to use their existing skills to create full-featured desktop applications. They can continue to design and develop in Flash CS4 using the same techniques used for building Web-based Flash content and they can simply choose to deploy it as an AIR application. In this tutorial you’ll learn how to create and publish a simple, old-school MP3 player using Flash CS4 and ActionScript 3.0.

Direct Link

Read the rest of this entry »

Thinking in Commands: Part 1 of 2

Simple, maintainable code is beautiful. However, when we have a sequences of actions that need to trigger each other, our code can get messy, making it impossible to change later. The Command Pattern keeps things clean. In this tutorial, I’ll show you how to create a minimalist AS3 Command framework, capable of performing actions in sequence, in parallel, or with a delay.

Direct Link

Read the rest of this entry »

Extend your Flash Application Using the Context Menu

A Context Menu is a menu in a graphical user interface that appears upon user interaction, such as a right-mouse click. The Flash Player context menu allows you to add custom menu items, control the display of the built-in context menu items (for example, Zoom In and Print) and create copies of menus. In this tutorial, we’ll learn how to take advantage of these items. Final Result Preview Let’s take a look at the final result we will be working towards: Right-click on the different areas of the SWF to see how the context menu changes.

Direct Link

Read the rest of this entry »

Quick Tip: How to Communicate Between Flash and HTML

In this Quick Tip, we’ll look at how to use the ExternalInterface class. This allows us to write AS3 which can run JavaScript code, and vice-versa. That means you can use Flash to alter parts of the webpage in which it’s running! Step 1: Set up the Flash Document Create a new Flash ActionScript 3 document. Resize the stage to be 600×300.

Direct Link

Read the rest of this entry »

Create a Retro CRT Distortion Effect Using RGB Shifting

In this tutorial you’ll learn how to separate an image’s three different color channels to create an RGB shift effect. I’ll also show you some graphics tricks to mimic an old CRT display. Final Result Preview Here’s an example of the effect we’ll be creating: The main takeaway in this tutorial is going to be the RGB shifting effect, but I’ll also demonstrate how to create the CRT scan lines, noise, and roll bar graphics. Step 1: About RGB Images Every image on your computer screen is displayed using the colors red, blue and green.

Direct Link

Read the rest of this entry »

Quick Tip: How to use Google Analytics for Tracking in Flash

In this Quick Tip I’ll show you how to examine the way visitors are using your websites, widgets and games. Then we’ll look at how to improve them based on this info! Introduction Building nice looking websites is great; building websites that have a high Return Of Investment is priceless. Recently I joined the web team of a Brussels based communication agency, a team with expert knowledge in the fields of user experience design, content strategies, software development, and interaction design. We spend a lot of time on wireframes, storyboards, and prototypes, which guarantees that the functionality and the content of the websites are optimal before any graphical design takes place.

Direct Link

Read the rest of this entry »

Create 3D Effects With the Stardust Particle Engine

In my previous tutorial Shoot Out Stars with the Stardust Particle Engine , I explained the basic workflow of Stardust. This time, we’ll take things further and examine a couple of techniques for creating true 3D particle effects! Introduction We’ll begin with a demonstration of how to use the Stardust’s native 3D engine. Then, I’ll show you how to get Stardust to work with Papervision3D; we’ll be creating 3D particle effects with Papervision3D’s Particles class and DisplayObject3D class. Previously… We’re going to pick up where we left off in the first tutorial .

Direct Link

Read the rest of this entry »

Redesign and Other Tuts News

Over the last three days we’ve been steadily rolling out a new Tuts+ theme across all 8 sites. The new design is a refinement more than a big change, with lots of little improvements in usability and more suited to big screens. Read on to learn more about the redesign and lots of news about Plus! 1 The Plus Project As you may know we have some pretty big plans for these Tuts+ sites. While today they are humble little tutorial blogs, we’ve thought for some time that it would be cool to build an entire platform for education.

Direct Link

Read the rest of this entry »

Quick Tip: FireWorks to Flash in About Ten Seconds

Sometimes, Flash just isn’t the right tool for the job at hand. It’s not great at creating textured buttons, for example. Luckily for us Adobe users, Fireworks is – and we can drag an object from Fireworks to Flash in about ten seconds. This Quick Tip will show you how.

Direct Link

Read the rest of this entry »