We’re making some changes at Activetuts+. From now on, our tutorials will be using class-based code, instead of timeline code, wherever possible. This Quick Tip explains what you’ll need to know.
Why Use Class Files?
I’ll admit it – sometimes, coding entirely on the timeline is useful. It’s a quick way to test out an effect, and the easiest way to sync actions to specific frames of an animation.
But for any project that relies more on code than on animation, there are serious disadvantages. All your ActionScript is trapped inside the FLA file; you can’t split the programming between different developers, you have to copy and paste code if you want to re-use it, and you’re forced to use Flash’s Actions Panel.
Using class files sets your code free. And it’s really no harder than coding on the timeline; it just involves a little more setup. I’ll walk you…
450 readersIn this tutorial we will use the AS3 LocalConnection class to send and receive data between two different SWF files. Today we will use this to detect mouse movement in one SWF and mirror it in another. Final Result Preview Let’s take a look at the final result we will be working towards. Below are
1544 readersIn this Quick Tip we are going to talk about the Singleton design pattern and how it can help you to optimize your code when you need exactly one instance of a class. Step 1: Introduction As a programmer you must be aware that there are some cases where you want to use an instance
1571 readersI’m going to demonstrate how to use the datagrid component with an xml file. When you need to display tabular data there is no quicker and easier way than to use a datagrid, and when paired up with an xml file it makes things all the better. Step 1: Setting up the Flash Document Create
1793 readersBrightness is an attribute of visual perception in which a source appears to be radiating or reflecting light. In this tutorial we will learn how to modify the brightness of a Display Object using ActionScript 3. Final Result Preview Let’s take a look at the final result we will be working towards: Step 1: Brief Overview Using the ColorTransform class
1259 readersThis Quick Tip explains how to use an image as a website background and scale it proportionally to the stage size. It’s great for when you’re using a SWF that’s full-height and full-width inside a webpage. iMac icon by bobbyperux. Final Result Preview Take a look at what we’ll be working on. Resize your browser window and click
1813 readersIn this Quick Tip you will learn how to get the mouse’s current direction in your Flash application using AS3. You could use this to create an interesting control method for a game, using a mouse like a joystick, for example. For now we will just display the direction on screen. Preview Here’s a quick example to
1644 readersIn this Quick Tip you’ll learn how to measure the current frame rate of your Flash application using ActionScript 3, and display the FPS on screen. The Importance of Frame Rate Frame Rate, or Frames per Second (fps), is the frequency at which an imaging device produces unique consecutive images called frames. The term applies equally well to computer graphics, video
1311 readers
1132 readersIn 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.
857 readersIn this Quick Tip, I’ll show you how to get and display the Flash Player Version using ActionScript. Let’s take a look! Final Result Preview Here’s the final result we will be working towards: Step 1: Brief Overview Using the Capabilities class, we’ll get the Flash Player version and Operating System then display them in a series of TextFields. Step
8,013
Subscribe to RSS headline updates from:
GurusUnleashed
Powered by FeedBurner
Curious what others are searching for? Below are the most popular search terms over the last 30 days.

