As I’m starting to code up my new AS 3 portfolio website, I have started posting articles on simple things I used to do in AS 2.0. Here’s an example of a simple image grid. One thing you will need to produce on your own is a 75X75 pixel image named image0.jpg.
Open up your favorite text editor and just type away :
package {
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
public...
This article will pick up where we last left off with ‘How do you load an image into a movieclip in AS 3.0?’ If you have not read the previous article, please do so. I will not be covering the creation of the image pod asset in this article. The following example will introduce you to the concept of associating classes with MovieClips. We will be using a main class that will add the image pod to...
How do you load a bitmap image (jpeg, gif,png) or SWF into a movieclip in AS 3.0? In the following example we will create a movieclip which resembles an AS 2 designers asset. We will add the asset to the stage ala attach movie, the AS 3 way and we will load an image into an empty movieclip that has been masked.
Example – designer mc with a mask
Lets start from scratch.
Fire up Flash CS3 and Save it
Select...
The other day I was approached by a flash designer who was creating an avatar drag & drop interface. He wanted to know how I would approach creating such an interface. Well he didn’t like my answer because I drew him into OOP land. He was trying to avoid all that, so I gave him the run down on how he could build a simple drag & drop and then hack his way to save it to the model. After creating...
Migrating from ActionScript 2.0 to 3.0 has been a bit bumpy, since my brain has been trained to solve problems in AS 2 for a very long time. While starting out on my mission to conquer AS 3, I realized that I use to rely on AttachMovie to dynamically place assets on stage. Unfortunately, attachMovie has been replaced with addChild. So the question becomes: How do I work with assets in the library? The answer...
I’m now in the process of migrating my 10 + years of Flash ActionScript knowledge to AS 3.0. I have been stuck in AS 2.0 for a while now, due to client work. I book marked a link back in 2008 that should make this process easier. Playing around in AS 3 has been a delight. The basic differences I have noticed are:
Underscores
For most properties of a MovieClip, TextField, ect. have dropped the underscore.
mc._x...