Using the free Flex 3 SDK with Flash Develop

Recently I got back into Flash and began to learn Actionscript 3.0. Things have definitely come a long way in the last few years, and I’ve become interested in Adobe’s quest to turn the Flash format into a full fledged rich internet application framework of sorts. I’m surprised, and personally impressed on how far all this has come. Here’s a couple things I’ve come to realize (or knew about, but never dived into) in the last year or so:

I don’t know much about Flex yet, except that it reminds me a lot of ASP.NET in the sense that it has a lot of similar data controls and similar terms. Flex, however, is only for the front-end interface and you will still need a server side solution such as PHP or ASP.NET to actually handle the data. What’s cool is that Flex has style and because the end result runs in the Flash player it should be a consistent experience across all browsers. You also have the freedom to do any type of animation and effects you can do with Flash/Actionscript with the full confidence it will work as planned.

package 
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.display.StageScaleMode;
 
	[SWF(width = "350", height = "200")]
	public class Main extends Sprite
	{
		private var myMovieClip:MovieClip = new MovieClip();
 
		public function Main():void
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			myMovieClip.graphics.beginFill(0x000000);
			myMovieClip.graphics.drawRect(100, 50, 150, 75);
			myMovieClip.graphics.endFill();
			addChild(myMovieClip);
		}
	}
}

… and here we go, a nice little black rectangle. Totally worth it.

Flash screenshot example

Comments

One Response to “Using the free Flex 3 SDK with Flash Develop”

  1. Tom Humes on July 21st, 2008 2:39 pm

    Nice Site layout for your blog. I am looking forward to reading more from you.

    Tom Humes

Leave a Reply