Flash Tutorials

Learn to use Adobe Flash!
Browser app and game development tutorials, from beginner to advanced
  • Render an MP3 Audio Spectrum in Flash With computeSpectrum()

    In this tutorial, I’ll teach you how to create a visual representation of a sound file’s audio spectrum, using Flash’s SoundMixer.computeSpectrum method. We’ll use four classes for this effect: Sound, SoundChannel, SoundMixer, and ByteArray. I’ll explain each classes as we use them.


    Final Result Preview

    Let’s take a look at the final result we will be working towards:


    Click to view the demo

    Step 1: Set Up Your Flash File

    Launch Flash Pro and create a new Flash Document. Set the stage size to 500x300px, the background color to #000000, and the frame rate to 24fps.

    Setup Stage
  • Browser Extension: Arrange Tumblr Posts in Chronological Order

    Creating little browser extensions is a great way to learn JavaScript. You don’t need to worry about cross-browser compatibility, you can make the project as small or large as you like, and you can fix problems in other people’s websites that bug you, specifically. In this post, we’ll create a short script that automatically rearranges Tumblr archive pages to read in chronological order – and we’ll learn about NodeList on the way.


    The Problem

    This week, Ryan North started a new Tumblr, in which he’s going through the novelization of the first Back to the Future movie, one...

  • Quick Tip: How to Debug an AS3 Error #1203

    In this Quick Tip, we’ll discuss the confusing AS3 error 1203, “no constructor found”, which crops up without provocation and is rather unfortunately worded. We’ll examine the scenario in which it will appear, and how to fix it.


    Step 1: An Obligatory But Somewhat Useless Description of Error 1203

    First, here is the language of the error:

    1203: No default constructor found in base class flash.display:BitmapData.
    

    It’s difficult to break this down into plain English. So let’s next move on to a scenario that produces this error.


    Step 2: A Busted Project

    You can find this project in the download package, in...

  • Best of Tuts+ in January 2012

    Each month, we bring together a selection of the best tutorials and articles from across the whole Tuts+ network. Whether you’d like to read the top posts from your favourite site, or would like to start learning something completely new, this is the best place to start!


    Psdtuts+ — Photoshop Tutorials

  • Free Flash Debugger: Commando (With Premium Source Files)

    Commando is a Flash debugger that lets you change variables at runtime and run your own custom commands. It will allow you to try out whatever tweaks you want, without the hassle of changing your code and recompiling every time. This debugger also comes with its own memory monitor, and an output panel that is similar to the output dialog in the Flash IDE.


    See Commando in Action


    Why Use Commando?

    Using Commando you can change your code at runtime. Let’s pretend you are making a platformer game. You have a jumpPower variable, but when testing your game you feel that the player...


B&W Powered