Portable ActionScript 3.0 development with Flex
So I’m in the process of learning AS 3.0 I have the book Learning ActionScript 3.0: A Beginner’s Guide by Shupe & Rosser . In the past I was pretty handy with AS up to version 2, I don’t work in a design capacity, really it’s just hobby level. Where I work we don’t have any version of the Flash IDE or anything like that.
Below the Jump I’ll show you how I got started.
After doing a bit of research I download the Flex 3 free SDK available from here.
I used Notepad++ to work with some example files and to follow the tutorial from Senocular. I found this a bit tedious, the examples from Senocular were great and I am really indebted to that tutorial for getting me started in the first place. Something wasn’t right and I wanted to keep digging.
My Google research led me to the wonderful FlashDevelop.
My first experiences with FlashDevelop last night were rather difficult, but I overcame them and I was quite happy with my progress. After installing and running various examples I wanted to try my hand at getting some of the very basic examples working. My inexperience caused me to run into some disheartening problems, for a newbie, but I dug around in the wonderful forums provided by the FlashDevelop community and found my answers. The examples I found here helped answer a lot of my questions.
Getting started with some of the basic examples from the book was hard though, pretty much because the book assumes you are using Flash CS3 and not the open source tools mentioned here. So even the first real examples in Chapter 2 prove challenging. Finally I came up with a template to get you started:
package {
/** in order to build an AS file on it’s own it must start with *”Package”*/import flash.display.Sprite
public class learning extends Sprite
{public function learning()
{
/**
* Simple example code can go in this function.
*/
var a:Number = 1;
var b:String = “hello”;
var c:Boolean = false;if (a == 1) {
trace(”option a”);
}
}
}
}
Comments
Leave a Reply